Fuel Cost Calculator
What will that trip cost in fuel? One-way, round trip or daily commute.
Fuel is often the biggest variable cost of a road trip — this estimator turns "about 300 miles" into a dollar figure.
Read the guide: How to Work Out a Trip's Fuel Cost Before You Drive
Quick answers
How much will a 450-mile trip cost in gas?
At 28 mpg and $3.89 a gallon, it'll cost about $62.52. The car needs 450 divided by 28, which is 16.07 gallons, displayed as 16.1 gal. Multiply the unrounded gallons by the price and you get $62.52. Change any one of those three inputs and the total moves fast, especially the mpg on a long run.
That figure covers fuel only. Tolls aren't in it, and neither is the extra burn from traffic or air conditioning. Treat $62.52 as your fuel budget, then leave a bit of slack on top if the route has toll roads or a long city stretch at either end. If your real mpg is lower than 28, and for most cars it is, pad the distance figure or drop the mpg input to what you actually get. The estimate will thank you for the honesty.
Why doesn't the cost match the gallons shown times the price?
Because the gallons on screen are rounded to one decimal, but the cost isn't calculated from that rounded figure. It's calculated from the full unrounded amount. On the 450-mile example the display shows 16.1 gal, yet the cost uses 16.0714 gallons. Multiply the rounded number yourself and you'll land a few cents away every time there's a rounding gap.
This isn't a bug you need to work around. It's the more accurate way to do it. Rounding early and then multiplying bakes a small error into every result, and on a long trip that error grows. Keeping the full figure until the final step means the cents you see are the cents the math actually produces. If you want to check a result by hand, carry at least four decimal places for the gallons. You'll match the tool to the cent.
Should I use the official mpg rating for my car?
You can, but you'll probably under-budget. Official ratings come from lab tests, and real drivers usually see figures 10 to 20 percent worse once traffic, weather, hills, and a heavy right foot get involved. If your trips keep costing more than this calculator says, your input is the problem, not the math. Swap in a number you've measured yourself.
Measuring your own mpg is dead simple. Fill the tank, reset the trip counter, drive as normal, then fill up again and divide the miles by the gallons that second fill took. Do it twice and average the two. That personal figure is the one to type in here from then on. It's less flattering than the brochure number, sure. It's also the one that'll still look right when you're standing at the pump.
How to use
- Pick imperial or metric units.
- Enter trip distance, your car’s efficiency and local fuel price.
- Get the trip cost and fuel needed instantly.
About this tool
Your car’s real-world efficiency is usually 10–20% worse than the sticker rating; adjust for city driving and loads.
All calculations stay in your browser.
How it works
Fuel cost comes from two multiplications. First the fuel used: in the US, gallons = miles / mpg; in metric, liters = km x (L/100km) / 100. Then cost = fuel used x price per unit.
MPG and L/100km are inverses of each other — one is distance per fuel, the other fuel per distance — so convert with 235.2 / mpg = L/100km. Your real-world efficiency is usually 10-20% worse than the official rating.
If you do not know your car's efficiency, measure it: fill the tank, reset the trip meter, drive normally, then refill and divide miles driven by gallons added. Two or three fill-ups give a far more honest number than the dashboard estimate.
Imperial trips run on one plain division. Gallons used is miles divided by mpg. Cost is that gallon figure times the price per gallon. The catch is in the rounding, and it trips people up when they check the math on their phone. The gallons you see on screen are rounded to one decimal place. The cost isn't worked out from that rounded number. It's worked out from the full, unrounded gallons underneath. So if you multiply the displayed gallons by the price and get a figure that's a few cents off, the tool isn't broken. Your shortcut is.
Metric trips flip the logic because L/100km measures use, not distance per tank. The tool takes your kilometres, multiplies by your L/100km rate, then divides by 100 to get litres. Say you drive 620 km at 7.4 L/100km. That's 620 times 7.4 divided by 100, which gives 45.88 litres, shown as 45.9 L. At $1.72 a litre the cost comes to $78.91. Lower L/100km means a thriftier car. Lower mpg means the opposite. Mixing those two directions up is the most common reason a metric estimate looks wildly wrong.
What this tool can’t do
This calculator keeps things simple, and that simplicity has edges. It assumes one fuel efficiency figure for the whole trip and one price for the whole trip. Real drives don't work like that. You'll crawl through town, sit at lights, then cruise on a highway, and each bit burns fuel at a different rate. Prices move too. The gas station near the highway exit can be a lot pricier than the one two towns back. Feed in a single average and you'll get a clean estimate, not a receipt-level answer.
A few costs don't show up at all. There are no tolls in the math. There's no allowance for idling in a queue, and no extra load for air conditioning on a hot run or a roof box dragging in the wind. There's no round-trip button either. If you're going there and back, you double the distance yourself before you type it in. Forget that step and you'll budget for half a trip.
Here's the trap that catches the most people. The official mpg figure on a car's rating looks tidy, but measured fill-up to fill-up, most drivers land 10 to 20 percent worse than that number. Lab conditions aren't your commute. So if you plan every trip on the brochure figure, you'll keep coming up short and wondering why. Flip it around. Work out your own mpg from two or three real fill-ups, use that number here, and your estimates will start matching what you actually spend. Your own tank history beats a lab rating every time.
Worked examples
300-mile trip at 30 mpg, $3.50/gal: Fuel: 300 / 30 = 10 gallons. Cost: 10 x 3.50 = $35.00.
500 km at 8 L/100km, $1.50/L: Fuel: 500 x 8 / 100 = 40 liters. Cost: 40 x 1.50 = $60.00.
A 450-mile drive at 28 mpg and $3.89 a gallon: Let's price a long drive home. Distance is 450 miles, the car does 28 mpg, and fuel is $3.89 a gallon. First step: 450 divided by 28 gives 16.07 gallons, or 16.0714 if you keep the extra digits. The tool displays that as 16.1 gal. Second step: don't use the rounded 16.1. Use the full 16.0714 and multiply by 3.89. That gives $62.52, which is what the tool shows. If you'd done it with the rounded gallons you'd get $62.63, eleven cents high, and you might think something's off. Nothing is. The gap is just rounding showing on the surface while the real math runs underneath.
Quick reference
| MPG | L/100km |
|---|---|
| 20 | 11.8 |
| 25 | 9.4 |
| 30 | 7.8 |
| 40 | 5.9 |
Frequently asked questions
How do I find my car’s MPG?
Divide miles driven by gallons used between fill-ups, or check your dashboard trip computer.
Why L/100km instead of km/L?
Lower is better with L/100km (fuel per distance), which makes comparisons intuitive.
How do I estimate a round trip?
Use the full round-trip distance — or double the one-way distance — with your car’s MPG and the current gas price.
Is my data uploaded?
No — everything is local.
Why is my result a few cents different from multiplying the gallons shown by the price?
It's the rounding. The tool displays gallons rounded to one decimal place, so 16.07 gallons shows as 16.1 gal. But it works out the cost from the unrounded 16.0714 gallons, not from 16.1. Multiply the rounded figure on your phone and you'll get a slightly different total. The tool's figure is the accurate one. If you want to match it by hand, keep the extra decimal places until the very last step.
Can I split the fuel cost between passengers?
Not inside the tool itself, there's no split button. Just take the total it gives you and divide it by the number of people sharing. On the 450-mile example, $62.52 split four ways is $15.63 each. One thing worth settling before you set off: decide if the driver counts in the split or rides free for doing the driving and putting wear on their car. There's no right answer, but sorting it out at the start beats an awkward chat at the gas station.
First time embedding? Read the step-by-step guide →
More free tools
Fuel Economy Converter
Convert fuel economy between MPG (US), MPG (UK), litres per 100 km and km per litre.
Appliance Running Cost Calculator
What an appliance really costs to run: watts, hours a day and your electricity price turned into daily, monthly and yearly costs and kWh.
Unit Converter
Convert length, weight and temperature instantly.
Percentage Calculator
Work out percentages, increases and discounts in one click.
Age Calculator
Find your exact age in years, months and days.
BMI Calculator
Check your Body Mass Index in seconds.