Free Fuel Cost Calculator

Work out what a trip will cost in gas or electricity, split it between riders, and compare two vehicles side by side.

Vehicle type
Round tripDoubles the distance for the drive home.
Enter the price you expect to pay — prices change daily and vary by region and station.
Compare with a second vehicleSee the cost difference per trip, per month, and per year.
Vehicle B
Used for the monthly and yearly comparison (in the same unit as the trip distance).
Trip Fuel Cost
—
—
Per Person
—
Fuel Used
—
Cost per Mile
—
Fuel only. Tolls, parking, and wear are not included.
Vehicle A vs Vehicle B
—
Per trip
—
Per month
—
Per year
—

Enter distance, efficiency, and price
and click Calculate Fuel Cost to see your trip cost

Advertisement

Fuel Economy Conversion Table

MPG (US)MPG (UK)L/100 kmkm/L
1518.015.76.38
2024.011.88.50
2530.09.410.63
3036.07.812.75
3542.06.714.88
4048.05.917.01
5060.04.721.26

Based on 1 US gallon = 3.785411784 L, 1 Imperial gallon = 4.54609 L, and 1 mile = 1.609344 km. Lower L/100 km is better; higher MPG and km/L are better.

How to Use This Fuel Cost Calculator

Choose Gas / Diesel or Electric (EV), then enter the one-way trip distance in miles or kilometers. Switch on Round trip if you are driving back the same way. Next, enter your vehicle's efficiency in whichever unit you know — US MPG, UK MPG, liters per 100 km, or km per liter for gas cars; miles per kWh, kWh per 100 miles, kWh per 100 km, km per kWh, or MPGe for EVs. Finally, enter the price you expect to pay per US gallon, per Imperial gallon, per liter, or per kWh.

The calculator does not assume a fuel price for you. Prices change constantly and differ between regions, stations, and charging networks, so the most accurate estimate always comes from the price on the sign where you will fill up. Set the split field to the number of people sharing the cost, and turn on Compare with a second vehicle if you want to see what a different car — or an EV versus a gas car — would cost for the same trip and for a typical month of driving.

The Formula Behind Trip Fuel Cost

Every fuel cost estimate comes down to three steps: work out how much fuel the trip uses, multiply by the price, and divide by the number of people sharing.

Fuel used = Distance ÷ Fuel economy  ·  Cost = Fuel used × Price per unit

Worked example. You are driving 180 miles each way, so the round trip is 360 miles. Your car averages 28 MPG and gas costs $3.60 per gallon. Fuel used is 360 ÷ 28 = 12.86 gallons, and the cost is 12.86 × $3.60 = $46.29. Split three ways, each person pays about $15.43. The calculator also reports cost per mile (here about 12.9 cents), which is handy for comparing trips of different lengths.

When you mix units — say, distance in kilometers but price per US gallon — the calculator converts everything internally to liters and kilometers first, so the units you choose never change the answer, only how it is displayed.

Converting Between MPG, L/100 km, and km/L

The US and UK express fuel economy as distance per unit of fuel (higher is better), while most of the world uses liters per 100 km, which is fuel per distance (lower is better). Because one is the inverse of the other, the conversion is a division, not a multiplication:

  • L/100 km = 235.215 ÷ MPG (US). A 30 MPG car uses 7.84 L/100 km.
  • MPG (US) = 235.215 ÷ L/100 km. A car rated 6.5 L/100 km gets about 36.2 MPG.
  • km/L = MPG (US) × 0.4251. 30 MPG is about 12.75 km/L.
  • L/100 km = 100 ÷ km/L. 15 km/L is 6.67 L/100 km.

One practical consequence of the inverse relationship: improving from 15 to 20 MPG saves far more fuel than improving from 40 to 50 MPG, even though the second jump looks bigger. Over 1,000 miles, the first change saves about 16.7 gallons and the second only 5. Thinking in fuel per distance makes those savings obvious. Our metric vs imperial guide covers more everyday conversions.

Advertisement

US Gallons vs. Imperial Gallons

A US gallon is 3.785 liters, while an Imperial (UK) gallon is 4.546 liters — about 20% larger. Because a UK gallon holds more fuel, the same car travels farther on it, so its MPG number is higher in the UK. The exact relationship is MPG (UK) = MPG (US) × 1.20095. A car advertised at 40 MPG in Britain gets about 33.3 MPG in US terms; nothing about the car changed, only the size of the gallon.

This matters when you read reviews or owner forums from another country, or when you look up a car's figures online. If a number seems surprisingly good, check which gallon it uses. The same applies to prices: UK pumps sell fuel by the liter, so if you are working from a UK MPG figure, choose "per liter" for price and the calculator handles the conversion. Note too that ratings from different test programs are not directly comparable even after unit conversion, because the test cycles differ.

Estimating Electric Vehicle Charging Costs

EV math works the same way, with kilowatt-hours in place of gallons. Divide the distance by your efficiency in miles per kWh to get the energy used, then multiply by your electricity price. For a 300-mile trip in a car that averages 3.5 mi/kWh, the energy needed is 300 ÷ 3.5 = 85.7 kWh. At $0.16 per kWh, that is about $13.71. If your car reports kWh per 100 miles instead, multiply the distance by that figure and divide by 100.

Two details improve accuracy. First, the EPA's MPGe and kWh/100 mi label values are measured from the wall outlet, so they already account for charging losses; MPGe converts to kWh/100 mi as 3,370.5 ÷ MPGe, since the EPA treats 33.705 kWh as equivalent to one gallon of gasoline. If you instead use the efficiency shown on your car's dashboard, some energy is lost between the outlet and the battery, so add a charging-loss percentage. Second, use the rate you will actually pay: home electricity, workplace charging, and public fast chargers can be priced very differently.

Comparing the Running Cost of Two Vehicles

The comparison option runs the same calculation for a second vehicle and shows the difference for this trip, for a month of driving, and for a year (12 times the monthly figure). It works for any pair: two gas cars, two EVs, or a gas car against an EV.

For example, if you drive 1,000 miles a month with gas at $3.50 per gallon, a 25 MPG car uses 40 gallons ($140.00) while a 40 MPG car uses 25 gallons ($87.50). The more efficient car saves $52.50 a month, or $630 a year. That annual figure is useful when deciding whether a pricier but more efficient vehicle pays for itself — just remember that fuel is only one part of ownership cost, alongside financing, insurance, and maintenance. If you are weighing how to pay for a car, our article on car loans vs paying cash covers the other side of the math.

Tips for a More Accurate Estimate

  • Use real-world efficiency. Calculate it from a fill-up: miles driven since the last full tank divided by the gallons needed to refill. Official ratings are measured under standardized test conditions.
  • Match the rating to the route. For a long highway drive, use the highway figure; for stop-and-go city errands, use the city one.
  • Allow for conditions. Higher speeds, roof boxes, heavy loads, towing, hills, strong headwinds, and cold weather all increase consumption — and cold weather affects EV range noticeably.
  • Price the route, not your hometown. Fuel can cost more along highways and in some regions, so use an average of the prices you expect to see.
  • Remember the extras. Tolls, parking, and charging session fees are not part of this calculation.

Sources: EPA — Fuel Economy and EV Range Testing (MPGe basis and wall-to-wheels measurement); NIST Special Publication 811 (exact gallon and mile definitions).

Estimates only. Actual fuel and energy use depend on driving conditions, vehicle condition, and the prices you pay.
Advertisement

Frequently Asked Questions

How do I convert MPG to L/100 km?

Divide 235.215 by the US MPG figure. For example, 30 MPG (US) equals 235.215 / 30 = 7.84 L/100 km. If your MPG is in UK (Imperial) gallons, divide 282.481 by it instead. The conversion works the same way in reverse: 235.215 / L/100 km gives US MPG.

Is a UK gallon the same as a US gallon?

No. A US gallon is 3.785 liters and an Imperial (UK) gallon is 4.546 liters, about 20% larger. That makes the same car's MPG figure about 20% higher in UK gallons: multiply US MPG by 1.20095 to get UK MPG. Mixing them up is a common source of error when comparing cars across countries.

Should I use my car's rated MPG or my real-world MPG?

Use your real-world figure if you know it, because it reflects your driving style, load, and route. The trip computer reading or a fill-up-to-fill-up calculation (miles driven divided by gallons added) is usually closer than the official rating. For a highway road trip, the highway rating is a better starting point than the combined one.

How do I calculate the cost of charging an electric car for a trip?

Divide the trip distance by your efficiency in miles per kWh (or multiply by kWh per 100 miles and divide by 100) to get the energy used, then multiply by your electricity price per kWh. A 300-mile trip at 3.5 mi/kWh uses about 85.7 kWh; at $0.16 per kWh that is about $13.71. Public fast charging is often priced higher than home electricity, so use the rate you will actually pay.

How should friends split gas money on a road trip?

The simplest fair method is to divide the total fuel cost by everyone in the car, including the driver. Some groups have passengers cover all the fuel since the driver provides the car, in which case divide by the number of passengers instead. Enter whichever head count your group agrees on in the split field.

Related Articles

Expert guides and educational resources to help you master the math.