Gas Mileage Calculator
Estimate Gas Mileage by entering distance, fuel efficiency, and price per litre or gallon. See total fuel cost and CO₂ emissions for any journey.
Gas Mileage Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser — no data is sent to any server.
Formula: MPG = Miles Driven ÷ Gallons Used
Worked example — 29.2 MPG | $0.120/mile | 8.1 L/100km | $1,438/year
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer · Editorial policy
Gas Mileage Calculator Formula
MPG = Miles Driven ÷ Gallons Used
Divide the total miles driven by the gallons of fuel consumed to get miles per gallon (MPG). Cost per mile equals total fuel cost divided by miles driven. For the metric equivalent, convert to liters per 100 kilometers using: L/100km = 235.215 ÷ MPG. Annual cost is estimated based on 12,000 miles driven per year.
Gas Mileage Calculator — Worked Examples
Example 1: Daily Commute Efficiency
Problem:You drove 350 miles on 12 gallons of gas at $3.50/gallon. What is your fuel efficiency?
Solution:MPG = 350 / 12 = 29.2 MPG Cost per mile = (12 × $3.50) / 350 = $0.120/mile L/100km = 235.215 / 29.2 = 8.1 L/100km Annual cost (12k mi) = (12,000 / 29.2) × $3.50 = $1,438
Result:29.2 MPG | $0.120/mile | 8.1 L/100km | $1,438/year
Example 2: Road Trip Calculation
Problem:A 600-mile road trip used 20 gallons at $3.80/gallon.
Solution:MPG = 600 / 20 = 30.0 MPG Cost per mile = (20 × $3.80) / 600 = $0.127/mile Total trip cost = 20 × $3.80 = $76.00 L/100km = 235.215 / 30 = 7.8 L/100km
Result:30.0 MPG | $0.127/mile | Trip cost: $76.00
Gas Mileage Calculator — Frequently Asked Questions
What is a good MPG (miles per gallon)?
For gasoline cars, the average fuel economy in the US is about 25-30 MPG combined (city and highway). A 'good' MPG depends on vehicle type: compact cars typically achieve 30-40 MPG, midsize sedans 25-35 MPG, SUVs 20-30 MPG, and trucks 15-25 MPG. Hybrid vehicles achieve 40-60 MPG, and plug-in hybrids can exceed 100 MPGe (miles per gallon equivalent) when using electric mode. For reference, the most fuel-efficient non-electric cars on the market achieve around 55-60 MPG combined.
How can I improve my car's gas mileage?
Several driving habits and maintenance practices can improve fuel economy by 10-30%. Drive at moderate speeds — fuel efficiency drops significantly above 50 mph (each 5 mph over 50 is like paying an extra $0.20-0.30 per gallon). Avoid aggressive acceleration and hard braking; use cruise control on highways. Keep tires properly inflated (under-inflation by 1 psi reduces efficiency by 0.2%). Remove excess weight and roof cargo carriers when not in use. Keep up with maintenance: clean air filters, fresh spark plugs, and proper oil improve efficiency. Use the recommended octane fuel — premium does not help if your car does not require it.
What is the difference between MPG and liters per 100km?
MPG (miles per gallon) and liters per 100 kilometers (L/100km) measure fuel efficiency differently. MPG is used in the US and measures how far you can travel on one gallon — higher is better. L/100km is used in Europe, Canada, and most of the world, measuring how much fuel is needed to travel 100 km — lower is better. To convert: L/100km = 235.215 / MPG. For example, 30 MPG = 7.84 L/100km. The relationship is inverse and non-linear, which means improving from 10 to 15 MPG saves more fuel than improving from 30 to 35 MPG, even though both are 5 MPG improvements.
How much does driving speed affect gas mileage?
Speed has a dramatic effect on fuel economy due to aerodynamic drag, which increases with the square of velocity. Most cars achieve peak fuel efficiency between 35-55 mph. Above 55 mph, efficiency drops rapidly: driving at 65 mph uses about 8% more fuel than 55 mph, 75 mph uses about 20% more, and 85 mph uses about 35% more. In practical terms, slowing from 75 to 65 mph on a highway trip can save about 15% on fuel. City driving is less efficient than highway due to frequent stops, idling, and acceleration, which is why hybrid vehicles excel in city conditions with regenerative braking.
How is annual fuel cost estimated?
Annual fuel cost is calculated using the formula: Annual Cost = (Annual Miles / MPG) × Gas Price per Gallon. The average American drives about 12,000-15,000 miles per year. At 25 MPG with gas at $3.50/gallon, that is (12,000 / 25) × $3.50 = $1,680/year. At 35 MPG, it drops to $1,200/year — a $480 annual savings. Over a 5-year ownership period, the difference between a 25 MPG and 35 MPG vehicle at $3.50/gallon amounts to $2,400. This is why fuel efficiency should be a major factor in vehicle purchase decisions, especially for high-mileage drivers.
Gas Mileage Calculator — Background & Theory
History of the Gas Mileage Calculator
References
Related Calculators
⛽Fuel Cost Calculator
Calculate fuel costs for your trip
🏎️Engine Horsepower
Calculate engine horsepower
🛞Tire Size Calculator
Compare and convert tire sizes
🏦Auto Loan Calculator
Calculate monthly car loan payments and total interest
🚙Auto Lease Calculator
Calculate monthly car lease payments
⛽Fuel Consumption Converter
Convert between MPG, L/100km, and km/L
📉Car Depreciation
Estimate vehicle depreciation and resale value
🅿️Parking & Commute Cost
Calculate true cost of commuting including parking