 The village also has a primary school which was opened in 1875 by Thomas Spowart, the chairman of the Dunfermline Parish School Board, and extended in 2011.The school serves the villages of Townhill and Kingseat, as well as part of North Dunfermline.As of September 15, 2016 the school had 254 pupils.