Kirkcaldy is a town and former royal burgh in Fife, on the east coast of Scotland. It is about 11.6 mi north of Edinburgh and 27.6 mi south-southwest of Dundee. The town had a recorded population of 49,460 in 2011, making it Fife's second-largest settlement and the 12th most populous settlement in Scotland.