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
| Fuel required | 152.75 gal |
|---|---|
| Fuel cost per mile | $0.609/mi |
| Loaded miles | 900 mi |
| Loaded vs. deadhead fuel | 90.64% / 9.36% |
* 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.
| MPG | Cost / mile | Fuel for 1,000 mi | Fuel cost |
|---|---|---|---|
| 5 | $0.798 | 200.00 gal | $798.00 |
| 6 | $0.665 | 166.67 gal | $665.00 |
| 7 | $0.570 | 142.86 gal | $570.00 |
| 8 | $0.499 | 125.00 gal | $498.75 |
Worked examples
152.747 × $3.99 = $609.46
71.429 × $4.09 = $292.14
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
- Enter the total miles or switch to Metric Units and enter kilometers.
- Enter your real-world diesel fuel economy.
- Enter the price you expect to pay at the pump.
- 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.