Fuel cost calculator petrol and diesel

Type the distance, your mileage and the fuel price to see the litres and the cost of a trip, worked out in your browser, and nothing you type is uploaded.

  • Nothing uploaded
  • Exact to the paisa
  • The working shown
  • Free, no sign-up

Fuel Cost Calculator

Fill in the boxes to see the answer.

Getting ready…

Quick facts from our tests

Check it yourself: once the page has loaded, turn off Wi-Fi and mobile data, and the Fuel Cost Calculator still works. Your browser's network panel (F12 on a computer) shows the numbers you type are never sent. Google's ad code loads here too; our code never gives it the numbers you type. How we prove it

How to work out the fuel cost of a trip

  1. Type the distance

    In kilometres.

  2. Type the mileage

    Km a litre.

  3. Type the price

    The cost shows at once.

When this tool isn't the right fit

  • You need tolls and other trip costs too. Only fuel is worked out; add tolls, parking and servicing yourself.
  • Your fuel use is in litres per 100 km. Divide 100 by it to get km a litre, then type that.
  • You are sharing the cost. Work out the fuel here, then split it with Split Bill Calculator.

Why use PDFGuild's fuel cost calculator

More free tools

Private like this one: nothing you type or add leaves your device.

Fuel Cost Calculator: the complete guide

The formula, real mileage, the cost of a kilometre, commuting, road trips, CNG and electric, sharing the cost and using less fuel.

In this guide
  1. What it does
  2. Step by step
  3. What it does exactly
  4. Real results
  5. The formula, by hand
  6. Real mileage
  7. Measuring your own mileage
  8. The cost of a kilometre
  9. A month of commuting
  10. Planning a road trip
  11. There and back
  12. CNG and electric
  13. Sharing the cost
  14. Using less fuel
  15. When the price changes
  16. Car, train or bus?
  17. Claiming fuel at work
  18. Mileage in other units
  19. Privacy
  20. Tips
  21. Limits
  22. Terms explained

What the fuel cost calculator does, and when you need it

Type the distance, your vehicle's mileage and the price of fuel, and this calculator shows what the fuel for the trip will cost, how many litres it needs, the cost of each kilometre, and the cost there and back. A 350 km drive in a car that does 15 km a litre, with petrol at ₹105 a litre, needs 23.33 litres and costs ₹2,450.00, or ₹7.00 a kilometre.

It all happens in your browser: nothing you type is uploaded or kept.

When it helps:

  • Before a road trip, to budget the fuel and compare it with train or bus fares.
  • For a daily commute, to see what a month of driving costs.
  • Sharing a ride, so everyone pays a fair part of the fuel.
  • Choosing a vehicle, by comparing the cost of a kilometre in each.
  • Claiming travel costs at work, with the working to show.

Step by step

  1. Type the distance in kilometres, such as 350. Commas the Indian or the international way and Hindi digits are read.
  2. Type the mileage in kilometres a litre, such as 15: what your vehicle really gives, if you know it.
  3. Type the fuel price in rupees a litre, from the pump or your city's price today.
  4. Read the answer: the fuel cost in large type, then the litres, the cost a kilometre and the cost there and back.
  5. Open “How this was worked out” to see the sums with your numbers, and use Copy result for a one-line summary.

Try an example fills in 350 km at 15 km a litre and ₹105 a litre, and Clear empties the boxes.

What the page does, exactly

These are the calculator's rules in full, and the same rules are checked by our tests.

PartThe ruleExample
What you can typeDigits, also those of Hindi and other scripts, a dot for decimals, and commas the Indian or the international way1,000 and 1000 are the same
The boxes' limitsA distance from 0.01 km to 1 crore km, a mileage from 0.1 to 1,000 km a litre, a price from ₹0.01 to ₹10,000 a litreA mileage of 0 gets a message under its box
The costDistance × price ÷ mileage, worked out exactly, not from the litres rounded first350 × ₹105 ÷ 15 = ₹2,450.00
LitresDistance ÷ mileage, written to two decimal places350 ÷ 15 = 23.33 litres
Cost a kmPrice ÷ mileage, to the paisa₹105 ÷ 15 = ₹7.00
There and backTwice the exact cost, the same as typing twice the distance; when that is a paisa off twice the one-way cost as written, a note says so₹4,900.00
RoundingEvery sum is worked out exactly, in whole numbers and fractions rather than the computer's binary approximations; amounts are rounded to the paisa, half a paisa up, only when they are written₹5,555.56 for 1,000 km at 18 km a litre and ₹100

What the rules don't decide: the calculator uses the mileage you type for the whole distance. Traffic, hills, speed and load change real mileage, as below.

Real results from our tests

We tested the Fuel Cost Calculator with headless Chromium 148, the open-source browser Chrome is built on, on a Windows laptop with an Intel Core i7-1185G7 and 32 GB of memory, on 1 November 2026. Other work was running on the laptop at the same time, so times vary a little from run to run: each time below is the middle one of 3 runs.

Checked against a second program. Python's decimal numbers, with 120 digits and none of the page's code, worked out 25,000 random trips of 1 km to 1 crore km, at 1 to 1,000 km a litre and ₹0.01 to ₹10,000 a litre, and the page's code gave the same 100,000 values every time: the cost, the cost a km and the cost there and back to the paisa, and the litres to two decimal places, of each. The boxes were typed as people type them, with Indian and international commas, and in Hindi, Bengali and Gujarati digits. 2,626 of the values sat exactly on half a paisa or half a hundredth of a litre, and every one was rounded up, as it should be.

The answer is drawn at once. The page drew the answer to a typed amount in 0.09 milliseconds (the middle of 3 runs of 200 amounts typed in a row), not counting the moment the browser takes to paint the screen.

Size and offline. On a first visit the page downloads about 0.1 MB for the tool: the page, its styles, its scripts and the fonts, with Google's ad code not counted. In our test we switched the network off after the page had loaded and pressed Try an example: the fuel cost showed 0.1 seconds later or less in each of 15 runs.

Phone-sized screen. We also ran the tests on a phone-sized screen in Chromium (390 × 844 pixels, with touch). That is not a real phone. Every button and box was 44 pixels high or more, and the page did not scroll sideways.

Try it yourself: press "Try an example" at the top of this page. It puts 350, 15 and 105 in the boxes and the fuel costs ₹2,450.00. Then change the distance to 1,000 and the mileage to 18: ₹5,833.33, or ₹11,666.67 there and back.

Try the example
The Fuel Cost Calculator after its example, a 350 km trip at 15 km a litre with fuel at ₹105 a litre: 23.33 litres, costing ₹2,450.00
The fuel cost of our example trip, worked out in the browser.

The formula, by hand

Fuel cost = distance × price ÷ mileage. For 350 km at 15 km a litre and ₹105 a litre:

  1. The litres: 350 ÷ 15 = 23.33 litres, a little over 23 and a third.
  2. The cost: 350 × 105 ÷ 15 = 36,750 ÷ 15 = ₹2,450.

Multiplying before dividing keeps the sum exact. Rounding the litres first and then multiplying, 23.33 × ₹105, gives ₹2,449.65, 35 paise short; the calculator never rounds in the middle, which is why its answer is ₹2,450.00.

Real mileage, not the brochure figure

The mileage in an advertisement is measured on a standard test, not in your traffic. Real mileage is usually lower in the city, with stop-and-go traffic and the air conditioning on, and often better on an open highway at a steady speed. The same 500 km at ₹92.50 a litre costs ₹3,083.33 at 15 km a litre but ₹3,854.17 at 12: the mileage you type matters as much as the fuel price. If you don't know your real figure, a careful estimate is a little below the brochure's.

Measuring your own mileage

  1. Fill the tank to the top, and note the odometer reading.
  2. Drive as usual until the tank is fairly low.
  3. Fill it to the top again, and note the litres it took and the new reading.
  4. Divide the kilometres driven by the litres: 480 km on 32 litres is 15 km a litre.

Repeat it a few times, in the city and on the highway, and you will have two honest figures to use here.

The cost of a kilometre

The cost a kilometre is the fuel price divided by the mileage, and it is the easiest way to compare vehicles. At ₹105 a litre, a car that does 15 km a litre costs ₹7.00 a kilometre; a motorcycle that does 40 costs ₹2.63. At ₹100 a litre, 12 km a litre costs ₹8.33 a kilometre and 18 costs ₹5.56. Fuel is only part of a vehicle's running cost: servicing, tyres, insurance and parking come on top.

A month of commuting

For a daily drive, type the month's distance. A 30 km round trip to work on 22 working days is 660 km a month: at 15 km a litre and ₹105 a litre, that is 44.00 litres and ₹4,620.00 a month, or ₹55,440 over twelve such months. On a motorcycle that does 45 km a litre, the same 30 km a day costs ₹70.00 a day.

The same sum compares two vehicles for the same month: 660 km in the car costs ₹4,620.00, and on the motorcycle ₹1,540.00, ₹3,080 less. Whether the saving is worth the ride in the rain or the heat is for you to weigh.

Planning a road trip

Add up the distance from a map app, including the drive around town once you arrive. A 1,000 km journey at 18 km a litre with fuel at ₹100 needs 55.56 litres and costs ₹5,555.56 one way. Fuel prices differ from state to state because of local taxes, so a long trip may see a few different prices; using the highest you expect gives a safe budget. Tolls aren't fuel, so add them separately. On empty stretches of highway pumps can be far apart, especially at night, so start a long drive with a full tank.

A full car, a loaded roof carrier and the air conditioning on a hot day all lower mileage, so for a family trip in summer, type a mileage a little below your usual figure.

There and back

The calculator shows the cost there and back as twice the exact one-way cost, which is the same as typing twice the distance. Usually it is simply double the one-way figure, but not always to the paisa: 1,000 km at 18 km a litre and ₹100 costs ₹5,555.56 one way, and there and back is ₹11,111.11, not ₹11,111.12, because the exact one-way cost is ₹5,555.5556. When that happens, a note under the answer says so.

CNG and electric

The sum is the same for any fuel bought by the unit; only the units change. For CNG, type the mileage in kilometres a kilogram and the price a kilogram: 300 km at 25 km a kg, with CNG at ₹80 a kg as an example, costs ₹960.00. For an electric car, type kilometres a kilowatt-hour and the price of a unit of electricity: 300 km at 7 km a unit and ₹8 a unit costs ₹342.86. The page still says litres; read them as kilograms or units.

Sharing the cost

When friends share a car, the fuel is easy to split: ₹2,450 among 4 people is ₹612.50 each. The Split Bill Calculator divides any amount among any number of people, to the paisa, so the shares always add up, and the UPI QR Code Generator makes a QR code for each friend to pay you their part. When someone rides only part of the way, work out their share from the kilometres they travelled, and split the rest among the others.

Using less fuel

  • Keep the tyres at the right pressure, shown in the owner's manual or on the door frame.
  • Drive smoothly: gentle starts and steady speeds use less fuel than hard braking and sudden acceleration.
  • Don't carry what you don't need in the boot or on the roof.
  • Switch off the engine at long waits, where it is safe to.
  • Service the vehicle on time: a clogged air filter or old oil costs mileage.

Each saving shows up as a better mileage figure; measure it again after a month and type the new figure here.

When the fuel price changes

A change in the price at the pump changes every trip by the same share. For the 660 km commute above at 15 km a litre, petrol at ₹105 costs ₹4,620.00 a month; at ₹110, ₹4,840.00, ₹220 more. A quick way to see it: the litres you use in a month, 44 here, times the rise in the price, ₹5, is the extra cost each month.

Car, train or bus?

For a long trip, compare the fuel for each person with the fare. 1,000 km by car at 18 km a litre and ₹100 a litre is ₹5,555.56 of fuel; shared by four people, that is ₹1,388.89 each, before tolls and parking. Check the train or bus fare on the operator's own website for the same date, and weigh the time, the comfort and the driving against the money. For one person travelling alone, the train or bus is often far cheaper; for a family, the car can be.

Claiming fuel at work

Many employers repay official travel at a fixed rate a kilometre. Compare it with your own cost a kilometre: at ₹7.00 of fuel a kilometre, a rate of ₹10 leaves ₹3 a kilometre towards servicing, tyres and wear. Keep a note of each trip's distance; the working shown here, with the distance, the mileage and the price, makes a clear record for a claim.

Mileage in other units

Some cars and reviews give fuel use in litres per 100 km instead of kilometres a litre. To turn it into the mileage this calculator takes, divide 100 by it: 6.5 litres per 100 km is 100 ÷ 6.5, about 15.38 km a litre. The other way round, 15 km a litre is 100 ÷ 15, about 6.67 litres per 100 km. A lower litres-per-100-km figure, like a higher mileage, means less fuel. For a distance in miles, the Length Converter turns it into kilometres first.

Private: your numbers stay on your device

Your distances and prices never leave your device. The calculator runs inside your browser and has no upload step: it never sends the numbers you type anywhere, and it doesn't save them, so closing the page forgets them. The page's Content Security Policy lets it contact only this site and Google's ad service, which pays for the site; our code never gives your numbers to the ad code. You can check it yourself in your browser's network panel (F12 on a computer): working out a fuel cost adds no request that carries your numbers.

Read our privacy policy and how we prove your files are never uploaded.

The Fuel Cost Calculator after its example, a 350 km trip at 15 km a litre with fuel at ₹105 a litre: 23.33 litres, costing ₹2,450.00, at a phone's size with the internet switched off by our test, between our test's bands that read "Internet switched off" and "Nothing uploaded: 0 requests sent data"
Proof from our testOn 9 November 2026, our test opened Fuel Cost Calculator at a phone's size, switched the internet off and ran it on its built-in example. It finished with no connection, and none of the page's 17 requests sent any data.How we test, and how to check it yourself

Tips

  • Use your real mileage, measured from a full tank to a full tank.
  • Use today's price where you will fill up; prices differ by state and change over time.
  • Add a margin for detours, traffic and air conditioning on a long trip.
  • Compare the cost a kilometre, not the brochure mileage, when choosing a vehicle.
  • Note the odometer at the start and the end of a trip, so next time you can type the real distance.

Limits

  • One mileage and one price for the whole trip.
  • Fuel only: tolls, parking, servicing and wear aren't counted.
  • No fuel prices are looked up: type the price yourself.
  • Units: the page writes litres; for CNG or electricity, read them as kilograms or units.
  • Browsers. We tested only in Chromium, the engine behind Chrome and Edge, with computer and phone-sized screens. We did not test on real phones, in Safari or in Firefox, so we cannot promise how they behave.

Terms explained

Mileage
How far a vehicle goes on a litre of fuel, in kilometres; also called fuel efficiency.
Odometer
The meter that shows how many kilometres a vehicle has run.
Cost a km
The fuel price divided by the mileage: what each kilometre costs in fuel.
CNG
Compressed natural gas, sold by the kilogram.
kWh
A kilowatt-hour, one unit of electricity on a bill.
Round trip
A journey there and back.
Litres per 100 km
Fuel use the other way round: the litres needed to drive 100 km.

From the blog

Fuel Cost Calculator and related jobs, explained step by step. See all 90 articles

Frequently asked questions

Is the Fuel Cost Calculator free?

Yes. There is no sign-up and no limit on how often you use it. Ads from Google help pay for the site, and they are kept apart from the calculator.

Is what I type uploaded anywhere?

No. The page has no upload step: it never sends your distances or prices anywhere, and it doesn't save them. Google's ad code loads on the page, and our code never gives it your numbers.

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

Fuel cost = distance × price ÷ mileage. 350 km at 15 km a litre, with fuel at ₹105 a litre, costs ₹2,450.00.

How many litres will I need?

Distance ÷ mileage: 350 km at 15 km a litre needs 23.33 litres.

What is the cost per km?

The fuel price ÷ the mileage: ₹105 ÷ 15 is ₹7.00 a km. A motorcycle that does 40 km a litre costs ₹2.63 a km.

How do I find my real mileage?

Fill the tank, note the odometer, drive, and fill it again: the kilometres driven ÷ the litres it took. 480 km on 32 litres is 15 km a litre.

Does it work for diesel?

Yes. Type the diesel price and your vehicle's diesel mileage; the sum is the same for any fuel.

Does it work for CNG or an electric car?

Yes. Type km a kg and the price a kg for CNG, or km a unit and the price a unit for electricity: 300 km at 7 km a unit and ₹8 a unit costs ₹342.86.

What does there and back show?

Twice the exact one-way cost, the same as typing twice the distance: 1,000 km at 18 km a litre and ₹100 is ₹5,555.56 one way and ₹11,111.11 there and back.

What does a month of commuting cost?

Type the month's distance: 30 km a day for 22 days is 660 km, which costs ₹4,620.00 at 15 km a litre and ₹105 a litre.

Why is my mileage lower than the brochure's?

The brochure figure comes from a standard test; traffic, the air conditioning, the load and the speed all lower it.

Does it include tolls?

No, only fuel. Add tolls, parking and servicing separately.

How do I turn litres per 100 km into km a litre?

Divide 100 by it: 6.5 litres per 100 km is about 15.38 km a litre.

Does it work offline?

Yes, once the page has loaded: the sums are done by your browser, so it keeps working with the network switched off.

Does it save or remember what I type?

No. The page doesn't save your numbers, so closing or reloading the page forgets them.

By the PDFGuild team · Updated · How we test