MPG Calculator
Calculate fuel economy in miles per gallon, or estimate the fuel needed and trip cost for a drive.
Use it to compare vehicles, plan road trips, or check whether a route is budget-friendly before you leave.
Calculated Result
--
--
Run the calculation to see the result.
Quick Answer
MPG is miles divided by gallons. For trip planning, gallons needed equals distance divided by MPG, and trip cost equals gallons multiplied by fuel price.
How to Calculate MPG
- Choose whether you want to solve for MPG or trip cost.
- Enter the miles driven and the fuel used, or enter MPG and fuel price for a trip.
- Click Calculate to see the fuel economy or trip cost.
- Use the result to compare vehicles or budget a road trip.
Formula
MPG = distance / gallons
Gallons needed = distance / MPG
Trip cost = gallons needed x fuel price
Worked Examples
Example 1: 300 miles using 10 gallons = 30 MPG.
Example 2: 240 miles at 30 MPG uses 8 gallons.
Example 3: 8 gallons at $3.50/gallon costs $28.00.
How to Interpret Your Results
| Range | Meaning | Action |
|---|---|---|
| Below 20 MPG | Lower fuel economy | Check driving style, load, and maintenance |
| 20 to 35 MPG | Typical mixed driving range | Useful for most commuter vehicles |
| Over 35 MPG | High fuel efficiency | Great for long-distance budgeting |
Frequently Asked Questions
Divide the miles driven by the gallons used. The quotient is your miles per gallon.
Yes. Use the trip mode, enter distance, MPG, and fuel price, and the page will estimate gallons and cost.
This page uses miles and gallons. If your data is in metric units, convert them first before calculating MPG.
Related Calculators
References
- OmniCalculator reference page
- Fuel economy is usually reported as miles per gallon in the U.S.
- Last reviewed: March 2026.