Calculating your miles per gallon is straightforward once you know the Miles Per Gallon formula and what each input means. This guide explains the method in plain language, walks through a manual calculation, and gives worked examples you can follow — then you can do it instantly with the Miles Per Gallon Calculator.
What is Miles Per Gallon?
The Miles Per Gallon calculation tells you your miles per gallon from a few simple inputs. The figure you are solving for here is the miles per gallon.
The Miles Per Gallon formula
The core formula is:
Miles per gallon = Distance driven ÷ Fuel used
Here is what each input means:
- Distance driven — a value measured in miles. Example: 300 miles.
- Fuel used — a value measured in gallons. Example: 12 gallons.
How to calculate it step by step
- Write down the distance driven (for example, 300 miles).
- Write down the fuel used (for example, 12 gallons).
- Apply the formula above to get your miles per gallon.
- Double-check the result with the Miles Per Gallon Calculator.
Worked examples
Example 1
| Input / Output | Value |
|---|---|
| Distance driven | 300 miles |
| Fuel used | 12 gallons |
| Miles per gallon | 25.00 |
With distance driven of 300 miles and fuel used of 12 gallons, the miles per gallon works out to 25.00.
Example 2
With distance driven of 600 miles and fuel used of 12 gallons, the miles per gallon works out to 50.00.
| Result | Value |
|---|---|
| Miles per gallon | 50.00 |
Example 3
With distance driven of 150 miles and fuel used of 12 gallons, the miles per gallon works out to 12.50.
| Result | Value |
|---|---|
| Miles per gallon | 12.50 |
Tips for an accurate result
- Keep your units consistent — mixing, say, months with years or grams with kilograms is the most common source of error.
- Round only at the very end. Rounding inputs early can shift the final answer noticeably.
- Re-run the numbers whenever an input changes, rather than estimating from an old result.
Prefer not to do the maths by hand? — the Miles Per Gallon Calculator does it instantly, for free, with the formula and a worked example built in.
Related calculators
Continue exploring automotive calculators with these tools: Engine Displacement Calculator, Compression Ratio Calculator, Horsepower to Torque Calculator, Gear Ratio Calculator, Tire Size Calculator.