A freight train experiencing mechanical problems earlier today has caused a headache for Sydney commuters trying to get home tonight.

Some trains on the Northern Line, between Central and Epping, have been cancelled due the breakdown at Wentworthville in Sydney’s west, which required repair work.

The Western Line is also affected, with Richmond to Central services now terminating at Strathfield.

Central to Revesby services will now terminate at Kingsgrove and the Central to Lidcombe via Bankstown service is experiencing delays, too. Leppington to Blacktown services have also been cancelled.

"A short section of track was temporarily out of service while the freight train was repaired, which affected regular running patterns," a Sydney Trains spokesperson told Broadsheet.

"A regular service is being provided, however, some services on the T1 North Shore, Northern & Western [lines]; the T2 Inner West & Leppington; and the T5 Cumberland Lines, have been affected."

Get our pick of the best news, features and events delivered twice a week

Live updates can be found on the Transport Sydney Trains website that aggregates train-related news from Transport Sydney’s Twitter accounts. "We apologise to customers for any inconvenience and advise they check mobile travel apps, listen to announcements and check indicator boards for the latest updates," says the spokesperson.

Keep an eye on it if you’re planning to catch a train tonight.