Worked example

20-Gallon Planted Tank EI Potassium Nitrate Grams

An aquarium has 20 measured gallons and the aquarist chooses 7 ppm nitrate as an EI macro input. Potassium nitrate contributes both nitrate and potassium.

See the worked calculation

Inputs

View results
Measured tank water

Calibrate your meter and measure during the lighting period.

dKH

Other buffers or active soil can invalidate the CO₂ calculation.

Estimative Index macros
US gal
ppm
ppm
ppm

Nitrate and phosphate salts also contribute potassium.

KNO₃ per macro dose
0.864 g
Estimated dissolved CO₂
17 ppm
CO₂ planning classification
Green planning band
Interactive pH by KH CO₂ mappH 6.9, KH 4.5 dKH, estimated CO₂ 17 ppm. Arrow keys adjust pH left and right or KH up and down. KH (dKH)5.86.477.68.2126.10.3pH< 15 ppm15–30 ppm> 30 ppm
Interactive CO₂ heatmapSelect a cell or use the arrow keys.

Calculation details

KH₂PO₄ per macro dose
0.076 g
K₂SO₄ per macro dose
0.388 g
Potassium from N and P salts
4.7 ppm
Delivered potassium per dose
7 ppm
Weekly nitrate added before uptake
21 ppm
KNO₃ per week
2.592 g
KH₂PO₄ per week
0.228 g
K₂SO₄ per week
1.163 g
  • The estimate assumes carbonate buffering. Verify with pH and KH tests and a 4 dKH reference drop checker.

Input measurements

Measured pH
6.9
Measured carbonate hardness
4.5 dKH
Net water volume
20 US gal
Nitrate per dose as NO₃
7 ppm
Phosphate per dose as PO₄
0.7 ppm
Potassium target per dose as K
7 ppm
Macro doses per week
3

Verify pH, KH and nutrient readings with suitable test kits. Start low, observe fish and shrimp, and increase aeration if livestock show respiratory distress.

Worked calculation

These numbers use the original example measurements. The calculator above updates as you edit.

  1. Estimate dissolved CO₂

    3 × 4.5 × 10^(7 − 6.9) = 16.995 ppm

    The chart marks this point as green planning band. The carbonate model depends on accurate pH and KH readings.

  2. Calculate nitrogen and phosphorus salts

    KNO₃: 7 × 75.708 × (101.1032 ÷ 62.0049) ÷ 1,000 = 0.8641 g

    Use 0.7 ppm PO₄ and the KH₂PO₄-to-PO₄ mass ratio 136.0855/94.9714 in the same formula to get 0.0759 g KH₂PO₄.

  3. Top up potassium and scale to a week

    max(0, 7 − 4.702) × 75.708 × (174.259 ÷ (2 × 39.0983)) ÷ 1,000 = 0.3877 g K₂SO₄

    3 doses add 21 ppm nitrate per week before uptake and water changes.

Frequently asked questions

Is the 20-gallon goal 7 ppm of nitrate or 7 ppm of nitrogen?

This example uses nitrate ion, NO₃. A fertilizer label that reports nitrate as nitrogen uses a different mass basis and needs conversion.

How does dosing KNO₃ affect the other macros in this tank?

KNO₃ supplies potassium along with nitrate. The calculator counts that contribution before recommending any separate potassium sulfate.