Skip to content
CalculatorAtlas

Commute Cost Calculator

Tested

Monthly cost of commuting by car.

Tested, not yet published. The formula for this calculator is implemented and passes its automated checks. This page stays non-indexable until it is reviewed and published.

mi
mpg
$ per gal
$

Results

Enter your values and press Calculate. Results appear here.

  • • Result

Quick answer

Monthly commute fuel = one-way distance × 2 × days ÷ fuel economy × price. A 15-mile commute, 22 days a month, at 30 mpg and $3.50 a gallon uses 22 gallons and costs $77, or $117 with $40 of other monthly costs.

Enter the one-way distance, days per month, fuel economy, fuel price and any other monthly costs (such as parking or tolls). The calculator returns monthly cost and miles.

Related tools: Parking Cost Calculator: Parking cost with an hourly rate and a daily maximum. Subscription Cost Calculator: Yearly and long-term cost of monthly subscriptions. Daily Savings Calculator: Amount to save each day to reach a goal.

How to use the Commute Cost Calculator

  1. Enter one-way distance (mi) (above 0).
  2. Enter commuting days per month (above 0).
  3. Enter fuel economy (mpg) (above 0).
  4. Enter fuel price ($ per gal) (above 0).
  5. Optionally, enter other monthly costs (optional) ($) (0 or more).
  6. Press Calculate to see the result, and use Reset to start again.
Inputs of the Commute Cost Calculator
InputWhat to enterAllowed values
One-way distanceA number, in mi> 0
Commuting days per monthA number> 0
Fuel economyA number, in mpg> 0
Fuel priceA number, in $ per gal> 0
Other monthly costs (optional) (optional)A number, in $≥ 0

Formula and method

Formula

fuel = distance × 2 × days ÷ mpg × price

IEEE-754 double precision; shown to the decimals indicated.

Add parking, tolls and wear in the optional field.

Worked examples

These examples are verified: each one is an automated test case that the live calculator must reproduce exactly.

Example 1

Inputs: One-way distance = 15; Commuting days per month = 22; Fuel economy = 30; Fuel price = 3.5; Other monthly costs (optional) = 40.

Results of example 1
ResultValue
Monthly commute cost$117.00
Fuel per month$77.00
Miles per month660

Example 2

Inputs: One-way distance = 8; Commuting days per month = 20; Fuel economy = 25; Fuel price = 4.

Results of example 2
ResultValue
Monthly commute cost$51.20
Fuel per month$51.20
Miles per month320

The first line is the headline result (monthly commute cost). Below it the commute Cost Calculator lists fuel per month and miles per month, which describe the same case from other angles. IEEE-754 double precision; shown to the decimals indicated.

Fuel is only part of the cost

Maintenance, tires, depreciation and insurance also rise with miles. The IRS standard mileage rate, which bundles these, is higher per mile than fuel alone, so the true cost of commuting is above the fuel figure. Use the other-costs field for known fixed items.

Comparing options

Run the calculator with a transit pass price and different days to compare driving with other modes, or to see what working from home two days a week would save.

How the result changes with one-way distance

Holding every other input at the first worked example, this table changes only one-way distance. It shows how sensitive the answer is to that one value; each row was produced by running this calculator.

How the result changes with one-way distance
One-way distanceMonthly commute costFuel per monthMiles per month
7.5$78.50$38.50330
15$117.00$77.00660
30$194.00$154.001,320
60$348.00$308.002,640

What happens with invalid input

These messages are produced by the calculator itself, so you know what to fix.

  • One-way distance: entering "0" shows "One-way distance must be greater than 0." beside that field and no result.
  • Fuel economy: entering "0" shows "Fuel economy must be greater than 0." beside that field and no result.

Choosing between the Commute Cost Calculator and similar calculators

Each row shows what a related calculator on this site asks for and what it returns, so you can pick the one that matches your question.

Choosing between the Commute Cost Calculator and similar calculators
CalculatorYou enterIt returns
[Parking Cost Calculator](/lifestyle/parking-cost-calculator/)time parked, hourly rate and daily maximumParking cost
[Subscription Cost Calculator](/lifestyle/subscription-cost-calculator/)monthly cost of each subscriptionAnnual cost
[Daily Savings Calculator](/lifestyle/daily-savings-calculator/)savings goal, already saved and days to reach the goalSave per day
[Gift Budget Calculator](/lifestyle/gift-budget-calculator/)total budget, recipients and held in reservePer recipient
[Rent Split Calculator](/lifestyle/rent-split-calculator/)total rent and each person's incomeShares

Assumptions and limitations

  • Round trip assumed

If a required value is empty, not a number, or outside its allowed range, the form marks that field with a message and shows no result instead of a misleading number. The automated checks deliberately try invalid entries for one-way distance and fuel economy to confirm this.

Frequently asked questions

How many miles per month is that?

660 in the example (15 × 2 × 22).

Can I use litres per 100 km?

Convert to mpg or use kilometres with km per litre.

Is the commute tax-deductible?

Usually not; ask a tax professional.

What does the Commute Cost Calculator calculate?

Monthly cost of commuting by car. It returns Monthly commute cost, Fuel per month and Miles per month.

What formula does the Commute Cost Calculator use?

fuel = distance × 2 × days ÷ mpg × price. Add parking, tolls and wear in the optional field.

What do I need to enter in the commute Cost Calculator?

You enter One-way distance (mi), Commuting days per month, Fuel economy (mpg) and Fuel price ($ per gal). Optional: Other monthly costs (optional) ($).

How is the result rounded or limited?

IEEE-754 double precision; shown to the decimals indicated. Round trip assumed.

What is an example of a commute Cost result?

With one-way distance 15, commuting days per month 22, fuel economy 30, fuel price 3.5 and other monthly costs (optional) 40, the monthly commute cost is $117.00.

Sources

  • ISO 8601-1: Date and time, representations for information interchange (calendar dates, ordinal dates and week dates)
  • Gregorian calendar reform, papal bull Inter gravissimas (1582): the leap-year rule used for all dates

Content last reviewed 2026-11-04. Formulas and worked examples are checked by automated tests against independently computed values.