Science & Engineering CalculatorsSimple Calculator TeamOctober 3, 2026

How to Calculate Molarity, Moles and pH: A Practical Guide

Everything Starts With the Mole

Chemistry has a counting problem. Reactions happen between individual particles, but no balance weighs an atom. The mole is the bridge: it is simply a count, 6.022 × 10²³ particles, chosen so that one mole of a substance weighs its atomic or molecular mass in grams.

That choice is what makes the rest of the arithmetic work, and it gives the single most used formula in chemistry:

moles = mass (g) ÷ molar mass (g/mol)

Rearranged, mass = moles × molar mass. Almost every calculation below is this relationship applied in one direction or the other.

Molar Mass From a Formula

Molar mass is the sum of the atomic masses in the formula, each multiplied by how many of that atom appear. Read the subscripts carefully — they multiply only the atom immediately before them.

  • NaCl: 22.99 + 35.45 = 58.44 g/mol
  • H₂O: (2 × 1.008) + 16.00 = 18.02 g/mol
  • H₂SO₄: (2 × 1.008) + 32.06 + (4 × 16.00) = 98.08 g/mol
  • C₆H₁₂O₆ (glucose): (6 × 12.01) + (12 × 1.008) + (6 × 16.00) = 180.16 g/mol

Brackets are where errors creep in. In Ca(OH)₂ the subscript applies to the whole bracket, so there are two oxygens and two hydrogens, giving 74.09 g/mol — not one of each.

Molarity: Concentration by Volume

Molarity (M) = moles of solute ÷ litres of solution

A 1 M solution contains one mole per litre. Dissolving 58.44 g of salt — one mole — to make one litre gives exactly 1 M.

To prepare 250 mL of 0.5 M sodium chloride: moles = 0.5 × 0.25 = 0.125, so mass = 0.125 × 58.44 = 7.31 g.

Two things trip people up here, and both are about the denominator.

The first is millilitres. The formula takes litres, so 250 mL must become 0.25 before it goes anywhere near the division. An answer out by a factor of 1,000 is almost always this.

The second is subtler and matters in a lab. Molarity is moles per litre of solution, not per litre of solvent. You dissolve the 7.31 g in some water and then make the total volume up to 250 mL — you do not add 250 mL of water to the solid, because the solid takes up space too. This is what volumetric flasks are for. It is also why molality (moles per kilogram of solvent) exists as a separate unit: mass does not change with temperature, and volume does.

Dilution: One Formula, Four Uses

Making a weaker solution from a stronger one does not change how much solute is present, only the volume it occupies. That conservation gives:

C₁V₁ = C₂V₂

To make 500 mL of 0.1 M from a 2 M stock: V₁ = (0.1 × 500) ÷ 2 = 25 mL of stock, then made up to 500 mL.

Units only need to be consistent, not converted — millilitres on both sides work perfectly well, since the volume units cancel. Rearrange for whichever of the four terms is unknown.

One safety point that is not arithmetic: when diluting a concentrated acid, add the acid to the water, never the reverse. The mixing releases considerable heat, and adding water to concentrated acid can boil it and spit.

pH Is a Logarithm, and That Changes Everything

pH = −log₁₀[H⁺], where [H⁺] is the hydrogen ion concentration in mol/L.

A solution with [H⁺] = 1 × 10⁻³ mol/L has a pH of exactly 3. A 0.01 M solution of hydrochloric acid has a pH of 2, because a strong acid dissociates completely.

Because the scale is logarithmic, each whole pH unit is a tenfold change in acidity. This is the part that gets misreported constantly:

pH 3 is not "twice as acidic" as pH 6. It is 1,000 times more acidic.

The companion scale is pOH = −log₁₀[OH⁻], and at 25 °C the two satisfy pH + pOH = 14. The 14 is not a universal constant: it comes from the ionic product of water, Kw = 1 × 10⁻¹⁴ at 25 °C. Warm the water and Kw rises, so neutral pH falls below 7 — pure water at 50 °C has a pH near 6.6 and is still perfectly neutral, because [H⁺] and [OH⁻] remain equal.

Concentration Is Not Strength

These two words are used interchangeably in ordinary speech and mean different things in chemistry. Concentration is how much acid is dissolved. Strength is how completely it dissociates.

0.01 M hydrochloric acid has a pH of 2.0. The same 0.01 M concentration of acetic acid — vinegar's acid — has a pH of about 3.4.

Identical concentrations, a difference of 1.4 pH units, which is around 25 times the hydrogen ion concentration. Acetic acid is weak: at that concentration only a few percent of its molecules give up a proton at any moment, so most of the acid is sitting there undissociated. Calculating the pH of a weak acid needs its dissociation constant Ka, not just its concentration.

Stoichiometry: Reading a Balanced Equation

A balanced equation is a recipe in moles. The coefficients are the ratios, and they apply to moles — never to grams.

Take ammonia synthesis: N₂ + 3H₂ → 2NH₃. One mole of nitrogen needs three of hydrogen and yields two of ammonia.

Given 28.01 g of N₂ (1 mol) and 3.02 g of H₂ (1.5 mol): the nitrogen would need 3 mol of hydrogen and only 1.5 mol is available, so hydrogen is the limiting reagent. Ammonia produced = 1.5 × (2 ÷ 3) = 1 mol = 17.03 g, and half the nitrogen is left over.

Identifying the limiting reagent is the step most often skipped. Whichever reactant runs out first caps the product, and any calculation based on the other reactant will overstate the yield.

The working is always the same three moves: grams to moles, apply the mole ratio, then moles back to grams.

Percentage Yield

Theory and the bench disagree, because reactions are incomplete, reversible, or lose material in transfer and purification.

Percentage yield = (actual ÷ theoretical) × 100

If that reaction gave 14.2 g of ammonia against a theoretical 17.03 g, the yield is 83.4%.

A yield above 100% is not a triumph; it means the product is still wet with solvent or contaminated, and should be dried and reweighed.

Where Marks and Measurements Get Lost

  • Millilitres left unconverted. Molarity wants litres. This single slip accounts for most factor-of-1,000 errors.
  • Applying coefficients to grams. Mole ratios are ratios of moles. Convert first.
  • Forgetting to balance the equation before reading ratios off it.
  • Treating pH linearly. Differences are multiplicative, so pH values cannot be averaged meaningfully.
  • Significant figures. For pH, only the digits after the decimal point count as significant — pH 2.00 carries two significant figures, not three.

Conclusion

Almost everything here runs through the mole. Convert grams to moles, use the balanced equation to change species, divide by volume for concentration, and take a negative logarithm for pH. The formulas are short; the errors come from units and from forgetting that pH and the dissociation of weak acids are not linear.

Work out a formula mass with a Molecular Weight Calculator, then carry it into molarity, dilution and stoichiometry from there.

Try our Molecular Weight Calculator

Try our pH Calculator

Try our Stoichiometry Calculator

Related Calculators: Molarity Calculator · Dilution Calculator · Density Calculator

Related Guide: Milligrams to Micrograms: The Essential Guide to Medical and Supplement Dosages

Related Guide: Grams to Milliliters: How to Convert Weight to Volume in the Kitchen

Related Guide: Kelvin to Celsius: The Science of Absolute Temperature Conversion