
Short answer
DEF costs a semi about 2 to 3.5 cents per mile at pump prices of $4.30 to $4.60 a gallon. That is the math for a truck at 6.5 mpg that uses DEF at 3% to 5% of its diesel volume. Your number depends on your mpg, your DEF price, and where you buy.
Open the Cost Per Mile Calculator
Example numbers from the Cost Per Mile Calculator. Open it to use your own.
DEF costs a semi about 2 to 3.5 cents per mile at pump prices of $4.30 to $4.60 a gallon. That is the math for a truck at 6.5 mpg that uses DEF at 3% to 5% of its diesel volume. Your number depends on your mpg, your DEF price, and where you buy.
Haul Math (haulmath.co) is a set of free calculators for owner-operators and small fleets, made by Hive Asset Group, LLC. Enter your miles, fuel, and other costs in the cost per mile calculator to get your full cost per mile, with DEF in it. Then use this page to find the DEF number to type in.
What DEF is and why it shows up as a cost
Diesel exhaust fluid (DEF) is a mix of urea and water. Trucks with a modern emissions system spray it into the exhaust. You buy it separately from diesel and pour it into its own tank.
Many owner-operators log DEF inside "fuel" or "other." That hides it. It is a small cost per mile, but it is a real one, and it grows with every mile you run.
How much DEF does a semi use?
Published rules of thumb:
- About 3% to 5% of the diesel you burn, by volume (SlashGear, May 27, 2025).
- About 5 to 8 gallons of DEF per 1,000 miles (same source).
- About 1 gallon of DEF for every 200 gallons of diesel is also quoted. That is 0.5%, which is far lower. Treat it as a floor, and check your own receipts.
Your engine, load, and idle time change the rate. More fuel burned means more DEF used.
What DEF costs right now
Published pump prices are the best public anchor. Bulk delivery to a yard can cost less, but prices vary by region and supplier, so use your own invoice if you have one.
| Item | Figure | Date | Source |
|---|---|---|---|
| DEF at Pilot Flying J (most common pump range) | $4.299 to $4.599 per gallon | Mid-March 2026 | Yahoo Finance |
| U.S. on-highway diesel, retail | $6.352 per gallon | Week of Oct 26, 2026 | EIA |
| Total operating cost per mile | $2.336 | 2025 data, published 2026 | ATRI |
| DEF use, share of diesel volume | 3% to 5% | May 27, 2025 | SlashGear |
The DEF pump price is from March. Check the posted price at your usual stop before you rely on it.
The formula
DEF cost per mile = (DEF share of diesel) × (DEF price per gallon) ÷ (miles per gallon)
You divide by mpg because each mile burns 1 ÷ mpg gallons of diesel. DEF is a share of that.
Example: one truck, 100,000 miles
This is an example, not a promise of what you will pay. The mpg is an assumption.
- Miles: 100,000
- Fuel economy: 6.5 mpg (assumed)
- Diesel burned: 100,000 ÷ 6.5 = 15,385 gallons
- DEF price range: $4.299 to $4.599 per gallon (pump range above)
| DEF use | DEF gallons | Cost at the price shown | Per mile |
|---|---|---|---|
| 3% at $4.299 | 462 | $1,984 | $0.0198 |
| 4% at $4.449 (midpoint price) | 615 | $2,738 | $0.0274 |
| 5% at $4.599 | 769 | $3,538 | $0.0354 |
So in this example DEF runs about 2.0 to 3.5 cents per mile, or about $1,984 to $3,538 over 100,000 miles.
Compare that to ATRI's $2.336 total cost per mile. DEF at 2.0 to 3.5 cents is about 0.8% to 1.5% of that figure (0.0198 ÷ 2.336 and 0.0354 ÷ 2.336). Small, but it is the kind of cost that goes missing from a budget.
Why your number may differ
- mpg. A truck at 7.5 mpg burns less diesel, so it uses less DEF per mile.
- Where you buy. Pump, jug, tote, and bulk prices are different. A rule of thumb is to price DEF the way you actually buy it.
- Idle and duty cycle. Long idle hours and heavy grades use more fuel, and more DEF with it.
- Truck model year. Trucks without a DEF system have no DEF cost. Check your spec sheet.
How to track your real number
- Keep every DEF receipt. Write down the gallons and the odometer.
- Add up DEF gallons over a full quarter.
- Divide the dollars spent by the miles driven.
That gives you a number from your own truck. It beats any average on this page.
Put DEF in the rest of your cost per mile
DEF is one line next to fuel, tires, repairs, insurance, and truck payment. See the full list in the trucking cost per mile guide. For the repair side, see the truck maintenance budget guide and the tire cost per mile guide. To plan fuel for a single trip, use the trip fuel cost calculator.
The $19 workbook. An Excel file (.xlsx) with working formulas, plus a printable PDF. It is a planning tool, not a promise of results. Get the workbook
Haul Math tools give estimates from the numbers you enter. Your DEF use and price will differ.
Common questions
- How much does DEF cost per mile for a semi truck?
- About 2 to 3.5 cents per mile in the example on this page. It uses 6.5 mpg, 3% to 5% DEF use, and pump prices of $4.299 to $4.599 per gallon. Your truck may be higher or lower.
- How much DEF does a semi use per 1,000 miles?
- About 5 to 8 gallons per 1,000 miles, according to SlashGear (May 27, 2025). At 6.5 mpg, 1,000 miles burns about 154 diesel gallons. A 3% to 5% share of that is 4.6 to 7.7 gallons.
- How much is DEF for a year?
- At 100,000 miles, the example comes to about $1,984 to $3,538. Scale it by your own miles. Half the miles is roughly half the DEF, all else equal.
- Is it cheaper to buy DEF in bulk?
- Often the per-gallon price is lower in totes or bulk delivery than at the pump. Prices vary by region and supplier. Get a written quote and compare it to your pump receipts.
- Does DEF count in my cost per mile?
- Yes. It is an operating cost you pay per mile. Put it in your cost per mile so your break-even rate is not understated.
Sources

Free, no signup
Know your number before you take the load
26 free calculators, no signup. Want your loads and numbers saved? Try Pro free for 14 days, no card.