Fuel Cost Calculator

Estimate the fuel used and cost of a trip from distance, fuel economy (mpg or L/100 km) and fuel price.

$
Your local pump price.
Your rate is remembered on this device.

Results

Fuel cost
$34.82
Fuel used
10.714
Cost per mile
$0.12
Cost per kilometer
$0.07

How it’s calculated

Fuel used is distance divided by fuel economy (or distance × L/100 km ÷ 100). Multiply by the price per gallon or liter.

Fuel (gal) = distance (mi) ÷ mpg Fuel (L) = distance (km) × L/100 km ÷ 100 Cost = fuel × price per unit

Example: 300 miles at 28 mpg uses 300 ÷ 28 = 10.71 gal. At $3.25/gal the trip costs $34.82, about 11.6¢ per mile.

Real-world economy varies with speed, load, weather, terrain and air conditioning, so treat the result as an estimate.

Frequently asked questions

How do I convert mpg to L/100 km?

L/100 km = 235.21 ÷ US mpg. 28 mpg ≈ 8.4 L/100 km. For imperial mpg use 282.48 ÷ mpg.

Where do I find my car's fuel economy?

Your trip computer, or fill the tank, reset the trip meter, and divide miles driven by gallons at the next fill. EPA ratings are listed on fueleconomy.gov.

Does this include other driving costs?

No, fuel only. Maintenance, tires, depreciation and insurance add substantially to the true cost per mile.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Spotted a mistake or missing option? Report a problem · GitHub issue· Suggest a calculator