Driving & Travel

Fuel cost calculator: what a trip actually costs in fuel

Distance, consumption and price give the trip cost. The annualized rows and the mpg illusion are where the arithmetic changes what you thought you knew.

By the Life Calculator team Updated Free, no sign-up Nothing you type leaves your device

Your numbers

Units

Result

Result
--

Runs entirely in your browser. Nothing you type is sent anywhere, stored or shared.

In short

  • In US units fuel used is distance divided by mpg; in metric it is distance times liters per 100 km divided by 100.
  • Miles per gallon measures efficiency and L/100 km measures consumption, and the two are reciprocals rather than parallel scales.
  • Because of that inverse relationship, moving from 15 to 20 mpg saves far more fuel than moving from 40 to 50 mpg.
  • Real economy falls below rated figures with cold starts, short trips, high speed, roof racks, low tire pressure and idling.
  • Annualizing a routine trip at 52 or 260 repetitions is usually what makes the cost of a habit visible.
On this page
  1. The two formulas
  2. A worked example, done by hand
  3. Efficiency versus consumption
  4. The mpg illusion
  5. Where each input comes from
  6. Rated economy versus what you get
  7. How price and economy move the total
  8. Splitting the cost fairly
  9. What this model leaves out
  10. Common mistakes

The cost of a drive is a three-number problem: how far, how much fuel the car uses per unit of distance, and what you paid for that fuel. Everything else -- round trips, splitting with passengers, repeating the trip every week -- is multiplication applied afterward.

This calculator does that arithmetic in either unit system. In US units it divides distance by miles per gallon. In metric it multiplies distance by liters per 100 km and divides by 100. Those two look similar but they measure opposite things, and understanding the difference changes how you read any comparison between two vehicles.

The outputs go beyond a single trip cost: fuel used, cost per mile or kilometer, cost per 100 units of distance, cost per person, and the same trip repeated weekly or as a five-day commute for a year. The annualized rows are usually the ones that change a decision.

The two formulas

Formula: trip cost = fuel used x fuel price, where fuel used = distance / mpg in US units and fuel used = distance x (L per 100 km) / 100 in metric units.

Every symbol:

  • distance -- the one-way figure you enter, doubled automatically when the round-trip switch is on.
  • mpg -- miles traveled per US gallon consumed. Higher is better.
  • L per 100 km -- liters consumed per 100 kilometers traveled. Lower is better.
  • price -- what you actually pay per gallon or per liter, including taxes.
  • people -- how many are splitting the total.

Derived outputs: cost per mile = total cost / total distance, cost per 100 miles = cost per mile x 100, cost per person = total cost / people, weekly for a year = cost x 52, and five days a week = cost x 5 x 52.

A worked example, done by hand

A 240-mile drive each way, in a car returning 30 mpg, at an assumed pump price of $3.40 a gallon, round trip, one person.

  1. Total distance: 240 x 2 = 480 miles.
  2. Fuel used: 480 / 30 = 16.0 gallons.
  3. Trip cost: 16.0 x 3.40 = $54.40.
  4. Cost per mile: 54.40 / 480 = $0.113.
  5. Cost per 100 miles: 0.113 x 100 = $11.33.
  6. Split three ways: 54.40 / 3 = $18.13 each.
  7. Same trip every week for a year: 54.40 x 52 = $2,828.80.
  8. Same trip five days a week: 54.40 x 5 x 52 = $14,144.

The metric version of a similar trip: 400 km at 7.8 L/100 km is 400 x 7.8 / 100 = 31.2 liters, and at an assumed $1.60 a liter that is 31.2 x 1.60 = $49.92.

Efficiency versus consumption

Miles per gallon is a rate of efficiency: distance produced per unit of fuel. Liters per 100 km is a rate of consumption: fuel required per unit of distance. They are reciprocals of each other, connected by L/100 km = 235.215 / mpg.

That inverse relationship matters because fuel cost is proportional to consumption, not to efficiency. Cost rises linearly with L/100 km. It falls hyperbolically with mpg -- steeply at the bottom of the range, then flattening out until further gains barely register.

Consumption is the honest unit for comparing running costs. An improvement of 1 L/100 km saves the same volume of fuel whether the car started at 12 or at 6. An improvement of 5 mpg does not.

The mpg illusion

Here is the same comparison over 10,000 miles, with the fuel saved by each 5 or 10 mpg step.

Step Gallons at the lower figure Gallons at the higher figure Gallons saved Value at $3.40/gal (example)
15 to 20 mpg 666.7 500.0 166.7 $566.67
20 to 25 mpg 500.0 400.0 100.0 $340.00
25 to 30 mpg 400.0 333.3 66.7 $226.67
30 to 40 mpg 333.3 250.0 83.3 $283.33
40 to 50 mpg 250.0 200.0 50.0 $170.00

A five-mpg improvement at the bottom of the range saves more than three times as much fuel as the same five-mpg improvement near the top. Even the ten-mpg jump from 30 to 40 saves less than the five-mpg jump from 15 to 20.

The reason is visible in the consumption column. Fifteen mpg is 15.68 L/100 km and 20 mpg is 11.76, a gap of 3.92. Forty mpg is 5.88 and fifty is 4.70, a gap of just 1.18. The mpg scale compresses exactly where people assume it is most meaningful.

The practical consequence: replacing the least efficient vehicle in a household usually does more for total fuel use than upgrading the most efficient one, even when the mpg gain looks smaller on paper. The fuel economy calculator converts between the two scales directly.

Where each input comes from

Distance. Use a mapped route rather than a straight-line estimate, and add the detours you actually make -- the school drop-off, the parking hunt, the trip to the far gas station. A commute measured door to door is often 10 to 15 percent longer than the route the map suggests.

Fuel economy. The most reliable source is your own measurement over several tanks, not the window sticker. Rated figures come from standardized test cycles and describe a specific driving pattern that may not be yours. Measuring your own is a matter of resetting the trip meter at a fill and dividing distance by the fuel taken at the next one.

Price. Enter the price you pay, at the stations you use, for the grade your car takes. Prices vary by region, by station and week to week, so a national average number is the wrong input for a personal calculation.

Round trip. On by default because most trips are returns. Turn it off for one-way relocations or when you are only paying for a leg.

People sharing. Only count people who are genuinely splitting the fuel.

The result is most sensitive to distance and price, which act linearly, and less sensitive to economy at the efficient end of the scale, for the reason set out above.

Rated economy versus what you get

Test-cycle figures are measured under controlled conditions. Real driving deviates from them in predictable directions.

Factor Direction Why
Cold starts and short trips Substantially worse The engine spends the trip below efficient operating temperature
Sustained speed above roughly 55 mph Worse, and accelerating Aerodynamic drag rises with the square of speed
Stop-and-go traffic Worse Energy put into acceleration is thrown away at each stop
Roof racks, boxes and bikes Worse at highway speed Added frontal area and turbulence
Underinflated tires Worse Higher rolling resistance
Extended idling Worse Fuel burned for zero distance, so the average falls
Air conditioning Worse, most in slow traffic Compressor load is a larger share of a small power demand
Extra weight in the vehicle Slightly worse More energy per acceleration event
Steady highway cruising at moderate speed Better Close to the engine's efficient operating region

None of these are small individually, and they compound. A cold ten-minute commute in winter traffic can use half again as much fuel per mile as the same car on a warm highway run. If the trip in question is a daily commute, the commute cost calculator adds wear, parking and time to the fuel figure.

How price and economy move the total

Both tables below use the 480-mile round trip from the worked example.

Fuel economy Gallons used Trip cost at $3.40/gal Cost per 100 miles
20 mpg 24.00 $81.60 $17.00
25 mpg 19.20 $65.28 $13.60
30 mpg 16.00 $54.40 $11.33
35 mpg 13.71 $46.63 $9.71
40 mpg 12.00 $40.80 $8.50
45 mpg 10.67 $36.27 $7.56

Price moves the answer proportionally, which makes it easy to reason about: a 20 percent price rise is a 20 percent cost rise, every time.

Assumed price per gallon Trip cost (16 gallons) Five days a week for a year
$2.80 $44.80 $11,648
$3.20 $51.20 $13,312
$3.60 $57.60 $14,976
$4.00 $64.00 $16,640
$4.40 $70.40 $18,304

The annual column is what makes a routine trip visible. A single $54 drive is unremarkable; the same drive as a daily commute is a five-figure line in a household budget, before wear, insurance or depreciation. Against that, the running-cost comparison in the EV versus gas calculator is worth a look.

Splitting the cost fairly

Dividing by the number of people is the simplest rule and works when everybody travels the full distance. Where it gets awkward is partial journeys and unequal benefit.

Two workable alternatives:

  • Passenger-miles. Total the miles each person is actually carried, then charge each person their share of that total. Someone who rides for a third of the trip pays a third of a full share.
  • Per-seat marginal cost. Whoever was making the trip anyway pays for it, and additional passengers contribute toward the marginal cost -- extra weight, detours -- rather than an equal share of a cost that would have been incurred regardless.

Fuel is also not the whole cost of carrying someone. Tires, maintenance and depreciation accrue per mile driven, and many cost-sharing arrangements quietly ignore them.

What this model leaves out

  • Everything except fuel. No tires, oil, maintenance, depreciation, insurance or registration.
  • Tolls and parking. Frequently a larger line than fuel on urban trips.
  • Terrain and load. Mountain routes and towing raise consumption well above the flat-road figure.
  • Weather. Cold air is denser, winter fuel blends carry slightly less energy, and cabin heating and defrosting add load.
  • Traffic. A route measured in miles says nothing about how many stops it contains.
  • Price variation over a year. The annual rows hold your entered price constant.
  • Detours. Distance is what you enter, not what you drive.
  • Your time. An hour behind the wheel has a value; the real hourly wage calculator is one way to put a number on it.

Common mistakes

Forgetting the return leg. The round-trip switch exists because this is the most frequent error, and it doubles the answer.

Using the sticker mpg. Rated economy is a test result. Measure your own over several tanks.

Mixing unit systems. Entering kilometers with an mpg figure, or a price per gallon against a per-liter consumption rate, produces a number that means nothing.

Comparing cars on mpg alone. Convert to gallons per 100 miles or L/100 km before deciding which upgrade actually saves fuel.

Treating fuel as the cost of driving. Per-mile wear and depreciation are often comparable to fuel for a modern vehicle.

Using a national average price. Regional differences are large, and the calculation is about what you pay.

Annualizing an irregular trip. The 52-week row assumes the trip happens every week. Vacations, remote days and sick days make the real figure lower.

The full set of driving tools is on the calculators index.

Frequently asked questions

How do I calculate the fuel cost of a trip?
In US units, divide the total distance by your miles per gallon to get gallons used, then multiply by the price per gallon. A 480-mile round trip in a car returning 30 mpg uses 480 divided by 30, or 16 gallons; at an assumed $3.40 a gallon that is $54.40. In metric, multiply the distance in kilometers by the liters per 100 km figure and divide by 100, then multiply by the price per liter.
What is the mpg illusion?
It is the mistaken assumption that equal steps in miles per gallon represent equal fuel savings. Because mpg is distance per unit of fuel, savings shrink as the number rises. Over 10,000 miles, going from 15 to 20 mpg saves 166.7 gallons, while going from 40 to 50 mpg saves only 50 gallons, despite being a larger step. Converting to gallons per 100 miles, or to liters per 100 km, makes the real difference visible.
Why does Europe use L/100 km instead of mpg?
Liters per 100 km measures consumption -- the fuel required to cover a fixed distance -- which is directly proportional to what a trip costs. Miles per gallon measures efficiency, the inverse quantity, so cost falls hyperbolically rather than linearly as it rises. A one liter per 100 km improvement saves the same volume of fuel wherever it occurs on the scale, which makes consumption units easier to reason about when comparing vehicles.
Why is my real fuel economy worse than the rating?
Rated figures come from standardized test cycles run under controlled conditions. Real driving departs from them in consistent ways: cold starts keep the engine below efficient temperature, aerodynamic drag rises with the square of speed above roughly 55 mph, stop-and-go traffic throws away energy at every stop, and roof racks, underinflated tires, idling and air conditioning each add load. The effects compound, so a cold winter commute can use markedly more fuel per mile.
How should passengers split the cost of gas?
An equal split works when everyone travels the whole distance. For partial journeys, passenger-miles is fairer: total the miles each person is carried and charge each their share, so someone riding a third of the way pays a third of a full share. A third approach charges additional riders only the marginal cost, on the grounds that the driver was making the trip regardless. Fuel also excludes tires, maintenance and depreciation, which accrue per mile.
Does the calculator include wear and tear?
No. It covers fuel only. Tires, oil, brakes, scheduled maintenance, depreciation, insurance and registration are all excluded, and together they are frequently comparable to the fuel cost per mile for a modern vehicle. Tolls and parking are also outside the model and often dominate on urban trips. Treat the output as the marginal energy cost of driving a given distance, not the full cost of vehicle ownership.
How do I measure my own fuel economy accurately?
Fill the tank, note the odometer or reset the trip meter, drive at least 200 miles of normal mixed driving, then refill at the same pump and stop at the same point -- the first automatic click, not topped off by hand. Divide the distance by the gallons or liters added. Averaging several consecutive tanks smooths out differences in how full each fill was and gives a figure you can rely on for planning.
Is the annual figure realistic for a commute?
It is an upper bound. Multiplying by 52 assumes the trip happens every week of the year, and by 260 that it happens five days a week without exception. Vacation, holidays, remote working days and sick days all reduce it, so a realistic working year is often closer to 46 to 48 weeks. Reduce the annual figure proportionally, and remember that the entered fuel price is held constant across the whole year.

Sources and further reading

Where this page relies on a published formula, an official figure or a legal rule, the primary source is listed here. External links open in a new tab and we earn nothing from them.

  1. FuelEconomy.gov -- official U.S. fuel economy ratings and driving tips
  2. U.S. Energy Information Administration -- fuel price and consumption data
  3. U.S. Environmental Protection Agency -- vehicle emissions and test cycles
  4. Alternative Fuels Data Center -- fuel and vehicle comparison tools