# 3:1.4 Denitrification

Denitrification is the bacterial reduction of nitrate, $$NO\_3^-$$, to $$N\_2$$ or $$N\_2O$$ gases under anaerobic (reduced) conditions. Denitrification is a function of water content, temperature, presence of a carbon source and nitrate.

In general, when the water-filled porosity is greater than 60% denitrification will be observed in a soil. As soil water content increases, anaerobic conditions develop due to the fact that oxygen diffuses through water 10,000 times slower than through air. Because the rate of oxygen diffusion through water slows as the water temperature increases, temperature will also influence denitrification.

Cropping systems where water is ponded, such as rice, can lose a large fraction of fertilizer by denitrification. For a regular cropping system, an estimated 10-20% of nitrogen fertilizer may be lost to denitrification. Under a rice cropping system, 50% of nitrogen fertilizer may be lost to denitrification. In a flooded cropping system, the depth of water plays an important role because it controls the amount of water oxygen has to diffuse through to reach the soil.

SWAT+ determines the amount of nitrate lost to denitrification with the equation:

$$N\_{denit,ly}=NO3\_{ly}*(1-exp\lfloor-\beta\_{denit}*\gamma\_{tmp,ly}\*orgC\_{ly}\rfloor)$$                               &#x20;

&#x20;                                                  if  $$\gamma\_{sw,ly}\ge \gamma\_{sw,thr}$$                                                                                               3:1.4.1

$$N\_{denit,ly}=0.0$$                         if $$\gamma\_{sw,ly}<\gamma\_{sw,thr}$$                                                                                             3:1.4.2

where $$N\_{denit,ly}$$ is the amount of nitrogen lost to denitrification (kg N/ha), $$NO3\_{ly}$$ is the amount of nitrate in layer $$ly$$ (kg N/ha), $$\beta\_{denit}$$ is the rate coefficient for denitrification, $$\gamma\_{tmp,ly}$$ is the nutrient cycling temperature factor for layer $$ly$$ calculated with equation 3:1.2.1, $$\gamma\_{sw,ly}$$ is the nutrient cycling water factor for layer $$ly$$ calculated with equation 3:1.2.2, $$orgC\_{ly}$$ is the amount of organic carbon in the layer (%), and $$\gamma\_{sw,thr}$$ is the threshold value of nutrient cycling water factor for denitrification to occur.

Table 3:1-3: SWAT+ input variables that pertain to denitrification.&#x20;

| Definition                                                                                          | Source Name | Input Name | Input File |
| --------------------------------------------------------------------------------------------------- | ----------- | ---------- | ---------- |
| $$orgC\_{ly}$$: Amount of organic carbon in the layer (%)                                           | SOL\_CBN    |            | .sol       |
| $$\beta\_{denit}$$: Rate coefficient for denitrification                                            | CDN         |            | .bsn       |
| $$\gamma\_{sw,thr}$$: Threshold value of nutrient cycling water factor for denitrification to occur | SDNCO       |            | .bsn       |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://swatplus.gitbook.io/io-docs/theoretical-documentation/section-3-nutrients-pesticides/chapter-3-1-nitrogen/3-1.4-denitrification.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
