Free 100% In-Browser Tool

MPG Calculator: Miles Per Gallon & Trip Fuel Cost

Calculate miles per gallon (MPG), L/100km, and fuel trip costs.

Quick Answer:Enter miles driven and gallons used to calculate exact MPG, fuel cost per mile, and metric L/100km equivalent.
Initializing tool...

Privacy First: 100% Client-Side Processing

Processed in your browser. Files are never uploaded.

How to Use the MPG Calculator: Miles Per Gallon & Trip Fuel Cost

  1. 1Enter distance driven (miles or kilometers).
  2. 2Enter fuel consumed (gallons or liters).
  3. 3Optionally enter fuel price per gallon/liter.
  4. 4View MPG, L/100km, cost per mile, and total trip cost.

Formula & How It Works

Miles Per Gallon Formula

MPG = Miles / Gallons

MPG = Distance in Miles / Fuel in Gallons. L/100km = 235.215 / US MPG.

Worked Examples

Full Tank Highway

Input: 350 miles on 10 gallons at $3.50/gal

Explanation: 350 / 10 = 35 MPG.

Result: 35.00 MPG, $0.10/mile ($35.00 total)

Commuter Sedan

Input: 240 miles on 8.5 gallons

Explanation: 240 / 8.5 = 28.235 MPG.

Result: 28.24 MPG (8.33 L/100km)

Pickup Truck

Input: 280 miles on 17.5 gallons

Explanation: 280 / 17.5 = 16.0 MPG.

Result: 16.00 MPG

Frequently Asked Questions

How do you calculate MPG manually?▼

Fill your tank, reset trip odometer, drive, refill your tank to full, and divide trip miles by gallons pumped.

How do you convert MPG to L/100km?▼

Divide 235.215 by the US MPG value (e.g. 235.215 / 30 MPG = 7.84 L/100km).

Why is UK MPG higher than US MPG?▼

A UK imperial gallon is ~20% larger than a US liquid gallon (4.546 L vs 3.785 L), resulting in higher MPG numbers.

What is good gas mileage?▼

Over 30 MPG for highway driving is generally considered good for gasoline cars, while hybrids often achieve 45 to 55+ MPG.

What is the formula for trip fuel cost?▼

Trip Cost = (Miles Driven / MPG) * Price Per Gallon.

Is this tool free?▼

Yes, Toolzy automotive tools are 100% free and client-side.

Quick Reference & Conversion Table

Vehicle ClassTypical US MPGMetric L/100kmCost / 1,000 Miles (@ $3.50/gal)
Hybrid Sedan50.0 MPG4.7 L/100km$70.00
Compact Car35.0 MPG6.7 L/100km$100.00
Midsize Crossover28.0 MPG8.4 L/100km$125.00
Full-Size SUV18.0 MPG13.1 L/100km$194.44
Heavy Duty Truck14.0 MPG16.8 L/100km$250.00

⚠️ Common Pitfalls to Avoid

  • •Confusing US gallons (3.785 L) with UK Imperial gallons (4.546 L).
  • •Relying solely on vehicle dashboard displays without manual tank-to-tank pump checks.

💡 Practical Real-World Uses

  • •Auditing real-world vehicle gas mileage against EPA window sticker estimates.
  • •Calculating road trip gas cost splitting among travel companions.
  • •Tracking fuel consumption changes indicating mechanical engine issues.
Last reviewed & updated: 2026-11-10
Free & Open Access
Related Utilities

Explore complementary calculators and converters with instant client-side execution

More in

Explore Other Tool Categories

Browse our full collection of 50 free web utilities

View All 8 Categories