Fuel Cost Calculator

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.

What you get
  • Fuel and cost in one stepGallons or liters needed, then the money.
  • Split between passengersWhat each person pays when you carpool.
  • Price and mileage what-ifsThe same trip at higher gas prices or in a thriftier car.

Your trip

Results update as you type

Switching the unit converts the number for you: 25 MPG is the same as 9.41 L/100km.

Runs entirely in your browser. Nothing you type is sent or saved

Fuel cost guide

What a fuel cost calculator does

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.

How the fuel cost is worked out

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.

Working in liters per 100 km

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.

MPG, L/100km and km/L

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 MPGL/100kmkm/LFuel for 300 milesCost at $3.50
1515.686.3820.00 gal$70.00
2011.768.5015.00 gal$52.50
259.4110.6312.00 gal$42.00
307.8412.7510.00 gal$35.00
405.8817.017.50 gal$26.25
504.7021.266.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.

What is in the result

The result is laid out so the headline comes first and the detail follows.

  • Fuel needed: the gallons or liters the trip consumes, with liters and gallons both shown so the number works at any pump.
  • Total fuel cost: fuel needed times the price you entered.
  • Cost per mile and per kilometer: the useful yardstick. Multiply it by any distance for a quick estimate, or compare it with what an employer or ride service pays per mile.
  • Cost per person: the total divided by the number of people splitting it.
  • Cost at other prices: the same trip at prices 10% and 20% below and above the one you entered, because pump prices rarely stay put between trips.
  • Cost in other cars: the trip at fuel economies 10% and 20% better and worse than yours, which is the quickest way to see what a gas sipper or a large SUV would cost over the same road.

Where the three numbers come from

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.

What moves the price of gas

The price at the pump is the end of a long chain, and several links can move it.

  • Crude oil: gasoline is refined from oil, so the price of Brent or West Texas Intermediate crude, quoted in dollars per barrel, sets the floor.
  • Taxes: federal, state and local fuel taxes are added per gallon and vary widely from one state to another, which explains part of the difference you see when crossing a state line.
  • Refining and blending: refinery outages push prices up quickly, and prices typically climb each spring when refineries do maintenance and switch to the cleaner summer blend gasoline.
  • Distribution and marketing: transport pipelines, terminal racks and the station's own margin all add to the delivered cost. Stations far from refineries and islands without their own supply tend to pay more.
  • Weather and events: a hurricane can shut Gulf Coast refineries, a snowstorm can close the roads that deliver fuel, and conflicts in oil producing regions move the crude price within hours.
  • Demand: summer vacation driving and the winter heating season each pull on the same supply.

Ways to spend less on fuel

Because cost is distance times price divided by MPG, every saving comes from changing one of those three.

  • Drive fewer miles: combine errands into one loop, park once and walk between stops, and pick the route with the least stop and go traffic. No driving style beats a shorter trip.
  • Slow down: the U.S. Department of Energy estimates that, relative to 55 mph, the average car is 3% less efficient at 60 mph, 8% at 65 mph, 17% at 70 mph, 23% at 75 mph and 28% at 80 mph. Above 50 mph, every 5 mph is like paying roughly 25 cents more per gallon.
  • Drive smoothly: aggressive acceleration and braking can lower gas mileage by about 15% to 30% at highway speeds and 10% to 40% in stop and go traffic. Cruise control helps on long, open highways.
  • Take the weight and drag off: an extra 100 pounds in the car cuts MPG by about 1%, and a large, blunt roof cargo box lowers fuel economy by 2% to 8% in the city, 6% to 17% on the highway and 10% to 25% at Interstate speeds. Remove racks when they are empty.
  • Keep the car in shape: fixing a car that is out of tune improves gas mileage by about 4% on average, a faulty oxygen sensor by as much as 40%, properly inflated tires by up to 3%, and the manufacturer's recommended motor oil by 1% to 2%. Tires lose about 1 PSI a month, so check them monthly.
  • Do not idle: a parked car with the engine running gets 0 mpg and burns a quarter to a half gallon an hour. Restarting uses about ten seconds' worth of fuel.
  • Share the ride: splitting a 300 mile trip four ways turns a $42.00 bill into $10.50 each. Carpooling, public transit, walking and cycling are the cheapest miles of all.

A short history of counting miles per gallon

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.

Estimate a route with more than one leg

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.

Common questions

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.

Know the price of the trip before you go.

Browse all transportation calculators