Skip to main content

Gas Mileage Calculator

Keeping track of your real-world fuel economy is vital for vehicle maintenance, budgeting, and environmental awareness.

Distance traveled since last full fill-up.

Gallons or liters required to refill the tank.

Odometer unit system.

Pump measurement unit.

Total receipt cost of the fill-up to determine cost per mile.

Calculated Result
29.2 MPG (US)

Fuel Economy

Metric Economy

8.06 L/100 km

Kilometers per Liter

12.40 km/L

Imperial (UK) MPG

35.0 MPG (UK)

Driving Cost per Mile

$0.120/mi

Calculation Breakdown

  1. 1. Distance driven: 350 miles
  2. 2. Fuel consumed: 12 gallons
  3. 3. Miles Per Gallon (US): 350.0 miles ÷ 12.00 gallons = 29.2 MPG
  4. 4. Metric consumption: 8.06 L/100 km

Gallons of Fuel Required for a 300-Mile Trip

Interactive visualization based on your current inputs

Gallons Consumed
0.05.010152015 MPG25 MPG35 MPG45 MPG55 MPGVehicle MPG RatingGallons Consumed

What Is the Gas Mileage Calculator?

A gas mileage calculator measures how efficiently an internal combustion or hybrid engine converts fuel into roadway distance.

How Does the Gas Mileage Calculator Work?

Divides net distance traveled by total volume of fuel combusted, standardizing across imperial and metric metrics.

Gas Mileage Calculator Formula & Variables

The core mathematical equation utilized by this calculator is expressed as:

MPG (US) = Distance (Miles) ÷ Fuel (Gallons); L/100 km = 235.215 ÷ MPG (US)

Divides trip distance by total fuel added, converting between US MPG and European L/100 km.

How to Use the Gas Mileage Calculator

  1. Record your trip odometer reading at pump fill-up, enter the exact pumped gallons/liters, and check fuel economy.

Step-by-Step Example Calculation

Driving 350 Miles on 12 Gallons of Gas

Input Values:

distance:350
fuelAmount:12
distanceUnit:miles
fuelUnit:gallons
fuelCostTotal:42
Worked Steps: Yields 29.2 MPG (8.06 L/100 km) at $0.12 per mile.

Understanding Your Result

Higher MPG numbers and lower L/100 km values denote superior fuel efficiency.

Factors That Affect the Result

  • Highway vs. city driving cycles, aggressive acceleration, tire pressure, vehicle cargo weight, and aerodynamics.

When Should You Use This Calculator?

  • Tracking vehicle mechanical condition, planning road trip budgets, and assessing car ownership expenses.

Assumptions & Limitations

  • Assumes accurate odometer calibration and consistent fuel pump auto-shutoff thresholds.

Frequently Asked Questions

Calculation Accuracy & Reference Note

Standard automotive fuel consumption formula.

Explore more tools and calculators in Everyday Life Calculators