Lochgelly (/lɒxˈɡɛli/ ; Scottish Gaelic: Loch Gheallaidh, IPA:[ˈɫ̪ɔxˈʝaɫ̪ai]) is a town in Fife, Scotland. It is located between Lochs Ore and Gelly to the north-west and south-east respectively. It is separated from Cowdenbeath by the village of Lumphinnans. According to the 2007 population estimate, the town has a population of 6,834.