| Postcode | DG3 5LH | 
|---|---|
| Post Town | Thornhill | 
| Nearest station | Sanquhar (17 km) | 
| Bus stops | East Morton Street (SW) Cross (NW) Cross (SE) Wallace Hall (NE) Drumlanrig St (NW) Drumlanrig St (SE) | 
| Number of UPRNs | 1 View | 
| Businesses | 
                        No businesses found
                     | 
| Latitude | 55.24348 | |
|---|---|---|
| Longitude | -3.766005 | |
| Easting | 287817 | |
| Northing | 595787 | |
| Grid reference | NX878957 | |
| UTM reference | 30U 451297 6122153 | |
| what3words | ferrying.protest.guesswork | |
| FixPhrase | crushed lunchbox slimness unimpeded | |
| Plus code | 9C7R66VM+9H | |
| Altitude | 69 metres (225 feet) | |
| Sunrise (today) | 7:18 | |
| Sunset (today) | 16:41 | |
| Distance away | ||
| Distance to sea | 29.2 KMs (18.1 miles) | 
| Ward | Mid and Upper Nithsdale | S13002886 | 
|---|---|---|
| Council Area | Dumfries and Galloway | S12000006 | 
| Constituency (2024) | Dumfriesshire, Clydesdale and Tweeddale | S14000074 | 
| MP | David Mundell | Conservative | 
| Police force | Scotland | |
| Water company | Scottish Water | |
| NUTS/ITL 3 | Dumfries and Galloway | |
| NUTS/ITL 2 | Southern Scotland | |
| NUTS/ITL 1 | Scotland | |
| Country | Scotland | S92000003 | 
| Date introduced | December 1995 | 
|---|---|
| Last updated | September 2025 | 
| User type | Small (addresses receive less than 25 items of mail per day) | 
| Quality | Within the building of the matched address closest to the postcode mean | 
| Index of Multiple Deprivation (2019) | Most deprivedLeast deprived | |
|---|---|---|
| Rural/urban (2021) | Accessible Rural | |
| Rural/urban (2011) | Accessible rural area | |
| Census output area (2021) | S00146128 | |
| Census output area (2011) | 5B2 | |
| Lower layer super output area (2011) | Thornhill - 02 | S01007560 | 
| Middle layer super output area (2011) | Thornhill | S02001420 | 
| Travel to work area | Dumfries | S22000055 |