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
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.
- 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.
- 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).
- 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.
- 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.
- 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.
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.
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.
Frequently asked questions.
How do you calculate the fuel cost of a road trip?
What is the difference between MPG and L/100km, and how do I convert between them?
Why does the EPA window sticker also show 'gallons per 100 miles'?
How accurate is the EPA fuel economy rating for real-world driving?
How does this calculator handle hybrids and electric vehicles?
How much CO2 does a gallon of gasoline release, and where does the 8.887 kg figure come from?
What is a reasonable assumption for the current US national average gasoline price?
How do I compare driving versus flying or taking the train for the same trip?
Can I use this to calculate my IRS mileage deduction for business driving?
What happens to my trip cost if gas prices spike?
References& sources.
- [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]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]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]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]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]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]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