Numbrik

Gas Cost Calculator

Estimate how much gas a road trip will cost. Enter the distance, your car's fuel economy and the price per gallon, choose one way or round trip, and split the cost between passengers.

Loading calculator…

How do you calculate gas cost for a trip?

Fuel used is the distance divided by your miles per gallon. Multiply that by the price per gallon to get the cost.

How to use the Gas Cost Calculator

  1. Enter the trip distance (check a map app for the miles).
  2. Enter your car's fuel economy in MPG.
  3. Enter the gas price per gallon.
  4. Choose round trip if you're coming back, and the number of people sharing.

How it works

Fuel used is the distance divided by your miles per gallon. Multiply that by the price per gallon to get the cost. In metric, multiply the distance by your litres per 100 km and divide by 100.

Real-world mileage is usually lower than the sticker figure: highway driving at 75–80 mph, a loaded car, roof boxes, cold weather and air conditioning can all cut MPG by 10–25%. For a safe budget, knock a few MPG off your car's rating.

Formula

Gallons = miles ÷ MPG
Cost = gallons × price per gallon
Metric: litres = km × L/100 km ÷ 100

Example

A 300-mile trip in a car that gets 28 MPG, with gas at $3.10 a gallon: 300 ÷ 28 = 10.7 gallons × $3.10 = $33.21 one way, or $66.43 for the round trip. Split between 3 people, that's $22.14 each.

Gas cost per 100 miles

MPG$2.75/gal$3.00/gal$3.25/gal$3.50/gal$4.00/gal$4.50/gal
15$18.33$20.00$21.67$23.33$26.67$30.00
20$13.75$15.00$16.25$17.50$20.00$22.50
25$11.00$12.00$13.00$14.00$16.00$18.00
30$9.17$10.00$10.83$11.67$13.33$15.00
35$7.86$8.57$9.29$10.00$11.43$12.86
40$6.88$7.50$8.12$8.75$10.00$11.25
50$5.50$6.00$6.50$7.00$8.00$9.00

Frequently asked questions

How do I calculate gas cost for a trip?

Divide the miles by your car's MPG to get gallons, then multiply by the price per gallon. 450 miles at 30 MPG and $3.20 a gallon is 15 × $3.20 = $48.

How do I find my car's real MPG?

Fill the tank, reset the trip meter, drive normally, then fill up again. Divide the miles driven by the gallons it took to refill.

How much is gas money for a ride?

A fair share is the trip's fuel cost divided by everyone in the car, including the driver. Some people add a little extra for wear and tear on the car.

Does driving faster use more gas?

Yes. Most cars are most efficient at around 50 mph or lower. Above that, air resistance rises quickly and fuel economy falls, so slowing from 80 to 65 mph on the highway can noticeably cut your gas bill.

Last reviewed December 3, 2026. Spotted an error? Tell us.

Add this calculator to your website

Free for blogs, schools and businesses. Copy the code and paste it into your page (in WordPress, use a Custom HTML block). Please keep the credit link.