How to calculate gas cost for a trip
Divide the distance by your car’s miles per gallon to get gallons used, then multiply by the price per gallon. A 300-mile drive in a car that gets 28 mpg uses 300 ÷ 28 = 10.7 gallons; at $4.28 a gallon that is about $45.86, or roughly 15 cents a mile.
In metric units, multiply the distance by L/100 km and divide by 100: 500 km at 7.5 L/100 km uses 37.5 litres, which costs 67.50 at 1.80 per litre.
Converting mpg and L/100 km
The two scales run in opposite directions — higher mpg is better, lower L/100 km is better. To convert, divide 235.215 by either number: 28 mpg ≈ 8.4 L/100 km, and 7.5 L/100 km ≈ 31.4 mpg (US gallons).
Getting a realistic estimate
EPA window-sticker ratings are measured in controlled tests, and many drivers see lower numbers on highways above 70 mph, in winter or with heavy loads. Your car’s trip computer or a fill-up-to-fill-up calculation (miles driven ÷ gallons added) gives the most accurate figure for your own driving.
Gas prices change every week
The U.S. Energy Information Administration publishes average retail prices every Monday; the week of October 19, 2026 averaged $4.284 for regular gasoline and $6.276 for diesel. Prices vary widely by state and station, so enter what you actually expect to pay along your route. For electric cars, use the EV charging cost calculator instead.
FAQ
How do I calculate fuel cost?
Distance ÷ mpg × price per gallon, or distance × L/100 km ÷ 100 × price per litre.
How much does it cost to drive 100 miles?
At 28 mpg and $4.28 a gallon, about $15.29.
How do I convert mpg to L/100 km?
Divide 235.215 by the mpg figure. 30 mpg is about 7.8 L/100 km.
Should I use the EPA rating?
It is a good starting point, but your real-world average from fill-ups is more accurate.
How do I split gas money with friends?
Enter the number of people sharing the trip and the calculator divides the total cost evenly.