everyday calculator

Fuel Cost Calculator

Estimate trip fuel cost, gallons needed, and fuel cost per mile from distance, MPG, and price per gallon.

Results

Gallons needed
21.43
Total fuel cost
$80 USD
Fuel cost per mile
$0 USD

Overview

Use this fuel cost calculator to estimate how much a trip, commute, delivery route, or long drive will cost at the pump before you leave. Enter route distance, average MPG, and fuel price per gallon to get gallons needed, total fuel cost, and fuel cost per mile. It is built for people asking practical questions like how much gas a 600-mile trip will use, what it costs to drive 1,000 miles, or whether one vehicle will be meaningfully cheaper than another on the same route.

How to use this calculator

  1. Enter total trip distance in miles. For a round-trip, enter the full there-and-back mileage rather than the one-way leg only.
  2. Enter average MPG using your dashboard history, a recent fill-up average, or an EPA combined estimate if you do not have your own data yet.
  3. Enter the fuel price per gallon you expect to pay. For long trips with mixed prices, use a realistic average rather than the cheapest station at the start.
  4. Review gallons needed, total fuel cost, and fuel cost per mile. Those three outputs usually answer both the trip-budget question and the comparison question.
  5. If you are comparing vehicles or route options, rerun the page with a different MPG, distance, or price assumption and compare the outputs side by side.
  6. If you are trying to answer a question like how much it costs to drive 1,000 miles, simply enter `1000` for distance and use a realistic MPG and fuel price.

Inputs explained

Trip distance (miles)
The full number of miles you expect to drive. For round-trips, include both directions. For multi-stop travel, add the legs together or use the total from your route planner or map app.
Average fuel economy (MPG)
Your vehicle’s average miles per gallon under the conditions you expect. Combined MPG is usually a better planning assumption than an optimistic highway-only number if your drive includes traffic, hills, idling, cargo, or mixed-speed travel.
Fuel price per gallon
The cost you expect to pay per gallon in dollars. You can use a current local gas price, a route-average estimate, or a slightly conservative number if prices are moving around.

Outputs explained

Gallons needed
The estimated amount of fuel the trip will use at the entered MPG. This helps you budget cost, check tank-range assumptions, and plan whether you will need to refuel before arriving.
Total fuel cost
The estimated amount you will spend on fuel for the full trip. It is calculated as gallons needed multiplied by fuel price per gallon, and it does not include tolls, parking, maintenance, or other travel costs.
Fuel cost per mile
The average fuel spend per mile for the entered scenario. This is useful when comparing vehicles, pricing delivery or service routes, or stacking fuel cost against insurance and maintenance on a per-mile basis.

How it works

You enter total trip distance in miles, your vehicle’s average fuel economy in miles per gallon (MPG), and the fuel price per gallon you expect to pay.

The calculator estimates gallons needed with the core formula `distance ÷ MPG`. If your route is 600 miles and your car averages 30 MPG, the trip uses about 20 gallons of fuel.

It then multiplies gallons needed by fuel price per gallon to estimate total fuel cost. That gives you the planning answer most users care about first: roughly how much this drive will cost.

To make route and vehicle comparisons easier, the page also calculates fuel cost per mile by dividing total fuel cost by trip distance. That helps when you want to compare vehicles, routes, or recurring driving patterns on a normalized basis.

The same math works for one-way trips, round-trips, recurring commutes, rideshare routes, and simple drive-versus-drive comparisons. If you already have a map-app distance, this page converts that distance into a fuel budget.

Results are planning estimates, not guaranteed pump receipts. Real-world MPG changes with speed, terrain, weather, traffic, cargo, tire pressure, and driving style.

Formula

Let D = Trip distance (miles), M = Average fuel economy (MPG), and P = Fuel price per gallon.\n\nGallons needed = D ÷ M\nTotal fuel cost = Gallons needed × P\nFuel cost per mile = Total fuel cost ÷ D\n\nExample: For a 600-mile trip at 28 MPG and $3.75 per gallon, Gallons ≈ 600 ÷ 28 ≈ 21.43, Total cost ≈ 21.43 × 3.75 ≈ $80.36, and cost per mile ≈ 80.36 ÷ 600 ≈ $0.13.

When to use it

  • Budgeting a road trip and estimating how much of the total travel budget will go to fuel before you add lodging, tolls, and food.
  • Answering practical planning questions like how much gas a 500-mile, 800-mile, or 1,000-mile drive will use and cost.
  • Comparing two vehicles on the same route, such as a sedan versus an SUV, by translating MPG differences into real trip dollars.
  • Estimating the fuel cost for recurring delivery, rideshare, or service routes so you can price jobs or understand your real cost to drive.
  • Giving carpools, roommates, or friends a clean number for splitting fuel spend without arguing about rough guesses.

Tips & cautions

  • Use a conservative MPG if the drive includes traffic, elevation gain, cold weather, roof boxes, trailers, or heavy cargo. Those conditions can pull real fuel economy below sticker numbers.
  • If fuel prices are meaningfully different along the route, run two scenarios with low and high prices to build a realistic range instead of pretending the cheapest station sets the whole trip.
  • Use your own long-term dashboard or fill-up data when possible. It is usually a better planning input than a best-case highway estimate.
  • Fuel cost per mile is especially useful when you want to compare this route to delivery pricing, employer mileage reimbursements, or your insurance cost per mile.
  • If you drive diesel and also need surcharge math for a fleet, invoice, or contract workflow, use a dedicated diesel fuel cost calculator rather than forcing that logic into this simpler trip page.
  • The route assumes one average MPG and one average price per gallon for the whole trip. Real trips can vary from segment to segment based on road type, speed, weather, and station prices.
  • It estimates fuel only. Tolls, parking, maintenance, insurance, depreciation, lodging, and time costs are outside the model.
  • It uses miles and gallons, not liters per 100 km or EV energy units. Electric-vehicle charging math needs a different calculator.
  • It does not model fuel surcharges, contract terms, or carrier-specific freight formulas. Those belong in a dedicated diesel or fleet route.

Worked examples

Standard road trip: 600 miles, 28 MPG, $3.75 per gallon

  • Trip distance = 600 miles, average MPG = 28, fuel price = $3.75/gallon.
  • Gallons needed ≈ 600 ÷ 28 ≈ 21.43 gallons.
  • Total fuel cost ≈ 21.43 × $3.75 ≈ $80.36.
  • Fuel cost per mile ≈ $80.36 ÷ 600 ≈ $0.13 per mile.
  • Interpretation: this is a reasonable planning answer for a weekend drive and gives you a benchmark for comparing a different vehicle or route.

How much does it cost to drive 1,000 miles?

  • Trip distance = 1,000 miles, average MPG = 24, fuel price = $3.95/gallon.
  • Gallons needed ≈ 1,000 ÷ 24 ≈ 41.67 gallons.
  • Total fuel cost ≈ 41.67 × $3.95 ≈ $164.58.
  • Fuel cost per mile ≈ $164.58 ÷ 1,000 ≈ $0.16 per mile.
  • Interpretation: if you were trying to budget a long relocation drive or multi-day road trip, fuel alone would be about $165 in this scenario before tolls or lodging.

Comparing two vehicles on the same route

  • Use the same 300-mile route with fuel at $3.80/gallon. Car A averages 32 MPG and Car B averages 22 MPG.
  • Car A gallons ≈ 300 ÷ 32 ≈ 9.38; cost ≈ 9.38 × $3.80 ≈ $35.63; cost per mile ≈ $0.12.
  • Car B gallons ≈ 300 ÷ 22 ≈ 13.64; cost ≈ 13.64 × $3.80 ≈ $51.82; cost per mile ≈ $0.17.
  • Difference in trip fuel cost ≈ $51.82 − $35.63 ≈ $16.19.
  • Interpretation: the lower-MPG vehicle costs about 45% more in fuel on the exact same route, which is useful when comparing family-trip or commute options.

Deep dive

This fuel cost calculator estimates gallons needed, total fuel cost, and fuel cost per mile from trip distance, average MPG, and fuel price per gallon.

Use it as a trip fuel cost calculator, gas cost calculator for a route, or a quick way to answer how much it costs to drive a given number of miles.

It works well for road trips, recurring commutes, delivery runs, and vehicle comparisons where the real question is how route distance and MPG translate into dollars.

Methodology & assumptions

  • The route reads trip distance, average fuel economy in miles per gallon, and fuel price per gallon from the user.
  • Distance and fuel price are clamped to non-negative values, and MPG is clamped to a non-negative value so invalid negative inputs do not create nonsense outputs.
  • Gallons needed are calculated as `distance / fuelEfficiency` when MPG is greater than zero. If MPG is zero or missing, gallons are reported as `0` instead of producing an unstable result.
  • Total fuel cost is calculated as `gallons * fuelPrice`.
  • Fuel cost per mile is calculated as `totalCost / distance` when distance is greater than zero; otherwise it returns `0`.
  • The page does not model separate city and highway MPG segments, multi-price fueling stops, or non-fuel travel costs.
  • Copy, examples, and FAQ guidance are kept aligned with the `fuelCost` computation in `src/lib/calculators/calculations.ts`.

Sources

FAQs

How do I estimate the cost to drive 1,000 miles?
Enter `1,000` as trip distance, then use a realistic MPG and fuel price per gallon for your vehicle. The calculator will return gallons needed, total fuel cost, and fuel cost per mile so you can budget the drive quickly.
Should I use EPA MPG or my own real-world MPG?
Use your own long-term average if you have it. If not, EPA combined MPG is usually the best starting point for mixed driving. Highway-only MPG can understate fuel cost if your route includes traffic, hills, weather, or cargo.
Can I use this for round-trips or multi-stop routes?
Yes. Enter the full distance for all legs combined. For a simple out-and-back route, double the one-way distance. For multi-stop travel, use the total from your map app or add the legs together.
Does this include tolls, parking, or hotel costs?
No. This page estimates fuel only. For a complete travel budget, add tolls, parking, maintenance, lodging, food, and any other trip-specific costs separately.
Can I use this for diesel vehicles too?
Yes, the basic math still works for diesel if you use the vehicle’s diesel MPG and the diesel price per gallon. If you also need surcharge math for freight or contract work, use a dedicated diesel fuel cost calculator instead of this simpler trip page.
Why is fuel cost per mile useful?
It normalizes the result so you can compare routes, vehicles, and budgets more easily. It is also useful if you want to stack fuel cost against insurance cost per mile, employer mileage reimbursement, or delivery-route pricing.

Related calculators

This fuel cost calculator provides planning-level estimates based on user-entered distance, average MPG, and fuel price. Actual fuel use and pump spend can vary with speed, terrain, weather, traffic, load, refueling location, and driving style. It does not include tolls, parking, maintenance, depreciation, lodging, or time costs. Use it for budgeting and scenario planning only, and cross-check important decisions against your own vehicle history and current local fuel prices.