Rail Fare Calculator

Distance-Based Pricing, Made Transparent

Many rail fares combine a flat boarding charge with a per-kilometer rate, then apply whatever discount a passenger qualifies for — a railcard, an off-peak reduction, a group booking. Reproducing that arithmetic by hand is where fare disputes and booking-system confusion usually start. This calculator lays out each step separately so the final price is easy to verify.

The Formula

Distance Charge = Distance × Rate per km
Subtotal = Base Fare + Distance Charge
Total Fare = Subtotal − (Subtotal × Discount %)

Where This Is Useful

  • Comparing fare structures — work out what a given distance actually costs under a specific base fare and per-km rate before booking.
  • Verifying discounts — confirm that a railcard, promotional, or group discount has been applied correctly to the full subtotal.
  • Budgeting regular travel — project the cost of a recurring route, such as a daily commute, from the same three inputs.

Worked Example

A base fare of $2.50, a 15 km journey at $0.35 per km, with a 10% discount applied:

Sample fare breakdown
Base fareDistanceRate/kmDistance chargeSubtotalDiscountTotal fare
$2.5015 km$0.35$5.25$7.75$0.78$6.97

How to Use This Calculator

  1. Enter the Base Fare in dollars — the flat charge before distance is factored in.
  2. Enter the Distance to be travelled, in kilometers.
  3. Enter the Rate per km, in dollars.
  4. Optionally enter a Discount % to apply to the subtotal.
  5. Select Calculate to see the distance charge, subtotal, discount amount, and total fare.

Related Calculations

For a service's operating cost rather than its fare, see the Train Fuel Consumption Calculator. To check how long the journey behind that fare will take, use the Train Speed Calculator.