Skip to content
Outilix: all your free online tools, one click away, with Kroma the chameleon

Gas cost calculator for your trip

Kroma

Divide the miles you will drive by your car's miles per gallon (mpg) to get the gallons needed, then multiply by the price per gallon. A 200-mile trip at 28 mpg uses 7.14 gallons, and at $3.40 a gallon that is $24.29. Check round trip and enter the number of riders to split the cost.

  • ✅ Free
  • 🔒 No sign-up
  • 📱 Works on mobile
  • ⚡ Instant results
Loading the tool…

Estimate only. Real fuel economy changes with speed, load, weather and terrain: measure it over several fill-ups for a reliable figure.

🔒 Everything runs in your browser. Your data and files never leave your device.

Gas cost formulas

\[ \text{gallons needed} = \dfrac{\text{miles}}{\text{mpg}} \]

\[ \text{trip cost} = \text{gallons} \times \text{price per gallon} \]

\[ \text{your mpg} = \dfrac{\text{miles driven}}{\text{gallons added at the fill-up}} \]

To measure your own mpg, fill the tank, reset the trip odometer, drive, then fill up again. Divide the miles on the trip meter by the gallons the pump added.

Fuel economy and cost per mile

Cost per mile is the price per gallon divided by mpg. It shows how much a better car saves.

\[ \text{cost per mile} = \dfrac{\text{price per gallon}}{\text{mpg}} \]

mpgCost per mile at $3.50Cost of 1,000 miles
20$0.175$175
30$0.117$117
40$0.088$88

Switch to metric to see liters and L/100 km: L/100 km = 235.215 ÷ mpg, so 28 mpg is 8.4 L/100 km.

3 real-life examples

1

A 200-mile weekend drive at 28 mpg

Gallons: \( \dfrac{200}{28} = 7.14 \). Cost at $3.40 a gallon: \( 7.14 \times 3.40 = \) $24.29.

2

A 1,200-mile road trip, round trip, 4 people

Total distance 2,400 miles at 30 mpg is 80 gallons. At $3.50, that is $280, or $70 per person.

3

Finding your real mpg

You drove 280 miles and the pump added 10 gallons: \( \dfrac{280}{10} = \) 28 mpg, or 8.4 L/100 km.

Frequently asked questions

How do I calculate gas cost for a trip?
Divide the trip miles by your mpg to get gallons, then multiply by the price per gallon. For a 300-mile trip at 25 mpg and $3.50, that is 12 gallons and $42.
How do I find my car's real mpg?
Fill the tank, note the odometer, drive, then fill up again. Divide the miles driven by the gallons the pump added. The "My fuel economy" mode does the division.
Is the cost doubled for a round trip?
Yes. Check "Round trip" and the distance is doubled in the calculation. The total can then be split among everyone riding.
Does this include tolls and wear on the car?
No, only fuel. For a fuller cost of driving, use the mileage reimbursement calculator, whose IRS rate also covers depreciation, insurance and repairs.
How do I convert mpg to L/100 km?
Divide 235.215 by the mpg. A car getting 30 mpg uses 7.84 L/100 km. Use the units switch to see both.

How we calculate

Share this page