Edinburgh's year-round festivals generate £313m for the Scottish economy, according to a major report on the overall contribution made by the cultural events.

The figure for 2015 represents an increase of 24% on the total recorded five years earlier, with the tourism, hospitality and leisure sectors the main beneficiaries.

The study also found the festivals attract combined audiences of more than 4.5 million, putting them on a par with the Fifa World Cup, and that they support more than 6,000 Scottish jobs.

The analysis is contained in an independent impact study which was commissioned by Festivals Edinburgh.

Researchers BOP Consulting analysed the overall impact of Edinburgh's 12 festivals and found they are estimated to have generated £279.6m in the city over 2015, an increase of 19% on the 2010 study.

They were worth £312.6m to the Scottish economy as a whole last year, up by a quarter from the £252m recorded in 2010.

The festivals also supported 5,660 new full-time equivalent jobs in Edinburgh last year, and 6,021 in Scotland, the latter figure representing an increase on the 4,700 recorded five years earlier.

The report also looked at the quality of the experience for festival-goers as well as the events' impact on the city.

Some 92% of those quizzed said the festivals had given them a chance to see something they would not otherwise get to see.

The satisfaction figure among audiences came in at 95%, the highest-rated outcome of the whole study.

A total of 89% of local festival-goers said the events increase their pride in the city.

Festivals Edinburgh director Julia Amour said: "This report tells us that the festivals are unparalleled in terms of their quality, in terms of their scale of impact and also in terms of the level of benefits they are returning to local people and businesses.

"We've passed the 4.5 million mark for attendances, which reminds us what an extraordinary world-scale event we have in the capital with our festivals.

"We knew that the ticket sales had gone up by about 20% (in the five-year period) so we were quietly confident that we would be on a growth curve, but to find that the benefit for Scotland as a whole is even stronger than our ticket sales would suggest is a really great result."

First Minister Nicola Sturgeon said: "Edinburgh can quite rightly be proud of the stage it provides to our world-renowned festivals and the welcome hospitality it provides to visitors, performers, promoters and many, many others through the season.

"Festivals provide a platform to showcase our rich culture and exceptional creative talent to a global audience, and as the 2016 summer festival season gets under way I look forward to seeing what we have in store."

The city's festivals and events champion, councillor Richard Lewis, welcomed the findings.

He said: "The research reaffirms Edinburgh's position as the world's festival city.

"Not only do 89% of festival-goers agree that the festivals increase their pride in Edinburgh, but 68% state their attendance makes them more likely to attend other cultural events.

"Edinburgh residents have a tremendous pride in the festivals and they remain at the core of the city's culture, acting as a gateway to the arts and culture for the rest of the country.

"The festivals have long been an important factor for the region and country's economy and today's findings reveal a staggering economic boost."

The research was based on responses from more than 29,000 people questioned last year.

It follows a similar study last conducted in 2010 and published the following year.