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
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, wherefuel used = distance / mpgin US units andfuel used = distance x (L per 100 km) / 100in 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.
- Total distance:
240 x 2 = 480 miles. - Fuel used:
480 / 30 = 16.0 gallons. - Trip cost:
16.0 x 3.40 = $54.40. - Cost per mile:
54.40 / 480 = $0.113. - Cost per 100 miles:
0.113 x 100 = $11.33. - Split three ways:
54.40 / 3 = $18.13each. - Same trip every week for a year:
54.40 x 52 = $2,828.80. - 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?
What is the mpg illusion?
Why does Europe use L/100 km instead of mpg?
Why is my real fuel economy worse than the rating?
How should passengers split the cost of gas?
Does the calculator include wear and tear?
How do I measure my own fuel economy accurately?
Is the annual figure realistic for a commute?
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.
Related calculators
All driving & travel tools →- Driving & Travel
Fuel economy calculator: mpg, L/100 km, km/L and cost per mile
One measurement, four incompatible units. This page shows how to measure economy properly, where the 235.215 conversion constant comes from, and what the number costs you.
- Driving & Travel
Commute Cost Calculator: What Getting to Work Really Costs
Fuel is the visible cost and the smallest one. Here is how to build a real per-mile figure, price the hours, and turn a commute into a salary difference between two jobs.
- Driving & Travel
EV vs Gas Cost Calculator: What Each Car Costs Per Mile
Put gasoline and electricity on the same footing: two cost-per-mile formulas, a worked annual comparison, and the charging and weather factors that move the answer.