Gas Mileage Calculator
Enter the distance driven, fuel used and current gas price to calculate your miles per gallon (MPG) and the cost of fuel per mile.
Gas Mileage Calculator
Calculate MPG and fuel cost per mile
MPG = miles driven รท gallons used. Cost per mile = gas price per gallon รท MPG. Trip fuel cost = (miles รท MPG) ร price per gallon.
How Gas Mileage Is Calculated
Gas mileage (MPG) measures how far your vehicle travels on one gallon of fuel:
MPG = miles driven รท gallons used
Cost per mile = price per gallon รท MPG Trip fuel cost = (miles driven รท MPG) ร price per gallon
**Tips**: Fill the tank completely, drive until nearly empty, then refill and record both the gallons added and miles since the last fill for the most accurate MPG. Highway driving typically gets better MPG than city driving.
- MPG = miles รท gallons
- Cost per mile = price รท MPG
- Full-tank-to-full-tank method is most accurate
Worked Example
Example: 300 miles driven, 10 gallons used, $3.50 per gallon.
- MPG = 300 รท 10 = 30 MPG - Cost per mile = $3.50 รท 30 = $0.117 per mile (~12ยข/mile) - Trip fuel cost = 10 ร $3.50 = $35.00
Related Calculators
Tip Calculator
Calculate tip amount and split among multiple people.
Open calculator โAge Calculator
Calculate exact age in years, months, and days between two dates.
Open calculator โ30-Minute Lunch Break Calculator
Determine optimal lunch break duration for maximum afternoon productivity.
Open calculator โElectricity Cost Calculator
Work out the cost to run an appliance from watts, hours used per day and your electricity rate.
Open calculator โFrequently Asked Questions
Does this work for kilometers and liters?
This calculator uses miles and gallons. For metric, convert liters to gallons (1 gallon โ 3.785 litres) and kilometres to miles (1 mile โ 1.609 km) before entering, or use the Unit Converter tool.
Why is my real MPG lower than the sticker?
EPA sticker MPG is lab-tested. Real-world MPG depends on driving style, traffic, vehicle load, tire pressure, air conditioning use and temperature.
Looking for a different calculator?
CalculatorPlus has free tools across finance, construction, math, health and more โ each one showing the formula and a worked example.