My Volume Calculator
What do you want to work out?

Gas Calculator

Enter your distance, your fuel economy in miles per gallon, liters per hundred kilometers or kilometers per liter, and the price per gallon or liter. The calculator returns gallons, liters, the total fuel cost and the cost per mile, and in commute mode the daily, monthly and annual cost. Each conversion step is shown.

See also: measure your real mpg from a fill-up

Checked Rules used

How the gas calculator works

The fields hold the worked example. Change any value and the result updates at once.

How far you are driving, one way unless you add the way back.

The whole day's driving, for example to work and back.

Days you drive that distance in a month, 31 at most.

From the car's window sticker or your own tank figures. Real-world mileage varies.

What you pay at the pump.

Result

Fill in the fields above to see the result and every step here.

Split a long trip between passengers →

Worked example: a trip

A trip of 300 miles at 30 miles per gallon uses 10 gallons, which is 37.854 liters. At $3.50 dollars a gallon the fuel costs $35.00 dollars, or $0.12 dollars per mile.

Commute cost per day, month and year

Switch to a daily commute and enter the distance you drive each day and how many days a month you drive it. The calculator works out the fuel for one day, then multiplies by your driving days for the month. The year is twelve of those months, taken before any rounding, so the pennies do not drift.

The steps of the worked example appear here.

This uses one average fuel economy for the whole drive. Traffic, idling, cold starts, a loaded car and a heavy foot all lower it, so if your real figure comes in below the sticker, type your own. Fuel prices move often, so use the price you actually pay.

Method and sources

Fuel economy is first converted to miles per gallon. Liters per hundred kilometers divides the constant 235.2146 by your figure, and kilometers per liter is multiplied by 3.7854 liters per gallon and divided by 1.6093 kilometers per mile. Gallons are miles divided by miles per gallon, and cost is gallons times the price per gallon; a price per liter is multiplied by 3.7854 first. Unit factors come from NIST and fuel economy conventions from fueleconomy.gov.

What this calculator does not cover

  • Uses a single average efficiency; traffic, idling, load and cold starts are not modelled.
  • Fuel prices change often, so type the price you actually pay.

Figures and calculation checked on Oct 10, 2026.

How we calculate · Official sources

Gas calculator FAQ

How much gas will a trip need?

Divide the distance by your miles per gallon to get gallons, then multiply by the price per gallon. For a trip of 300 miles at 30 miles per gallon that is 10 gallons, and at $3.50 dollars a gallon the fuel costs $35.00 dollars.

How much gas will I use?

Gallons used are the miles you will drive divided by your miles per gallon. If your car shows liters per hundred kilometers, the calculator converts it for you. A trip of 500 kilometers at 8 liters per hundred kilometers uses 40 liters, or 10.567 US gallons.

How much would I spend on gas?

Switch to commute mode and enter your daily distance, the days you drive each month, your fuel economy and the fuel price. A daily commute of 25 miles at 28 miles per gallon and $3.30 dollars a gallon costs $64.82 dollars a month and $777.86 dollars a year.

Related tools

Results are estimates for planning. Check quantities with your supplier, and local building codes or a qualified professional for anything structural.