NH3 Formula: Ammonia Structure and Properties

By Dr. Zubair Khalid, DVM, MS, PhD ·

NH3 Formula: Ammonia Structure and Properties

The NH3 formula describes ammonia, a compound of one nitrogen atom and three hydrogen atoms with the molecular formula NH3. Ammonia is a colorless, pungent gas at room temperature whose trigonal pyramidal shape, nitrogen lone pair, and polar N-H bonds give it a molar mass of 17.03 g/mol, a boiling point of -33.34 C, and a pKa of 9.25.

Ammonia matters far beyond the general chemistry classroom. It is the simplest stable nitrogen hydride, the conjugate base of the ammonium ion (NH4+), and a central player in nitrogen metabolism, environmental nitrogen cycling, and analytical chemistry. Nitrogenase enzymes reduce dinitrogen to ammonia as the entry point of biological nitrogen fixation, and engineered systems that mimic this chemistry are an active research area [1]. Ammonia is also a common basic gas that sorbs to indoor surfaces, where it shifts the gas-surface partitioning of acidic volatile organic compounds [2]. Understanding the formula of NH3, its geometry, and its acid-base behavior is therefore foundational for biochemistry, microbiology, and environmental science.

Quick-Reference Table: NH3 Formula and Key Properties

PropertyValue
Molecular formulaNH3
NameAmmonia (systematic: azane)
Molar mass17.03 g/mol
Nitrogen oxidation state-3
Molecular geometryTrigonal pyramidal
Hybridization at nitrogensp3
H-N-H bond angle107.3 degrees
Lone pairs on nitrogen1
Dipole moment1.47 D
Boiling point-33.34 C
Melting point-77.73 C
Gas density0.73 kg/m3 (at standard conditions)
pKa (NH4+ / NH3)9.25
Water solubilityVery high (hydrogen bonding)
Acid-base characterWeak base

This table is the fastest way to answer "what is ammonia formula" and to check the numbers students most often misremember. The rest of this article explains where each value comes from.

What the NH3 Chemical Formula Tells You

The NH3 chemical formula is a ratio and a structural claim at the same time. As a ratio, it says that every molecule contains exactly one nitrogen atom and three hydrogen atoms, with no other elements present. As a structural claim, it says the three hydrogens are bonded directly to the nitrogen, not to each other.

Several equivalent ways of writing the formula appear in the literature and in coursework. The formula of NH3 is the same as the ammonia formula, the formula of ammonia, and the formula for ammonia. These are not different compounds. They are different phrasings of one molecular formula. The only real distinction worth keeping is between NH3 (neutral ammonia) and NH4+ (the ammonium cation, which has four hydrogens and a positive charge).

The molar mass follows directly from the formula. Nitrogen contributes 14.01 g/mol and each hydrogen contributes 1.008 g/mol, so 14.01 + (3 x 1.008) = 17.03 g/mol. That value is the basis for converting between mass and moles in any ammonia calculation, whether you are preparing a buffer or standardizing a titration.

Lewis Structure of Ammonia, Step by Step

Lewis dot structure of ammonia showing N with lone pair and three N-H bonds
The Lewis structure of NH3 shows nitrogen's lone pair and three single bonds to hydrogen. Image: Estebanillo, CC BY-SA 4.0, via Wikimedia Commons.

Drawing the Lewis structure of NH3 is a short, rule-based exercise. Work through it in this order.

  1. Count valence electrons. Nitrogen has five valence electrons and each hydrogen has one, giving 5 + 3 = 8 valence electrons total.
  2. Place the least electronegative atom in the center. Nitrogen is less electronegative than hydrogen, so nitrogen is the central atom.
  3. Form single bonds from nitrogen to each hydrogen. Three N-H single bonds use 6 of the 8 electrons.
  4. Place the remaining 2 electrons on nitrogen as one lone pair.
  5. Check octets. Nitrogen has three bonding pairs plus one lone pair, which is four electron pairs or eight electrons. Each hydrogen has two electrons. Every atom satisfies its octet or duet.

The finished structure shows nitrogen with three bonding pairs and one nonbonding pair. That lone pair is the single most consequential feature of the molecule. It is the site of protonation when ammonia acts as a base, the site of metal coordination when ammonia binds a Lewis acid, and the reason the molecule is not flat.

Molecular Geometry: Why Ammonia Is Trigonal Pyramidal

Ammonia is trigonal pyramidal, not trigonal planar. The distinction comes from electron pair repulsion.

Nitrogen in NH3 is sp3 hybridized. Its four sp3 orbitals point toward the corners of a tetrahedron. Three of those orbitals hold bonding pairs of electrons shared with hydrogen. The fourth holds the lone pair. Because the lone pair is held by only one nucleus, it spreads out closer to nitrogen and occupies more angular space than a bonding pair does. This extra repulsion pushes the three N-H bonds slightly closer together.

The result is an H-N-H bond angle of 107.3 degrees. That value is measurably smaller than the ideal tetrahedral angle of 109.5 degrees. The roughly 2.2 degree compression is the fingerprint of lone pair repulsion, and it is the number to quote when a question asks why ammonia deviates from a perfect tetrahedron.

If you mentally remove the lone pair, the three hydrogen atoms and the nitrogen define a shallow pyramid with nitrogen at the apex. That is why the geometry is called trigonal pyramidal rather than tetrahedral, even though the electron pair geometry is tetrahedral. Students should keep those two terms separate. Electron pair geometry counts all four electron domains. Molecular geometry counts only the atoms.

The pyramidal shape has a physical consequence. Ammonia can invert, flipping through a planar transition state so that the lone pair ends up on the opposite face of the molecule. This inversion motion is fast and is central to ammonia's rovibrational spectroscopy, and it is why the molecule has a well-known inversion splitting in its vibrational spectrum [3]. The inversion also means that at ordinary temperatures ammonia does not stay locked in one handedness, which is one reason it is not a useful chiral building block on its own.

Polarity and the Dipole Moment

The N-H bond is polar because nitrogen is substantially more electronegative than hydrogen. Each bond carries a partial negative charge on nitrogen and a partial positive charge on hydrogen. In a perfectly symmetric trigonal planar arrangement, those bond dipoles would cancel. In the pyramidal geometry they do not cancel, because the three bond dipoles all have a component pointing along the same axis, away from the lone pair.

The molecular dipole moment of ammonia is 1.47 D. That is a large dipole for such a small molecule. It explains why ammonia dissolves so readily in water, why it sticks to polar surfaces, and why it interacts strongly with the acidic functional groups on indoor materials [2]. The dipole also makes ammonia a good solvent for ionic compounds in its liquid state and a strong hydrogen bond acceptor.

Physical Properties of Ammonia

Boiling Point, Melting Point, and Density

Ammonia boils at -33.34 C and melts at -77.73 C at standard pressure. Both values are unusually high for a molecule of only 17.03 g/mol. Methane, which has a similar molar mass of about 16 g/mol, boils near -162 C. The gap is almost entirely due to hydrogen bonding.

Each ammonia molecule has an N-H bond that can donate a hydrogen bond and a lone pair on nitrogen that can accept one. In the liquid, this creates a transient network of N-H...N contacts. Breaking that network requires energy, which raises the boiling point well above what a nonpolar molecule of the same size would show. The network is weaker than the one in water because nitrogen is less electronegative than oxygen, so the N-H...N hydrogen bond is weaker than O-H...O. That is why ammonia is a gas at room temperature while water is a liquid.

The gas density of ammonia is about 0.73 kg/m3 under standard conditions. Because ammonia is lighter than air (average molar mass near 29 g/mol), released ammonia tends to rise and disperse rather than pool at ground level. This property is exploited in sensor design, where gas diffusion into a sensing layer is a limiting factor for response time [4].

Water Solubility and Hydrogen Bonding

Ammonia is extremely soluble in water. At room temperature, water can dissolve hundreds of times its own volume of ammonia gas. The reason is direct hydrogen bonding between the two molecules. Water donates hydrogen bonds to the ammonia lone pair, and ammonia donates hydrogen bonds through its N-H bonds to water's oxygen. Both molecules are polar and both can act as donor and acceptor, so the interaction is favorable in both directions.

This solubility is not just a physical curiosity. It is why aqueous ammonia is a practical laboratory reagent, why ammonia released from urea hydrolysis in soil or in a hydrogel system dissolves into the aqueous phase before it volatilizes, and why ammonia uptake on indoor surfaces depends strongly on relative humidity. On glass surfaces, water plays a larger role in ammonia uptake at high relative humidity, consistent with a hydrogen-bonding mechanism rather than simple physisorption [2].

The Acid-Base Behavior of Ammonia

Ammonia is a weak base. When it accepts a proton from water, it forms the ammonium ion:

NH3 + H2O ⇌ NH4+ + OH-

The equilibrium lies far to the left. The pKa of the conjugate acid, NH4+, is 9.25. Equivalently, the pKb of ammonia is about 4.75. A pKa of 9.25 means that at pH 9.25, ammonium and ammonia are present in equal concentrations. Below that pH, ammonium dominates. Above it, free ammonia dominates.

That single number drives a great deal of applied chemistry. In wastewater and agricultural systems, raising the pH above roughly 9 shifts the equilibrium toward volatile NH3, which is the basis for ammonia stripping and recovery processes. A photothermal system operating at pH 9 achieved 90.1% ammonia recovery from ammonium-containing wastewater [5]. In the opposite direction, acidifying a solution traps ammonia as nonvolatile NH4+.

The same acid-base chemistry explains why ammonia binds metal centers. In a zinc-ammonia complex built on a pyridine-based tetraazamacrocycle, the ammonia coordinates directly to Zn(II), and the resulting structure is relevant to Lewis acid catalysis [6]. Ammonia is a competent Lewis base because of that lone pair, and the strength of the interaction depends on the geometry and electronic character of the metal site.

How Ammonia Is Detected and Measured

Ammonia is measured in gas, liquid, and biological samples, and the method depends on the matrix.

In air, ammonia is commonly detected with chemiresistive gas sensors. These devices use a material whose electrical resistance changes when NH3 adsorbs on its surface. Two-dimensional materials have been a productive platform for this. Ultrathin graphitic carbon nitride (g-C3N5) nanosheets with an average thickness of about 1.7 nm achieved a sensitivity of 22.27 ppm-1 and a detection limit of 27 ppb for ammonia at room temperature [4]. Metal-organic framework sensors have pushed detection lower. A CoNiFe-HITP framework with modulated cobalt spin states detected 1000 ppm ammonia at room temperature with a 50 ppb limit of detection [7]. Wearable fiber sensors built from mesoporous MXene and MXene/SnSe heterojunctions respond to 8 ppm ammonia in 9 seconds, which suits personal exposure monitoring [8].

In water and wastewater, free ammonia is often estimated from pH, temperature, and total ammonium, since the fraction present as uncharged NH3 depends on all three. Reagent-free alternatives have been developed for algal systems, where chlorophyll fluorescence transients analyzed with sparse regression predicted ammonia toxicity with R2 values of 0.93 to 0.98 within species [9].

In indoor air research, ammonia uptake by surfaces is measured with flow chambers coupled to laser spectrometers or proton transfer reaction mass spectrometers. On glass, saturated surface coverage reached 5.8 x 10^13 molecules per cm2, which is less than a full monolayer, indicating a limited number of binding sites [2].

In biological and environmental nitrogen work, ammonia and ammonium are tracked with isotope methods. Nitrogen-15 signatures of gaseous NH3, particulate NH4+, and wet NH4+ allow source apportionment, and in one two-year study near Erhai Lake, fertilizer and livestock manure together contributed 74.3% and 83.1% of gaseous NH3 in a vegetable system and a rice-rapeseed rotation system respectively [10].

Ammonia in Biological and Environmental Systems

Ammonia sits at the center of the nitrogen cycle. It is the product of nitrogen fixation, the substrate for nitrification, and a volatile loss pathway from fertilized soils and animal waste.

In agriculture, ammonia volatilization from urea hydrolysis and from urine patches is a major route of nitrogen loss. A three-year field study on the North China Plain found that a urease inhibitor reduced cumulative ammonia volatilization by 53.8% and increased wheat yield by 20.5%, with the effect linked to suppression of urea hydrolysis and dissimilatory nitrate reduction to ammonium [11]. In grazed pasture, ammonia emissions from urine patches peak within 1 to 3 days of application, and cumulative losses vary strongly with season, reaching up to 46.7 kg N per hectare in spring at the highest urine nitrogen concentration tested [12].

Ammonia also has direct biological effects. In microalgae, free ammonia is toxic, and its concentration depends on pH and temperature in the same way it does in any aqueous system [9]. In biofilters treating ammonia-containing waste gas, removal efficiency exceeded 93% at 15 C and 25 C but fell to 80% at 5 C, and nitrous oxide generation was highest at 25 C, showing that the microbial community response is temperature dependent [13].

Engineered biological systems are being explored for ammonia production as well. A hybrid of quantum dots and the diazotroph Azotobacter vinelandii produced extracellular ammonium under illumination, and production depended on carbon status, with intermittent sucrose feeding increasing cumulative ammonium production about 2.4-fold over 108 hours [14]. This work connects photoredox input to cellular energy metabolism and nitrogenase catalysis.

Common Mistakes and Limitations

The most frequent error is quoting 109.5 degrees for the H-N-H bond angle in ammonia. That is the ideal tetrahedral angle. The actual angle is 107.3 degrees because the lone pair represses the bonding pairs. If a question asks for the bond angle in NH3, 109.5 is wrong.

A second common mistake is calling ammonia trigonal planar. Trigonal planar geometry applies when a central atom has three electron domains and no lone pair, as in BF3. Ammonia has four electron domains, so it is trigonal pyramidal.

A third mistake is confusing ammonia with ammonium. NH3 is neutral and volatile. NH4+ is a cation and is not volatile. In aqueous solution both are present, and their ratio depends on pH. Writing "NH4" without a charge, or treating NH3 and NH4+ as interchangeable, leads to errors in buffer calculations and in interpreting water quality data.

A fourth mistake is assuming the pKa of 9.25 belongs to ammonia itself. It belongs to the conjugate acid, NH4+. The pKa describes the equilibrium NH4+ ⇌ NH3 + H+. Students who attach the value to the wrong species get the direction of the pH dependence backwards.

A fifth mistake is treating ammonia as a strong base. It is weak. A 1 M solution of ammonia is only about 0.4% ionized at room temperature, which is why ammonia solutions are buffered in practice rather than treated as a source of free hydroxide.

A final limitation is that measured ammonia concentrations in real systems depend on many variables at once. Temperature, pH, ionic strength, surface area, and biological activity all shift the balance between NH3 and NH4+ and between dissolved and gaseous ammonia. A single number from one study should not be generalized to a different matrix without checking those conditions. Individual cases in clinical or veterinary settings require professional assessment.

Quick Review: Seven Points Worth Memorizing

  1. The formula of ammonia is NH3, one nitrogen and three hydrogens, molar mass 17.03 g/mol.
  2. Nitrogen is sp3 hybridized with one lone pair, giving trigonal pyramidal geometry.
  3. The H-N-H bond angle is 107.3 degrees, not 109.5 degrees, because of lone pair repulsion.
  4. The dipole moment is 1.47 D, which makes ammonia polar and highly water soluble through hydrogen bonding.
  5. Ammonia boils at -33.34 C and melts at -77.73 C, values elevated by hydrogen bonding.
  6. Ammonia is a weak base with a conjugate acid pKa of 9.25, so pH controls the NH3 to NH4+ ratio.
  7. The lone pair is the reactive feature, driving protonation, metal coordination, and surface binding.

Frequently Asked Questions

What is the formula for ammonia?

The formula for ammonia is NH3, meaning one nitrogen atom bonded to three hydrogen atoms. The molar mass is 17.03 g/mol.

Is the NH3 chemical formula the same as the ammonia formula?

Yes. The NH3 chemical formula and the ammonia formula refer to the same molecule. Different phrasings such as formula of NH3 or formula of ammonia all describe NH3.

Why is the H-N-H bond angle in ammonia 107.3 degrees and not 109.5 degrees?

The lone pair on nitrogen occupies more angular space than a bonding pair, so it pushes the three N-H bonds closer together. That compression reduces the angle from the ideal tetrahedral 109.5 degrees to 107.3 degrees.

Why does ammonia dissolve so well in water?

Ammonia forms hydrogen bonds with water in both directions. Water donates to the nitrogen lone pair, and ammonia donates through its N-H bonds to water oxygen. This makes ammonia extremely soluble.

Is ammonia an acid or a base?

Ammonia is a weak base. It accepts a proton to form ammonium, NH4+, and the pKa of that conjugate acid is 9.25.

What is the geometry of the ammonia molecule?

Ammonia is trigonal pyramidal. Nitrogen is sp3 hybridized with three bonding pairs and one lone pair, so the electron pair geometry is tetrahedral while the molecular geometry is pyramidal.

Related Articles

Sources

  1. The use of main-group elements to mimic catalytic behavior of transition metals I: reduction of dinitrogen to ammonia catalyzed by bis(Lewis base)borylenium diradicals.
  2. Uptake of ammonia by indoor surfaces: dependence on surface permeability, relative humidity, and environmental aging.
  3. The rovibrational Hamiltonian for ammonia-like molecules.
  4. Ultrathin g-C3N5 Nanosheets with Enhanced Charge Transfer for Room-Temperature NH3 Sensing and Breath-Based Diagnosis of Pulmonary Infection.
  5. Photothermal Coupled Catalytic Water Decontamination and Solar Ammonia Recovery.
  6. Zinc-based cyclens containing pyridine and cross-bridges: X-ray and DFT structures, Lewis acidity, gas-phase acidity, and pK (a) values.
  7. Spin-State Engineering in 2D Metal-Organic Frameworks for Ultrasensitive Room-Temperature Ammonia Sensing.
  8. Wearable and Highly Sensitive Sensing Fiber Enabled by Mesoporous MXene and MXene/SnSe for Ammonia Gas and Temperature Monitoring of Firefighting Clothing.
  9. Reagent-Free Prediction of Free-Ammonia Toxicity in Algal Systems Using Chlorophyll Fluorescence Transients and Interpretable Sparse Regression.
  10. Reducing atmospheric ammonia concentrations in typical farming systems surrounding lakes is essential for lake water protection.
  11. Rhizosphere nitrogen-cycling microbial responses are associated with ammonia mitigation following chemical inhibitor application: a three-year field study.
  12. Influence of urine nitrogen concentration and environmental conditions on ammonia emissions and nitrogen uptake in temperate pasture systems.
  13. Effects of temperature on biofiltration of ammonia-containing waste gas: Removal efficiency, nitrous oxide generation, and microbial communities.
  14. Carbon-Mediated Rechargeable Operation for Light-Driven Ammonia Production Using Quantum Dot-Azotobacter vinelandii Hybrids.