Skip to main content
v2026.11,858 entries · CC-BY 4.0
LAC HealthMedical & Research SuppliesReagents, PPE & instruments — chain-of-custody documented.Fast, traceable sourcing built for regulated research environments, from bench consumables to instrumentation.Shop lac.us CodeCASRAIlac.us

How to Calculate pH from Molarity: Formula, Table and Worked Examples

Calculate pH from molarity for strong acids and bases: formula, lookup table, worked examples, spreadsheet and code snippets.

Written and maintained by CASRAI Editorial Board

Last updated

Short answer: for a strong monoprotic acid that dissociates completely, the hydrogen ion concentration equals the molarity, so pH = −log10(molarity). A 0.01 M solution of hydrochloric acid has a pH of 2.00; a 0.1 M solution has a pH of 1.00. For a strong base you take the negative log of the hydroxide concentration to get pOH, then subtract from 14 (at 25 °C).

The pH formula

The U.S. EPA defines pH as the negative logarithm of the hydrogen ion (H+) concentration, in mol/L, in an aqueous solution: pH = −log10[H+]. The scale usually runs from 0 to 14, with 7 neutral, below 7 acidic and above 7 basic. Because the scale is logarithmic, each one-unit change in pH is a tenfold change in hydrogen ion concentration (EPA CADDIS, pH, https://www.epa.gov/caddis/ph; USGS Water Science School, pH and Water, https://www.usgs.gov/special-topics/water-science-school/science/ph-and-water; both checked 2026-10-29).

Molarity is moles of solute per litre of solution. If you need to get there from grams, see converting moles to molarity, the worked molarity and solution calculations for the lab, and NaOH molarity. For the difference between the two quantities that are often confused, see moles vs molarity.

Assumptions behind the shortcut

  • The acid or base is strong and dissociates completely, so [H+] (or [OH−]) equals the molarity multiplied by the number of H+ or OH− each formula unit releases.
  • Concentration stands in for activity. EPA notes that a pH meter responds to hydrogen ion activity, not concentration, so a calculated value and a meter reading will not match exactly, especially in concentrated solutions.
  • The relationship pH + pOH = 14 holds at 25 °C (Purdue University General Chemistry Help, “Calculating pH and pOH”, checked 2026-10-29).
  • This page covers strong acids and bases. Weak acids and bases only partly dissociate and need an equilibrium constant, which is outside this table.

Molarity to pH table

Values are computed from the formulas above and rounded to two decimal places. The acid column assumes a strong monoprotic acid such as HCl; the base column assumes a strong monohydroxide base such as NaOH, at 25 °C.

Molarity (mol/L) Strong acid pH Strong base pH
1 0.00 14.00
0.1 1.00 13.00
0.05 1.30 12.70
0.01 2.00 12.00
0.005 2.30 11.70
0.001 3.00 11.00
0.0001 4.00 10.00
0.00001 5.00 9.00
0.000001 6.00 8.00

Worked examples

Example 1: strong acid

What is the pH of 0.025 M nitric acid (HNO3)?

  1. Nitric acid is a strong monoprotic acid, so [H+] = 0.025 mol/L.
  2. pH = −log10(0.025) = 1.602.
  3. Rounded to two decimal places, the pH is 1.60.

Example 2: strong base that releases two hydroxide ions

What is the pH of 0.010 M barium hydroxide, Ba(OH)2?

  1. Each formula unit releases two OH−, so [OH−] = 2 × 0.010 = 0.020 mol/L.
  2. pOH = −log10(0.020) = 1.699, or 1.70.
  3. pH = 14 − 1.70 = 12.30 (at 25 °C).

The same multiplication applies to acids that release more than one H+ per formula unit when they dissociate fully; check that the acid really dissociates fully before multiplying.

Calculate pH from molarity in Excel, R or Python

Tool pH of a strong acid pH of a strong base
Excel / Sheets (molarity in A1) =-LOG10(A1) =14+LOG10(A1)
R -log10(m) 14 + log10(m)
Python -math.log10(m) 14 + math.log10(m)

For a base that releases two hydroxide ions, multiply the molarity by 2 first, for example =14+LOG10(2*A1). In Python, run import math first.

How to calculate molarity

Molarity = moles of solute ÷ litres of solution. To get moles from a weighed mass, divide the mass in grams by the molar mass in g/mol. Then divide by the final solution volume in litres, not the volume of solvent added. For the full routine, see mol to molarity. Once you have the molarity, apply the table above.

Why a pH meter reading can differ from your calculation

The calculation uses concentration, while a meter responds to hydrogen ion activity (EPA CADDIS). Calibration and electrode condition also matter; see pH meter calibration and buffer selection. Solutions in aqueous media that contain buffers behave differently from the strong-acid case; see buffer and solution preparation.

Safety note: read the SDS first

Strong acids and strong bases are corrosive. Before preparing or handling a solution, read the supplier’s Safety Data Sheet (SDS) for the specific chemical and follow it and your laboratory’s own procedures for protective equipment and diluting. The pH arithmetic on this page tells you nothing about hazards.

Frequently asked questions

How do you calculate molarity?

Divide moles of solute by litres of solution. Moles are mass in grams divided by molar mass.

Does molarity equal the hydrogen ion concentration?

Only for a strong monoprotic acid that dissociates completely. For acids that release more than one H+, or for weak acids, the hydrogen ion concentration differs.

How do I calculate pH from molarity for a base?

Take pOH = −log10[OH−], then pH = 14 − pOH at 25 °C.

Why does a tenfold dilution change pH by exactly 1?

pH is a base-10 logarithm, so each tenfold change in hydrogen ion concentration changes pH by one unit (EPA CADDIS).

Sources

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · free to try

Ask about How to Calculate pH from Molarity: Formula, Table and Worked Examples

Ask your first 2 questions free below. Subscribers get 150 a day for $29 a month.

An AI assistant specialized in research administration. It cites the sources behind every answer, labels web answers and says when it can't answer.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays free to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →