Cost per Gallon Calculator: Fuel Price Divided by MPG
If you want a straight answer on cost per gallon calculator, start with the maths, not a guess. This page works through the formula step by step, runs a worked example with the assumptions stated in full, and gives you a table you can read your own numbers off. Everything here uses the same definitions throughout, so the figures in the table match the figures in the example.
The short version is that cost per gallon calculator comes down to two measurements you can take yourself: how far you drove, and how much fuel you used. Get those two right and the rest is arithmetic. Get either one wrong — a half-full tank, a trip meter that was never reset, a gallon confused with a litre — and the answer is meaningless, however carefully you divide.
The formula — cost per gallon calculator
MPG = miles driven ÷ gallons used. For cost per gallon calculator, the same reasoning applies — measure brim-to-brim, average several tanks, and use your own figures rather than a quoted one. Everything else on this page is built on that one line. For the worked example below, the car covers 320 miles on 9.4 gallons, which gives 320 ÷ 9.4 = 34 MPG. In metric terms the same economy is 6.92 L/100km using a US gallon, or 8.31 L/100km using a UK imperial gallon — label which gallon you used, because the two figures differ by about 20 percent. The formula looks trivial, and it is, but the measurement behind it is where people go wrong: the miles must be the miles actually driven between the two fills, and the gallons must be the gallons actually pumped, not the size of the tank and not a dashboard estimate.
Worked example — cost per gallon calculator
Suppose the car is used for a week of commuting plus a weekend trip. The trip meter reads 320 miles between fills, and the second fill takes 9.4 gallons. MPG = 320 ÷ 9.4 = 34 MPG. In metric terms that is 6.92 L/100km (US gallon) or 8.31 L/100km (UK imperial gallon). At an example fuel price of $3.85 per gallon, the fuel for that 320-mile stretch costs (320 ÷ 34) × $3.85 = $36.24, which is $0.11 per mile. That per-mile figure is the one worth remembering, because it turns any future journey into a cost: multiply the miles by $0.11 and you have the fuel bill for that trip at this example price. If your next tank gives a different MPG, do not be surprised — one tank is a sample, not a verdict. Log three or four tanks, add all the miles together, add all the gallons together, and divide the totals: that averaged figure is the one to trust.
Cost per mile at different MPG levels — cost per gallon calculator
Cost per mile is fuel price ÷ MPG, so every extra MPG trims the cost of every mile you drive. For cost per gallon calculator, the same reasoning applies — measure brim-to-brim, average several tanks, and use your own figures rather than a quoted one. The table uses an example fuel price of $3.85 per gallon — replace it with the price you actually pay and the same division gives your cost per mile.
| MPG | Cost per mile at $3.85/gal (example) |
|---|---|
| 20 | $0.19 |
| 25 | $0.15 |
| 30 | $0.13 |
| 35 | $0.11 |
| 40 | $0.10 |
| 45 | $0.09 |
| 50 | $0.08 |
Why cost per mile is the number that matters — cost per gallon calculator
Cost per mile is MPG translated into money, and it is the figure that decides most real questions. That is the point to carry into cost per gallon calculator: the method is the same, but the numbers are yours, so the example here is only a starting point. Take the fuel price per gallon, divide by your MPG, and you have the cost of driving one mile. Multiply by the miles in a journey and you have the fuel cost of that journey; multiply by your annual miles and you have the annual fuel bill. The formula is simple, but it needs an honest MPG — measured brim-to-brim over several tanks — and an honest price, stated as the price you actually paid rather than a remembered one. Prices move, so a cost-per-mile figure is only as current as its price; note the price and the date alongside the figure, and recalculate when the price moves by enough to matter.
Common mistakes — cost per gallon calculator
Five mistakes cover most wrong MPG figures. That is the point to carry into cost per gallon calculator: the method is the same, but the numbers are yours, so the example here is only a starting point. Mixing US and imperial gallons is the biggest, because it shifts the answer by about 20 percent with no warning. Using one tank instead of an average is next — a single fill is noisy, and a pump that clicks off early can add a phantom gallon. Forgetting to reset the trip meter at the fill is another, because it silently adds miles from the previous tank. Using the fuel light or the gauge instead of the pump reading is worse still, since gauges are approximate by design. Finally, comparing figures measured different ways — a laboratory test figure against a real-world figure, or a dashboard estimate against a brim-to-brim measurement — tells you nothing about the car and everything about the methods. Keep the method constant and the comparisons become meaningful.
Related calculations — cost per gallon calculator
If this page answered your question, these pages take the next step — the same method applied to a closely related question, or the calculator that does the arithmetic for you. That is the point to carry into cost per gallon calculator: the method is the same, but the numbers are yours, so the example here is only a starting point.
- How to Convert Litres per 100km to MPG
- MPG Calculator Litres per 100 Km
- MPG Calculator Litres per 100km
- MPG Calculator Pence per Mile
- Use the calculator
- Browse all MPG pages
Putting your cost per gallon calculator figure to work
Putting the figure to work is where the method pays off. That is the point to carry into cost per gallon calculator: the method is the same, but the numbers are yours, so the example here is only a starting point. Once you know your own MPG, measured brim-to-brim over several tanks, you can price any journey before you set off: multiply the miles by the fuel price divided by your MPG, and the answer is the fuel cost of that trip at that example price. You can also compare cars honestly, because you are comparing measured figures rather than brochure claims. Keep a simple log — date, miles, gallons, price — and review it monthly. Patterns show up quickly: a winter dip, a motorway improvement, a slow decline that points to tyre pressures or a change in routes. The log turns a vague feeling about fuel use into a number you can act on, and that is the whole point of measuring in the first place.
Using your cost per gallon calculator figure day to day
A useful habit is to record the figure alongside the conditions. That is the point to carry into cost per gallon calculator: the method is the same, but the numbers are yours, so the example here is only a starting point. Note the kind of driving each tank covered — mostly town, mostly motorway, or a mix — and the season, because both move the result enough to matter. A tank that looks disappointing after a week of short cold trips is not a problem with the car; it is a problem with the comparison. Compare motorway tanks with motorway tanks and winter with winter, and the averaged figure becomes a reliable baseline. Once you have that baseline, a genuine change stands out: a sudden drop after nothing else changed is worth a look at tyre pressures, a roof box left fitted, or a brake that is dragging. The measurement is simple; the discipline of recording it is what makes it useful.
Frequently asked questions
What is a good MPG figure?
It depends on the car and how it is used. Read the figures on this page about cost per gallon calculator as a worked illustration, and swap in your own miles, gallons and price to get your own answer. A small petrol car on mixed driving, a large SUV and a diesel on motorways all have different sensible ranges, so a single number cannot judge them all. The useful comparison is your car against itself: measure brim-to-brim over several tanks and see whether the averaged figure is stable on similar journeys.
How do I calculate MPG from litres?
Divide the litres by 3.785 to get US gallons or by 4.546 to get imperial gallons, then divide the miles driven by that gallon figure. That is the point to carry into cost per gallon calculator: the method is the same, but the numbers are yours, so the example here is only a starting point. Say which gallon you used, because the two give MPG figures about 20 percent apart.
Why is my MPG lower than the dashboard says?
The dashboard estimates from engine data and recent driving, while the brim-to-brim method measures the fuel that actually went into the tank. Read the figures on this page about cost per gallon calculator as a worked illustration, and swap in your own miles, gallons and price to get your own answer. They commonly disagree by a few percent in either direction. Trust the brim-to-brim average over several tanks for planning and expenses.
How many tanks should I average for a reliable MPG?
Three or four tanks is a good minimum. Read the figures on this page about cost per gallon calculator as a worked illustration, and swap in your own miles, gallons and price to get your own answer. One tank is noisy — a pump clicking off early or one unusual journey can tilt it — while averaging the totals over several tanks smooths those effects out and gives a figure you can rely on.
Does driving slower always improve MPG?
Up to a point. Read the figures on this page about cost per gallon calculator as a worked illustration, and swap in your own miles, gallons and price to get your own answer. Very slow driving in low gears is inefficient, and very fast driving wastes fuel on aerodynamic drag. Most cars are at their most economical at a steady moderate cruise, with smooth acceleration and as little braking as possible. The exact sweet spot varies by car.