Dunfermline is located in Edinburgh city, United Kingdom at the 56.0716, -3.4589 coordinates. Distance from Dunfermline to other cities. are listed below, click on the city name to find distance between. Distance from Dunfermline to Glasgow 55 km, to Aberdeen 145 km, to Dundee 53 km. The green marker indicates the location of Dunfermline.