Scottish Schools Ranked: Here are the top performing schools in all 32 of Scotland's local authority areas - from the Borders to the Orkney Islands

The findings are based on the percentage of pupils at each school who achieved the Scottish Government’s educational “gold standard” of five Highers, or their equivalent, in 2022.

The exam result data shows which schools and council areas have the most successful pupils academically – topped by East Renfrewshire where six out of its seven secondary schools placed in the top 50.

Exam league tables do not rank schools from ‘best to worst’, as they do not take into account factors such as teaching quality, the number of pupils with special educational needs or whether the school serves a disadvantaged area.

Meanwhile, the Scottish Government says presenting exam performance figures in league tables is “misleading” because it overlooks such aspects but we are publishing them to provide parents with important information they can consider alongside inspection reports and other ways to assess the quality of local schools.

We have compiled them using exam performance data published by the Scottish Government on its own website. Where schools are tied, we have looked at the share of pupils passing four or more Highers, then three or more if necessary, to determine the ranking.

Across Scotland, 39 per cent of school leavers in 2022 had gained at least five Highers, or equivalent, the figures show.

This is lower than the previous two years, when the Covid-19 pandemic meant exams were cancelled and teacher assessments used to award grades, but higher than pre-pandemic levels.

In alphabetical order, here are the schools that have topped the table for each local authority area.