Ammonia exists in two forms in any water-based solution, and pH is the single most important factor determining which form dominates. At low pH, nearly all ammonia sits as ammonium ion (NH₄⁺), a charged molecule that stays dissolved and is far less toxic to living organisms. At high pH, the balance tips toward un-ionized ammonia (NH₃), a neutral gas-like molecule that passes easily through biological membranes and can be lethal to fish, disruptive to wastewater microbes, and damaging to the human brain. This equilibrium shift underlies problems and solutions across aquaculture, agriculture, sewage treatment, and clinical medicine, and understanding it changes how you manage ammonia in any of those settings.
Two Forms, One Molecule
When ammonia dissolves in water, it does not stay as a single species. It rapidly establishes an equilibrium between its un-ionized form, NH₃, and the ionized form, NH₄⁺. The ionized form carries a positive charge because it has picked up an extra hydrogen ion from the surrounding water. The un-ionized form is electrically neutral. Both are always present at the same time, but their relative proportions shift with pH and, to a lesser extent, temperature.
At a pH of around 7 (neutral water at room temperature), the vast majority of total ammonia nitrogen is in the ammonium form. As pH climbs above 7, a progressively larger share converts to un-ionized ammonia. By pH 9.25, roughly half of the total ammonia is in the NH₃ form and half is NH₄⁺. Push above pH 10 and almost all of it becomes NH₃. Drop below pH 7 and the fraction of NH₃ becomes vanishingly small. Temperature accelerates the same shift: warmer water at any given pH holds a higher fraction of un-ionized ammonia than cooler water does.
This is not a slow chemical reaction. The equilibrium adjusts almost instantly whenever pH or temperature changes. That speed is part of what makes the relationship so consequential. A pond that is perfectly safe for fish at dawn can become dangerous by late afternoon if photosynthesis by algae drives the pH up, because the same total ammonia concentration now includes far more of the toxic un-ionized form.
Why Un-ionized Ammonia Is the Dangerous Form
The toxicity difference between NH₃ and NH₄⁺ comes down to membrane permeability. Cell membranes are lipid bilayers, and uncharged molecules slip through them far more easily than charged ones. Un-ionized ammonia crosses gill membranes, skin, intestinal walls, and even the blood-brain barrier with relative ease. Ammonium ion, carrying its positive charge, mostly cannot do this without the help of specialized transport proteins.
In fish, this distinction is life-or-death. Fish excrete ammonia directly across their gills into the surrounding water, and the process depends on a concentration gradient. When the water’s un-ionized ammonia level rises, that gradient flattens or even reverses, meaning ammonia can flow back into the fish. Some species have evolved defenses against this, including active transport of NH₄⁺ across gill membranes and the ability to manipulate the pH of the water layer immediately adjacent to their gills, keeping it slightly acidic to convert NH₃ back to the less permeable NH₄⁺ form.
1Europe PMC / Frontiers in Physiology. Ammonia production, excretion, toxicity, and defense in fish: a reviewIn mammalian physiology, the same principle operates at the blood-brain barrier. Ammonia affects the passage of amino acids and energy metabolites across this barrier, and elevated blood ammonia can cause cerebral edema and altered brain function. Research into how ammonia crosses the blood-brain barrier has found that pH-driven diffusion of NH₃ plays a role, though the effects of pH on brain ammonia uptake are sometimes less dramatic than pure diffusion models predict, suggesting that protein-mediated transport of NH₄⁺ also contributes.
2Neurochemistry International. Blood–brain barrier permeability to ammonia in liver failure: a critical reappraisalHow the Body Uses pH to Handle Ammonia
Your kidneys exploit this pH-ammonia relationship every day. Renal ammonia excretion is the main way your body eliminates excess acid. The kidneys produce ammonia internally and then route it either into the urine or back into the bloodstream, and the proportion going each way shifts dramatically depending on whether you need to dump acid or conserve it. Both molecular forms, NH₃ and NH₄⁺, are transported by specific proteins, and regulation of these transport processes determines where the ammonia ends up.
3Physiological Reviews. Ammonia Transporters and Their Role in Acid-Base BalanceA family of transport proteins called Rhesus glycoproteins plays a central role in this process. These proteins, which are related to the Rh blood group proteins, are expressed in specific kidney cells where they shuttle ammonia across membranes. Research has shown that different members of this family handle the two forms differently. RhAG and Rhbg transport both NH₃ and NH₄⁺, while Rhcg appears to be primarily an NH₃ transporter with little evidence of enhanced NH₄⁺ transport.
4PubMed Central. Mechanisms of ammonia and ammonium transport by rhesus-associated glycoproteins The fact that these proteins can move both forms is unusual among membrane transporters and appears to be crucial for enabling the kidney’s collecting duct to secrete ammonia into urine across a range of pH conditions.5PubMed Central. Ammonia transport in the kidney by Rhesus glycoproteins
When blood ammonia levels get too high, as happens in severe liver disease, ammonia crosses into the brain and disrupts neurotransmitter balance, amino acid transport, and fluid regulation. The resulting condition, hepatic encephalopathy, ranges from subtle confusion to coma. One mechanism involves ammonia being detoxified in brain cells by conversion to glutamine, which then draws water into cells and contributes to brain swelling. Ammonia also synergizes with inflammatory signals from the damaged liver to increase leakage across the blood-brain barrier.
6PubMed Central. Alterations of blood brain barrier function in hyperammonemia: an overviewAquaculture and the Danger of Afternoon pH Swings
In fish farming, total ammonia concentration is only half the story. What matters for fish health is the un-ionized fraction, and that fraction is controlled by pH and temperature. A recirculating aquaculture system or a fish pond might have a total ammonia level that looks acceptable on paper, but if the pH rises, the un-ionized fraction can spike into the danger zone without any additional ammonia entering the water.
This is exactly what happens in systems with significant algal growth. During daylight hours, photosynthesis consumes dissolved carbon dioxide, which drives pH upward. Modeling work on serial reuse aquaculture systems has shown that metabolic carbon dioxide excretion by the fish themselves has a significant impact on ambient pH, and that a reduction in pH from that dissolved CO₂ can substantially reduce the un-ionized ammonia concentration compared to what you would calculate from the influent pH alone.
7Europe PMC / Elsevier. Modeling carbon dioxide, pH, and un-ionized ammonia relationships in serial reuse systems In other words, the fish’s own CO₂ output acts as a partial safety buffer by keeping pH slightly lower, but that buffer weakens if ventilation strips the CO₂ away or if photosynthesis outpaces it.
Practical management in aquaculture therefore means monitoring pH alongside ammonia, not instead of it. Two systems with identical total ammonia readings can have very different toxicity risks if their pH values differ by even half a unit. Most freshwater aquaculture guidelines keep pH between about 6.5 and 8.5, partly because this range keeps the un-ionized ammonia fraction low enough to avoid acute fish kills.
Ammonia Stripping in Wastewater Treatment
Wastewater engineers use the pH-ammonia equilibrium in the opposite direction from aquaculture managers. Instead of trying to keep ammonia in its safe ionized form, ammonia stripping deliberately raises the pH to push the equilibrium toward gaseous NH₃, which can then be blown out of the water with an air stream. The process typically uses lime or sodium hydroxide to push the pH high enough that most of the ammonia converts to the volatile un-ionized form, which is then carried away for recovery or destruction.
8Chemical Engineering Journal Advances. Ammonia recovery from wastewater: A critical review of technologies with emphasis on capacitive deionizationThis technique works best for high-strength ammonia wastewater, the kind produced by landfill leachate, certain industrial processes, or the sludge-treatment side streams at municipal treatment plants. It is a straightforward application of the equilibrium: raise pH, raise temperature if possible, blow air through, and the ammonia leaves as gas. The recovered ammonia can then be captured in an acid solution and converted to ammonium sulfate fertilizer, closing the loop.
Nitrification and the pH Sweet Spot for Microbes
Biological treatment of ammonia in wastewater relies on nitrifying bacteria, microbes that eat ammonia (or more precisely, ammonium) and convert it first to nitrite and then to nitrate. These bacteria are sensitive to pH, and the relationship is more nuanced than simply “more is better” or “less is better.”
The ammonium-oxidizing bacteria that perform the first step of nitrification work best around pH 7.5, while the nitrite-oxidizing bacteria that complete the second step prefer pH closer to 7. Below pH 6, ammonium oxidation is essentially shut down. At pH 8.5 and above, nitrite oxidation becomes strongly inhibited.
9Ecohydrology & Hydrobiology. Kinetics and simulation of nitrification at various pH values of a polluted river in the tropics The reason pH matters so much is twofold: it affects bacterial growth rates directly, and it shifts the equilibrium between the forms the bacteria can actually use as food. Ammonium-oxidizing bacteria need NH₃ as their actual substrate, even though we casually say they “eat ammonium.” At very low pH, so little NH₃ is available that the bacteria starve even if total ammonia is abundant.
Research on nitrifying communities from wastewater treatment plants has shown that exposure to pH extremes causes shifts in community structure that can be irreversible, meaning a treatment plant that lets pH stray too far from the optimal range may lose its most effective nitrifying populations permanently.
10PubMed Central. Effects of pH and oxygen and ammonium concentrations on the community structure of nitrifying bacteria from wastewater Operational work has confirmed that a pH of about 7.0 often produces the best overall nitrification performance, balancing the needs of both bacterial groups while keeping free ammonia and free nitrous acid at their lowest inhibitory levels.
11Environment Protection Engineering. Characteristics of nitrifying biomass from sidestream process operated at various pHAnammox and the Complications of Going Higher
Anaerobic ammonium oxidation, known as anammox, is a newer biological process used to remove ammonia from wastewater without the high energy costs of conventional nitrification. Anammox bacteria convert ammonium and nitrite directly into nitrogen gas, skipping several steps. But these organisms are also sensitive to the pH-ammonia relationship, and figuring out exactly what inhibits them has been tricky.
Free ammonia (NH₃) clearly inhibits anammox activity at some concentration, but the threshold varies enormously depending on the study. One research group found that anammox rates dropped in a biofilm reactor when free ammonia exceeded just 2 milligrams per liter, and recommended keeping it below that level when operating between pH 7 and 8.
12Chemosphere. Impact of free ammonia on anammox rates (anoxic ammonium oxidation) in a moving bed biofilm reactor Another group observed no inhibition until free ammonia reached 150 milligrams per liter, with sudden collapse at around 190 milligrams per liter.
13PubMed. Inhibitory effects of free ammonia on Anammox bacteriaThis enormous discrepancy makes more sense when you consider a third finding: in mildly alkaline conditions, high pH itself may be a more important inhibiting factor than free ammonia. A multi-factorial analysis concluded that pH values above 7.6 caused meaningful anammox inhibition, and the researchers argued that pH, not NH₃ concentration, was the primary culprit under those conditions.
14PubMed. High pH (and not free ammonia) is responsible for Anammox inhibition in mildly alkaline solutions with excess of ammonium Because pH and free ammonia concentration are mathematically linked (raising pH automatically raises NH₃ at any given total ammonia level), teasing apart their individual effects requires careful experimental design. The practical takeaway for operators is that keeping pH in a narrow slightly-acidic-to-neutral window matters at least as much as controlling total ammonia.
Ammonia Loss from Agricultural Soils
The same equilibrium that makes ammonia toxic in water makes it escape from soil. When urea fertilizer is applied to a field, soil enzymes rapidly break it down into ammonium. If the soil pH is high enough, some of that ammonium converts to un-ionized ammonia and volatilizes into the atmosphere, wasting the nitrogen you just paid for and contributing to air pollution and acid rain downwind.
Field research at maize farms in the East African highlands compared ammonia losses from soils with different properties and found that the soil most susceptible to ammonia loss had low pH buffering capacity, low cation exchange capacity, and high urease activity. When mitigation treatments were applied, it was the inhibited rise in soil pH, not a reduction in ammonium concentration, that explained most of the reduction in ammonia losses.
15Biology and Fertility of Soils. Ammonia volatilization following urea application at maize fields in the East African highlands with different soil properties In other words, the pH pathway dominated. Soil texture also plays a role: the ammonia volatilization rate is affected by clay content, with sandier soils generally losing more ammonia because they have fewer charged surfaces to hold onto NH₄⁺.
16Agro Productividad. Kinetics of ammonium volatilization in the form of ammonia in soils through a textural gradientFarmers and agronomists manage this by incorporating urea into the soil rather than leaving it on the surface, using urease inhibitors that slow the initial breakdown, or applying acidifying agents to keep soil pH from spiking. Irrigating right after fertilizer application can also help by dissolving the urea deeper into the soil profile and lowering the surface pH enough to keep ammonia in its ionized form.
How Animals Evolved Around the Problem
The toxicity of ammonia at physiological pH is one of the deepest constraints in animal evolution. Aquatic species that live surrounded by water can afford to excrete ammonia directly, letting it diffuse across their gills into an essentially infinite dilution sink. But for animals that moved onto land, where there is no large water volume to absorb waste ammonia, the molecule’s toxicity at even slight alkalinity became a serious problem. Mammals convert ammonia to urea, which is far less toxic and can be concentrated in the kidneys before excretion. Birds and most reptiles convert it to uric acid, which is even less soluble and can be excreted as a paste with minimal water loss.
Each strategy reflects a different evolutionary solution to the same pH-ammonia problem. Urea synthesis costs energy but allows mammals to drink relatively little water and still eliminate nitrogen safely. Uric acid costs more energy still but enables birds to conserve water to an extreme degree. Fish, swimming in their own waste sink, never had to pay those costs, though species that live in stagnant, alkaline, or ammonia-rich waters have evolved their own sophisticated defenses, including the active transport mechanisms and local pH manipulation at the gills described earlier.
Microbes That Oxidize Ammonia at Extreme pH
Most nitrifying bacteria operate in a narrow pH band around neutral, but some environments push that boundary. Soda lakes in Mongolia, with pH values above 10 and salt concentrations that would kill most organisms, harbor ammonia-oxidizing bacteria that have adapted to thrive there. Researchers isolated strains from sediments of Mongolian soda lakes with pH values between 9.7 and 10.5, and one isolate grew at pH up to 11.3, the highest pH limit recorded for any ammonia-oxidizing bacterium.
17PubMed. Isolation and properties of obligately chemolithoautotrophic and extremely alkali-tolerant ammonia-oxidizing bacteria from Mongolian soda lakesAt those pH levels, virtually all ammonia is in the un-ionized NH₃ form, which would be overwhelmingly toxic to conventional nitrifiers. How these organisms cope is not fully understood, though they may have evolved membrane compositions or transport proteins that limit passive NH₃ entry or rapidly sequester it once inside the cell. The broader community of chemolithotrophic bacteria in soda lakes includes sulfur oxidizers that are even more diverse and better adapted to the doubly extreme conditions of high pH and high salt.
18FEMS Microbiology Ecology. Chemolithotrophic haloalkaliphiles from soda lakes Some of those sulfur-oxidizing species can grow at pH 10 in brines with sodium concentrations four times higher than seawater, with only modest reductions in growth rate and yield.
19FEMS Microbiology Reviews. Haloalkaliphilic sulfur-oxidizing bacteria in soda lakesThese extremophiles are more than curiosities. They demonstrate that the pH-ammonia relationship, while consistent in its chemistry, is not an absolute biological limit. Evolution has found ways to work around the problem even at pH values where un-ionized ammonia should be lethal. For biotechnology, alkaliphilic nitrifiers offer the intriguing possibility of treating high-pH waste streams biologically rather than having to neutralize them first, though scaling up from soda-lake isolates to industrial bioreactors remains a work in progress.
Ammonia, pH, and Human Skin
The relationship between ammonia and pH even shows up on the surface of your body. Human skin emits low levels of ammonia and volatile amines, and the amount emitted correlates with skin surface pH. Wearable colorimetric sensors have been developed that change color in response to these basic nitrogen compounds escaping from the skin. In healthy participants, sensor color correlated strongly with skin surface pH, though there was substantial variation between individuals and between body sites. The response depended on gender and location on the body, likely reflecting differences in sweat gland density and microbial community composition.
20ScienceDirect (Elsevier). The determination of skin surface pH via the skin volatile emission using wearable colorimetric sensorsThis might sound like a minor footnote, but it has practical relevance for non-invasive health monitoring. Skin pH shifts in certain dermatological conditions, in wound healing, and in metabolic disorders. If ammonia emission from the skin reliably tracks pH, then a cheap wearable patch could serve as a continuous pH monitor without ever breaking the skin. The technology is still early-stage, and the inter-individual variability is a real hurdle, but the underlying chemistry is the same equilibrium at work everywhere else: higher pH shifts the balance toward volatile NH₃, and that NH₃ escapes into the air where a sensor can catch it.