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.

9. Hawthornden Primary School
Bonnyrigg's Hawthornden Primary School is the last Midlothian primary to score 360 points in the report - dropping 20 marks in the numeracy category and 10 marks for both reading and writing. Fewer than 10 per cent of the school's pupils come from 'very deprived' backgrounds - as is the case for the remainder of the schools on this list. | Google Maps

10. Gore Glen Primary School
Gore Glen Primary School, in Gorebridge, is the first of five Midlothian primaries to score 350 points out of 400 in the Sunday Times report - dropping 10 marks in the reading category and 20 marks in each of the numeracy and writing categories. The school has an average class size of 20.1 pupils. | Google Maps

11. Woodburn Primary School
Woodburn Primary School, in Dalkeith, dropped 20 marks for numeracy and 10 marks in each of the reading, writing and listening & talking categories to score 350 out of 400. The school had 654 pupils on its roll last year. | Google Maps

12. Newtongrange Primary School
Located in the Midlothian village of the same name, Newtongrange Primary School also scored 350 points in the report - dropping 10 marks in the numeracy and 20 points in each of the reading and writing categories. The school has a pupil-to-teacher ratio of 16.9. | Google Maps

