ScotRail is among a number of companies helping stranded Flybe customers and staff reach their destinations.
Dozens of flights have been cancelled after the regional airline entered administration on Thursday.
The company has ceased trading with immediate effect and warned people not to travel to the airport unless they have arranged a flight with another airline.
However, many of Flybe’s domestic routes can be reached by train, meaning ScotRail and overnight rail service Caledonian Sleeper have both offered free travel over the next week to customers and staff who have been affected by the situation.
ScotRail announced on social media: “We’re sorry to hear about the collapse of Flybe. If you booked with them, you can travel free with us. Just show your boarding pass or booking confirmation.
“Stranded Flybe staff can also travel for free when in uniform or on production of a company ID/payslip.”
The offer is in place until March 11, while Caledonian Sleeper have a similar offer in place until March 12.
Ryan Flaherty, Serco’s managing director for Caledonian Sleeper, said: “The news about Flybe entering administration is extremely sad and we’re aware that many passengers and crew will be struggling to get home.
“Anyone affected who is looking to travel with us in the next week should phone our Guest Service Centre in the first instance, where one of our team can advise on availability in our seated coach and confirm your booking.
“We’d ask that people don’t arrive at the station without contacting our Guest Service Centre first as we can’t guarantee there will be space on a specific service.”
Several airlines are offering cut-price “rescue fares” to enable Flybe customers to return home.
EasyJet has £65 fares for passengers wanting to travel up until the end of May. It is also offering free flights for Flybe staff to get home on Thursday and Friday.
British Airways said it has rescue fares of £50 plus taxes, fees and charges to and from 15 airports in the UK, France, Germany, Italy, the Netherlands and Switzerland. It will also bring home Flybe staff without charge.
Stagecoach Group, which operates coaches, buses and trams in the UK, including coach firm Megabus, said it is “happy to help any Flybe customers or staff who have been stranded where we have available capacity”.