Photo: M J Richardson · CC BY-SA 2.0A larger share of residents with no religion than 98% of UK towns: 56%
Here 25% of households live in a flat or apartment, where the figure across Scotland’s towns is 39%. 23% of households have no car or van, a higher share than in 83% of UK towns. At the 2022 Census Loanhead was home to 7,007 people in 3,207 households. On the census count, a third of households are one person living alone.
Loanhead is older than 61% of UK towns: a median age of 46
Share of residents in each five-year age band, Census 2022.
Just over one in ten residents are aged 15 to 24 across Scotland’s towns, against 9.9% in Loanhead. Compared with other places, residents aged 65 and over are common here: 23%, more than in nearly three fifths of UK towns.
Median age of UK towns of 2,500+
■ Loanhead, 46. The typical town is 44.4.
Broad ages · share of residents
Women and men · all residents
52% women, 48% men
About 91 men for every 100 women. Across Scotland, 51% of residents are women.
Full-time students make up 4.9% in Loanhead, more than in 53% of UK towns
What adults did at the 2022 Census (the NS-SEC classes).
Adults by occupation class · residents 16 and over
By class, 31% of adults are in managerial and professional jobs and 28% in routine and semi-routine work (Scotland’s towns: 33% and 25%). Against that, 9.4% of adults are full-time students across Scotland’s towns.
2.2 people per household, fewer than in 79% of UK towns
Household make-up at the 2022 Census. Each square is 1% of households.
Against Midlothian’s towns and Scotland’s towns
People per household
Scotland’s towns.
There is little gap on households with dependent children: 24%, about the same as across Scotland’s towns. At 2.7%, the share of shared households of unrelated adults is higher than in 66% of UK towns.
Only 19% of households in Loanhead live in a detached house
Accommodation type and cars or vans per household, Census 2022. Owning and renting are on Cost of living.
Type of home
Cars or vans · share of households
18% of households live in a terraced house, against 19% across Scotland’s towns.
A larger share of residents born outside the UK than 65% of UK towns: 8.2%
Country of birth, year of arrival and main language, Census 2022.
Born outside the UK, by region · share of all residents; the bar runs to 15%
When those born abroad arrived
Main language · residents aged 3 and over
96% of residents have English as their main language; across Scotland’s towns the figure is 94%. The largest groups were born in EU countries (3.4%) and in the Middle East and Asia (2.7%). Across the comparison, 11% of residents were born outside the UK across Scotland’s towns.
Below 97% of UK towns: 35% of residents describe themselves as Christian
How residents described themselves at the 2022 Census. Lines join the lowest and highest of the three figures.
Ethnic groups other than White British · all residents
White British, not charted: 90% of Loanhead · Midlothian’s towns 90% · Scotland’s towns 86%.
Religion · all residents
1.5% of residents are Muslim. Fewer residents who describe themselves as White British than in nearly two thirds of UK towns: 90%. Against that, 39% of residents describe themselves as Christian across Scotland’s towns.
13% of residents give unpaid care, more than in 99% of UK towns
Legal partnership status (residents 16 and over) and unpaid care (residents 3 and over), Census 2022.
Partnership status · residents 16 and over
Unpaid care given · share of residents 3 and over
The share of adults who have never married is 33%, against 40% across Scotland’s towns. Unpaid care takes 50 hours a week or more for 220 people. Fewer married adults and civil partners than in 52% of UK towns: 48%. For comparison, 12% of residents give unpaid care across Scotland’s towns.
The share of adults with a degree-level qualification: 27%
Highest qualification, residents 16 and over, Census 2022.
Highest qualification · residents 16 and over
Degree-level qualifications are held by 27% of adults in Loanhead (Scotland’s towns: 32%), and no qualification by 19% (Scotland’s towns: 17%).
Ranked by age, 215th oldest of 474 UK towns this size
Median age, Census 2022. Hover a dot for its students and residents born abroad; click for its page.
Red Lodge is the youngest (30.9); Barton on Sea the oldest (65.3). Nearest to Loanhead in age: Marlborough (46), Ruthin (46), Moreton-in-Marsh (46.1) and Burley in Wharfedale (46.2).
Loanhead is older than every town around it
Nearby towns coloured by median age, Census 2022. Tap a town for its page.
| Town | People | Away | Median age | 65+ | Homes with children |
|---|---|---|---|---|---|
| Loanhead | 7,007 | — | 46 | 23% | 24% |
| Bonnyrigg | 18,088 | 1.9 mi | 42.4 | 19% | 31% |
| Danderhall | 3,389 | 3.1 mi | 39.6 | 18% | 29% |
| Penicuik | 16,431 | 3.8 mi | 43.8 | 23% | 25% |
| Dalkeith | 15,125 | 3.9 mi | 41.2 | 19% | 28% |
| Mayfield | 14,259 | 4.1 mi | 40.4 | 17% | 29% |
| Edinburgh | 493,794 | 4.8 mi | 37.2 | 16% | 21% |
| Gorebridge | 8,900 | 4.8 mi | 36.1 | 13% | 35% |
Health, work and homes have their own pages
What this data can and can’t tell you
- “Midlothian’s towns” and “Scotland’s towns” mean their towns. Census comparisons pool every locality in Midlothian (or Scotland), summed the same way as Loanhead’s figures, so households in open countryside are left out.
- Small counts are blurred. National Records of Scotland adjusts small Census counts to protect privacy, so the same total differs a little between tables, and the shares of a small town can move by a point or two.
Questions about Loanhead’s residents
What is the population of Loanhead?
The 2022 Census counted 7,007 people in Loanhead’s locality.
What is the average age in Loanhead?
The median age was 46 at the 2022 Census, older than 61% of UK towns. 9.9% of residents were 15 to 24 and 23% were 65 or over.
How diverse is Loanhead?
90% of residents described themselves as White British in 2022, against 86% across Scotland’s towns and 90% across Midlothian’s towns. 8.2% were born outside the UK.
What religion are people in Loanhead?
56% said they had no religion and 35% that they were Christian at the 2022 Census; 1.5% were Muslim and 5.7% didn’t answer.
Is Loanhead good for families?
24% of households had dependent children in 2022, against 24% across Scotland’s towns. Schools are on Loanhead’s schools page.
Sources: Scotland’s Census 2022 (National Records of Scotland), output areas summed to the NRS 2022 locality (UV101b, UV103, UV104, UV113, UV201, UV204b, UV205, UV212, UV301, UV402, UV405, UV406, UV501, UV607, UV801). 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.