Work out what a drive will cost before you leave. Enter the distance, your car's fuel economy and the price at the pump, and get the fuel needed, the total cost, the cost per mile and each person's share, in miles or kilometers, MPG or liters per 100 km.
A fuel cost calculator answers one plain question: how much will the drive cost? It takes three things you already know, the distance you plan to cover, the fuel economy of the car and the price of fuel, and turns them into the fuel you will burn and the money you will hand over. From there it is a small step to the cost per mile, which is the number worth remembering, and to each person's share when the trip is split.
Fuel is one of the largest running costs of a car. The American Automobile Association puts the average American driver's yearly gasoline bill at roughly $3,000, so a habit of estimating before you go adds up to real money over a year of commuting, errands and vacations.
This page uses a 300 mile trip in a car that returns 25 MPG with gas at $3.50 a gallon as its working example. Every figure quoted below can be checked against the calculator above.
The arithmetic has two steps, and both are divisions or multiplications you could do on a napkin.
Fuel needed = Distance ÷ Fuel economy Cost = Fuel needed × Price
Distance in miles, fuel economy in miles per gallon, price in dollars per gallon
For the working example, 300 ÷ 25 = 12.00 gallons, and 12.00 × $3.50 = $42.00. That is the whole calculation. The cost per mile is the total divided by the distance, 42.00 ÷ 300 = $0.14, or just as correctly the price divided by the MPG, 3.50 ÷ 25 = 0.14. With four people sharing, each pays 42.00 ÷ 4 = $10.50.
Most of the world states fuel economy as liters per 100 kilometers (L/100km), which measures fuel used rather than distance traveled. The formula flips from a division to a multiplication:
Fuel needed (L) = Distance (km) × L/100km ÷ 100 Cost = Fuel needed × Price per liter
A 400 km trip in a car rated at 8.0 L/100km takes 400 × 8.0 ÷ 100 = 32.00 liters. At $1.60 a liter that is 32.00 × 1.60 = $51.20, or $0.128 per kilometer. The calculator handles either family of units and shows the result in the units you chose, with the others alongside.
The three common ways to state fuel economy are easy to move between, but note the trap: MPG goes up when a car gets better, while L/100km goes down. Doubling your MPG halves the fuel you use, and halving your L/100km does the same, but a 5 MPG gain means something different at 15 MPG than it does at 50.
L/100km = 235.215 ÷ MPG km/L = MPG × 0.425144 UK mpg = US MPG × 1.20095
235.215 is 100 km expressed in miles (62.137) times the liters in a US gallon (3.7854)
| US MPG | L/100km | km/L | Fuel for 300 miles | Cost at $3.50 |
|---|---|---|---|---|
| 15 | 15.68 | 6.38 | 20.00 gal | $70.00 |
| 20 | 11.76 | 8.50 | 15.00 gal | $52.50 |
| 25 | 9.41 | 10.63 | 12.00 gal | $42.00 |
| 30 | 7.84 | 12.75 | 10.00 gal | $35.00 |
| 40 | 5.88 | 17.01 | 7.50 gal | $26.25 |
| 50 | 4.70 | 21.26 | 6.00 gal | $21.00 |
One more unit lurks in British and Japanese brochures: the imperial gallon, which holds 4.546 liters against the US gallon's 3.785. The same car therefore posts a number about 20% higher in UK mpg, which is why the calculator offers the imperial gallon as a price unit and lists UK mpg separately.
The result is laid out so the headline comes first and the detail follows.
Distance: a mapping app gives door to door mileage. Enter one way, and double it yourself for a round trip, since the return leg burns the same fuel. For a trip with several stops, add the legs together first.
Fuel economy: the window sticker and the owner's manual quote laboratory figures for city and highway driving. Your real number is usually lower and it is easy to measure: fill the tank, note the odometer, drive normally, fill again and divide the miles by the gallons it took. The Gas Mileage Calculator linked below does that arithmetic for you. Use the highway figure for a long interstate run and the city figure, or your own measured average, for stop and go driving.
Price: use the price on the sign at the station you actually use, for the grade the car needs. Diesel, premium and mid grade differ, sometimes by 50 cents a gallon or more, which is $6 on a 12 gallon fill. Remember that a fuel stop in a remote area or on a toll highway is rarely the cheapest.
The price at the pump is the end of a long chain, and several links can move it.
Because cost is distance times price divided by MPG, every saving comes from changing one of those three.
For decades American drivers cared about horsepower and size, and fuel was cheap enough that few counted gallons. The 1973 oil embargo changed that almost overnight: gas lines formed, prices rose sharply, and in 1975 Congress responded with the Corporate Average Fuel Economy (CAFE) rules, which required each automaker's new cars to reach a rising average miles per gallon. Fuel economy became a selling point, and the Environmental Protection Agency's window stickers began telling buyers what to expect in the city and on the highway.
The rest of the world, where fuel had long been heavily taxed, had measured consumption in liters per 100 kilometers from the start, which is why the two traditions still speak different number languages today. In 2013 model year cars the EPA introduced a redesigned label that adds annual fuel cost, fuel saved, and a miles per gallon of gasoline equivalent (MPGe) figure so that hybrids and electric cars can be compared with ordinary ones. The label now prints a dollar figure, which is the same thing this calculator works out for your own trip.
Enter the full trip distance and expected efficiency. Include the return distance for a round trip. If one leg involves different road conditions, estimate the legs separately and add their fuel or cost totals.
At 30 miles per US gallon, a 300-mile trip uses 10 gallons. At 3.50 per gallon, that costs 35. Use the split result for the agreed fuel bill, and budget separately for expenses such as tolls.
It costs the price of a gallon divided by your MPG: at $3.50 a gallon and 25 MPG that is 14 cents a mile. To turn it into a yearly figure, multiply by the miles you drive, so 12,000 miles at 14 cents is $1,680. That figure covers fuel only and leaves out insurance, depreciation, maintenance and registration.
Divide 235.215 by the MPG figure: 25 MPG becomes 235.215 ÷ 25 = 9.41 L/100km, and 30 MPG becomes 7.84 L/100km. Going the other way, divide 235.215 by the L/100km figure. The constant is 100 km written in miles (62.137) multiplied by the liters in a US gallon (3.7854).
Because the sticker comes from laboratory tests on a gentle cycle, not from your commute. Speed, cold weather, short trips, cargo, roof racks, underinflated tires, uphill roads and stop and go traffic all pull the real number down. The most reliable fix is to measure your own figure with the fill up method and use that in the calculator.
Yes, and a loaded cargo box costs more than most people expect: the U.S. Department of Energy puts the loss from a large, blunt roof box at 2% to 8% in city driving and 6% to 17% on the highway. On the 300 mile example, a 17% highway drop takes the car from 25 MPG to 20.75 MPG and the trip from $42.00 to $50.60, an extra $8.60.
Only when the saving on the fill is larger than the fuel burned on the detour. Buying 10 gallons at 10 cents less saves $1.00, while a 10 mile round trip detour at 14 cents a mile costs $1.40, a net loss of 40 cents before your time. Compare the saving per gallon times the gallons you will buy against your cost per mile times the extra miles.
Not in a car built to run on regular. Octane rating measures a fuel's resistance to engine knock, not the energy it holds, so a car whose manual recommends regular gains no meaningful mileage from premium. A car that requires premium should use it, because the engine is designed around it; in that case enter the premium price in the calculator.
No, it covers fuel only. Tolls, parking, oil, tires, insurance and depreciation are separate, and together they are often larger than the fuel bill. To estimate the whole cost per mile, use an authoritative figure such as the IRS standard mileage rate, which the Mileage Calculator on this site applies to any distance.
No. Every calculation runs in your browser. Nothing is stored or transmitted.