Skip to content
CalcPilot Find a calculator
Everyday calculator

Gas Mileage Calculator

Calculate miles per gallon from distance traveled and fuel used.

Reviewed 2026-06-18 · Formula and example verified by the CalcPilot Editorial Team

Calculator

Enter your numbers

Fuel economy

30 mpg

Your inputs stay in your browser and are never sent to a server.

Quick answer

How do you calculate Gas Mileage?

Use Miles per gallon = Distance traveled / Gallons used. Enter the matching values above to calculate the result instantly.

What it measures

Understanding Gas Mileage

Calculate miles per gallon from distance traveled and fuel used. A full-tank method across several refills is usually more representative than a short trip or dashboard snapshot.

Interpretation

What the result means

The result is the average number of miles traveled for each gallon consumed over the measurement interval.

Action

How to use it

Reset the trip meter at a full fill, record the next full-fill gallons, and compare several tanks under similar conditions.

Limits

What it leaves out

Pump shutoff, odometer accuracy, idling, traffic, weather, load, terrain, and fuel blend can change measured economy.

The math

Gas Mileage formula

Miles per gallon = Distance traveled / Gallons used

Worked example

Example calculation

A vehicle travels 360 miles using 12 gallons.
Calculation
360 / 12
Result
30 mpg

Step by step

How to use this calculator

  1. 1Enter distance traveled, fuel used.
  2. 2Keep every input on the same time period and measurement basis.
  3. 3Review the result, then change one assumption at a time to test scenarios.

Decision support

When this calculator is useful

  • Vehicle tracking
  • Trip planning
  • Fuel-efficiency comparisons

Common questions

Frequently asked questions

Which inputs should I use for Gas Mileage?

Use distance traveled, fuel used, measured from the same source and period. Include only values that match the definitions shown beside each field.

Why might two Gas Mileage calculations differ?

The systems or accounting policies may define distance traveled, fuel used differently. Compare the time period, scope, source, and treatment of exceptional items before comparing results.

How often should I recalculate Gas Mileage?

Recalculate when any input changes materially and on the same reporting cadence used for the decision. Save the source and date of each input so the trend remains comparable.

Can I use Gas Mileage by itself?

No single metric captures the full decision. Use the result with the related measures, assumptions, and limitations shown on this page.

Calculation reviewed: 2026-06-18. CalcPilot uses the formula shown above and tests representative values during the production build. See our methodology and correction policy.

Browse by topic

Calculator categories

Connected decisions

See how this metric fits the system

Keep exploring

Everyday

Fuel Cost Calculator

Estimate trip fuel cost from distance, fuel efficiency, and fuel price.

Calculate now
Everyday

Speed Calculator

Calculate average speed from distance traveled and elapsed time.

Calculate now
Finance

Percentage Change Calculator

Calculate the percentage increase or decrease from an original value to a new value.

Calculate now
Everyday

Unit Price Calculator

Calculate cost per item, weight unit, volume unit, or other quantity.

Calculate now
Business

Cash Flow Calculator

Calculate net cash flow by subtracting cash outflows from cash inflows.

Calculate now