Skip to content
Blogiantic

Fuel Cost Calculator

Work out the gas cost of a trip from the distance, your car's fuel economy and the fuel price, round trip or split between friends.

  • Free
  • No sign-up
  • Runs in your browser
Examples:

Trip fuel cost

$42.00

12.00 gal of fuel for 300 miles

Cost per mile

$0.14

300 mi ÷ 25 MPG (US) = 12.00 gal × $3.50 = $42.00

An estimate: the EPA notes that how and where you drive, the car's condition, the fuel and other factors can change MPG significantly. No fuel prices are built in; the example prices are only examples, so enter the price you actually pay per gallon.

Runs in your browser. Your trip details are not uploaded or stored, and no sign-up is needed.

Updated

See it in action

  • 300 miles at 25 MPG, example price $3.50 per gallon

    300 mi ÷ 25 MPG (US) = 12.00 gal × $3.50 = $42.00
  • 500 km at 6 L/100 km, example price €1.80 per liter

    500 km × 6 L ÷ 100 km = 30.00 L × €1.80 = €54.00
  • 30 MPG (US) in other units

    30.0 MPG (US) · 36.0 MPG (UK) · 7.8 L/100 km · 12.8 km/L

This fuel cost calculator for a trip works out how much fuel a trip uses and what it costs: distance ÷ fuel economy = fuel, then fuel × price = cost, with the sum written out. Enter the distance in miles or km, your car's fuel economy in MPG, UK MPG, L/100 km or km/L, and the price you pay per gallon or liter. Tick Round trip to double the distance, split the cost between passengers, and see the cost per mile or km. It also works out your real MPG from a fill-up and converts MPG to L/100 km. It works as a gas cost calculator, a road trip gas calculator and a gas calculator for mileage; it is free, needs no sign-up and has no built-in prices.

How to use it

  1. Enter the distance, your car's fuel economy and the price you pay for fuel, in the units you use.

    Fuel cost of 300 miles at 25 MPG with fuel at $3.50 a gallon: $42.00
  2. Tick Round trip for the drive back and enter how many people share the cost.

    The round-trip cost of $84.00 split between 3 people, $28.00 each
  3. Not sure of your MPG? Choose My MPG and enter the miles since your last fill-up and the gallons it took.

    330 miles on 11 gallons is 30 MPG (US), shown with UK MPG, L/100 km and km/L

Options

Trip cost
Distance ÷ fuel economy gives the fuel used; fuel × price gives the cost. The sum is written out, for example 300 mi ÷ 25 MPG (US) = 12.00 gal × $3.50 = $42.00.
Round trip and split
Double the distance for the drive back, and split the cost between 2 to 100 people, so it doubles as a gas money calculator for friends or colleagues.
Cost per mile or km
A cost per mile calculator for fuel: the fuel cost of each mile or kilometer, handy for comparing cars.
Any units
Miles or km; MPG (US), MPG (UK), L/100 km or km/L; a price per US gallon, UK gallon or liter, in $, €, £, ₹ or ¥. Mixed units are converted with the NIST factors.
My MPG
An MPG calculator (miles per gallon calculator) for your own fill-ups: the distance driven since the last fill-up and the fuel it took to fill the tank again give your real fuel economy, in all four units.
MPG ↔ L/100 km
Convert any fuel economy figure between MPG (US), MPG (UK), L/100 km and km/L.

How to calculate fuel cost for a trip

Divide the distance by your fuel economy to get the fuel the trip uses, then multiply by the fuel price. With miles and MPG: 300 miles ÷ 25 MPG = 12 gallons, and 12 gallons × $3.50 = $42.00. With kilometers and L/100 km, multiply instead: 500 km × 6 L ÷ 100 km = 30 liters, and 30 liters × €1.80 = €54.00. The prices here are examples only; the calculator has no built-in prices, so enter what you pay.

For a return journey, tick Round trip and the calculator doubles the distance. To split the gas money, enter the number of people sharing the car; each share is the total cost divided by the number of people.

How fuel economy changes the cost

The table shows the same 300-mile trip at an example price of $3.50 a gallon for cars with different fuel economy, computed by the calculator's own code. Going from 25 to 50 MPG halves the fuel and the cost. The last column is the fuel cost per mile.

A 300-mile trip at an example price of $3.50 per US gallon (computed by the calculator's own code)
Fuel economyFuel usedFuel costCost per mile
20 MPG (US)15.0 gal$52.50$0.18
25 MPG (US)12.0 gal$42.00$0.14
30 MPG (US)10.0 gal$35.00$0.12
40 MPG (US)7.5 gal$26.25$0.09
50 MPG (US)6.0 gal$21.00$0.07

How to work out your car's real MPG

Fill the tank and reset the trip meter. Drive as usual, then fill the tank again and note how much fuel it took. Divide the distance by that fuel: 330 miles on 11 gallons is 30 MPG. The My MPG tab is a fuel economy calculator that does this sum and shows the result in all four units.

The EPA says its fuel economy estimates are based on standardized tests and that several factors can affect MPG significantly, including how and where you drive, vehicle condition and maintenance, fuel variations and vehicle variations, so the ratings may not accurately predict the MPG you will get. A figure from your own fill-ups reflects your own driving.

Source: fueleconomy.gov (US DOE and EPA), Your Mileage Will Vary

MPG to L/100 km and other conversions

MPG counts the distance per unit of fuel; L/100 km counts the fuel per distance, so a lower L/100 km is better. NIST's conversion: to get L/100 km, divide 235.215 by the number of miles per (US) gallon. The calculator converts with the NIST factors: 1 mile = 1.609 344 km, 1 US gallon = 3.785 412 liters, and 1 UK (imperial) gallon = 4.546 09 liters, which is why the same car shows a higher MPG in UK gallons.

US MPG in other units (computed by the calculator from the NIST factors)
MPG (US)L/100 kmkm/LMPG (UK)
2011.88.524.0
259.410.630.0
307.812.836.0
405.917.048.0
504.721.360.0

Source: NIST Guide to the SI (SP 811), Appendix B.8: conversion factors

Questions

How do I calculate gas cost for a trip?

Divide the distance by your car's MPG to get gallons, then multiply by the price per gallon. 300 miles at 25 MPG is 12 gallons; at $3.50 a gallon that is $42.00. The calculator does this and writes the sum out.

How much gas will I use on a trip?

Divide the distance by your MPG: 300 miles at 25 MPG uses 12 gallons. In liters, multiply the km by your L/100 km and divide by 100.

How much will gas cost for my trip there and back?

Tick Round trip and the calculator doubles the distance. The example trip of 300 miles each way at 25 MPG and $3.50 a gallon costs $84.00 in all.

How do I split gas money between friends?

Enter the number of people in the Split between box. The calculator divides the total fuel cost evenly; for the $84.00 round trip and 3 people, that is $28.00 each.

What fuel price does the calculator use?

None of its own: it has no built-in prices. The numbers shown at first are examples, so type the price you pay at the pump, per gallon or per liter.

How do I find my car's MPG?

Fill the tank, drive, then fill it again. Choose My MPG and enter the miles driven and the gallons it took; 330 miles on 11 gallons is 30 MPG.

How do I convert MPG to L/100km, or L/100km to MPG?

Divide 235.215 by the MPG, the NIST conversion for US gallons; the same sum works the other way, 235.215 ÷ L/100 km = MPG. Or use the MPG ↔ L/100 km tab: 30 MPG (US) is 7.8 L/100 km.

Can I use kilometers and liters?

Yes. Choose km, L/100 km or km/L and a price per liter. You can mix units too; the calculator converts them with the NIST factors.

More free tools