Fuel Cost Calculator
Trip fuel cost from distance, efficiency, and a price per gallon or liter.
Fuel cost
$42.00
Distance, efficiency, and the price you entered
Gallons
12.000
Miles are international miles (1.609344 km) and gallons are US gallons (3.785411784 L). MPG is miles divided by gallons. Liters per 100 km uses those exact factors. A fuel price is optional and is multiplied by the fuel used, then rounded to the cent.
Learn more
How this calculator works and what to know before using it
What this calculator does
Prices a trip from the distance, the vehicle's efficiency, and a fuel price.
How to use it
- Enter the distance and its unit.
- Enter miles per gallon, or liters per 100 km.
- Enter the price per gallon or per liter, matching that efficiency unit.
Formula used
Trip cost from miles per gallon
Gallons = miles รท miles per gallon. For liters per 100 km, liters = kilometers / 100 ร the rate, then gallons = liters / 3.785411784. Cost = gallons ร the price. A mile is 1.609344 km.
Source. Gallons are miles divided by miles per gallon. Liters per 100 km uses 1 mile = 1.609344 km and 1 US gallon = 3.785411784 L. Cost is the gallons times the price you entered. The mile and gallon factors are the exact values in NIST Special Publication 811. NIST Special Publication 811.
Updated November 1, 2026
Example
A 300-mile trip at 25 miles per gallon and $3.50 a gallon uses 12 gallons and costs $42.00.
Good to know
- The price field is per gallon when the efficiency is MPG, and per liter when it is L/100 km.
Common questions
- Will this match the gas mileage page?
- Yes for the same trip. Both pages use the same mile and US gallon factors. A 300-mile drive that used 12 gallons is 25 MPG, and 12 gallons at $3.50 is $42.00.
Advertisement
