Calculate Ammonia Concentration from pH
Use this professional ammonia calculator to estimate unionized ammonia (NH3), ammonium (NH4+), and ammonia fraction from pH, temperature, and total ammonia. This is useful for aquaculture, aquariums, wastewater, and water quality analysis.
NH3 Fraction vs pH
The chart shows how the toxic unionized ammonia fraction increases as pH rises at your selected temperature.
How to calculate ammonia concentration from pH
When people search for a way to calculate ammonia concentration from pH, they are usually trying to answer a very practical question: how much of the measured total ammonia is present in the more toxic unionized form, NH3, instead of the less toxic ionized form, NH4+? That distinction matters in aquaculture systems, ornamental aquariums, recirculating systems, wastewater treatment plants, and environmental monitoring programs. A single total ammonia reading does not tell the full story by itself. You also need pH and temperature because those two variables control the balance between NH3 and NH4+.
In water, ammonia exists in an acid-base equilibrium. The simplified relationship is NH4+ ⇌ NH3 + H+. At lower pH, the water contains more hydrogen ions, so the equilibrium shifts toward ammonium, NH4+. At higher pH, the equilibrium shifts toward unionized ammonia, NH3. Since NH3 is the form that diffuses more readily across biological membranes and is generally much more toxic to fish and aquatic organisms, pH becomes a critical part of interpreting any ammonia test result.
The core formula
For freshwater, a widely used approximation for the acid dissociation constant is based on temperature:
pKa = 0.09018 + 2729.92 / (273.15 + T°C)
Then the unionized ammonia fraction is calculated as:
Fraction NH3 = 1 / (1 + 10^(pKa – pH))
If your test reports total ammonia nitrogen, often called TAN and expressed as mg/L as N, then:
NH3-N = TAN × Fraction NH3
NH4+-N = TAN – NH3-N
If you want concentration as NH3 instead of as N, multiply by the molecular weight ratio 17/14. This calculator does that automatically so you can see both reporting bases.
Why pH changes ammonia toxicity so dramatically
pH is logarithmic, not linear. That means a shift from pH 7.5 to 8.5 is not a small change in chemical behavior. As pH climbs, the percentage of ammonia present as NH3 rises rapidly. Temperature amplifies this effect because warmer water generally shifts the equilibrium toward unionized ammonia as well. That is why warm summer ponds, transport tanks, and heavily stocked recirculating systems can show stress or mortalities even when total ammonia does not appear extreme at first glance.
For example, suppose total ammonia is 1.0 mg/L as N at 25°C. At pH 7.0, only a tiny fraction is NH3. At pH 8.5, the NH3 portion is many times higher. This is exactly why best practice is to interpret ammonia, pH, and temperature together rather than independently.
| pH at 25°C | Approximate NH3 fraction | NH3-N from 1.0 mg/L TAN | Meaning in practice |
|---|---|---|---|
| 7.0 | 0.56% | 0.0056 mg/L as N | Usually a relatively small toxic fraction |
| 7.5 | 1.75% | 0.0175 mg/L as N | Noticeable increase in toxic exposure |
| 8.0 | 5.29% | 0.0529 mg/L as N | Potential concern for sensitive species |
| 8.5 | 14.3% | 0.143 mg/L as N | Elevated risk in aquaculture and aquariums |
| 9.0 | 32.3% | 0.323 mg/L as N | High toxic fraction, urgent review recommended |
Step by step: using the calculator correctly
- Measure total ammonia in your water sample. Confirm whether the result is reported as mg/L as N or mg/L as NH3.
- Measure pH using a calibrated meter or a fresh high-quality test kit.
- Measure water temperature as accurately as possible.
- Select freshwater or marine water. Salinity affects the dissociation behavior, so marine systems should not be treated exactly like freshwater systems.
- Click the calculate button. The tool returns the NH3 fraction, the concentration of unionized ammonia, and the remaining ammonium concentration.
- Review the chart. It helps you see how a small pH increase may sharply increase the toxic NH3 fraction.
Understanding units: mg/L as N versus mg/L as NH3
One of the most common sources of confusion in ammonia calculations is the reporting basis. Many laboratory methods and water quality references express ammonia as nitrogen, written as mg/L as N. Other kits and references express it as mg/L as NH3. Those values are not numerically identical because the molecular weight basis is different.
- As N basis: uses nitrogen mass only, with molecular weight 14.
- As NH3 basis: uses total ammonia molecule mass, with molecular weight 17.
- Conversion: mg/L as NH3 = mg/L as N × 17/14.
If a report says TAN = 1.0 mg/L as N, that is equal to about 1.214 mg/L as NH3. If you mix those bases by accident, your risk assessment can be off by more than 21%. This calculator shows both so you can compare directly and avoid unit mistakes.
Freshwater versus marine calculations
Freshwater formulas are often sufficient for ponds, lakes, rivers, hatcheries, and most aquarium situations. In seawater or brackish systems, ionic strength and salinity shift ammonia speciation slightly, so the pKa used in marine calculations is adjusted downward relative to freshwater. The practical consequence is that marine and brackish systems can show a somewhat different NH3 fraction than freshwater at the same pH and temperature. For serious production systems, using the correct water type improves decision quality.
| Condition | Lower NH3 risk | Higher NH3 risk | Why it matters |
|---|---|---|---|
| pH | 6.8 to 7.5 | 8.3 to 9.0+ | Higher pH strongly increases unionized ammonia |
| Temperature | 10 to 18°C | 25 to 32°C | Warmer water increases NH3 fraction |
| TAN concentration | Near zero | Moderate to high | More total ammonia means more NH3 at the same fraction |
| Water type | Freshwater at lower pH | Marine or brackish with elevated pH | Speciation differs with ionic composition and salinity |
Typical situations where ammonia from pH calculations are essential
Aquaculture systems
Fish farms routinely monitor TAN, pH, dissolved oxygen, and temperature. Feeding intensity, biomass, and biofilter performance all affect ammonia production and removal. Since pH often rises during algal photosynthesis in outdoor systems, afternoon conditions can produce a higher NH3 fraction than morning conditions even if TAN is unchanged.
Home aquariums
In a newly cycling aquarium, total ammonia may appear during the establishment of nitrifying bacteria. Hobby test kits often show total ammonia without clarifying the toxic fraction. Calculating NH3 from pH helps determine whether an apparent ammonia reading is an emergency or a manageable cycling event. This is especially useful for cichlid and marine aquariums, where pH is often higher.
Wastewater and industrial water treatment
Operators monitor ammonia because it affects permit compliance, nitrification efficiency, and environmental discharge quality. In treatment and polishing systems, pH control and ammonia stripping can influence final concentrations. Understanding speciation improves interpretation of process chemistry and downstream toxicity concerns.
What levels are considered concerning?
There is no single universal threshold that applies to every species and every exposure duration, but NH3 is widely recognized as the more toxic form compared with NH4+. Sensitivity varies by species, life stage, acclimation, water chemistry, and exposure time. Eggs and juvenile fish are often more sensitive than adults. Chronic exposure limits are generally far lower than acute lethality levels.
For environmental context, the U.S. Environmental Protection Agency has published aquatic life criteria for ammonia that depend on pH and temperature, reflecting the chemistry this calculator uses. Those criteria are species-protection benchmarks rather than a one-size-fits-all aquarium rule, but they demonstrate how central pH and temperature are to any ammonia assessment.
Common mistakes when calculating ammonia concentration from pH
- Ignoring temperature: pH alone is not enough for an accurate estimate.
- Using the wrong unit basis: mg/L as N and mg/L as NH3 are not interchangeable.
- Assuming all ammonia is equally toxic: NH3 and NH4+ do not have the same biological impact.
- Measuring pH at the wrong time: daytime photosynthesis can raise pH significantly in productive systems.
- Using stale test kits or uncalibrated probes: small pH errors can materially affect NH3 estimates.
- Ignoring salinity in marine systems: seawater speciation is not identical to freshwater speciation.
Best practices for better ammonia interpretation
- Measure pH and temperature at the same time you collect the ammonia sample.
- Record whether ammonia is reported as NH3, NH4+, NH3-N, or TAN.
- Track daily pH swings if your system has algae, high photosynthesis, or strong aeration changes.
- Retest after management changes such as feeding reductions, water changes, or biofilter maintenance.
- In marine and brackish systems, include salinity for a more realistic estimate.
Authority sources for ammonia, pH, and water quality
If you want to verify methods or read regulatory and scientific background, these sources are excellent starting points:
- U.S. EPA aquatic life criteria for ammonia
- U.S. Geological Survey guide to pH and water
- University of Florida extension guidance on ammonia in aquatic systems
Final takeaway
To calculate ammonia concentration from pH correctly, you need more than a single ammonia number. You need the total ammonia reading, the pH, and the temperature, and in saline water you should also account for salinity. Once you apply the equilibrium relationship, you can estimate the unionized ammonia fraction and convert that into an NH3 concentration. That result is usually far more meaningful than total ammonia alone because it tells you how much of the measured ammonia is in the most biologically hazardous form.
Use the calculator above whenever you need a fast, defensible estimate. It is especially helpful when troubleshooting fish stress, evaluating water treatment performance, or comparing ammonia readings across different pH conditions. A modest pH increase can create a large rise in NH3, and that is exactly why this calculation is such an important part of real-world water quality management.