According to the National Records of Scotland (mid-year estimates, June 2022), the population of Edinburgh was 529,550 as of mid-2021.
It is Scotland's second-largest city (after Glasgow) and the UK's seventh-most-populous. The metro area (Edinburgh & South East Scotland) exceeds 900,000.