Audited 26 May 2026·Last updated 27 Jul 2026·7 citations·Tier 1·0 uses

Fuel Cost Calculator

Free fuel cost calculator. Estimate gas spend, fuel used, cost per mile, and CO2 emissions for any trip. US MPG or metric L/100km.

Fuel Cost Calculator

Units
Total round-trip distance. Switches to kilometers when units are metric.
mi
Miles per gallon in US units; liters per 100 km in metric. Use the EPA combined rating, not the highway-only number, for road trips with stops.
mpg
Pump price per gallon (US) or per liter (metric). Check EIA's weekly retail price update for a current national average.
$ /gal
Total fuel cost
$42.00
Fuel you will burn over the full trip, valued at the price you entered.
Fuel used
12 gal
Cost per distance unit
$0.14 /distance unit
CO2 emissions
106.644 kg CO2

Background.

This fuel cost calculator answers the question every driver asks before a long trip — how much will the gas actually cost? — and then layers on the three numbers that the dashboard fuel gauge does not show you: total gallons (or liters) consumed, cost per mile, and CO2 emitted. Enter the trip distance, your vehicle's fuel economy, and the current pump price, and the calculator returns a budget figure you can plan against. Flip the units toggle to compute in kilometers, liters, and L/100km if you are driving in Europe, Kenya, Canada, or anywhere else outside the US.

The math itself is one division — distance divided by fuel economy gives you fuel used, multiplied by pump price gives you cost — but the reason the calculator exists is that the inputs are noisier than they look. The fuel economy printed on your window sticker is the EPA combined city/highway rating measured on a dynamometer at moderate loads; real-world MPG on a loaded car at 80 mph in a headwind can be 15 to 25 percent lower, and the EPA itself publishes the 'fueleconomy.gov' database precisely because the lab number drifts from road reality.

Pump price is even more volatile: the US Energy Information Administration's weekly retail gasoline update has shown swings of more than $1.00 per gallon inside a single calendar year, and regional variation between, say, Mississippi and California routinely exceeds $1.50 per gallon on the same day. So 'how much will this trip cost' is really 'how much will it cost at today's price, assuming I drive the way I usually drive, in the conditions I expect' — and that is the question this calculator is sized to answer.

Below the widget you will find sections on MPG versus L/100km (the two ratings are reciprocal, not linear — a jump from 20 to 25 MPG saves more gas than a jump from 40 to 45 MPG, which is the entire reason the US switched the EPA window sticker to include gallons-per-100-miles as a secondary metric in 2013), how to think about hybrid and EV cost-per-mile (the math is different because the 'fuel' is electricity priced per kWh, and the embedded efficiency in MPGe is calibrated against a gasoline-energy baseline), why the EPA highway rating overstates real fuel economy on long road trips with luggage and a roof box, and the carbon-emission factor: every US gallon of gasoline burned releases 8.887 kg of CO2 from the tailpipe (EPA, Greenhouse Gas Emissions from a Typical Passenger Vehicle), which works out to roughly 2.348 kg per liter — small numbers that compound into the 4.6 metric tons of CO2 the EPA estimates a typical US passenger vehicle emits per year.

The output is intentionally framed in the units a driver actually sees: dollars at the pump, gallons or liters per fill-up, cents per mile (the same unit the IRS uses for its standard mileage rate, which makes this calculator useful for self-employed mileage deductions too), and kilograms of CO2 per trip (the unit climate-conscious drivers compare against airline emissions). Whether you are pricing a holiday road trip, comparing two job offers in different cities, deciding whether the fuel-efficient car is worth the price premium, or just sanity-checking what your daily commute is really costing you per month, the goal is the same: turn a three-input arithmetic problem into a budget number you can plan against.

What is fuel cost calculator?

A fuel cost calculator estimates the total amount of money you will spend on gasoline (or diesel) to drive a known distance, given your vehicle's fuel economy and the current price of fuel. The underlying physics is simple: a gallon of gasoline contains about 33.7 kilowatt-hours of chemical energy (the EPA's reference figure used to derive MPGe ratings for electric vehicles), and a vehicle's fuel economy is the ratio of distance traveled to fuel consumed. The calculator multiplies the volume of fuel needed by its retail price to produce a dollar figure, and it derives two secondary metrics — cost per mile and CO2 emitted — that are more useful than the raw total when you are comparing one trip against another, one car against another, or one mode of transport against another. In the US the rating is published in miles per gallon (MPG); in most other countries it is published in liters consumed per 100 kilometers (L/100km). The two are reciprocal: MPG = 235.215 / (L/100km). The reciprocal relationship is the reason the EPA, starting with the 2013 model year, added gallons-per-100-miles to the window sticker — the linear unit (L/100km or gal/100mi) tracks fuel use proportionally, while MPG compresses the high end of the scale and makes a 5-MPG improvement on a 15-MPG truck look identical to a 5-MPG improvement on a 35-MPG sedan, even though the truck improvement saves more than three times as much fuel over the same distance.

How to use this calculator.

  1. Choose your unit system. Select 'US' for miles, gallons, and MPG, or 'Metric' for kilometers, liters, and L/100km — the suffixes on the other fields will update accordingly.
  2. Enter the trip distance. For a round trip, double the one-way figure. For a daily commute, multiply by the number of days you want to budget (a 30-mile commute over 22 working days is 660 miles, not 30).
  3. Enter your vehicle's fuel economy. Use the EPA combined rating from the window sticker or fueleconomy.gov for new cars; for an older vehicle, average the last three or four fill-ups (miles driven divided by gallons added at the pump) for a real-world number.
  4. Enter the pump price per gallon (or per liter in metric mode). Check the EIA's weekly Gasoline and Diesel Fuel Update for the current national average, or use GasBuddy / your local station's posted price for a regional figure.
  5. Read the total cost as the budget figure for the trip, and use cost per mile when comparing to alternatives — a flight, a train ticket, or a more fuel-efficient car at a higher purchase price.

The formula.

Cost = (D ⁄ MPG) × P

In US units the core relationships are:

fuelUsed = distance (miles) / fuelEconomy (MPG) totalCost = fuelUsed × fuelPrice ($/gal) costPerMi = totalCost / distance co2Kg = fuelUsed × 8.887 // EPA tailpipe factor (kg CO2 / gal gasoline)

In metric units the rating is consumption rather than economy, so the division flips:

fuelUsed = (distance (km) × L/100km) / 100 totalCost = fuelUsed × fuelPrice ($/L) costPerKm = totalCost / distance co2Kg = fuelUsed × 2.348 // EPA factor converted to kg CO2 / L

The conversion between the two rating systems is MPG = 235.215 / (L/100km), where 235.215 is (1 mile / 1.609344 km) × (3.78541 L / 1 gal) × 100. The reciprocal nature of MPG matters for trip-cost intuition: dropping from 20 MPG to 15 MPG on the same 300-mile trip raises fuel use from 15 gallons to 20 gallons — five extra gallons — but jumping from 40 MPG to 35 MPG on the same trip raises fuel use only from 7.5 gallons to about 8.6 gallons. The same '5-MPG hit' is three times more expensive at the low end of the scale, which is why the EPA window sticker now shows gallons-per-100-miles as a co-equal metric. The CO2 factor (8.887 kg/gallon) is fixed by the chemistry of complete gasoline combustion (C8H18 + O2 → CO2 + H2O) and the carbon mass fraction of the typical retail gasoline blend; it does not vary meaningfully with vehicle make, model, or driving style. The only way to reduce trip CO2 is to burn less fuel — by driving fewer miles, driving a more efficient vehicle, or switching to an electric drivetrain charged from a lower-carbon grid.

A worked example.

Example

You are planning a 600-mile round-trip drive from Chicago to St. Louis and back. Your car is rated at 28 MPG combined on the EPA window sticker, and the regular-unleaded pump price along the I-55 corridor is averaging $3.75 per gallon. The calculator divides 600 by 28 to get 21.43 gallons of gasoline consumed. Multiplying by $3.75 gives a total fuel cost of $80.36 for the round trip — that is your budget figure for the gas line item, before tolls, food, and lodging. Cost per mile works out to $0.134, which is below the IRS 2026 standard mileage rate of $0.70 per mile for business travel (because the IRS rate is designed to cover depreciation, insurance, and maintenance in addition to fuel — useful context when you are calculating a mileage reimbursement claim). Multiplying the 21.43 gallons by the EPA tailpipe emission factor of 8.887 kg CO2 per gallon gives 190.4 kg of CO2 released over the trip — roughly 4 percent of the 4.6 metric tons the EPA estimates a typical passenger vehicle emits in a full year. For comparison, a one-way flight from Chicago O'Hare to St. Louis Lambert is roughly 290 miles and emits about 90 kg of CO2 per passenger on a typical regional jet at standard load factors, which makes the round-trip flight comparable to the round-trip drive on emissions but several times faster — useful framing if you are weighing the two options. The dollar figure ($80.36) is the one to write into the trip spreadsheet; the cost-per-mile figure ($0.134) is the one to use the next time you are comparing this car against a more fuel-efficient one at the dealership.

distance600
fuel Economy28
fuel Price3.75
unitsus

Frequently asked questions.

How do you calculate the fuel cost of a road trip?
Divide the trip distance by your vehicle's fuel economy to get the gallons (or liters) of fuel you will burn, then multiply by the pump price. For example, a 450-mile trip in a car rated at 30 MPG at a gas price of $3.60 per gallon uses 450 / 30 = 15 gallons and costs 15 × $3.60 = $54.00. The same formula in metric units is (distance in km × L/100km) / 100 to get liters, then multiply by the per-liter price. The two-step structure is identical; only the units change.
What is the difference between MPG and L/100km, and how do I convert between them?
MPG (miles per gallon) measures distance per unit of fuel — higher is better. L/100km (liters per 100 kilometers) measures fuel per unit of distance — lower is better. They are reciprocal, not linear, so the conversion is MPG = 235.215 / (L/100km), and equivalently L/100km = 235.215 / MPG. A car rated at 30 MPG consumes about 7.84 L/100km; a car rated at 7.0 L/100km gets about 33.6 MPG. Because the relationship is reciprocal, equal-percentage improvements look different on the two scales — a 5-MPG improvement saves much more fuel at the low end of the MPG scale than at the high end, which is the entire reason the EPA started publishing gallons-per-100-miles on US window stickers in 2013.
Why does the EPA window sticker also show 'gallons per 100 miles'?
Because MPG is misleading for comparison shopping at the low end of the scale. Replacing a 14-MPG SUV with a 17-MPG SUV saves 12.6 gallons over 1,000 miles. Replacing a 33-MPG sedan with a 50-MPG hybrid saves only 10.3 gallons over the same 1,000 miles — even though the headline MPG improvement is 17 mpg in the second case versus 3 mpg in the first. The 'gallons per 100 miles' (or L/100km outside the US) inverts the ratio so fuel savings track linearly with the rating change, which gives consumers a more honest signal. The EPA published the rationale in its 2011 fuel-economy label redesign documentation; the metric scale used everywhere else in the world has had this property by default since the 1970s.
How accurate is the EPA fuel economy rating for real-world driving?
The EPA combined rating is measured on a dynamometer using a standardized test cycle (city, highway, US06 high-speed, SC03 air-conditioning, and a cold-start cycle), then weighted to approximate a 'typical' driver. Independent on-road testing — by Consumer Reports, Edmunds, and academic groups — consistently finds that real-world MPG is 5–15% below the EPA combined rating for most vehicles, and as much as 25–30% below the EPA highway rating during sustained 80-mph driving with luggage and a roof box. The EPA highway rating is measured at an average speed of 48 mph, which is well below interstate cruise speed and the single largest source of real-world discrepancy. For long road trips, derate the EPA combined rating by about 10% to get a realistic figure for the calculator.
How does this calculator handle hybrids and electric vehicles?
For a conventional hybrid (Prius, Insight, RAV4 Hybrid), the EPA combined MPG rating already blends the electric and gasoline portions of the powertrain into a single number — use it directly. For a plug-in hybrid (PHEV) running on gasoline-mode only, use the gasoline-mode MPG; for the electric-only portion, the calculator's gasoline math does not apply because there is no fuel burned. For a pure EV, use a dedicated EV cost-per-mile calculator: divide kWh per 100 miles (the EPA window-sticker figure) by 100 to get kWh per mile, then multiply by your electricity price per kWh. The EPA's MPGe rating converts the EV's electricity consumption to a gasoline-equivalent using a 33.7 kWh = 1 gallon energy reference, which is useful for cross-shopping but is not the same as cost per mile, since electricity is usually cheaper per energy unit than gasoline.
How much CO2 does a gallon of gasoline release, and where does the 8.887 kg figure come from?
8.887 kg CO2 per gallon of gasoline is the EPA's published tailpipe emission factor, derived from the carbon content of typical retail gasoline (about 2,421 grams of carbon per gallon) and the molecular weight ratio of CO2 to carbon (44/12 = 3.67). When a gallon of gasoline is fully combusted, essentially all the carbon ends up as CO2; the small adjustment for unburned carbon and CH4/N2O emissions is included in the 8.887 figure published in 'Greenhouse Gas Emissions from a Typical Passenger Vehicle' (EPA Office of Transportation and Air Quality). In metric units this works out to 2.348 kg CO2 per liter. Diesel is about 14 percent higher (10.18 kg/gal or 2.69 kg/L) because diesel fuel has a higher carbon density. These factors are essentially fixed by chemistry — they do not vary with vehicle make, model, or driving style. Burning less fuel is the only way to reduce trip-level CO2.
What is a reasonable assumption for the current US national average gasoline price?
Check the EIA's weekly Gasoline and Diesel Fuel Update — it is published every Monday afternoon and is the authoritative US source for the national average retail price of regular, midgrade, premium, and diesel grades, plus per-PADD (regional) breakdowns. As of mid-2026 the national average for regular has been hovering around $4.40 to $4.60 per gallon, but the calculator's default of $3.50 is intentionally conservative for trip-budgeting (low estimates are punishing; high estimates leave you with a surprise refund). Use GasBuddy or AAA's Gas Prices page for a station-level figure along your actual route — corridor prices on I-95 in New Jersey can be more than a dollar a gallon below California pump prices on the same day.
How do I compare driving versus flying or taking the train for the same trip?
Compute fuel cost per mile in this calculator, multiply by the round-trip driving distance, and add an estimate for tolls, parking, and food. Compare against the all-in airfare plus baggage plus airport transit plus food. For CO2 comparison, a typical short-haul flight emits about 0.25 to 0.30 kg of CO2 per passenger-mile at standard load factors (ICAO and BTS data); a single-occupant car at 28 MPG emits about 0.32 kg of CO2 per mile. Multiply the per-passenger number by the number of people in the car for the more honest emissions comparison — a four-person road trip in a 28-MPG car is roughly 0.08 kg of CO2 per passenger-mile, which is dramatically lower than the same four people flying. Trains in the Northeast Corridor are usually lowest of all per passenger-mile, but routing and frequency make them feasible for only a small subset of US trips.
Can I use this to calculate my IRS mileage deduction for business driving?
The calculator computes pure fuel cost; the IRS standard mileage rate for business use is broader — it bundles fuel, oil, maintenance, tires, depreciation, and insurance into one per-mile figure ($0.70 per mile for 2026, per IRS Notice 2025-X). If you are claiming the standard mileage rate, you do not need this calculator at all — multiply your business miles by the IRS rate. If you are claiming actual expenses (which requires keeping receipts), this calculator's fuel-cost output is one line item among several. The IRS rate is recalibrated annually based on AAA and EIA cost-of-driving data, so cross-reference IRS Notice / Revenue Procedure for the year you are filing.
What happens to my trip cost if gas prices spike?
Linearly. Total fuel cost equals gallons burned times price per gallon, so a 20 percent increase in pump price increases your trip cost by exactly 20 percent — the calculator's structure makes this transparent. Historically the EIA has documented gasoline-price swings of more than 30 percent inside a single calendar year (notably 2022, 2008, and 1979), driven mostly by crude oil prices, refining capacity, and seasonal blend changes (summer blends are typically 10–20 cents per gallon higher than winter blends because of stricter Reid Vapor Pressure rules). For long-trip budgeting, run the calculator at three prices: today's pump price, today's price plus 15 percent (mild spike), and today's price plus 30 percent (severe spike). The dollar spread is your honest budgeting range.

References& sources.

  1. [1]U.S. Environmental Protection Agency. Greenhouse Gas Emissions from a Typical Passenger Vehicle. Office of Transportation and Air Quality. The authoritative source for the 8.887 kg CO2 / gallon gasoline tailpipe emission factor and the 4.6 metric tons per vehicle per year aggregate estimate.
  2. [2]U.S. Energy Information Administration. Gasoline and Diesel Fuel Update (weekly retail price report, published every Monday). The authoritative US source for current national-average and regional pump prices used to calibrate the calculator's default values.
  3. [3]U.S. Department of Energy and U.S. Environmental Protection Agency. Fueleconomy.gov — official EPA fuel-economy ratings for every US-market vehicle since 1984, including combined, city, highway, and (since 2013) gallons-per-100-miles figures.
  4. [4]U.S. Environmental Protection Agency. Detailed Test Information — Federal Test Procedure (FTP-75), Highway Fuel Economy Test (HWFET), US06, SC03, and Cold-Temperature Cycle. The standardized lab procedures behind every EPA window-sticker MPG rating.
  5. [5]U.S. Bureau of Transportation Statistics. National Transportation Statistics — energy intensity and CO2 emissions per passenger-mile by mode (car, light truck, transit bus, rail, air). The standard reference for cross-mode emissions and energy comparisons.
  6. [6]Internal Revenue Service. Standard Mileage Rates (Notice / Revenue Procedure, issued annually). The official IRS per-mile rate covering fuel, depreciation, insurance, and maintenance for business, medical, and charitable driving — used for the cost-per-mile context discussion.
  7. [7]Sivak, M. & Schoettle, B. (2017). Eco-driving: Strategic, Tactical, and Operational Decisions of the Driver That Improve Vehicle Fuel Economy. Transportation Research Institute, University of Michigan, Report UMTRI-2017-7. Peer-reviewed analysis of the gap between EPA-rated and real-world fuel economy, and of the driving behaviors that close it.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 313 calculators remain free
  • No billing is enabled
Coming soon