DEF Cost Calculator for Owner Operators
See how much diesel exhaust fluid your truck uses and what it costs per mile and per year, and work out your own DEF rate from your fill-ups.
Your truck
Prices and tank sizes are examples. Change every number to match your truck and what you pay.
What DEF costs you
DEF cost per mile
$0.0138
$13.85 per 1,000 miles
DEF cost a year
$1,385
461.5 gallons, 23.1 tanks
Miles per gallon of DEF
216.7
4.6 gallons per 1,000 miles
One DEF tank lasts
4,333 mi
6 gal of DEF per full diesel tank (1,300 mi)
DEF adds up to 1.5% of what you spend on diesel.
Find your own DEF rate
Add up the DEF you put in and the diesel you burned over the same stretch, like a month. Fill both tanks at the start and the end so the count is fair.
DEF gallons are diesel gallons times the DEF rate. Diesel gallons are miles divided by MPG. Cost is DEF gallons times the DEF price. Heavy Duty Trucking has reported manufacturers predicting DEF rates of 2 to 3 percent for over-the-road trucks, but the real rate depends on your engine, load and driving, so use your own numbers. Your numbers stay in this browser. This is an estimate for planning.
Numbers tight? Let a dispatcher find better loads.
This tool is free. If it shows you are leaving money on the road, Grow Trucking finds loads, negotiates rates and does the paperwork for owner-operators and small fleets.
Also: About Grow Trucking · Refer a carrier · Trucking blog
Need Help?
Have questions about using our def cost calculator? All our tools are free to use with no registration required. Save your inputs locally and come back anytime.
How much does DEF cost a semi truck?
Heavy Duty Trucking reports manufacturers predicting DEF use of 2 to 3 gallons for every 100 gallons of diesel. At 6.5 MPG and 3 percent, DEF costs about 1.4 cents a mile at $3.00 a gallon, roughly 2 percent of the diesel bill. Use your own rate, since it depends on the engine and the work.
- Enter your diesel MPG and the price you pay for DEF and diesel.
- Enter your DEF rate, or work it out from your own fill-ups in the box below.
- Enter miles a year and your tank sizes.
- Read DEF cost per mile, per year, and how far a DEF tank goes.
- Enter a second DEF price to see what a cheaper source would save.
- Add the per-mile cost to your running cost per mile.
| Number | How it is worked out |
|---|---|
| Diesel gallons | Miles / diesel MPG |
| DEF gallons | Diesel gallons x DEF rate |
| DEF cost | DEF gallons x DEF price |
| Miles per gallon of DEF | Diesel MPG / DEF rate |
| One DEF tank lasts | Tank gallons x miles per gallon of DEF |
| Your own DEF rate | DEF gallons added / diesel gallons burned x 100 |
The 2 to 3 percent figure is what manufacturers were reported to predict for over-the-road trucks in Heavy Duty Trucking (August 25, 2011). Real rates vary with the engine, load and duty cycle, so the tool lets you enter your own. Prices and tank sizes on the page are examples. EPA's DEF guidance letters are dated August 11, 2025 and March 26, 2026.
Last reviewed September 2026. Sources: Heavy Duty Trucking: Don't forget to factor DEF into fuel costs; EPA: diesel exhaust fluid and DEF guidance; EIA: weekly U.S. on-highway diesel prices.
Frequently Asked Questions - DEF Cost Calculator
How much DEF does a semi use?
How much does DEF cost per mile?
How many miles per gallon of DEF does a truck get?
How often do I fill the DEF tank on a semi?
How do I find my real DEF rate?
Is DEF worth the cost?
What happens if a semi runs out of DEF?
Is DEF cheaper in bulk?
Where does DEF go in my cost per mile?
Related Trucking Tools
Fuel Cost Calculator
Plan fuel stops, optimize fill strategy, and estimate DEF costs for your trip.
Cost Per Mile Calculator
Know your exact CPM — fixed, variable, and break-even rate.
Diesel Fault Code Lookup (SPN/FMI)
Look up common J1939 SPN and FMI codes — what they mean and what commonly causes them.
Fuel Range and Stop Planner
See how far your tank takes you, where to fuel on a trip, and whether to fill up here or wait for a cheaper stop.
Go Further With DEF Cost Calculator
Guides, services and reference pages that go with this tool.
- Fleet management serviceWe track fuel, DEF and service costs across every truck.
- Diesel prices by stateLive diesel prices to plug into your fuel cost.
- Engine specs referenceLook up the engine in your truck.
- Fault code lookupDecode the DEF and SCR fault codes your truck shows.
- Fuel cost calculatorWork out the diesel side of the bill.
- Cost per mile calculatorAdd DEF to your full cost per mile.