Fuel Cost Calculator

Enter a distance, your fuel efficiency and the pump price to get the gas cost for the trip, in miles and gallons or kilometers and liters.

๐Ÿ“‹ What's on this page: Use the free calculator to turn distance and fuel efficiency into gallons, liters and dollars, with round trip totals and a per person split. The guide below covers the fuel cost formula, why your real MPG misses the window sticker, what actually sets the price at the pump, a worked 900 mile road trip, the driving habits that save the most fuel, and the mistakes that make an estimate come in low.

Fuel Cost Calculator

Estimate gas cost for a trip, plus cost per mile, per person and per year

Inputs

Higher MPG is better. Use your own average, not the window sticker.

Annual driving feeds the yearly fuel budget. Set it to 0 to leave that output out.

Results

$37
Total Fuel Cost
10.7
Gallons Needed
300
Total Distance (miles)
$0.123
Cost per Mile
$37
Cost per Person
$74
Round Trip Cost
8.4
Efficiency in L/100km
$1,479
Annual Fuel Cost
Enter a distance and your fuel efficiency to see the cost of the drive.

How to Use This Fuel Cost Calculator

Fuel cost comes down to three numbers multiplied or divided together: how far you drive, how much fuel the car burns per unit of distance, and what the fuel costs. Everything else on this page exists to make one of those three more honest.

Unit system flips the whole calculator between US and metric. In US mode you enter miles, miles per gallon and dollars per gallon, and the results come back in gallons. In metric mode you enter kilometers, liters per 100 kilometers and dollars per liter, and the results come back in liters. Switching modes converts the efficiency figure you already typed, so a 28 MPG car becomes a 8.4 L/100km car rather than a nonsense number.

Trip type decides whether the distance you typed is doubled. One way keeps the number as entered, which is what you want for a commute or a one way move. Round trip doubles it before any fuel math happens, which is what most weekend drives actually are. The results still report both figures, so you can see the round trip cost even when you entered a one way distance.

Vehicle type is a shortcut, not a rule. Picking a category writes a typical efficiency figure into the box, and you can then edit it. It exists so that someone who has never tracked a tank of gas still gets a plausible answer. If you know your own number, set the dropdown back to custom and type it in, because your number is always better than a category average.

Fuel price should be the price where you will actually buy fuel, which for a long drive is somewhere along the route rather than your neighborhood station. People splitting divides the fuel total, and annual driving runs the same efficiency and price against a year of miles to produce a yearly fuel budget. Both are optional in the sense that they change only their own two outputs.

The eight results cover the questions people actually ask. Total fuel cost is the headline. Gallons needed tells you how many fills the trip takes. Cost per mile is the number to compare against a mileage reimbursement rate. Round trip cost answers the question you meant to ask. The efficiency in the other unit is there for anyone comparing a US rating against a European one, and the annual figure is what the car really costs you in fuel over a year of driving.

The Fuel Cost Formula

Two divisions and one multiplication cover every version of this calculation.

StepUS unitsMetric units
Fuel neededDistance ÷ MPG = gallonsDistance × L/100km ÷ 100 = liters
Fuel costGallons × price per gallonLiters × price per liter
Cost per milePrice per gallon ÷ MPGPrice per liter × L/100km ÷ 100

Notice the shape of the two efficiency units, because it trips people up. Miles per gallon is a distance per unit of fuel, so a bigger number is better. Liters per 100 kilometers is a fuel per unit of distance, so a smaller number is better. They are reciprocals of each other, scaled by a constant: 235.215 divided by MPG gives L/100km, and 235.215 divided by L/100km gives MPG back. The calculator does that conversion for you in the efficiency output.

The reciprocal relationship also explains a fact that surprises people comparing cars. Improving from 15 to 20 miles per gallon saves far more fuel over a fixed distance than improving from 35 to 40, even though both look like a five mile per gallon gain. Going from 15 to 20 cuts fuel use by a quarter. Going from 35 to 40 cuts it by an eighth. When you are shopping for a commuter, the biggest fuel savings usually sit in replacing the thirstiest vehicle in the driveway, not in squeezing the last miles per gallon out of the efficient one.

Cost per mile is the cleanest way to compare a drive against any other way of making the trip. Divide the pump price by your efficiency and you have a figure that does not care how long the trip is. A car at 28 MPG and $3.45 per gallon costs 12.3 cents per mile in fuel. Multiply that by a thousand and you have the fuel line in a road trip budget. It is also the figure to compare against a per mile mileage rate, keeping in mind that a reimbursement rate covers tires, maintenance, insurance and depreciation as well as fuel.

Why Your Real MPG Misses the Window Sticker

The number on the window came from a laboratory. The car sits on a dynamometer with the drive wheels turning and the vehicle going nowhere, at moderate temperatures, with no wind, no hills, no load beyond a test weight, and air conditioning switched off or barely used. Modern test cycles are more realistic than the old ones, and they are still not a Tuesday morning commute in February.

Four things move real world fuel economy away from the rating, and all four push it down more often than up.

FactorTypical Effect on MPGWhy
Highway speed above 65 mphDown 10 to 20 percentDrag rises with the square of speed
Short cold weather tripsDown 20 to 40 percentEngine runs rich until it warms, winter fuel blends
Roof rack or bike carrierDown 10 to 25 percentExtra frontal area and drag at speed
Aggressive acceleration and brakingDown 15 to 30 percent in city drivingEnergy burned in the brakes instead of the odometer
Underinflated tiresDown 1 to 3 percentHigher rolling resistance

Highway cruising is the one place drivers routinely beat the rating, which is why a long interstate run in a modern car can return a better number than the sticker. The gain does not survive a roof rack or a 80 mile per hour pace.

The practical takeaway for estimating is to use a number you have measured. Fill the tank until the pump clicks off, reset the trip odometer, drive your normal week, then fill at the same pump until it clicks again and divide the miles by the gallons. Do that three times and average. It takes three weeks and it turns every future estimate from a guess into arithmetic. For a trip that will be mostly highway, a measured city-heavy average will undersell the car slightly, which is the safe direction to be wrong in.

What Sets the Price at the Pump

Retail fuel prices vary more across a fifty mile radius than most people realize, and the reasons are mostly structural rather than anyone gouging anyone.

Taxes lead the list. Federal fuel tax is a flat national figure, and state taxes on top of it range from under twenty cents a gallon to well over sixty. That single line explains most of the gap between a station in a low tax state and one in a high tax state, and it is the reason a drive across a state border can change the price by thirty cents with nothing else different.

Competition is second. A highway exit with one station and no town nearby can charge a premium because the next option is fifteen miles away. An exit with four stations at the same intersection will be cheaper, and the corner with two stations facing each other is usually cheapest of all. For a long drive, this is the argument for checking prices before you leave and planning a fuel stop in a town rather than at the first exit past a state line.

Season and blend come third. Refiners switch to a summer blend in many markets, which is more expensive to produce and reduces evaporation. Prices often rise into spring partly for that reason and fall again in the autumn. Crude oil prices move the wholesale number, and retail stations pass increases along faster than decreases, which is a well documented pattern rather than a conspiracy: a station that raises prices too slowly gets caught selling below replacement cost.

For an estimate, the honest move is to use today's price for today's trip and to add a margin for anything booked in advance. A nine cent per gallon swing on a twenty gallon fill is under two dollars, so precision on price matters less than precision on distance and efficiency, which are the two numbers you actually control.

Worked Example: A 900 Mile Road Trip

A family drives 900 miles each way to visit relatives in a midsize sedan that returns 28 miles per gallon on the highway, with fuel at $3.45 per gallon. Assume no roof rack and a mostly interstate route.

The one way fuel is 900 divided by 28, which is 32.1 gallons. At $3.45 that is about $111 one way. The round trip doubles both numbers: 64.3 gallons and roughly $222 in fuel. With a ten percent cushion for traffic, detours and a couple of cold starts, budget $245.

Add a roof box for luggage and the efficiency figure drops, realistically to about 24 miles per gallon. The same round trip now needs 75 gallons and costs about $259, roughly $37 more than the clean car. That is the real price of the cargo box, and it is worth knowing before you bolt one on to save space inside.

Now split it. Four people in the car brings the round trip fuel to about $55 each. Compare that against four round trip airfares and the arithmetic usually explains itself, which is why driving wins for families on domestic trips even when the drive is long. Two people in the same car pushes the per person figure to $111, which is where flying starts to look competitive on a route with cheap fares.

Finally, the annual view. If the household drives 12,000 miles a year at the same 28 miles per gallon and the same price, the yearly fuel bill is about $1,479, or roughly $123 a month. That is the number to hold against any claim about how much a car costs to run, and it is the number that moves most when a commute changes.

Seven Habits That Cut the Fuel Bill

Most fuel saving advice is either obvious or invented. These are the ones with a measurable effect on the number this calculator produces.

  1. Slow down on the highway. Dropping from 75 to 65 miles per hour typically returns two to four miles per gallon. On a 500 mile drive that is about 2.6 gallons saved, close to nine dollars. It is also the single largest lever available to most drivers, and it costs nothing but a few minutes.
  2. Combine short trips. A cold engine burns far more fuel per mile than a warm one, so four separate three mile errands use noticeably more fuel than one twelve mile loop with the engine already warm. On a per mile basis, short cold trips are the worst fuel economy a car ever delivers.
  3. Take the rack off between trips. A roof box or bike rack costs fuel every mile it rides along, whether or not it holds anything. Remove it when the trip is over rather than leaving it on the roof for the season.
  4. Check tire pressure monthly. Tires lose about a pound per square inch per month in cool weather, and an underinflated set costs one to three percent in fuel while also wearing faster. The door jamb sticker has the correct figure, which is not the maximum printed on the tire sidewall.
  5. Accelerate firmly and brake early. The efficient way to drive is not the slowest. Reaching cruising speed decisively and then holding it uses less fuel than a long gentle creep, and looking further ahead so you coast toward stops rather than braking late recovers energy you already paid for.
  6. Use cruise control on the flat and skip it on hills. Holding a steady speed on level highway saves fuel. On rolling terrain, a driver who lets speed build slightly downhill and bleed it back uphill beats a cruise control that fights every grade.
  7. Do not idle to warm up. Modern fuel injected engines warm faster while driving gently than while sitting. Idling in the driveway in winter burns fuel at zero miles per gallon and puts no heat into the cabin worth the wait.

Taken together, these habits are worth roughly 15 to 25 percent on a typical mixed driving week, which on a $1,479 annual fuel bill is somewhere between $220 and $370. The calculator will show the difference directly if you run the same trip at your current efficiency and at a number ten percent better.

Five Mistakes That Make an Estimate Come In Low

Fuel estimates usually miss in one direction, and it is not the direction that helps.

  1. Using the window sticker as your efficiency. It is the best case, produced under conditions you will not reproduce with a family and luggage aboard. Use a measured average, or use the sticker and then knock ten percent off.
  2. Measuring the route but not the driving. The mapping app gives the shortest sensible path between two points. It does not include the driving you do after you arrive, the detour to a trailhead, the loop around a parking lot, or the twenty minutes of idling while someone finds their shoes. Add those before you multiply.
  3. Forgetting the return leg. The most common single error is working out the cost to get somewhere and then treating the trip as finished. Set the trip type to round trip and the calculator handles it, but only if you remember to do it.
  4. Pricing the fuel at home. A long drive passes through markets with different taxes and different competition. Using your local station's price is fine for a commute and wrong for a regional trip.
  5. Treating fuel as the whole cost of the drive. Tolls, parking and a night of lodging if the drive is long enough often exceed the fuel line. For a family deciding between driving and flying, the fair comparison is fuel plus tolls plus any overnight stop against the total airfare for everyone going.

None of this needs to be precise to be useful. A fuel estimate that is within ten percent changes no decision worth making, and the ten percent cushion covers most of the ways the number can drift. What matters is that the number exists before the trip rather than after, when the receipts are in and there is nothing left to adjust.

You Might Also Need

Tools that pair with trip and vehicle cost planning: