It can be extremely frustrating when your plans are spoiled by a delayed or cancelled train.

Luckily, ScotRail operates a refund service for those whose journeys have been affected by unforeseen circumstances on the tracks.

If you've been left standing at a station after your train was delayed or cancelled, here is how you can get a refund on your ticket.

How do I get compensation if my ScotRail train is delayed?

Those who have experienced a delay can visit ScotRail's Compensation page where users will be able to file claims and check the status of previous claims.

How to apply for a refund if your ScotRail train is cancelled

Those looking to apply for a refund because of a cancelled train can do so on the ScotRail website, through the ScotRail app or at the train station booking office.

For Anytime single/return and Off-peak single/return tickets, passengers have up to 28 days after the expiry date to apply for a refund.

If you purchased your ticket on the ScotRail website or app, you should call 0344 811 0141 before selecting 'Option Two'. You will then be redirected to the company's Web Support Team to discuss your refund.

If you purchased your ticket at the train station booking office, you should return to that booth to get your refund.

If you acquired your ticket from a vending machine, onboard a train, over the phone or on the app/website without using a Smartcard, you should fill out the online refund request form. 

It should be noted that a number of ticket types like Advance, Flexipass, Friends Fare and Kids for a Quid are non-refundable.

A number of tickets may only be transferrable for customers affected by cancellations.