The Edinburgh marathon generated more than £2.75m for the city's economy, according to its organisers.
This year's Albert Bartlett Edinburgh Marathon also raised more than £3m for charity.
Marathon and relay runners spent £1,207,744 over the marathon weekend and their supporters spent £1,546,548.
Every marathon runner brought an average of 2.38 people with them to the event and relay teams brought an average of 2.18 people.
Along with the £500,000 needed to stage the event its total economic benefit for the UK was said to be more than £6m.
Of the 10,230 full marathon entrants, 35.2% came from Scotland, 57.6% from the rest of the UK and 7.2% from overseas. Only 16.2% of marathon runners came from an Edinburgh postcode.
Damien O'Looney, Edinburgh Marathon marketing manager, said this year's event had made the biggest economic impact in its history.
He said: "We have staged another great event and it has benefited the economy by over £6m.
"The marathon draws thousands of people to Edinburgh who would not otherwise come to the capital, we receive entries from every county in the UK and from over 50 countries.
"I am also delighted that over 200 Scotland and UK charities have benefited by an overwhelming £3m."
The 2009 Albert Bartlett Edinburgh Marathon is on Sunday 31 May.
Places for runners in next year's Edinburgh Marathon will not be selected by ballot instead it will be open on a first-come-first-served basis.