Free online fuel cost calculator
Fuel cost is distance divided by efficiency, multiplied by the price per unit. This calculator handles both MPG (US) and L/100km (metric) so you can price any road trip or daily.
Saved to favorites
Your favorites live on the home page, under Your favorites. They're saved only on this device & browser — open the site on your phone or in another browser and you won't see them there. No account, no server.
How to use
- Toggle MPG or L/100km to match how your car’s efficiency is rated.
- Enter the trip distance in miles or kilometers.
- Enter your car’s fuel efficiency (MPG or L/100km).
- Enter the current gas or diesel price per gallon or liter.
- Read total cost, fuel used, and cost per mile or per kilometer.
Formulas
MPG mode:
fuel used (gal) = distance (mi) ÷ MPG
total cost = fuel used × price per gallon
cost per mile = price per gallon ÷ MPG
L/100km mode:
fuel used (L) = (distance (km) ÷ 100) × L/100km
total cost = fuel used × price per liter
cost per km = (L/100km ÷ 100) × price per liter
Worked examples
US road trip: 300 miles at 30 MPG, gas at $3.50/gallon:
fuel used = 300 ÷ 30 = 10 gallons
total cost = 10 × 3.50 = $35.00
cost/mile = 3.50 ÷ 30 = $0.12
European drive: 500 km at 7 L/100km, fuel at €1.75/liter:
fuel used = (500 ÷ 100) × 7 = 35 liters
total cost = 35 × 1.75 = €61.25
cost/km = (7 ÷ 100) × 1.75 = €0.1225
Notes
- Actual fuel economy is usually 10–20% lower than EPA/WLTP ratings in real-world driving.
- Highway driving is more efficient than city driving for most non-hybrid vehicles.
- For electric vehicles, substitute kWh/100mi or mi/kWh and price per kWh for a comparable cost estimate.
Frequently asked
How do I calculate fuel cost for a road trip?
How do I convert MPG to L/100km?
What is a good MPG for a car?
How does the L/100km mode work?
What is cost per mile and why is it useful?
Related calculators
- Tip calculator
Calculate a tip and split the bill among any number of people.
- Discount calculator
Find the final price after any percentage discount or sale.
- Auto loan calculator
Calculate monthly payments, total interest, and payoff schedule for a car loan.
- Percentage calculator
Work out percentages for price changes, fuel cost splits, and more.
- Length converter
Convert between miles, kilometers, feet, and meters for distance planning.