Fuel Cost Calculator
Calculate your annual, monthly, daily, and per-mile gasoline expenses based on vehicle MPG and fuel prices.
Whether planning a long-distance road trip or budgeting daily work commutes, calculate exact gasoline expenditures. Enter your annual or trip mileage, vehicle fuel economy (MPG), and current gas pump price to view your cost per mile and budget impact.
How this calculator works
Gallons Required = Miles Driven / Miles Per Gallon (MPG). Total Fuel Cost = Gallons Required * Gas Price Per Gallon. Cost Per Mile = Total Fuel Cost / Miles Driven. Cost for 100 Miles = Cost Per Mile * 100.
Key benefits
- Breaks down fuel costs into daily, monthly, and yearly budget buckets
- Computes standardized Cost Per 100 Miles for easy vehicle comparison
- Shows exact annual gallons of fuel consumed
- Simulates the monthly savings of improving vehicle efficiency by 5 or 10 MPG
Assumptions & exclusions
- Assumes steady-state average MPG combining highway and city driving cycles
- Gas prices are user-entered to reflect local regular, mid-grade, or premium pump rates
- Excludes cold-weather or heavy cargo fuel consumption penalties
Frequently asked questions
How much money does improving from 20 MPG to 30 MPG save?
At 15,000 miles per year and $3.50/gallon gas, driving a 20 MPG vehicle costs $2,625/yr (750 gal). Driving a 30 MPG vehicle costs $1,750/yr (500 gal). That 10 MPG improvement saves $875 every single year.
Is premium fuel worth the extra cost for fuel economy?
Only if your vehicle owner manual specifically states premium fuel is "Required". If your manual states premium is "Recommended", modern engine computers adjust timing and run safely on regular 87 octane with negligible MPG difference.
How can I find my car's real MPG instead of the official rating?
Divide miles driven by gallons bought over several tanks: fill up, note the odometer, drive as usual, then at the next fill-up divide the miles since by the gallons it took to refill. Averaging three or four tanks smooths out traffic and weather. Most trip computers show a similar figure, usually slightly optimistic.
How much does a $1 rise in gas prices change my yearly cost?
Exactly your annual gallons, in dollars. A driver using 500 gallons a year, as in the worked example, pays $500 more per year for every $1 on the gallon price — and $250 more for a fifty-cent rise. That is why the same price swing feels very different to high-mileage and low-mileage drivers.
Why do MPG gains save less fuel at higher MPG?
Because fuel use is miles divided by MPG. At 15,000 miles a year, improving from 20 to 30 MPG saves 250 gallons, but improving from 30 to 40 MPG saves only 125 gallons. What you buy is gallons, so convert any MPG claim into gallons and dollars at your own mileage before paying extra for it.
Should I use fuel cost per mile to decide between driving and other transport?
Only as a floor. Fuel is roughly a sixth of the full cost of driving in this site's ownership example — $0.117 of $0.74 per mile — because tires, maintenance, insurance and depreciation also accrue with use. For trip decisions, the ownership calculator's full per-mile figure is the honest comparison against fares or delivery fees.
Formula-Based Calculator · By QalcTools Editorial Team. Formulas tested against independent reference values · Content reviewed November 2026 by the QalcTools Editorial Team.
Methodology note: U.S. Department of Energy (DOE) and EPA fuel economy testing formulas.
Related calculators
Category: Loans & Credit Calculators
About this calculator
Fuel is the running cost drivers feel most often and estimate least accurately, because it arrives in small purchases at changing prices. This calculator turns three numbers — how far you drive in a year, what your vehicle actually returns per gallon, and what you pay at the pump — into a complete fuel budget: gallons used per year, the annual cost, the monthly and daily averages a budget can use, the cost per mile, and the cost of covering 100 miles. It is equally useful for judging a vehicle purchase, since the difference between two cars’ fuel economy only becomes real money when it is multiplied by your mileage and your fuel price, which is exactly the multiplication this page performs.
How it works
Enter your annual miles, your vehicle’s miles per gallon, and the current price per gallon. The tool divides miles by MPG to get the gallons you burn in a year, then multiplies by the price for the annual cost. From that one figure it derives the rest: the monthly cost is the annual total divided by twelve, the daily cost divides by 365, the cost per mile divides the annual cost by the annual miles, and the cost for 100 miles scales that rate up. Because everything descends from a single division and multiplication, small input changes are easy to test — one MPG more or less, a dime on the gallon price — and each scenario updates the whole budget consistently.
The formula, explained
Gallons per year = Annual miles ÷ MPG; Annual cost = Gallons × Price per gallon; Cost per mile = Annual cost ÷ Annual miles; Monthly cost = Annual cost ÷ 12
- MPG — Your vehicle’s real average miles per gallon across your actual mix of city and highway driving (miles/gallon)
- Annual miles — Total miles you drive in a year, including commuting, errands and trips (miles)
- Price per gallon — The pump price for the grade your vehicle uses, at the stations you actually use ($/gallon)
- Cost per mile — Fuel-only cost of driving one mile — one component of the full per-mile ownership cost ($/mile)
The engine guards the two divisions: if MPG is zero it uses zero gallons rather than dividing by zero, and if annual miles are zero the cost per mile is reported as zero. Gallons per year are miles divided by MPG, and annual cost is that figure times the price per gallon, both kept unrounded internally. Cost per mile is the annual cost divided by annual miles, reported to three decimals; the cost for 100 miles is that rate times 100, reported to two decimals. The daily cost is the annual cost divided by 365 and rounded to cents, the monthly cost is the annual cost divided by 12 and rounded to whole dollars, and gallons and annual cost are rounded to whole numbers for display. Nothing else enters the math — no seasonal price movement, no driving-style adjustment.
Inputs and variables
| Variable | Meaning | Example |
|---|---|---|
| Annual Miles | How far you drive in a year. Check it against service records or your odometer history rather than guessing — most drivers underestimate by a wide margin. | 15,000 miles |
| Fuel Economy (MPG) | Your measured average, ideally from fuel receipts or the trip computer over several tanks. It is the most sensitive input: at fixed mileage, moving from 25 to 30 MPG cuts fuel use by a sixth. | 30 MPG |
| Gas Price per Gallon | Your current local price for the grade you buy. Regular and premium differ enough that using the wrong grade skews the whole budget. | $3.50 per gallon |
| Cost per Mile (result to watch) | Not an input but the output that makes comparisons portable: your annual fuel cost divided by your annual miles, ready to set against other vehicles or other transport options. | $0.117 per mile |
Worked example
A driver covers 15,000 miles a year in a car that returns a real 30 MPG, with gasoline at $3.50 per gallon.
- Annual miles: 15,000
- Fuel economy: 30 MPG
- Gas price: $3.50 per gallon
- Gallons per year: 15,000 ÷ 30 = 500 gallons.
- Annual cost: 500 × $3.50 = $1,750 a year spent at the pump.
- Budget figures: $1,750 ÷ 12 = $146 a month on average, and $1,750 ÷ 365 = $4.79 a day.
- Per-mile figures: $1,750 ÷ 15,000 = $0.117 per mile for fuel, so 100 miles of driving costs $11.67 in fuel.
Fuel costs of $1,750 per year — $146 a month — using 500 gallons, at $0.117 per mile and $11.67 per 100 miles.
The per-mile figure is what makes this page useful beyond budgeting. At $0.117 a mile for fuel, a vehicle returning 20 MPG instead would cost $0.175 a mile — over 15,000 miles that is $875 a year, every year, which is the honest size of the fuel-economy line when you compare two cars. The daily figure works the other way: $4.79 a day sounds trivial, and seeing it annualize to $1,750 is a reminder that the most frequent small cost in car ownership is rarely the smallest.
Understanding your results
Fuel economy improvements obey diminishing returns, and this page shows it in dollars. Going from 20 to 30 MPG at 15,000 miles saves 250 gallons a year; going from 30 to 40 MPG saves only 125 gallons, because gallons are what you buy and the relationship is a division, not a subtraction. When comparing vehicles, convert MPG differences into gallons and dollars at your mileage before paying a large premium for a small MPG gain at the efficient end of the range.
The cost per mile here is fuel only — in the total ownership example on this site, fuel was $0.13 of a $0.74 total cost per mile. That proportion matters for decisions like driving versus flying or ride services: the fuel figure understates the true cost of a trip by several times, because tires, maintenance, insurance and depreciation also accrue with miles. Use this page’s figure for fuel budgeting and vehicle comparisons, and the ownership calculator’s figure for what a mile really costs you.
Assumptions and limitations
The calculation holds one MPG figure and one fuel price constant for the whole period. Real fuel economy varies with season, traffic, load, tire pressure and driving style, and pump prices move month to month, so a yearly budget built here is a planning average rather than a prediction. The tool covers gasoline or diesel bought by the gallon only — it has no charging inputs for electric driving, which the EV comparison calculator on this site handles in cost-per-mile terms. It also excludes every non-fuel running cost by design. If your mileage itself is changing — a new job, a moved home, a second driver — update the annual miles input first, because it scales every output on the page.
Common mistakes to avoid
- Using the rated MPG instead of your real MPG. Official ratings are test-cycle figures. Your trip computer or a few tanks of receipts give the average your budget will actually experience, often two to four MPG lower.
- Guessing annual mileage. Underestimating mileage understates every output proportionally. An odometer reading a year apart, or service invoices, beats any estimate from weekly habits.
- Comparing MPG differences as if they were linear. Ten MPG gained at 20 MPG saves twice the fuel of ten MPG gained at 40 MPG. Always convert to gallons at your mileage before valuing an efficient model.
- Treating fuel cost per mile as the cost of driving. Fuel was roughly a sixth of the full per-mile ownership cost in this site’s ownership example. Pricing trips or a commute on fuel alone systematically understates them.
- Locking in one pump price for a long plan. Prices move. For a multi-year vehicle decision, rerun the page at a price fifty cents higher and lower to see whether the vehicle ranking you chose survives both.