~ / calculator / fuel-cost-calculator

⛽ Gas Cost & MPG Calculator

Enter distance, MPG and gas price to see trip, monthly and yearly fuel cost — or work out your car’s real MPG from a fill-up.

input
Calculate
Units
$/gal
mi
One way / round trip
MPG
days
result
결과
-

How to use the gas cost calculator

Trip & monthly cost works out how much gas a drive costs from the distance, your car's fuel economy and the price of gas, then scales it to a month and a year. For a commute, enter the one-way distance, choose Round trip, and set the number of driving days (about 22 for a five-day work week). For a single road trip, set days to 1.

Actual MPG calculates your car's real fuel economy from the miles driven and the gallons you put in, and compares it with the EPA rating if you enter one. Switch to Metric to use kilometers, liters and km/L — the numbers you already typed are converted for you.

The $3.50 per gallon default is only an example, not today's gas price. Prices vary by state, station, day and grade, so type in what you actually pay. The U.S. Energy Information Administration (EIA) publishes weekly average prices, and apps like GasBuddy show local stations.

Gas cost formula

gallons = miles ÷ MPG
trip cost = gallons × price per gallon
monthly cost = trip cost × driving days

Example: a 15-mile commute each way (30 miles a day), 22 days a month, in a car that gets 25 MPG with gas at $3.50:

Per mile, cost per mile = price per gallon ÷ MPG — here $3.50 ÷ 25 = 14 cents a mile. That is fuel only; the IRS standard mileage rate is much higher because it also covers depreciation, insurance and maintenance.

Monthly gas cost by miles and MPG (at $3.50/gal, example)

Miles per month20 MPG25 MPG30 MPG40 MPG
500 mi$88$70$58$44
1,000 mi$175$140$117$88
1,500 mi$262$210$175$131
2,000 mi$350$280$233$175

A 40 MPG car spends exactly half as much on gas as a 20 MPG car for the same miles. Before switching cars, plug in your own monthly mileage to see what the difference is worth.

How to calculate your real MPG (fill-up method)

  1. Fill the tank and reset your trip odometer to zero.
  2. Drive normally. The more of the tank you use, the more accurate the result.
  3. Fill up again and note the gallons it took and the miles on the trip odometer.
  4. MPG = miles driven ÷ gallons added

Example: 350 miles on 12.5 gallons = 28.0 MPG (8.4 L/100 km). Pumps click off at slightly different points, so averaging two or three fill-ups at the same station gives a better number. Dashboard MPG readouts are estimates and are often a little optimistic.

MPG, km/L and L/100 km

The US uses miles per gallon (higher is better). Korea and Japan use km/L, while Europe, Canada and Australia use liters per 100 km (lower is better). L/100 km = 235.215 ÷ MPG and km/L = MPG × 0.4251. So 25 MPG = 9.4 L/100 km = 10.6 km/L. Note that a UK (imperial) gallon is 20% bigger than a US gallon, so UK MPG figures look higher for the same car.

Why real MPG is lower than the EPA rating

This calculator gives an estimate from the distance, fuel economy and price you enter. The default price is an example and may not match current prices. Tolls, parking and maintenance are not included. Nothing you enter leaves your browser.

FAQ

How much does a 30-mile round-trip commute cost in gas?
At 25 MPG and $3.50 a gallon (example), 30 miles uses 1.2 gallons, or $4.20 a day. Over 22 working days that is about $92 a month and $1,109 a year.
How do I calculate gas cost for a road trip?
Divide the total miles by your car’s MPG to get gallons, then multiply by the price per gallon. A 500-mile trip at 30 MPG and $3.50 costs 500 ÷ 30 × 3.50 ≈ $58.
How do I calculate my car’s actual MPG?
Fill the tank, reset the trip odometer, drive, then fill up again. Divide the miles driven by the gallons it took to refill: 350 miles ÷ 12.5 gallons = 28 MPG.
How do I convert MPG to L/100 km?
Divide 235.215 by the MPG. 25 MPG is about 9.4 L/100 km, and 40 MPG is about 5.9 L/100 km.
What is the cost per mile to drive?
For fuel alone, divide the price per gallon by your MPG: $3.50 ÷ 25 MPG = $0.14 per mile. Total ownership cost per mile is higher once insurance, maintenance and depreciation are included.
Is the default gas price current?
No. $3.50 per gallon is only an example to show how the math works. Enter the price you pay; EIA and GasBuddy publish current averages.

Related tools