Cost Per Mile Calculator: Fuel, Marginal, Cash-Flow and True All-In Cost
One mile has four different prices depending on the decision you are making. This calculator reports all four — the fuel or energy cost, the marginal cost of one more mile, the cash actually leaving your account, and the true all-in ownership cost — instead of a single figure that fits none of them well.
Calculate fuel cost, marginal driving cost, cash-flow cost, and true all-in ownership cost per mile.
Your inputs stay in your browser. No account, no email, no data sent to any server.
Use fuel for consumption, marginal for one extra trip, all-in for affordability, and cash-flow for budgeting.
Cost breakdown
| Category | Amount / period | Per mile | % of total | Type | Source |
|---|---|---|---|---|---|
| Energy or fuel | $1,400 | $0.117 | 16.6% | Variable | Estimated |
| Maintenance | $600 | $0.050 | 7.1% | Variable | Estimated |
| Repairs | $300 | $0.025 | 3.6% | Variable | Estimated |
| Tires | $200 | $0.017 | 2.4% | Variable | Estimated |
| Oil and fluids | $80 | $0.007 | 0.9% | Variable | Estimated |
| Other variable | $0 | $0.000 | 0% | Variable | Estimated |
| Depreciation | $3,200 | $0.267 | 37.9% | Mixed | Estimated |
| Insurance | $1,400 | $0.117 | 16.6% | Fixed | Actual |
| Registration, license and taxes | $300 | $0.025 | 3.6% | Fixed | Actual |
| Parking | $240 | $0.020 | 2.8% | Fixed | Actual |
| Inspections | $40 | $0.003 | 0.5% | Fixed | Actual |
| Roadside and subscriptions | $80 | $0.007 | 0.9% | Fixed | Actual |
| Other fixed | $0 | $0.000 | 0% | Fixed | Estimated |
| Financing interest | $600 | $0.050 | 7.1% | Fixed | Estimated |
| Total economic cost | $8,440 | $0.703 | 100% |
Data table
| Category | Amount / period | Per mile | % of total | Type | Source |
|---|---|---|---|---|---|
| Energy or fuel | $1,400 | $0.117 | 16.6% | Variable | Estimated |
| Maintenance | $600 | $0.050 | 7.1% | Variable | Estimated |
| Repairs | $300 | $0.025 | 3.6% | Variable | Estimated |
| Tires | $200 | $0.017 | 2.4% | Variable | Estimated |
| Oil and fluids | $80 | $0.007 | 0.9% | Variable | Estimated |
| Other variable | $0 | $0.000 | 0% | Variable | Estimated |
| Depreciation | $3,200 | $0.267 | 37.9% | Mixed | Estimated |
| Insurance | $1,400 | $0.117 | 16.6% | Fixed | Actual |
| Registration, license and taxes | $300 | $0.025 | 3.6% | Fixed | Actual |
| Parking | $240 | $0.020 | 2.8% | Fixed | Actual |
| Inspections | $40 | $0.003 | 0.5% | Fixed | Actual |
| Roadside and subscriptions | $80 | $0.007 | 0.9% | Fixed | Actual |
| Other fixed | $0 | $0.000 | 0% | Fixed | Estimated |
| Financing interest | $600 | $0.050 | 7.1% | Fixed | Estimated |
| Total economic cost | $8,440 | $0.703 | 100% |
Data table
| Miles/year | Fixed $/mi | Marginal $/mi | All-in $/mi | Total annual cost |
|---|---|---|---|---|
| 5,000 | $0.852 | $0.348 | $1.200 | $6,002 |
| 7,500 | $0.568 | $0.348 | $0.916 | $6,873 |
| 10,000 | $0.426 | $0.348 | $0.774 | $7,743 |
| 12,500 | $0.341 | $0.348 | $0.689 | $8,614 |
| 15,000 | $0.284 | $0.348 | $0.632 | $9,485 |
| 20,000 | $0.213 | $0.348 | $0.561 | $11,227 |
| 25,000 | $0.170 | $0.348 | $0.519 | $12,968 |
| 30,000 | $0.142 | $0.348 | $0.490 | $14,710 |
What moves your number
- A 10% rise in the energy price would lift all-in cost to about $0.715/mile.
- Driving 20% more miles a year would move all-in cost toward about $0.644/mile, as fixed costs spread further.
- Depreciation is the single largest cost at about 37.9% of the total (mixed).
Cost of a specific trip
Based on your trip distance, one way.
Allocated all-in cost spreads fixed costs you have already paid onto this trip. It is not the incremental cost of making the trip — for a go/no-go decision use the marginal figure.
Calculation receipt
What your result means
Enter your vehicle costs for a period and the distance driven in that same period. The engine separates variable costs (energy, maintenance, tyres and the mileage-related share of depreciation) from fixed costs (insurance, registration, the time-related share of depreciation and financing or lease costs), then reports fuel, marginal, all-in and cash-flow cost per mile. Owned vehicles use depreciation and interest; leased vehicles use lease payments instead — the two are never mixed. A confidence score grades how much rests on real records versus estimates.
A gasoline car driven 12,000 miles a year at 30 MPG on $3.50 fuel, with $1,180 of maintenance and tyres, $2,060 of insurance and registration, $3,200 of depreciation and $600 of interest, works out to about $0.70 all-in per mile — but only about $0.12 in fuel and about $0.35 marginal. Use the fuel number for consumption, the marginal number for a one-off trip, the all-in number for affordability, and the cash-flow number for budgeting.
The four costs per mile — and the decision each one answers
Fuel or energy cost per mile is what the energy alone costs: distance divided by MPG times the price per gallon for liquid fuel, or distance times kWh per 100 miles divided by 100 times the price per kWh (plus charging loss) for electricity. It answers 'how much does the driving itself consume?' and nothing else — it excludes every fixed and ownership cost.
Marginal cost per mile is the variable cost of one more mile: energy plus maintenance, repairs, tyres, oil and the mileage-related share of depreciation. This is the correct number for a marginal decision such as whether to drive to the next town or take the train, because insurance, registration and time-based depreciation are already paid whether the car moves or not.
All-in cost per mile is the full economic cost: marginal cost plus insurance, registration, the time-related share of depreciation and, for an owned vehicle, financing interest. It is the correct number for affordability and ownership decisions. Cash-flow cost per mile is different again — it excludes non-cash depreciation and includes the loan principal you actually repay, so it tracks the cash leaving your account for month-to-month budgeting.
Fixed versus variable costs — why your per-mile number falls as you drive more
Fixed costs — insurance, registration, licence, and the time-based share of depreciation — accrue whether the car sits in the driveway or crosses the country. Variable costs — fuel, tyre wear, oil and brake maintenance, and the mileage-based share of depreciation — accrue only when the wheels turn. Divide a single annual total by miles driven and the fixed component spreads thinner the more you drive, which is why a car driven 3,000 miles a year can show a per-mile cost above $2.00 while the identical car driven 25,000 miles shows under $0.60.
This is why the mileage-sensitivity curve matters more than any single figure. As annual mileage rises the fixed cost per mile falls and the total annual cost rises, while the marginal cost per mile stays constant. A common error is to quote one all-in number as if it were universal; your real number depends on how far you drive.
Owned versus leased, and why principal and depreciation never mix
For an owned vehicle the economic cost of the metal is its depreciation — the value it loses — plus the interest on any loan. The loan principal is not an economic cost: it is the cash repayment of money you borrowed, and the value it bought is already captured by depreciation. Counting both principal and depreciation in one number double-counts the vehicle. So all-in economic cost uses depreciation and interest; cash-flow cost uses interest and principal and drops the non-cash depreciation.
For a leased vehicle there is no depreciation to you and no principal — the lease payment already bundles the vehicle's value loss, financing and the lessor's margin. All-in and cash-flow cost therefore use lease upfront, payments and fees, and depreciation is zero. Mixing owned depreciation with lease payments, or entering both for one vehicle, is a modelling error the calculator flags.
IRS standard mileage rate vs actual cost — which to use
The IRS publishes annual optional standard mileage rates for tax purposes. For 2026 (Notice 2026-10) the rates are $0.725/mile for business use, $0.205/mile for medical or moving (moving is deductible only for active-duty Armed Forces), and $0.14/mile for charitable use. A taxpayer using a personal vehicle for business may deduct the business rate times business miles, or deduct actual expenses prorated by business-use percentage. Which deducts more is empirical — run both.
Whether you may use the standard rate depends on whether the vehicle is owned or leased and on prior elections, and the rate excludes parking, tolls and business-purpose interest, which are deductible separately. This calculator's business module compares your actual per-mile cost against a reimbursement rate for planning; it is not a tax-filing tool, and the IRS figure is shown as a benchmark, not your personal cost.
Worked example and key insight
The single most common mistake is judging a marginal decision — 'should I drive to the next town?' — with the all-in number, which counts insurance and depreciation you have already paid. That makes people skip worthwhile short trips. Match the metric to the decision and the number stops lying to you.
AAA average cost per mile by vehicle category (2025)
From AAA's 2025 'Your Driving Costs' study: average cost to own and operate a NEW vehicle at 15,000 miles/year over 5 years / 75,000 miles. Each figure is all-in — fuel or energy, maintenance/repair/tires, insurance, license/registration/taxes, depreciation and a finance charge — so it maps to this calculator's all-in cost per mile, not the fuel or marginal number. For comparison, the IRS 2026 business standard rate is $0.725/mile.
| Vehicle category (AAA 2025) | Total $/mile | Notes |
|---|---|---|
| Small sedan | $0.5587 | Lowest total cost |
| Hybrid | $0.6394 | |
| Medium sedan | $0.6637 | |
| Compact SUV | $0.6853 | |
| Electric | $0.7121 | Lower energy/maintenance, higher depreciation |
| All-category weighted average | $0.7718 | About $11,577/year at 15,000 mi |
| Midsize pickup | $0.7911 | |
| Medium SUV | $0.8389 | |
| Half-ton pickup | $0.9854 | Highest total cost |
AAA figures are at 15,000 miles/year. Cost per mile is highly sensitive to annual mileage — AAA's own numbers for the average vehicle run about $1.00/mile at 10,000 miles/year, $0.77 at 15,000, and $0.66 at 20,000. Always compute at your actual annual mileage using the sensitivity curve above.
Reliability and limitations
- It is not a route planner: it computes no maps, tolls or vignettes.
- It is not a full trucking profit-and-loss model or a tax-filing tool.
- Currency selection changes display only; it performs no foreign-exchange conversion.
- Preset examples are benchmarks, not your measured personal cost.
Frequently Asked Questions
Which of the four cost-per-mile numbers should I use?
Fuel or energy cost for how much a mile of driving consumes; marginal cost for whether to make one extra trip; all-in cost for whether you can afford the vehicle; and cash-flow cost for month-to-month budgeting. Using the all-in figure for a single trip overstates its true cost, often by two to three times.
Why is all-in cost per mile so much higher than fuel cost?
Fuel is only one slice. Depreciation is usually the largest single cost of driving, and insurance, registration, maintenance and financing add more still. All-in cost counts every one of them; fuel cost counts none but the energy.
How does the calculator handle depreciation?
Enter the value lost over the period directly, or a start and end value and it takes the difference. It then splits that depreciation into a mileage-related share (variable) and a time-related share (fixed), which always add back to the total. Leased vehicles depreciate nothing here and use lease payments instead.
Why are loan principal and depreciation never counted together?
Depreciation is the economic value your vehicle loses; loan principal is cash you repay. Counting both would double-count the vehicle. All-in economic cost uses depreciation and interest; cash-flow cost uses interest and the principal actually paid, excluding non-cash depreciation.
Is an EV always cheaper per mile than a gas car?
Usually cheaper on energy and a little cheaper on maintenance, but not automatically cheaper all-in. Fast-charging can erase the energy gap, and depreciation and purchase price often matter more. Enter both vehicles in Compare and read the all-in and cash-flow numbers, not the fuel number alone.
Does cost per mile fall as I drive more?
The all-in and fixed cost per mile fall as annual mileage rises, because insurance, registration and time-based depreciation spread over more miles. The marginal cost per mile stays roughly constant. The mileage-sensitivity curve shows exactly where your number lands.
Does changing the currency convert my numbers?
No. Currency selection changes the displayed symbol only; it performs no foreign-exchange conversion. Enter every figure in one currency of your choice.
Evidence, sources and editorial review
Cost Per Mile Calculator: Fuel, Marginal, Cash-Flow and True All-In Cost groups its evidence and methodology review here so sources, assumptions and responsibility can be checked together.
Methodology and sources
This is a driving-cost decision engine, not a single total-divided-by-distance ratio. From your costs and the distance driven it derives four DISTINCT per-mile numbers that answer four different questions. Fuel or energy cost per mile is the energy alone: for gas, diesel and hybrid it is distance ÷ MPG × price per gallon; for an EV it is distance × kWh per 100 miles ÷ 100 × price per kWh × (1 + charging loss); a PHEV splits electric and fuel miles by the electric-miles share, and a manual override replaces the computed figure so no energy category is ever counted twice. Marginal cost per mile is the variable cost of one more mile — energy, maintenance, repairs, tyres, oil and the mileage-related share of depreciation. All-in cost per mile is the full economic cost: it adds insurance, registration, the time-related share of depreciation and, for an owned vehicle, financing interest; for a leased vehicle it uses lease upfront, payments and fees instead and counts no depreciation, so owned depreciation and lease costs are mutually exclusive. Cash-flow cost per mile is the cash actually leaving your account: it excludes non-cash depreciation and, for an owned vehicle, includes the loan principal actually paid — so principal and depreciation are never both counted. Depreciation is split into a mileage-related share (variable) and a time-related share (fixed); the two always sum to the depreciation total. A deterministic 0–100 confidence score grades how much of the result rests on real records versus estimates and presets, and structured warning codes flag any missing piece. Nothing is rounded inside the maths. The model version is vehicle-cost-per-mile-1 and the share-link schema version is 1. AAA's 2025 'Your Driving Costs' study is offered as a benchmark (weighted average $0.7718/mile all-in at 15,000 miles/year, from about $0.56 for a small sedan to about $0.99 for a half-ton pickup), and the IRS 2026 standard mileage rates as a tax benchmark ($0.725 business, $0.205 medical/moving, $0.14 charitable). RELIABILITY: most reliable for steady-state driving with records; cost per mile is highly sensitive to annual mileage because fixed costs spread over more miles, so the mileage-sensitivity curve matters more than any single figure.
- Model version:
vehicle-cost-per-mile-1; share-link schema version:1. - 1 mile = 1.609344 kilometres exactly; no rounding inside the maths.
- No network requests, no personal data sent to any server — the calculation runs entirely in your browser.
Reviewed according to the CalcDomain Editorial Policy & Calculator Methodology. We document formulas, edge cases, sources, update dates, and correction paths for calculator pages.
Updated
References & Authoritative Sources
- U.S. Internal Revenue Service (IRS) — Standard Mileage Rates (2026: Notice 2026-10) · consulted July 5, 2026 · 2026 optional standard mileage rates — business $0.725, medical/moving $0.205, charitable $0.14
- U.S. Internal Revenue Service (IRS) — Publication 463 — Travel, Gift, and Car Expenses · consulted July 5, 2026 · Standard-mileage vs actual-expense rules, and the owned-vs-leased first-year election
- U.S. Department of Energy — Alternative Fuels Data Center — Vehicle Cost Calculator and methodology · consulted July 5, 2026 · U.S. government tool for per-mile fuel/energy and ownership cost by powertrain
- AAA (American Automobile Association) — Your Driving Costs — 2025 Annual Study · consulted July 5, 2026 · 2025 per-mile cost by vehicle category at 15,000 mi/yr; weighted average $0.7718/mile
Related Calculators
Methodology & Review
Suggest an improvement
Found a calculation issue, outdated source, unclear assumption, or missing edge case? Send a short note so we can review it.