Free online tool

Gas Mileage Calculator

Enter the distance driven and the amount of fuel consumed.

Instant calculation

Gas Mileage Calculator

Enter the distance driven and the amount of fuel consumed.

Your numbers stay in this browser. Nothing is uploaded or saved.

Three clear steps

How to use this calculator

  1. 01

    Enter distance

    Type the total distance driven.

  2. 02

    Enter fuel used

    Type the amount of fuel consumed.

  3. 03

    See efficiency

    Calculate to see your fuel efficiency.

The formula

How this calculation works

Divide total distance by fuel consumed to get efficiency in distance per unit of fuel.

Gas Mileage Calculator

Fuel efficiency = Distance ÷ Fuel used

500÷40=12.5 km/L

Check the method

Worked examples

Each example follows the same formula used by the calculator.

500 km on 40 L — fuel efficiency?

500÷40=12.5 km/L12.5 km/L

Common questions

Questions about this calculation

What is the Gas Mileage Calculator?

The Gas Mileage Calculator helps you calculate your vehicle's fuel efficiency from distance traveled and fuel used. Enter your values and select Calculate to get an instant result.

How is the result calculated?

Divide total distance by fuel consumed to get efficiency in distance per unit of fuel.

Can you show an example?

Example: 500 km on 40 L — fuel efficiency? — 12.5 km/L.

Is my data saved when I use the Gas Mileage Calculator?

No. All calculations run locally in your browser. Your inputs and results are never uploaded, stored or shared with anyone.

Is the Gas Mileage Calculator free to use?

Yes. The Gas Mileage Calculator is completely free. No account, sign-up or payment is required. It works on mobile, tablet and desktop.