Skip to content

Free driving tool

Gas cost calculator

Estimate trip fuel cost from driving miles, your vehicle's MPG, and an editable gas price. Enter miles or look up a driving route; no account needed.

Plan your trip

Fuel economy (MPG)

Not sure? Calculate your actual MPG from your fill-ups.

Enter the price per gallon you expect to pay. Prices vary along your route.

Weekly gas prices

EIA retail averages per gallon, not live station prices. Prices may vary along your trip.

Loading gas prices…

How is the gas cost calculated?

Enter the miles you expect to drive, or look up a road route between two locations rather than using straight-line miles. Divide those miles by your vehicle's miles per gallon to estimate gallons, then multiply by your expected price per gallon.

For example, a 300-mile trip in a car averaging 30 MPG uses about 10 gallons. At $3.50 per gallon, that is approximately $35 in fuel. EPA ratings and real-world MPG can differ; your own recent MPG is usually a better input. You can look up an EPA combined estimate by year, make, model, and engine above, then adjust it.

What should I use for MPG and gas price?

For a trip mostly on highways, your actual highway MPG may differ from the EPA combined figure. If you know how many miles you drove between fill-ups, use our gas mileage calculator to measure your own MPG. Then bring that result back here.

Choose regular, midgrade, premium, or diesel for dated EIA weekly averages—not live station prices. For a mapped route, prices sampled at equal driving-distance intervals give an approximate route-weighted estimate. It cannot predict where you will actually buy fuel. You can also enter your own price. Tolls, parking, and vehicle wear are not included.

How much gas will a round trip use?

Turn on Round trip to double the estimated one-way driving distance. The calculator then divides the total miles by your MPG to estimate gallons and multiplies by the price per gallon. Detours and different return routes can change the total.

Planning vehicle maintenance too? Explore Swerve's service estimates.