A new report has found that 84 of Scotland’s primary schools ensure that almost ever primary seven pupil is up to standard in reading, writing, numeracy, listening and talking.
The Sunday Times report used data submitted by schools in each of the four categories to come up with a mark out of a maximum of 400.
Read more: Prestigious international school that claimed steady pupil numbers could shut over falling roll
A total of 1,197 primary schools provided data for the annual Achievement in Curriculum for Excellence Levels publications, with the remaining 729 on the government database not participating, either because no children were up to standard, the school roll was too small or the data was not collected centrally.
Schools with a higher proportion of deprived pupils were weighted to rise up the league table to recognise their achievement in delivering a good education despite the challenges of poverty.
The schools were then placed in a league table according to how well they were performing.
In the area covered by Midlothian Council a total of 14 primaries received at least 350 points - with none scoring full marks.
Here are all 14 of the top performing primary schools in Midlothian.
Make sure you don't miss a moment of breaking news from across Scotland by signing up to our free newsletter here.

13. Mauricewood Primary School
Mauricewood Primary School, in Penicuik, dropped 20 points in the numeracy category and 10 points in each of the listening & talking, reading and writing categories to be awarded a total of 350 points in the report. The school has 341 pupils and 20 teachers. | Google Maps

14. Rosewell Primary School
Completing our list of the best performing primaries in Midlothian is Rosewell Primary School. The school scored 350 out of a possible 400 in the report - dropping 20 marks in the numeracy category and 10 marks in each of the listening & talking, reading and writing categories. The school has an impressive pupil attendance rate of 95.4 per cent. | Google Maps

