Fuel Cost Calculator

Enter the miles, your car's mpg and the gas price to see what a trip costs in fuel, per person and per mile, and what you spend in a month.

Runs in your browser; nothing you type is sent anywhere. · Updated

How to use the fuel cost calculator

  1. Enter the distance (tick round trip to double it), your car's mpg and the gas price.
  2. Enter how many people are splitting the cost.
  3. Optionally compare another car's mpg and enter your monthly miles.

The fuel cost formula

Fuel cost = miles ÷ mpg × price per gallon

Example: a 350-mile trip in a 28 mpg car with gas at $3.25: 350 ÷ 28 = 12.5 gallons × $3.25 = $40.63, or 11.6¢ a mile. Driving 1,100 miles a month costs about $128 in gas, $1,532 a year.

Cost per mile by mpg

MPG At $3.00/gal At $3.50/gal At $4.00/gal
20 15.0¢ 17.5¢ 20.0¢
25 12.0¢ 14.0¢ 16.0¢
30 10.0¢ 11.7¢ 13.3¢
40 7.5¢ 8.8¢ 10.0¢
50 6.0¢ 7.0¢ 8.0¢

Going from 20 to 30 mpg saves more per mile than going from 30 to 50, because fuel use falls with 1 ÷ mpg.

Fuel vs. the full cost of driving

Gas is only part of the cost. The IRS standard mileage rate, meant to cover gas, maintenance, insurance and depreciation, is 76¢ a mile for July–December 2026 (72.5¢ for January–June). Use it for business mileage deductions and reimbursement, and as a reality check when comparing driving with flying or renting.

Getting better mileage

  • Slow down: fuel economy drops quickly above about 50–60 mph.
  • Keep tires properly inflated and the roof rack off when not in use.
  • Accelerate gently and use cruise control on highways.
  • Plan errands into one trip; cold engines use more fuel.

Thinking about an EV? Compare costs with the EV vs. gas calculator.

Frequently asked questions

How do I calculate gas cost for a trip?

Divide the miles by your car's mpg, then multiply by the price per gallon.

How much does it cost to drive 100 miles?

At 25 mpg and $3.25 a gallon, $13.

How do I find my real mpg?

Fill the tank, reset the trip meter, drive normally, then refill and divide the miles driven by the gallons added.

Should I split gas money evenly?

A common approach is splitting fuel and tolls evenly among everyone in the car; some drivers also add a share of wear using a per-mile figure.