Gas Mileage Calculator
Free gas mileage calculator to find your miles per gallon (MPG) and estimate trip fuel cost. Perfect for road trip planning and tracking average MPG over time.
Total distance traveled for this tank/trip
Amount of fuel used over that distance
In your local currency/unit — used to estimate trip fuel cost
Your Fuel Economy
MPG Comparison
What Is the Gas Mileage Calculator?
The Gas Mileage Calculator is a free online tool that calculates your vehicle's fuel economy in miles per gallon (MPG) based on the distance you drove and the fuel you used. It also estimates your trip fuel cost if you provide a price per gallon, making it a handy tool for road trip budgeting, comparing vehicles, or simply tracking how efficiently your car is running over time.
How to Use the Gas Mileage Calculator
- Enter miles driven — the distance covered since your last fill-up (or for your whole trip)
- Enter gallons of fuel used — how much fuel it took to cover that distance
- Optionally enter a price per gallon (in your local currency/unit) to estimate the fuel cost for that distance
- Click "Calculate MPG" to see your fuel economy and a comparison table across common MPG values
The Formulas Used
The calculator uses two straightforward formulas:
| Calculation | Formula |
|---|---|
| Miles per Gallon | MPG = Miles Driven ÷ Gallons Used |
| Trip Fuel Cost | Cost = Gallons Used × Price per Gallon |
The price-per-gallon field accepts a plain number in whatever currency or unit you use locally — the calculator doesn't assume any particular currency, so the result is shown as a plain number in the same unit you entered.
Worked Example
Suppose you drove 300 miles and used 10 gallons of fuel to do it. Your fuel economy is 300 ÷ 10 = 30 MPG. If fuel costs 3.50 per gallon where you are, your fuel cost for that distance is 10 × 3.50 = 35.00. These numbers update instantly as you adjust any of the three inputs.
Practical Notes
- For the most accurate MPG, fill your tank completely at both the start and end of the measurement period, and use the odometer reading (not a trip estimate) for miles driven.
- MPG naturally varies between city and highway driving — highway driving is usually more fuel-efficient for most vehicles.
- Track several fill-ups over time and average the results for a more reliable picture of your vehicle's real-world fuel economy than a single tank.
- The MPG comparison table below your results shows how many gallons (and how much cost) the same trip distance would require at various fuel-economy levels — useful when shopping for a more efficient vehicle.
Planning other parts of a trip or project? Try our length converter or weight converter for other everyday unit conversions.