How the fuel cost is calculated
The fuel used depends on the distance and the car's fuel economy, and the cost on the price per liter or gallon. The conversion between US and metric units uses the exact definitions of the mile and the gallon from NIST Handbook 44.
cost = fuel × price per gallon (or liter)
L/100 km = 235.215 ÷ MPG
- MPG
- Miles per US gallon (higher is better)
- L/100 km
- Liters per 100 km (lower is better)
Worked example
| Fuel350 ÷ 28 | 12.5 gal |
|---|---|
| Cost12.5 × $3.20 | $40 |
| Per mile | $0.11 |
| Round trip for 3 people | $26.67 each |
In metric units, 500 km in a car using 7 L/100 km takes 35 liters; at $1.60 a liter that is $56.
How to read your results
- Fuel cost covers fuel only, not tolls, parking or wear on the car.
- Cost per mile or km helps compare driving with a train or bus ticket.
- Other unit: 28 MPG is about 8.4 L/100 km.
Planning to buy the car? The auto loan calculator shows the monthly payment.
Assumptions
- One average fuel economy for the whole trip.
- One fuel price; enter the price you expect to pay.
- A round trip doubles the distance; the cost is shared evenly.
Limitations
- Real consumption depends on speed, traffic, load, air conditioning and weather; city driving usually uses more than the rated figure.
- The prices on this page are examples, not current fuel prices.
- Electric cars need kWh per 100 km and electricity prices, which are not covered.
Frequently asked questions
How do I calculate gas cost for a trip?
Divide the miles by your car's MPG to get gallons, then multiply by the price per gallon. 350 miles at 28 MPG and $3.20 is $40.
How do I convert MPG to L/100 km?
Divide 235.215 by the MPG figure. 30 MPG is about 7.8 L/100 km; the same formula works the other way.
How do I split gas money fairly?
Divide the total fuel cost by the number of people. For different distances, split each leg among the people in the car for it.
Sources
Definitions and rules referenced on this page. Calcendium is not affiliated with these publishers.
- NIST Handbook 44 (2026), Appendix C: General Tables of Units of Measurement
National Institute of Standards and Technology · United States · Checked October 24, 2026
Exact definitions: 1 inch = 2.54 cm, 1 yard = 0.9144 m, 1 mile = 1.609344 km, 1 nautical mile = 1852 m, 1 pound = 0.45359237 kg, 1 pound = 16 ounces, 1 stone = 14 pounds, 1 US gallon = 231 cubic inches, 1 cup = 8 fluid ounces, 1 tablespoon = ½ fluid ounce = 3 teaspoons.
- NIST Guide to the SI (Special Publication 811), Appendix B.8: Factors for Units Listed Alphabetically
National Institute of Standards and Technology · International · Checked October 24, 2026
Exact conversion factors, including the imperial gallon (4.54609 L) and the temperature relations t/°C = (t/°F − 32) ÷ 1.8 and T/K = (t/°F + 459.67) ÷ 1.8.