Fuel Cost Calculator

The Fuel Cost Calculator helps you estimate the total fuel expenses for any trip, allowing you to budget effectively. This essential tool considers distance, fuel efficiency, and fuel price to provide accurate cost projections for your journey.

Vehicle 1

Vehicle 2 (comparison)

How to use

  1. 1

    Enter the distance of your trip and select the appropriate unit (miles or kilometers).

  2. 2

    Input your vehicle\'s fuel efficiency, choosing between MPG or L/100km.

  3. 3

    Provide the current fuel price per gallon or liter.

  4. 4

    Optionally, add details for a second vehicle to compare fuel costs side-by-side.

  5. 5

    The calculator will instantly display the estimated total cost and fuel needed for your trip.

Frequently asked questions

Ratings & Reviews

Rate this tool

Sign in to rate and review this tool.

Loading reviews…

What is a fuel cost calculator?

A fuel cost calculator answers the question every road trip starts with: how much is this drive going to cost me at the pump? Three numbers in (distance, fuel efficiency, price per gallon), one number out (total cost). The math is high-school arithmetic, but if you've ever tried to do it in your head while standing next to a gas pump at 6 a.m. in Wyoming, you know why having a calculator helps.

The Fuel Cost Calculator on this page handles miles or kilometers, MPG or L/100km, dollars per gallon or per liter — switch units with the buttons and the math reruns automatically. It also lets you compare two vehicles or two trips side-by-side, which is the actually useful feature if you're deciding whether to take the truck or the sedan, or whether to drive vs. fly. No sign-up, no email capture, no "create an account to save your trip." It's free, and the math runs in your browser.

How to use the Fuel Cost Calculator

Pick your units first, then enter the three numbers:

  1. Choose distance unit (miles or km), efficiency unit (MPG or L/100km), and price unit (per gallon or per liter)
  2. Enter the fuel price you're paying
  3. Enter the trip distance and your vehicle's fuel efficiency

The total cost and fuel quantity (in liters) appear instantly. If you want to compare a second vehicle or a second trip, fill in the Vehicle 2 fields — the calculator shows you which option saves money and by how much. Everything runs locally; nothing leaves the page.

The formula behind fuel cost

The standard U.S. version is straightforward:

Trip cost = (distance ÷ MPG) × price per gallon

The metric version flips MPG for L/100km, which is divided rather than divided into:

Trip cost = (distance ÷ 100) × L/100km × price per liter

That's it. The only complication is unit conversion if you're mixing systems — say, an American driving a U.S.-spec car through Canada and paying for fuel in liters. The calculator handles that automatically by normalizing everything to kilometers and liters internally before doing the math.

Worked example: a 1,200-mile road trip

You're driving from Denver to Chicago for the holidays. The route is roughly 1,200 miles round-trip. Your car gets 28 MPG combined. Gas is $3.75 per gallon along the way.

Plug into the formula:

Trip cost = (1,200 ÷ 28) × 3.75 = 42.86 gallons × $3.75 = $160.71

So fuel for the round-trip is about $161. That's your variable cost — what changes if you drive vs. don't drive. It doesn't include tolls, food, lodging, or vehicle wear (the IRS estimates total driving cost at roughly 67 cents per mile when you include depreciation, insurance, and maintenance, which for this trip would be closer to $800). But for the "should I drive or fly" question, the fuel number is usually what matters most because the other costs are sunk whether you drive this trip or not.

If you want the door-to-door drive time alongside the cost, pair this with the Mileage Calculator.

How MPG changes the bill

The same 1,200-mile trip costs wildly different amounts depending on what you're driving. The table below assumes $3.75 per gallon for gasoline and $0.15 per kWh for the EV equivalent.

Vehicle typeEfficiencyFuel neededTotal cost
Large pickup or SUV18 MPG66.7 gallons$250.00
Mid-size sedan28 MPG42.9 gallons$160.71
Compact hybrid40 MPG30.0 gallons$112.50
Plug-in hybrid or Prius55 MPG21.8 gallons$81.82
Electric vehicle0.28 kWh/mile336 kWh$50.40

The pickup costs nearly five times what the EV costs for the same trip. The pickup also costs $87 more than the sedan and $169 more than the Prius. Run this across 12,000 miles a year — a typical American driving year — and the gap between the pickup and the Prius becomes $1,690 annually. Across a decade of ownership, that's $16,900 just in fuel difference.

That's the math behind why MPG matters more than people realize when shopping for a car. A used Prius that costs $5,000 more than a comparable sedan pays back its price difference in roughly three years of fuel savings.

The EV math is different

Electric vehicles don't use MPG; they use kWh per mile (or miles per kWh, which is the same number flipped). A typical EV uses about 0.25 to 0.35 kWh per mile, depending on size and driving style. The cost equation becomes:

Trip cost = distance × kWh/mile × electricity price

At home electricity rates around $0.15 per kWh (national U.S. average), a 1,200-mile EV trip costs about $50. Charge at a public DC fast charger and you'll pay $0.40 to $0.55 per kWh — bringing the same trip up to $135 to $185, in the same ballpark as a gasoline car. The "EVs are cheaper to fuel" claim is true at home and approximately false on the highway. Most EV owners do the bulk of their charging at home, which is where the cost gap really shows up.

To compare an EV to a gas car directly in MPG terms, the EPA publishes "MPGe" (miles per gallon equivalent), based on the energy content of a gallon of gas (33.7 kWh). A car rated 100 MPGe uses 33.7/100 = 0.337 kWh/mile. For real-world cost comparison, ignore MPGe and just use local electricity vs. local gas prices.

Driving habits that change the number

Your EPA-rated MPG is a lab number. Real-world MPG can be 10% to 30% lower depending on how you drive. The biggest factors:

  • Speed. Most cars peak in efficiency between 45 and 55 mph. Going from 65 mph to 75 mph drops efficiency about 15%. That extra 10 mph saves you maybe 12 minutes on a 1,200-mile trip but costs about $24 in fuel at the rates above.
  • Acceleration. Hard acceleration uses dramatically more fuel than gentle acceleration. The "jackrabbit start" at every green light costs the average driver about 5% to 10% in MPG.
  • Cold weather. EVs lose 20% to 40% of their range in cold weather (battery chemistry plus cabin heating). Gasoline cars lose about 10% to 15% in winter because of warm-up time and denser, draggier cold air.
  • Tire pressure. Under-inflated tires can cut MPG by 3% to 5%. Check pressures monthly; the right number is on the door jamb, not the tire sidewall.
  • Roof racks and cargo carriers. A loaded roof box can cut highway MPG by 10% to 20% from aerodynamic drag alone. Take it off when you're not using it.

If you want to calibrate your real-world MPG instead of trusting the EPA sticker, the Gas Mileage Calculator uses your odometer and pump receipts to figure out what your car actually does on your driving patterns. Plug that real number back into the Fuel Cost Calculator and your trip estimates get noticeably more accurate.

Related calculations

  • Gas Mileage Calculator — work out your car's actual MPG from odometer readings and gallons purchased. More reliable than the EPA sticker for your specific driving.
  • Mileage Calculator — for tracking business mileage at the current IRS rate (67 cents per mile in 2024). Useful if you're getting reimbursed or deducting driving as a business expense.
  • Salary to Hourly — if you're deciding whether a longer commute is worth it, this helps you put the time cost in the same units as the fuel cost.

Frequently asked questions

How accurate is my car's EPA MPG rating?

The EPA test is run on a dynamometer (a treadmill for cars) at specific speed and load profiles. Real-world results typically come in 5% to 15% below the sticker for highway driving and 10% to 25% below for city driving. Hybrids tend to underperform their stickers more than gas cars; EVs vary widely with temperature. The most honest number is whatever the car actually shows on the trip computer after a few tank-fulls of your normal driving.

What's the difference between MPG and L/100km?

They're inverses of each other. MPG measures distance per unit of fuel (higher is better). L/100km measures fuel per unit of distance (lower is better). The conversion: MPG = 235.21 ÷ L/100km. So 7 L/100km ≈ 33.6 MPG. The U.S. uses MPG; most of the rest of the world uses L/100km, partly because it's more linear (going from 10 L/100km to 5 L/100km is a real 50% saving; going from 20 MPG to 40 MPG only saves about half as much as you'd think because of how the math compresses).

Is premium gas worth it for my car?

Only if your owner's manual says "premium required." If it says "premium recommended," running on regular usually costs you 1% to 3% MPG and possibly a small bit of power — usually not enough to offset the 50-cent-per-gallon price difference at today's prices. If it says nothing, your car was designed for regular and premium gives you no benefit (the marketing about cleaning your engine is mostly marketing — all grades have similar detergent packages). Always run the gas the manufacturer specified, no higher and no lower.

Why is fuel more expensive in California?

State excise taxes, a unique low-emission gasoline formulation (CaRFG3) that costs refiners more to produce, fewer pipelines bringing fuel in from other states, and the cap-and-trade carbon program. California gasoline typically runs $0.80 to $1.50 per gallon more than the national average. The Northeast also runs higher than national average; the Gulf states run lower because most U.S. refineries are there.

Does idling waste fuel?

Yes. A typical car burns about 0.2 to 0.5 gallons per hour at idle (more for trucks and SUVs). Modern engines don't need a long warm-up; 30 seconds is plenty even in cold weather. If you'll be stopped longer than about 60 seconds (drive-thru lines, train crossings, parking-lot waits), turning the engine off saves fuel. That's why auto-start-stop became standard equipment on most new cars after 2015.

How does air conditioning affect MPG?

AC on highway driving costs about 3% to 4% in MPG — basically negligible. AC in city driving costs more because the compressor load is a bigger fraction of total engine output at lower speeds. Below about 40 mph, opening windows is more efficient than AC. Above 40 mph, AC is more efficient than the aerodynamic drag from open windows. So: windows down around town, AC on the highway.

Why doesn't the calculator include tolls or food costs?

Because those vary too much by route and trip to estimate reliably from three inputs. The calculator stays narrow on purpose — it tells you the fuel cost, accurately, from the numbers you provide. For a full road-trip budget, add: tolls (use a route-specific estimator like Google Maps), food (rough estimate: $15 to $25 per person per day), lodging if multi-day, and any per-mile vehicle wear if you want the true total cost of ownership view.

Should I fill up before crossing into a higher-priced state?

Probably yes if the price difference is more than about $0.30 per gallon and you'd burn most of a tank in the cheaper state anyway. Don't make a special detour for it — driving 20 miles out of your way to save $5 on fuel costs you 20 miles of additional fuel and roughly 30 minutes of your time. Apps like GasBuddy show local prices along your route; the savings show up most on long trips where you can plan a fill-up at the cheapest station you're already passing.