Gas price comparison calculator

Check whether a cheaper station covers the fuel cost of driving extra miles to reach it.

Your inputs

Start with the example values or enter your own numbers.

US gal
$/US gal
$/US gal
mi
mpg

Estimate

—

How to use this calculator

Enter the same fill quantity at both stations. Count only the extra miles beyond the trip you already planned.

Formula

Net savings = gallons purchased × price difference − extra miles ÷ mpg × other station price.

Worked example

Saving 20 cents on 12 gallons saves $2.40 at the pump. A 6-mile detour at 30 mpg and $3.50 per gallon uses $0.70, leaving $1.70.

Does the result include my time?

It covers fuel only. Time, vehicle wear and traffic can outweigh a small positive saving.

FuelEconomy.gov · Fuel costs and savings

What does MPG mean?

Miles per gallon tells you how far the car travels on one U.S. gallon. At 30 MPG, a 300-mile drive needs about 10 gallons.