Gas cost calculator

Enter your car’s mpg, the trip distance and the price per gallon to see what the drive costs in gas, how many gallons you need and each person’s share. Prefer liters and kilometers? Switch the units.

mpg
miles
per gallon
Example value – enter the current price at the pump
The cost is split evenly

Result

Total fuel cost
US$23.33
Fuel needed
6.67 gallons
Distance driven
200 miles
Cost per mile
US$0.12

How it is calculated

How to calculate gas cost for a trip

The fuel cost of a trip depends on three numbers: distance, fuel economy and the price of gas.

Formula: gas cost = miles ÷ mpg × price per gallon

Miles divided by mpg gives the gallons you burn. Divide the total by the number of people to get each person’s share.

Example: a road trip split two ways

Two friends drive 200 miles to a lake and back. The car gets 30 mpg, and in this example gas costs $3.50 a gallon.

mpg, L/100 km and km/L

US window stickers show miles per gallon; most other countries use liters per 100 km, some kilometers per liter. The calculator converts with the exact definitions from NIST: 1 US gallon = 3.785411784 liters and 1 mile = 1.609344 km. For a quick conversion, L/100 km ≈ 235.215 ÷ mpg – 30 mpg is about 7.84 L/100 km. Note that the imperial (UK) gallon is larger than the US gallon, so UK mpg figures are not the same as US mpg; for UK trips switch to metric and enter the price per liter.

What the calculator does not include

The result is the cost of fuel only – not tolls, parking, maintenance, tires, insurance or depreciation, so it is not the same as a mileage reimbursement rate. Real-world fuel economy varies with speed, traffic, load and weather; use the average from your trip computer or your fill-up log for the best estimate.

Frequently asked questions

How do I calculate gas cost for a road trip?

Divide the miles by your car’s mpg and multiply by the price per gallon. 200 miles at 30 mpg and $3.50 a gallon is 6.67 gallons, or $23.33.

How do I split gas money between passengers?

Divide the total fuel cost by the number of people sharing it – whether the driver counts is up to you. A $46.67 round trip split two ways is $23.33 each.

How do I work out my car’s mpg?

Fill the tank, reset the trip meter, and at the next fill-up divide the miles driven by the gallons you put in. 330 miles on 11 gallons is 30 mpg.

What is the gas cost per mile?

Price per gallon ÷ mpg. At $3.50 a gallon and 30 mpg, each mile costs about $0.12 in gas.

Can I use kilometers and liters?

Yes. Set the units to metric and enter liters per 100 km (or km per liter), kilometers and the price per liter. The calculator then shows liters and the cost per 100 km.

Does it include tolls and wear and tear?

No, only fuel. Tolls, parking, maintenance and depreciation come on top when you look at the full cost of driving.

Sources and legal basis

As of:

Related tools