
Danderhall in pictures
Historic Environment Scotland lists 3 buildings inside Danderhall’s locality, 1 of them in the top category.
Explore the history →Each edition grades its towns against each other only.

A town of 3,389 in Midlothian, Scotland. Private rents average £1,507 a month.
Police Scotland doesn’t publish street-level crime, so Danderhall has no Safety Grade and, without it, no overall grade. Its other subjects are graded below. Its strongest subject is walkability (A): 28% of commuters walk, cycle or take public transport. Its weakest is schools (C−): school leavers’ results beat 16% of Scottish towns. The median home sold for £230,200 in the last three years, 4.5 times what households in the Midlothian council area earn in a year.
The 2 things Danderhall does most differently from other towns.
Each subject compared with the 2,160 UK towns with an overall grade (schools within Scotland), ordered by how far Danderhall is from typical. American towns are graded separately.
Police Scotland doesn’t publish street-level crime, so Danderhall has no Safety Grade and, without it, no overall grade. Its other subjects are graded below.
How TownRatings grades towns →

Historic Environment Scotland lists 3 buildings inside Danderhall’s locality, 1 of them in the top category.
Explore the history →Museums, castles, gardens and days out in and near Danderhall. Best known first.
Castle · Historic Environment ScotlandCraigmillar Castle1.8 km outside town, to the northwest
CastleDalkeith Palace2.1 km outside town, to the southeast
Abbey or prioryNewbattle Abbey3.3 km outside town, to the southeast
AttractionHolyrood Park4.9 km outside town, to the northwest
Historic houseMelville Castle1.6 km outside town, to the south
Garden · National Trust for ScotlandInveresk Lodge Garden4.1 km outside town, to the northeastPhotos: each place’s Wikidata image, from Wikimedia Commons under the licence below (our copy, resized).
Data highlights are ordered by what stands out in Danderhall.
Scotland’s Census was taken on 20 March 2022, a year after England and Wales’s lockdown census; 30% of workers were mainly at home, and shares here are of those who travelled.
For 37% of commuters, work was under 5 km away.
Scotland’s Census 2022 (NRS), method of travel and distance to work · DWP claimant count · OGL
Its one school is below. The grade uses the secondaries its children go to; Scotland publishes no primary results by school.
| School | Level | Pupils | Letter |
|---|---|---|---|
| Danderhall Primary SchoolLargest primary schoolPrimary | Primary | 417 | – |
79% of Danderhall’s residents described their health as good or very good in 2022, against 80% across Midlothian’s towns. These answers aren’t adjusted for age, so young towns look healthier; the Health Grade uses age-adjusted measures, including life expectancy and early deaths.
| Census 2022 | Danderhall | Midlothian | Scotland |
|---|---|---|---|
| Good or very good health | 79% | 80% | 78% |
| Bad or very bad health | 5.8% | 6.2% | 7.2% |
| Activities limited (health or disability) | 23% | 23% | 24% |
Scotland’s Census 2022, general health and disability · Public Health Scotland life expectancy by intermediate zone, 2020–24 · OGL
On this, Danderhall is below both Midlothian’s towns (7%) and Scotland’s towns (13%). Owners make up 69% of households.
Registers of Scotland data-zone sale prices · Scottish Government council tax · Scotland’s Census 2022 tenure · OGL
The heritage lists give each building’s grade but not its age, so we don’t say which is oldest.
Danderhall has 3 listed buildings inside its locality on Historic Environment Scotland’s list: 1 Category A, 1 Category B.
Historic Environment Scotland list, October 2026 · OGL
In the comparison, Danderhall comes below both Midlothian’s towns (10%) and Scotland’s towns (12%). Children are 18% of the town. Danderhall has a median age of 39.6.
52% women, 48% men
About 92 men for every 100 women. Across Scotland, 51% of residents are women.
| Danderhall | Midlothian | Scotland | |
|---|---|---|---|
| Under 15 | 18% | 18% | 15% |
| 15–24 | 8.7% | 10% | 12% |
| 25–44 | 30% | 27% | 26% |
| 45–64 | 25% | 26% | 27% |
| 65+ | 18% | 19% | 19% |
| No qualifications | 17% | 17% | 17% |
| Apprenticeship | 11% | 9.6% | 7.5% |
| Highers or similar | 10% | 11% | 11% |
| Degree level | 26% | 27% | 32% |
Scotland’s Census 2022 · Midlothian and Scotland: all residents of their towns · OGL
The nearest towns and villages, from National Records of Scotland’s 2022 localities. See them on the map →
| Town | People | Miles | Overall | Cost | Safety | Health |
|---|---|---|---|---|---|---|
| Danderhall | 3,389 | — | — | B | — | C− |
| Dalkeith | 15,125 | 2.4 | — | B | — | C− |
| Bonnyrigg | 18,088 | 2.9 | — | B | — | C− |
| Musselburgh | 21,476 | 2.9 | — | B+ | — | C− |
| Loanhead | 7,007 | 3.1 | — | B− | — | C− |
| Mayfield | 14,259 | 3.7 | — | B+ | — | D |
| Wallyford | 4,493 | 4 | — | B− | — | D |
| Edinburgh | 493,794 | 4.3 | — | B | — | C |
No Scottish town has a Safety Grade or an overall grade yet: Police Scotland doesn’t publish street-level crime. People: Census 2022. Miles: centre to centre.
One state school is inside the town; places are handled by the local council.
Surface water isn’t included. Check a specific address on GOV.UK’s flood risk service.
Band D council tax in Danderhall is £1,816 for 2026–27, less than in 86% of UK towns (council, county, police and fire). Your own bill depends on your home’s band; check it on GOV.UK.
Town in Midlothian, Scotland
Danderhall is a locality of 3,389 people, in the Midlothian council area. TownRatings uses National Records of Scotland’s 2022 localities as Scotland’s towns: the physical town, as people mean the word, rather than a council area, so its figures cover the town itself. Localities split the big settlements into their towns, as ONS’s 2022 boundaries split conurbations in England and Wales.
Built from NRS geography and Census 2022
Sources: Scotland’s Census 2022 (National Records of Scotland), output areas summed to the NRS 2022 locality · Registers of Scotland house price statistics, medians and quartiles of residential sales by 2022 data zone, 2004 to 2025 (the 2023 to 2025 headline brought to early-2025 prices with each council’s medians) · Scottish Government, Council Tax by band 2026-27; Scottish Water charges 2026-27 · Scottish Government, Recorded Crime in Scotland (crimes, offences and clear-up rates by council area, 2016-17 to 2025-26); Scottish Index of Multiple Deprivation 2020v2 crime domain and SIMD crime indicators (2014/15, 2017/18), 2011 data zones with Census 2022 residents · ONS gross disposable household income by council (2022), scaled to household income on England and Wales’s councils, with Scotland’s Census 2022 households · DWP / ONS Claimant Count via Nomis (2022 data zones, January to August 2026), over residents aged 16 to 64 at Scotland’s Census 2022; council series since 2015 · Scottish Government school contact list (31 July 2026) and school summary statistics (pupil census, September 2025); School Information Dashboard leavers’ attainment by school, 2022-23 to 2024-25 (data.gov.scot) · TownRatings grades: our own summary of the data, ranked against UK towns only. All under the Open Government Licence v3.0.
Contains public sector information licensed under the Open Government Licence v3.0. Contains HM Land Registry data © Crown copyright and database right 2026. Contains OS data © Crown copyright and database right 2026 (ONS boundaries). Northern Ireland: Source: NISRA; contains Land & Property Services data and Ordnance Survey of Northern Ireland information, © Crown copyright, licensed under the Open Government Licence v3.0. Scotland: contains National Records of Scotland data, Registers of Scotland data and SEPA data, © Crown copyright / © SEPA 2025, licensed under the Open Government Licence v3.0.