Skip to main content

Diesel Cost Calculator

Estimate diesel required, total trip fuel cost, and fuel cost per mile from your distance, real-world MPG, and diesel price.

Trip inputs

mi
1 mi3,000 mi
MPG
1 MPG15 MPG
$/gal
$0.01$8.00/gal
mi
01,000
MPG
1 MPG15 MPG
Estimated trip fuel cost
$609.46
Fuel required152.75 gal
Fuel cost per mile$0.609/mi
Loaded miles900 mi
Loaded vs. deadhead fuel90.64% / 9.36%
Fuel-cost allocationLoaded vs. deadhead
Fuel cost allocationA donut chart showing loaded and deadhead fuel cost.$609.46total fuel● Loaded 90.64%● Deadhead 9.36%
Live formula: Total fuel = loaded miles ÷ loaded MPG + deadhead miles ÷ empty MPG. Total cost = total fuel × diesel price. 900 ÷ 6.5 + 100 ÷ 7 = 152.747 gal; 152.747 × $3.99 = $609.46.
Efficiency insight: Fuel cost per mile equals diesel price ÷ MPG when one MPG is used for the whole trip.
Planning insight: Include every driven mile, including deadhead, and use the pump price you actually expect to pay.
Risk check: Heavy loads, hills, wind, cold weather, idling, speed, and traffic can reduce real-world MPG.

* Results are estimates for educational and planning purposes only and do not constitute formal financial, medical, or engineering advice.

Reference cost comparison

At the selected diesel price, compare how fuel economy changes fuel cost per mile. Values update automatically.

MPGCost / mileFuel for 1,000 miFuel cost
5$0.798200.00 gal$798.00
6$0.665166.67 gal$665.00
7$0.570142.86 gal$570.00
8$0.499125.00 gal$498.75

Worked examples

Example 1 — default trip900 ÷ 6.5 + 100 ÷ 7 = 152.747 gal
152.747 × $3.99 = $609.46
Example 2 — 500-mile trip500 ÷ 7 = 71.429 gal
71.429 × $4.09 = $292.14
Example 3 — heavy run1,350 ÷ 6 + 150 ÷ 6.8 = 247.059 gal
247.059 × $3.89 = $961.06

About this calculator

This calculator converts distance and fuel economy into diesel gallons, then multiplies the unrounded fuel quantity by the entered diesel price. Optional deadhead inputs let truck and fleet users apply a different MPG to empty miles. Industry-standard fuel-cost calculators use the same core relationship: gallons = miles ÷ MPG and fuel cost = gallons × price per gallon. :chatgpt-content-reference{index="0"}

For the most accurate estimate, use routed miles and your own fuel-log MPG. A pump price or published average is only a benchmark because actual prices vary by location, taxes, station, and fuel-card discounts.

How to use

  1. Enter the total miles or switch to Metric Units and enter kilometers.
  2. Enter your real-world diesel fuel economy.
  3. Enter the price you expect to pay at the pump.
  4. For trucking, optionally enable separate deadhead/empty-mile MPG, then review gallons, total cost, cost per mile, and the chart.

Why use it?

It separates the three numbers that drive fuel expense—distance, efficiency, and price—so you can compare routes, trucks, fuel-card prices, and MPG assumptions without relying on rounded intermediate values.

Important terms

MPG
Miles per gallon; higher MPG means fewer gallons are needed for the same distance.
Deadhead miles
Miles driven without the normal loaded freight or trip payload.
Fuel cost per mile
Fuel expense divided by driven miles; with one MPG, it is price per gallon ÷ MPG.
Real-world MPG
Fuel economy measured from actual driving and fuel use rather than a laboratory or sticker value.

FAQs

What is the formula for diesel trip cost?

Fuel required = distance ÷ MPG. Total diesel cost = fuel required × price per gallon. If loaded and deadhead MPG differ, calculate each segment separately and add the gallons.

Should I include deadhead miles?

Yes. If the vehicle will physically drive those miles, they consume fuel and belong in the trip estimate. The optional deadhead mode lets you apply a separate empty-mile MPG.

What diesel price should I enter?

Use the price you actually expect to pay. If you have a fuel-card discount, enter your effective net pump price rather than a generic retail benchmark.

Why can actual fuel cost be higher?

Real MPG changes with payload, terrain, wind, temperature, speed, traffic, idling, tire condition, and driving style. Reefer or auxiliary fuel use can also add fuel that is not captured by road MPG alone.

Can I use this for cars and pickups?

Yes. The same mathematics applies to any diesel vehicle; simply use its actual fuel economy and the distance driven.

✓ Copied to Clipboard!