Dunfermline is the most affordable commuter town for Edinburgh workers according to a study by Zoopla.
The property website looked at the combined costs of mortgages and rail season tickets, and calculated that buying a house in Dunfermline and commuting to the capital would cost an estimated £7,530 a year.
Falkirk was the next most affordable place to live, with an annual cost of £7,553, followed by Linlithgow, Airdrie and Coatbridge.
Zoopla has also compiled league tables of the cheapest places to live for workers commuting to London, Bristol, Birmingham and Manchester.
Laura Howard, consumer expert at Zoopla, said: “The past decade has seen significant property price growth in prime London commuter belt towns but despite this our analysis still picks out pockets across south east England that represent affordable value for commuters.
“Areas outside London and the south east are generally more affordable, but commuters can still save money on their daily travel into the likes of Birmingham and Bristol by looking at towns they might not have yet considered, but still have good transport links.”
The study considered locations within an hour’s travel time of the five cities.
Grays in Essex topped the list as the best value commuter spot for London with combined annual costs of £15,008 for a mortgage and season ticket.
Elsewhere, Wolverhampton was highlighted as the top option for Birmingham and Hindley came out first for those commuting into Manchester.
Zoopla suggested people travelling into Bristol for work might want to look over the border to Wales to find better value. Newport in south Wales offered the best deal, with combined train travel and mortgage costs of £10,166.
The research made certain assumptions about typical mortgage costs, which were based on someone having a two or three bedroom home and a 15% deposit for their mortgage.
Travel times and the 2020 annual railcard costs were taken from the National Rail enquiries website.