Lelifi·tools

Fuel Cost Per Mile Calculator

At $3.50 a gallon, a car getting 30 MPG costs 11.7 cents per mile, or $1,400 over 12,000 miles. Push the pump price to $4.50 and the same car costs 15.0 cents a mile, or $1,800 a year. Divide the price per gallon by your MPG to run it for your own car.

Enter the price of gas and your car's MPG to see exactly what each mile costs in fuel, then turn it into the cost of a trip or a whole year of driving.

By the Lelifi editors ·

Key takeaways

Fuel cost per mile at $3.50 a gallon17.5¢11.7¢7.0¢20 MPG truck (17.5¢)30 MPG sedan (11.7¢)50 MPG hybrid (7.0¢)
At $3.50 a gallon, a 20 MPG truck costs 17.5¢ a mile and a 50 MPG hybrid just 7.0¢.
The math behind cost per mile$3.50 gas price per gallon/ 30 MPG miles per gallon= $0.1167 cost per mile= 11.7 cents per milex 12,000 miles = $1,400 a yearDivide the price of a gallon by the miles your car gets on that gallon.
Cost per mile is one division: price per gallon divided by MPG.
On this page
  1. What cost per mile means
  2. Worked example: $3.50 gas in a 30 MPG car
  3. Fuel cost per mile at a glance
  4. Fuel is only part of what a mile costs
  5. How to lower your cost per mile
  6. MPG, gallons and the units that trip people up

What cost per mile means

Cost per mile is the price of driving one mile, and the fuel part of it is one division: the price of a gallon divided by the miles your car gets on that gallon.

cost per mile = price per gallon ÷ MPG

At $3.50 a gallon and 30 MPG, that is 3.50 ÷ 30 = $0.1167, or 11.7 cents per mile. Flip it around and you get gallons per mile: 1 ÷ 30 = 0.0333 gallons per mile, so a 100-mile trip burns 3.33 gallons and costs 3.33 × $3.50 = $11.67.

The number is useful because it makes cars comparable at a glance. A 20 MPG truck at the same $3.50 costs 17.5 cents per mile, half a gallon of gas for every 10 miles, while a 50 MPG hybrid costs just 7.0 cents. Over 12,000 miles a year that gap is $1,260: the truck spends $2,100 on fuel, the hybrid $840. The calculator above runs this for whatever price and MPG you enter, and the official fuel-economy figures for every model are published at fueleconomy.gov, run by the EPA and the Department of Energy.

Worked example: $3.50 gas in a 30 MPG car

Put the default numbers through the calculator step by step.

Now change one variable. Bump the pump price to $4.50 and the same car costs 15.0 cents a mile, a year of driving jumps to $1,800, $400 more for the same miles. Drop to a 40 MPG car at $3.50 and the cost falls to 8.75 cents, or $1,050 a year. Notice that MPG and gas price pull in opposite directions: a 33% better MPG saves about the same as a 33% cheaper gallon.

Fuel cost per mile at a glance

Find your MPG down the left and the gas price across the top. Every cell is the fuel cost of one mile in cents.

Your MPG$3.00/gal$3.50/gal$4.00/gal$4.50/gal$5.00/gal
15 MPG20.0¢23.3¢26.7¢30.0¢33.3¢
20 MPG15.0¢17.5¢20.0¢22.5¢25.0¢
25 MPG12.0¢14.0¢16.0¢18.0¢20.0¢
30 MPG10.0¢11.7¢13.3¢15.0¢16.7¢
35 MPG8.6¢10.0¢11.4¢12.9¢14.3¢
40 MPG7.5¢8.8¢10.0¢11.2¢12.5¢
50 MPG6.0¢7.0¢8.0¢9.0¢10.0¢

Two rows worth reading together: at $4.00 a gallon, going from 20 MPG to 40 MPG halves your cost per mile from 20.0 cents to 10.0 cents. And at a fixed 30 MPG, the difference between $3.00 and $5.00 gas is 10.0 cents versus 16.7 cents per mile, a 67% swing driven entirely by the pump. National average prices move every week; the US Energy Information Administration tracks them, and in late 2026 the national average for regular was about $4.35 a gallon.

Fuel is only part of what a mile costs

Fuel is the visible cost, but it is not the whole cost of driving. The IRS publishes a rate that bundles everything a business mile costs, and for 2026 it is 72.5 cents per mile from January 1 to June 30 and 76 cents per mile from July 1 to December 31. Of that, the IRS treats 35 cents per mile as depreciation alone. Compare that with 11.7 cents of actual fuel and the point is obvious: gas is roughly a sixth of what a mile costs.

Cost of a mile (typical car)Approx. per mile
Fuel10-20¢
Depreciation15-35¢
Insurance8-15¢
Maintenance and repairs6-12¢
Registration, taxes, fees2-5¢

Those non-fuel figures are estimates that vary hugely by car, age and state, but the ordering is stable: depreciation usually costs more per mile than gasoline does. The IRS standard mileage rates page is the easiest authoritative reference for an all-in per-mile number, and it is updated every year.

How to lower your cost per mile

You control two of the three levers, the price you pay per gallon and how efficiently you drive. The third, distance, is often the biggest.

Worked example: a driver at 30 MPG and $3.50 gas who improves to 34 MPG saves 1.37 cents per mile, which is $164 a year over 12,000 miles. Combine that with buying gas 20 cents cheaper and the same driver keeps about $244 a year, no new car required.

MPG, gallons and the units that trip people up

Two unit traps make cost-per-mile answers come out wrong.

Worked example: a car that does 30 MPG uses 100 ÷ 30 × 3.785 = 12.6 L/100km. Its cost per mile at $3.50 is 11.7 cents. Convert the same car to a UK-style figure and it looks like 36 imperial MPG, a different number for the same car, purely because the gallon is bigger. When you compare costs, keep the gallon and the mile on the same system, or the answer will not mean what you think.

Frequently asked questions

How do I calculate cost per mile for gas?

Divide the price of a gallon by your car's MPG. At $3.50 a gallon and 30 MPG that is 3.50 ÷ 30 = $0.1167, or about 11.7 cents per mile.

What does it cost per mile to drive at $4.00 a gallon?

At $4.00 a gallon a 25 MPG car costs 16.0 cents a mile, a 30 MPG car costs 13.3 cents, and a 40 MPG car costs 10.0 cents.

How much is 15 cents a mile for a 40 mile trip?

15 cents a mile times 40 miles is $6.00. A round trip of 80 miles at the same rate costs $12.00.

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

At 11.7 cents per mile (that is $3.50 gas in a 30 MPG car), 1,000 miles costs about $116.70 in fuel.

Is fuel cost per mile the same as the IRS mileage rate?

No. Fuel is only one part. The 2026 IRS business rate is 72.5 cents per mile from January to June and 76 cents per mile from July to December, that covers fuel, wear, insurance and depreciation, not just gas.

What is 30 MPG in cost per mile at $3.50 gas?

30 MPG at $3.50 a gallon is 11.7 cents per mile, or $1,400 of fuel over 12,000 miles.

How much does gas cost for 12,000 miles a year?

It depends on MPG. A 20 MPG car at $3.50 a gallon spends $2,100 a year; a 30 MPG car spends $1,400; a 50 MPG hybrid spends $840.

Does driving faster cost more per mile?

Yes. Fuel economy drops sharply above about 50 mph, every 5 mph over 50 is roughly like paying 10 to 15 cents more per gallon, so the cost per mile climbs with speed.

How do I turn cost per mile into cost per gallon?

Multiply cost per mile by MPG. 11.7 cents per mile times 30 MPG gives 350 cents, which is the $3.50 you paid for the gallon.

What is a good cost per mile for fuel?

Under about 10 cents per mile is efficient (a 40 MPG car at $4.00 gas), 10 to 15 cents is typical for a modern sedan, and over 20 cents is a large truck or SUV.

Does the calculator include insurance and maintenance?

No. It covers fuel only, because that is the number that changes with the price at the pump and your MPG. Insurance, tires, repairs and depreciation are separate and mostly fixed per year.

How much does an EV cost per mile compared with gas?

An EV driven at about 3.5 miles per kWh on 15 cent electricity costs roughly 4.3 cents per mile, far below a 30 MPG gas car at 11.7 cents, though you also have to weigh the higher purchase price.

Spotted a wrong number or a broken result?

More Automotive tools

See all Automotive tools

Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.