# Calculating Cost per Passenger-Km or Tonne-Km
## Standard 4-Step Procedure
Step 1: Calculate total cost incurred per month or per year (sum of fixed + variable + semi-variable).
Step 2: Calculate total kms travelled.
Step 3: Calculate total passenger-kms or total tonne-kms.
Step 4: Cost per passenger-km (or tonne-km) =
$$\frac{\text{Total Cost (Step 1)}}{\text{Total Passenger-Km or Tonne-Km (Step 3)}}$$
## When the Number of Passengers Changes Along the Route
If the number of passengers/tonnes carried varies between different stations, you must calculate passenger-kms for each segment separately and then add them up.
## Formula
$$\text{Passenger-Km for a segment} = \text{No. of passengers in that segment} \times \text{Distance of that segment}$$
Then total them across all segments.