Home › Calculators › Gas Mileage Calculator

Gas Mileage Calculator

Enter the distance you drove and the fuel you used to get your MPG, L/100 km and km/L. Plan the fuel cost of a trip and keep a log of fill-ups to track your average.

Last updated:

Tip: fill the tank, reset the trip meter, drive, then fill up again. The fuel you put in the second time is the fuel used.

Fuel economy–
MPG (US)–
MPG (UK)–
L/100 km–
km/L–
Cost per mile–
Fuel cost–
Advertisement

Trip cost planner

Fuel economy is filled in from your result above. You can type your own.

Total distance–
Fuel needed–
Trip cost–
Per person–

Fill-up log

Press “+ Log fill-up” to keep each tank in this list. It is saved in your browser so you can track your average over time.

DateDistanceFuelEconomyCost
Average economy–
Total distance–
Total fuel–
Total spent–
Advertisement

How to use the Gas Mileage Calculator

  1. Choose your units: US gallons, UK imperial gallons or metric liters.
  2. Enter the odometer readings at start and end, or switch to Trip distance and type the miles or km.
  3. Enter the fuel used and, if you like, the price per gallon or liter.
  4. Press Calculate to see MPG, L/100 km, km/L and the cost per mile or km.
  5. Plan a trip or log the fill-up to estimate a journey's cost or track your average over time.

How to calculate gas mileage (MPG)

Fill the tank and note the odometer. Drive as usual, fill up again and note the odometer and the amount of fuel you put in. Then:

  • MPG = miles driven ÷ gallons used
  • L/100 km = liters used ÷ kilometers driven × 100
  • km/L = kilometers driven ÷ liters used

Example: the odometer goes from 12,000 to 12,300 miles and the second fill-up takes 10 US gallons. That is 300 ÷ 10 = 30 MPG (US). In metric, 300 miles is 482.8 km and 10 US gallons is 37.85 L, so 37.85 ÷ 482.8 × 100 = 7.84 L/100 km, or 12.75 km/L. Because an imperial gallon is bigger (4.546 L), the same car does 36.03 MPG (UK).

MPG to L/100 km conversion chart

To convert, use L/100 km = 235.215 ÷ MPG (US) or 282.481 ÷ MPG (UK). A higher MPG is better, while a lower L/100 km is better.

MPG (US)MPG (UK)L/100 kmkm/L
1518.0115.686.38
2024.0211.768.50
2530.029.4110.63
3036.037.8412.75
3542.036.7214.88
4048.045.8817.01
5060.054.7021.26

How to work out the fuel cost of a trip

Fuel needed = trip distance ÷ MPG (or distance × L/100 km ÷ 100), and trip cost = fuel needed × price per gallon or liter. For a 250-mile drive there and back (500 miles) in a car that does 30 MPG, you need 500 ÷ 30 = 16.67 gallons. At $3.50 a gallon the trip costs $58.33, or $29.17 each if two people share it. The cost per mile is simply the fuel price divided by the MPG: $3.50 ÷ 30 = about 11.7 cents a mile.

Tips for an accurate reading

A single tank can be misleading because pumps click off at slightly different levels. Log several fill-ups and use the average, which the fill-up log works out as total distance divided by total fuel rather than an average of averages. Fuel economy drops in cold weather, with short trips, heavy loads, roof boxes, underinflated tyres and high motorway speeds.

Frequently asked questions

How do I calculate my gas mileage?

Fill your tank and note the odometer. When you next fill up, note the odometer again and the gallons you added. Divide the miles driven by the gallons. For example 300 miles on 10 gallons is 30 MPG.

How do I convert MPG to L/100 km?

Divide 235.215 by the US MPG figure. 30 MPG (US) is 235.215 ÷ 30 = 7.84 L/100 km. For UK MPG, divide 282.481 by the MPG.

Why is UK MPG higher than US MPG?

An imperial gallon is 4.546 liters while a US gallon is 3.785 liters. The same car goes further on the bigger UK gallon, so its UK MPG is about 20% higher than its US MPG.

What is good gas mileage?

For a modern petrol car, 30 MPG (US) or better, about 7.8 L/100 km, is good. Hybrids often reach 45 to 55 MPG, while large SUVs and pickups may get 15 to 22 MPG.

How do I work out the fuel cost of a trip?

Divide the trip distance by your MPG to get gallons, then multiply by the price per gallon. The trip planner does this, can double the distance for a round trip and split the cost between passengers.

Where is my fill-up log stored?

Only in your browser's local storage on this device. Nothing is uploaded. Clearing your browser data or using a different device starts a fresh log.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Fuel Cost CalculatorWork out trip fuel costs and split them.Running Pace CalculatorCalculate pace and predict race times.Electricity Cost CalculatorEstimate kWh usage and electricity costs.Loan CalculatorMonthly payments and amortization for loans and mortgages.Average Velocity CalculatorAverage speed and average velocity over several trip segments, with displacement and direction.Bike Gear CalculatorGear ratio, gear inches, development and speed for every chainring and cog combination.Boat Fuel CalculatorPlan boat fuel for a trip in nautical miles with the 1/3 reserve rule, range and endurance.Car Depreciation CalculatorEstimate your car's value over time and its projected resale price.Jet Lag CalculatorTime difference, recovery days and a day-by-day sleep shift plan for jet lag.Packing List GeneratorBuild a travel packing checklist for your trip type, length and weather.Travel Budget CalculatorPlan a trip budget by category, travelers and days, with a daily budget per person.EV vs Gas Car Cost CalculatorCompare yearly EV charging vs gas fuel costs, cost per mile, savings and CO₂ emissions.Quarter Mile CalculatorEstimate 1/4 mile ET and trap speed from horsepower and weight, or HP from a time slip.Car Lease vs Buy CalculatorCompare the total cost of leasing vs buying a car over any number of years.Car Total Cost of Ownership CalculatorTrue cost to own a car: depreciation, loan, fuel, insurance and repairs per mile and month.Commute Cost CalculatorDaily, monthly and yearly cost of driving or taking transit to work, plus hours spent.EV Range CalculatorEstimate real-world electric car range from battery, charge, speed, weather and heating.Flight Distance CalculatorGet the great-circle distance between two airports in miles, km and nautical miles.Mileage Reimbursement CalculatorTotal your business mileage reimbursement with tolls and parking, and export a mileage log.Stopping Distance CalculatorCalculate reaction, braking and total stopping distance from speed, road and slope.Towing Capacity CalculatorCheck payload, GVWR, GCWR and tongue weight to see how much your vehicle can safely tow.VIN DecoderValidate a 17-character VIN's check digit and decode model year, maker, country, plant and serial.0-60 Time CalculatorEstimate a car's 0-60 mph time from horsepower, weight and drivetrain.Event Tent Size CalculatorWhat size party or wedding tent you need for your guests, dance floor, buffet, bar and stage.Wheelchair Ramp CalculatorFind wheelchair ramp length, landings, angle and handrail needs from the rise and ADA slope.Carpool Gas Split CalculatorSplit carpool gas, tolls and parking fairly: cost per person per day, week and month.Carry-On Luggage Size CheckerCheck your bag's size and weight against 30 airlines' carry-on and personal item limits.Excavation CalculatorBank and loose cubic yards, soil weight, truck loads and haul cost for any dig.Flight Carbon Emissions CalculatorEstimate a flight's CO2e per passenger by route or distance, cabin class and round trip.Fuel Savings CalculatorCompare two cars' MPG to see the yearly and 5-year fuel cost difference and payback.Trailer Tongue Weight CalculatorRecommended trailer tongue weight range and a pass/fail check from your scale reading.Drive vs Fly CalculatorCompare the total cost and door-to-door time of driving versus flying for your trip.Travel Plug Adapter FinderPlug types, voltage and frequency for 150+ countries, and whether you need an adapter or converter.Wheel Offset CalculatorCompare old and new wheel width and offset: backspacing, inner clearance change and poke.
See all 34 Auto & Travel Calculators →