How to Calculate Fuel Cost and Gas Mileage (MPG) for a Trip
Planning a road trip or comparing commuting costs? A fuel cost calculator needs three numbers: the distance, your car’s fuel economy and the price of fuel.
Quick answer
- Gallons needed = miles ÷ MPG
- Fuel cost = gallons × price per gallon
- Example: 300 miles at 30 mpg uses 10 gallons; at $3.50 a gallon that’s $35.00.
Trip cost chart
Cost at $3.50 per gallon:
| Distance | 20 mpg | 25 mpg | 30 mpg | 35 mpg | 40 mpg |
|---|---|---|---|---|---|
| 50 mi | $8.75 | $7.00 | $5.83 | $5.00 | $4.38 |
| 100 mi | $17.50 | $14.00 | $11.67 | $10.00 | $8.75 |
| 250 mi | $43.75 | $35.00 | $29.17 | $25.00 | $21.88 |
| 500 mi | $87.50 | $70.00 | $58.33 | $50.00 | $43.75 |
| 1,000 mi | $175.00 | $140.00 | $116.67 | $100.00 | $87.50 |
| 2,000 mi | $350.00 | $280.00 | $233.33 | $200.00 | $175.00 |
Change the price to your local figure: the cost scales directly with it.
How to calculate your MPG
- First, fill the tank and reset the trip meter (or note the odometer).
- Then drive normally until the tank is low.
- Next, refill and note how many gallons it took.
- Finally, divide the miles driven by the gallons: 342 miles ÷ 11.4 gallons = 30.0 mpg.
Repeat over a few tanks for a reliable average; the dashboard estimate can be optimistic.
Metric: litres per 100 km
- L/100 km = 235.215 ÷ mpg (US); 30 mpg = 7.84 L/100 km.
- Trip fuel (litres) = distance (km) × L/100 km ÷ 100.
- Lower L/100 km is better, the opposite of mpg. For distances, see km to miles; for volumes, liters to gallons.
The 235.215 factor comes from 100 km ÷ (1 mile per US gallon), using 1 mile = 1.609344 km and 1 US gallon = 3.785411784 L.
Splitting the cost
Divide the total by the number of passengers: $35 between 3 people is about $11.67 each. For a round trip, double the distance first.
Electric cars
For an EV, use energy instead of fuel: kWh used = miles ÷ miles per kWh, then multiply by your electricity rate. See how to calculate electricity cost.
Frequently asked questions
How do I calculate fuel cost for a trip?
Divide the distance by your MPG, then multiply by the price per gallon.
How much gas does a 500-mile trip use?
At 25 mpg, 20 gallons.
How do I calculate MPG?
Divide miles driven by gallons used to refill the tank.
How do I convert mpg to L/100 km?
Divide 235.215 by the mpg figure.
