How to Clean a DEF Tank: Step-by-Step Guide

Technician flushing and cleaning a DEF tank to remove crystallization

DEF tank crystallization causes P207F, P20EE, and P20EF fault codes, engine derates, and costly SCR repairs on diesel trucks, RVs, and equipment. This step-by-step guide covers how to clean a DEF tank at home or in the shop, when NüDef def crystal cleaner alone will solve the problem, and how to prevent crystallization from returning with NüDef.

DEF tank crystallization is the root cause of most SCR system fault codes, engine derates, and unplanned shop visits on diesel vehicles. When urea deposits build up inside the tank, lines, or dosing injector, the system cannot deliver DEF correctly, and the ECU responds with warning codes and progressive speed restrictions. Knowing how to clean a DEF tank properly, and when to use a def crystal cleaner versus a full flush, is the difference between a $40 DIY fix and a $900 dealer visit.

This guide covers the complete process for cleaning a DEF tank at home or in the shop: what you need, step-by-step instructions, what to do when the tank alone is not the problem, and how to prevent crystallization from coming back.

Signs Your DEF Tank Needs Cleaning

DEF fault codes. P207F (Reductant Quality Performance), P20EE (SCR Catalyst Efficiency Below Threshold), and P20EF (Reductant Injection Valve Stuck) all trace back, in most cases, to crystallization in the tank, lines, or dosing injector. If you have pulled one of these codes and the DEF looks discolored, cloudy, or has visible white deposits, the tank is the starting point.

White residue at the filler neck or cap. DEF is colorless and clean when fresh. White chalky deposits at the fill point mean urea has been concentrating and crystallizing at the surface where evaporation occurs fastest. If you see it outside the tank, there is almost certainly more inside.

Strong ammonia smell. DEF has a mild ammonia scent normally. A sharp, strong smell indicates the urea concentration has risen beyond spec as the fluid degrades. Combined with a fault code or reduced SCR performance, this confirms the system needs a drain and clean before refilling.

What You Need Before You Start

  • Fresh ISO 22241 certified DEF: for refilling after the clean
  • Distilled or deionized water: for flushing (never use tap water; the minerals will contaminate the system)
  • A clean DEF-rated collection container: to catch the drain
  • NüDef def crystal cleaner: to treat the fresh fill and dissolve residual deposits
  • Nitrile or chemical-resistant gloves: DEF leaves white urea deposits on skin and clothing as it dries
  • Drain plug location: check your service manual or a quick web search; it varies by make and model

Step-by-Step DEF Tank Cleaning

  1. Let the engine cool completely. DEF lines and the dosing injector operate under pressure when the system is warm. A hot system makes access difficult and potentially unsafe. Park on a level surface and wait at least 30 minutes after shutdown.

  2. Locate and prepare the drain plug. On most pickup trucks, the DEF tank drain plug is accessible from underneath near the tank. On commercial vehicles, look for a panel on the side. Position your collection container beneath the drain point before loosening the plug.

  3. Drain the tank completely. Inspect the fluid coming out. Cloudy, discolored, white-particle-laden, or strongly ammonia-scented DEF has degraded significantly. Dispose of it properly. It is not hazardous waste but should not be poured into storm drains.

  4. Rinse with distilled water. Add one to two gallons of distilled water through the filler neck. Distilled only. Tap water contains calcium, magnesium, and minerals that will contaminate the SCR catalyst. Swirl or gently rock the vehicle to loosen crystalline deposits from the tank walls, then drain completely.

  5. Repeat the rinse if needed. If the first rinse came out visibly white or cloudy with suspended deposits, do a second rinse. A clean rinse runs clear or very slightly blue-tinted. When it runs clear, the tank is ready to refill.

  6. Add NüDef, then refill with fresh DEF. Add NüDef def crystal cleaner to the empty tank first at the recommended dose, then fill with fresh ISO 22241 certified DEF. NüDef dissolves any residual deposits the rinse did not fully remove, stabilizes the fluid, and provides a protective treatment on internal surfaces.

  7. Run the engine through a full warmup cycle. Start the engine and let it idle for 10 to 15 minutes to complete a full DEF system initialization. Then drive at highway speeds for 30 to 60 minutes. The higher exhaust temperatures dissolve remaining deposits in the lines and injector. Most quality-related fault codes (P207F, P20EE) clear within one to three drive cycles after a proper drain, rinse, and NüDef treatment.

DEF Crystals in Tank: What They Look Like and How to Remove Them

DEF crystals in the tank are distinct from crystals found in the dosing injector or supply lines, and they require a different assessment. Tank crystals form when DEF sits in a partially filled tank for weeks or months, allowing water to evaporate from the air-to-liquid surface. The urea concentrates at the top of the fluid column first, then precipitates as white crystalline deposits on the tank walls, the level sensor, and the outlet strainer at the bottom of the tank.

Visually, DEF crystals in the tank appear as a white chalky coating on internal surfaces that you can see when inspecting through the filler neck with a flashlight. In advanced cases, loose crystalline sediment settles at the bottom of the tank and can be felt as grit when you run a finger along the drain plug area. The fluid itself may appear cloudy or have visible white particles suspended in it rather than running clear.

Tank crystals are a problem even if the dosing injector is still clean. The crystalline sediment at the tank bottom clogs the outlet strainer, restricting DEF flow to the pump. Reduced flow means the pump works harder and the injector receives less DEF per cycle than the ECU expects, which triggers P207F (Reductant Quality Performance) fault codes. If enough sediment passes the strainer, it reaches the pump screen and accelerates crystallization downstream in the supply lines and injector.

To remove DEF crystals in the tank, follow the full drain-and-rinse procedure above. Pay special attention to the distilled water rinse step: swirl or rock the vehicle to dislodge crystals from the tank walls and level sensor. Drain and inspect. If the rinse water comes out white or gritty, repeat until it runs clear. After refilling with fresh DEF treated with NüDef, the stabilizer prevents the concentration drift that produced the tank crystals in the first place.

When Cleaning the Tank Is Not Enough

If fault codes return after a tank drain and refill, the crystallization has moved beyond the tank into the supply lines or dosing injector. The dosing injector is the most common location for deposits that survive a tank cleaning. It operates at the hottest and most thermally variable point in the system, which is exactly where crystals form fastest.

For severe injector blockage producing a P20EF code (Reductant Injection Valve Performance), the injector may need physical cleaning or replacement at a diesel shop. This is a 1 to 3 hour job at a cost of $300 to $900 depending on vehicle platform and labor rates. Catching the problem at the tank drain stage, before it progresses to full injector blockage, avoids this cost entirely.

How Often to Clean Your DEF Tank

A diesel vehicle with DEF treated regularly with NüDef should never need an emergency tank cleaning. The stabilizer prevents the crystallization and concentration drift that makes cleaning necessary in the first place. If you are treating at every fill-up or before every storage period, the tank will not accumulate deposits.

For vehicles that have not been treated, or where treatment was inconsistent, a preventive drain and refill with NüDef treatment is worth doing once per year for vehicles that see seasonal storage, extreme temperature exposure, or low annual mileage. Consider it a DEF system reset: fresh fluid, clean tank, NüDef treatment, and a fresh protection cycle begins.

For commercial vehicles running daily with high DEF consumption, an annual inspection of the tank outlet screen and supply line connections is sufficient if treated DEF is used consistently. Fleet operators who treat bulk DEF with NüDef at the fueling island rarely encounter the tank crystallization issues that untreated fleets deal with on a regular cycle.

Preventing Crystallization from Coming Back

The most common mistake after cleaning a DEF tank is refilling with untreated DEF and expecting different results. The conditions that caused crystallization the first time, including temperature swings, evaporation, and extended parking, have not changed. Without NüDef, the process begins again immediately.

Add NüDef to every DEF fill going forward. The dose is simple: add NüDef to the tank before adding DEF, or mix directly into a DEF jug before pouring. The stabilizer integrates with the DEF and remains active through normal operation and storage periods. It does not affect the urea concentration outside ISO 22241 specifications and does not impact engine or emissions system warranties.

For vehicles stored for more than three weeks between uses, including seasonal trucks, RVs, marine vessels, and generators, treat the tank before parking in addition to at every fill. The pre-storage treatment is the most critical dose. It protects the DEF through the exact conditions of static fluid, temperature swings, and slow evaporation that produce crystallization without it.

Technician flushing and cleaning a DEF tank to remove crystallization

Frequently Asked Questions

How do I know if my DEF tank has crystallization?

The clearest indicators are DEF-related fault codes (P207F, P20EE, P20EF), visible white deposits around the filler cap or neck, and DEF that smells strongly of ammonia beyond its normal mild scent. If you pull the filler cap and see white chalky residue, crystallization is present inside the tank and likely in the supply lines as well.

Can I use tap water to rinse my DEF tank?+
Will NüDef clear my DEF fault codes?+
How long does a DEF tank cleaning take?+
Do I need to clean my DEF tank if I already use NüDef?+
What if my fault code comes back after cleaning?+

Tips for DEF Tank Cleaning and Maintenance

Always Use Distilled Water for Rinsing

Tap water contains calcium, magnesium, and chlorine that will contaminate your DEF system and can damage the SCR catalyst. Use only distilled or deionized water when rinsing the DEF tank. It costs roughly a dollar per gallon at any grocery store and the two gallons needed for a double rinse is the cheapest insurance you can buy during a tank cleaning.

Add NüDef Before Adding Fresh DEF

After the rinse is complete and before refilling with fresh DEF, add NüDef to the empty tank first. When the fresh DEF goes in on top, it mixes with NüDef immediately and the stabilizer is distributed evenly throughout the fluid from the first moment. This gives maximum protection and starts the cleaning action on any residual deposits the water rinse did not fully remove.

Drive After Cleaning, Do Not Just Idle

Fault codes related to DEF quality clear most reliably through heat cycles, not idle time. After cleaning the tank and refilling with NüDef-treated DEF, drive the vehicle at highway speeds for at least 30 to 60 minutes. The higher exhaust temperatures during driving accelerate crystal dissolution in the lines and injector and help the ECU confirm that the system is performing within spec before clearing the stored fault.

Inspect the Outlet Screen During Every Drain

Most DEF tanks have a small mesh screen at the outlet where fluid exits to the supply line. This screen catches particulate before it reaches the pump and injector. During a drain, remove and inspect the screen. A screen coated in white crystal deposits means crystallization has been occurring for some time. Clean it with distilled water and a soft brush before reinstalling.

Do Not Mix Old and New DEF Without Treating

Topping off a tank of degraded DEF with fresh DEF does not restore the fluid to spec. It just dilutes the problem. If your DEF smells strongly of ammonia or has visible deposits, drain fully before refilling. Adding fresh DEF on top of degraded fluid produces a mixture that may still trigger quality fault codes, and you will have wasted a full tank of fresh DEF in the process.

Treat Every Fill Going Forward, Not Just After Problems

NüDef works best as a preventive treatment, not a reactive one. The cost of treating every fill is a fraction of a single drain-and-refill service, and it eliminates the crystallization cycle entirely. Once you have cleaned the tank and resolved the immediate fault, make NüDef part of every refill from that point forward. The tank cleaning you just did should be the last one you ever need.

ProblemWithout NüDefWith NüDef TreatmentTypical Cost Avoided
Tank CrystallizationUrea concentrates, white deposits coat tank walls and outlet screenStabilizer prevents concentration drift, tank stays cleanSaves DIY drain/rinse time, prevents P207F
Dosing Injector BlockageCrystals block nozzle, P20EF code, injector cleaning or replacement neededNüDef dissolves early deposits, injector stays clear$300-$900 injector service avoided
Degraded DEF QualityAmmonia smell, cloudy fluid, P207F quality fault code loggedDEF stays within ISO 22241 spec through storage and use$40-$150 drain/refill + dealer diagnostic avoided
SCR Catalyst DamageUntreated crystallization progresses to catalyst, P20EE, $3K-$5K repairClean dosing flow protects catalyst from thermal stress$3,000-$5,000 catalyst replacement avoided
Repeat Cleaning CyclesUntreated refill causes crystallization again within weeksOne NüDef treatment per fill prevents recurrence indefinitelyEliminates repeat drain/refill labor and downtime
Engine Derate / Limp ModeFault codes trigger 5 mph derate, vehicle stranded or towedDEF stays in spec, derate sequence never startsTow bill, roadside service, and lost time avoided

Clean the Tank Once. Never Clean It Again.

NüDef prevents the DEF crystallization that makes tank cleaning necessary in the first place. Add it to every fill and it stabilizes the fluid, dissolves early deposits, and keeps the entire DEF system clean from tank to injector. One bottle treats up to 25 gallons.

Shop NüDef

About the Author

NüDef manufactures DEF stabilizers and additives engineered to prevent crystallization, extend DEF shelf life, and protect SCR systems in trucks, RVs, generators, marine vessels, and heavy equipment. NüDef also functions as a def crystal cleaner, dissolving early-stage deposits when added to fresh DEF after a tank drain.

Facebook
Twitter
LinkedIn
Email