Dunfermline, IL has a population of 313 and is the 22,261st largest city in the United States. The population density is 2,392 per sq mi which is 976% higher than the Illinois average and 2540% higher than the national average. The median age in Dunfermline is 34 which is approximately 10% lower than the Illinois average of 37. In Dunfermline, 51% of the population over 15 years of age are married, 99% speak English and 1% speak Spanish. 86% of Dunfermline residents were born in Illinois, 14% were born out of state, 0% were born outside of the United States and 0% were foreign born.