Fuel Cost Calculator - Gas Cost for Any Trip or Commute

Trip Details

Calculate how much gas a trip will cost from distance, MPG, and fuel price. Estimate monthly commute costs, compare vehicles, and plan road trip budgets.

Select units

Enter distance

Enter efficiency

Enter fuel price

Real mileage changes with how and where you drive: traffic, terrain, cargo and weight, and driving style all move it. The tool uses the single mileage figure you enter.

Formulas and sources

Each formula this calculator uses, where it comes from, and what it leaves out. "How it works" shows the same formula with your own numbers.

Fuel and cost, US units

In US units

Gallons = Distance ÷ MPG, Cost = Gallons × Price
Gallons
the fuel needed, in US gallons
Distance
the trip distance, in miles
MPG
miles per US gallon
Cost
the fuel cost of the trip
Price
the price of one US gallon

The mileage is the one figure you enter.

Source: Standard formula; no single publisher. Units as NIST defines them [1]; what moves real mileage: fueleconomy.gov [2]; why ratings may not predict it [3].

Fuel and cost, metric units

In metric units

Liters = (Distance ÷ 100) × L/100km, Cost = Liters × Price
Liters
the fuel needed
Distance
the trip distance, in kilometers
L/100km
liters used per 100 kilometers
Cost
the fuel cost of the trip
Price
the price of one liter

Source: Standard formula; no single publisher.

Trip cost with extras

With Trip Extras

Adjusted Distance = Distance × Round trip multiplier; Trip cost = Fuel cost + Tolls + Parking + Other
Distance
the distance you entered
Round trip multiplier
2 for a round trip, 1 for one way

Tolls, parking and other costs are added once per trip, in your currency.

Source: Standard formula; no single publisher.

Per person and per month

Cost per person = Trip cost ÷ Passengers Monthly cost = Trip cost × Trips per month
Passengers
the people sharing the cost
Trips per month
from Trip Extras

Source: Standard formula; no single publisher.

Compare Vehicle

With Compare Vehicle

Savings = Trip cost − other vehicle's trip cost
Savings
above zero, the other vehicle is cheaper

The other vehicle runs the same distance and extras through its own efficiency and price. Below zero, it costs more.

Source: Standard formula; no single publisher.

Switching units

L/100km = 235.215 ÷ MPG
L/100km
liters per 100 kilometers
MPG
miles per US gallon, not the imperial (UK) gallon

A switch converts with 1 mile = 1.609344 km and 1 US gallon = 3.785412 liters. It then rounds the economy to one decimal and the price to three, as a dashboard and a pump show them.

Source: Uses NIST's conversion factors [1].

Sources

  1. National Institute of Standards and Technology. NIST Guide to the SI, Appendix B.8: Factors for units listed alphabetically, mile per gallon (U.S.), mile and gallon (U.S.). Special Publication 811, 2008 edition.
  2. U.S. Department of Energy and U.S. Environmental Protection Agency, fueleconomy.gov. Factors That Affect Fuel Economy. Undated page, read October 5, 2026.
  3. U.S. Department of Energy and U.S. Environmental Protection Agency, fueleconomy.gov. Your Mileage Will Vary. Undated page, read October 5, 2026.

What this calculator does not cover

  • It estimates fuel cost only: no maintenance, insurance, depreciation or financing. The Car Loan Calculator covers financing a vehicle.
  • The EPA's ratings are for comparing vehicles, and fueleconomy.gov says they may not accurately predict the average MPG you get. The tool uses the one figure you enter.
  • It holds no fuel price of its own; the price is yours to enter.

Sources checked on .

Help

Quick Start Guide

  1. Select units: Switch between metric units and US units (miles, US gallons).
  2. Enter distance: Input your trip distance.
  3. Enter efficiency: Input your vehicle's fuel efficiency (MPG or L/100km).
  4. Enter fuel price: Input the current price per unit of fuel, whether gasoline, diesel or petrol, per gallon or liter.
  5. View results: See total fuel cost, cost per passenger, and open Trip Extras or Compare Vehicle for more detail.

Frequently Asked Questions

Enter the total distance, your vehicle's fuel efficiency (MPG or L/100km), and the current fuel price. The calculator estimates total fuel cost as: Cost = (Distance / MPG) × Price per Gallon. The same three entries show what it costs to drive anywhere, and Fuel Needed shows the gas usage for the trip, in gallons or liters.

Related Calculators

Last updated