Worked example
Example: Sludge 1 t + bagasse 400 kg. The inputs, in the units selected above:
| Input | Value |
|---|---|
| Mass of material 1 (wet) | 1,000.0 kg |
| Carbon, material 1 (dry basis) | 45.000 % |
| Nitrogen, material 1 (dry basis) | 3.0000 % |
| Moisture, material 1 (wet basis) | 75.000 % |
| Mass of material 2 (wet) | 400.00 kg |
| Carbon, material 2 (dry basis) | 45.000 % |
| Nitrogen, material 2 (dry basis) | 0.50000 % |
| Moisture, material 2 (wet basis) | 15.000 % |
| Target C:N | 30.000 - |
Applying the formula below gives:
| Result | Value |
|---|---|
| C:N of the mix | 28.859 |
| Moisture of the mix | 57.857 % |
| Mass of material 2 for the target | 441.18 kg |
Open this example in the calculator and change any input.
Formula
\(\frac CN = \frac{\sum m_i(1 - M_i)C_i}{\sum m_i(1 - M_i)N_i}, \quad M = \frac{\sum m_iM_i}{\sum m_i}, \quad m_{2,t} = \frac{m_1(1 - M_1)(R_t N_1 - C_1)}{(1 - M_2)(C_2 - R_t N_2)}\)
Variables
| Symbol | Meaning | SI unit |
|---|---|---|
| \(m_1\) | Mass of material 1 (wet) | kg |
| \(C_1\) | Carbon, material 1 (dry basis) | - |
| \(N_1\) | Nitrogen, material 1 (dry basis) | - |
| \(M_1\) | Moisture, material 1 (wet basis) | - |
| \(m_2\) | Mass of material 2 (wet) | kg |
| \(C_2\) | Carbon, material 2 (dry basis) | - |
| \(N_2\) | Nitrogen, material 2 (dry basis) | - |
| \(M_2\) | Moisture, material 2 (wet basis) | - |
| \(R_t\) | Target C:N | - |
| \(C/N\) | C:N of the mix | - |
| \(M\) | Moisture of the mix | - |
| \(m_{2,t}\) | Mass of material 2 for the target | kg |
Method and standards
Mass balance.
Where it is used
- Press mud and sludge composting.
- Food waste composting.
Common mistakes
- Mixing wet and dry bases.
- Ignoring carbon availability (lignin).
Assumptions and limits
- Two materials; dry-basis analyses.
References
- Mass balance of carbon
- nitrogen and water (Haug, The Practical Handbook of Compost Engineering, ch. 6)
Questions and answers
Why does C:N matter?
Microbes need about 25–30 parts carbon per part nitrogen; too little carbon releases ammonia, too much slows composting.
Why is moisture important?
Below about 40 % activity slows; above 65 % the pile turns anaerobic and smells.
What do the defaults represent?
A wet nitrogen-rich sludge or press mud mixed with a dry carbon-rich bulking agent such as bagasse or straw.
Method and article reviewed by FireCAD engineering on 13 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.