The UK’s deficit stood at 6.1 per cent of GDP over the equivalent period.
However, the Conservatives said the figures showed the “Union dividend” – the value of Scotland’s higher spending and lower revenue compared to the UK as a whole – grew to the highest sum on record.
Public spending in Scotland remained higher per person than the UK average. In 2021/22, expenditure per person was £1,963 higher in Scotland than the UK average.
This represented an increase on the previous year’s figure of £1,530.
Scotland saw a 13.6 per cent increase in its non-North Sea revenue to £70.3 billion, the largest ever recorded by the GERS statistics.
The report noted growth was particularly strong in VAT, non-domestic rates and fuel duties.
When North Sea revenues are included, total Scottish revenue stood at £73.8 billion.
This meant that revenue per person was £221 lower than the UK average.
Mr Swinney said: “Today’s figures show Scotland’s fiscal position is recovering faster than the UK’s, with a huge fall in the annual deficit thanks to the largest increase in revenues on record.
“This is before the full impact of the rise in oil prices that we’ve seen more recently, which is likely to see Scotland’s deficit fall faster than the UK’s again next year, with oil and gas revenue set to grow to £13 billion this year.
“The figures also highlight how the UK’s response to the cost crisis is being built on Scotland’s natural resources, not least with its windfall tax on the North Sea.”
Highlighting the impact of Brexit, he said: “In the first full financial year since Brexit, the GERS figures show the economic harm of leaving the EU is driving up borrowing in the UK and contributing to the UK deficit being one of the largest in Europe.
“Even in the midst of an energy crisis, the UK as a whole is benefiting from Scotland’s natural wealth, which is why Scotland can expect its deficit to fall further in the future.”
Responding to the GERS figures, Conservative MSP Liz Smith said: “These new figures underline the huge benefits we all gain from being part of a strong United Kingdom.
“Every single person in Scotland is £2,184 better off because we are part of the United Kingdom.
“The strength and stability of the Union helped us to weather the pandemic, saving thousands of jobs, livelihoods and businesses that would otherwise have been lost – but we are not out of the woods.
“As we head into a global cost-of-living crisis, it is more important than ever that both of Scotland’s governments are 100 per cent focused on our recovery.”