MolarityMoles of acid or base per litre. Scientific notation such as 2.5e-4 works.
pH of 0.01 M hydrochloric acid (HCl)

pH 2.00

Strong acid: ionizes completely, 1 H+ per formula unit.

  • pOH12.00pH + pOH = 14 at 25 C.
  • [H+]1.00 × 10⁻² MHydrogen ion concentration.
  • [OH−]1.00 × 10⁻¹² MHydroxide ion concentration.
  • IonizationCompleteA strong acid ionizes 100% in water.
Show the steps
  1. [H+] (complete ionization)[H+] = n × C= 1 × 0.01 M= 0.01 M
  2. pHpH = -log10[H+]= -log10(0.01)= 2.00
  3. pOHpOH = 14 - pH= 14 - 2.00= 12.00
  4. [OH-][OH-] = 10^-pOH= 10^-12.00= 1.00 × 10⁻¹² M

Short answer: pH = −log10[H+]. For a strong acid that releases one hydrogen ion, such as HCl, the hydrogen ion concentration equals the molarity, so 0.01 M HCl has a pH of 2.00. Strong bases work through pOH: 0.01 M NaOH has a pOH of 2.00 and a pH of 12.00. Weak acids and bases only partly ionize, so you also need their Ka or Kb. Pick your acid or base above and enter the molarity to get the pH, pOH, [H+] and [OH−] with every step shown.

How to use the molarity to pH calculator

  1. Pick the compound. The list covers common strong acids, strong bases, weak acids and weak bases with their Ka or Kb filled in. Choose Custom to enter any acid or base by its Ka, pKa, Kb or pKb.
  2. Enter the molarity in mol/L (M). You can also enter it in mM or in scientific notation, such as 2.5e-4.
  3. Read the result. The calculator shows pH, pOH, [H+], [OH−] and, for weak acids and bases, the percent ionization.
  4. Open “Show the steps” to see the formula used, with your numbers plugged in. You can copy the steps into homework or a lab report.

The pH to molarity tab runs the calculation in reverse: enter a target pH and it tells you what concentration of the acid or base gives that pH.

How to calculate pH from molarity

Every molarity to pH problem uses the same three equations, valid at 25 °C:

pH = −log10[H+]    pOH = −log10[OH−]    pH + pOH = 14

What changes from problem to problem is how you get [H+] or [OH−] from the molarity. That depends on two questions: is the compound an acid or a base, and is it strong or weak?

  1. Strong acid: [H+] = molarity × number of H+ released. Then pH = −log[H+].
  2. Strong base: [OH−] = molarity × number of OH− released. Then pOH = −log[OH−] and pH = 14 − pOH.
  3. Weak acid: [H+] ≈ √(Ka × molarity). Then pH = −log[H+].
  4. Weak base: [OH−] ≈ √(Kb × molarity). Then pOH = −log[OH−] and pH = 14 − pOH.

Worked example: find the pH of 0.0025 M HNO3. Nitric acid is a strong acid with one H+, so [H+] = 0.0025 M. pH = −log(0.0025) = 2.60.

The calculator does not stop at these shortcuts. It solves the full equilibrium, including the hydrogen and hydroxide ions that come from water itself, so its answer stays correct for very dilute solutions and for weak acids where the square-root shortcut fails.

Hand tipping a test tube of blue liquid toward an Erlenmeyer flask holding orange liquid
Transferring a solution from a test tube into a flask. Photo: Alex / Unsplash

pH of strong acids and bases

Strong acids such as HCl, HBr, HI, HNO3 and HClO4 ionize completely in water. Every mole of acid releases one mole of H+, so the molarity is the hydrogen ion concentration. Strong bases such as NaOH and KOH release one OH− each. Ca(OH)2 and Ba(OH)2 release two, so their [OH−] is twice the molarity.

Solution [H+] or [OH−] pH
0.1 M HCl [H+] = 0.1 M 1.00
0.01 M HCl [H+] = 0.01 M 2.00
0.001 M HCl [H+] = 0.001 M 3.00
0.1 M NaOH [OH−] = 0.1 M 13.00
0.01 M Ba(OH)2 [OH−] = 0.02 M 12.30
0.02 M Ca(OH)2 [OH−] = 0.04 M 12.60

Each tenfold dilution of a strong acid raises the pH by exactly 1 unit, because pH is a base-10 logarithm. That rule holds until the acid gets close to the concentration of H+ that water supplies on its own, which the section on dilute solutions below covers.

pH of weak acids and bases

A weak acid such as acetic acid only gives up a small fraction of its hydrogen ions. How much it ionizes is set by its acid dissociation constant, Ka:

Ka = [H+][A−] / [HA]

If x is the amount that ionizes from an initial molarity C, then Ka = x2 / (C − x). When the acid ionizes by less than about 5%, C − x is close to C and the equation simplifies to x = √(KaC). That is the square-root shortcut taught in most chemistry classes.

Worked example: find the pH of 0.1 M acetic acid, Ka = 1.74 × 10−5 (pKa 4.76). [H+] ≈ √(1.74 × 10−5 × 0.1) = 1.32 × 10−3 M, so pH = 2.88. Only 1.3% of the acid is ionized, so the shortcut is safe here.

The shortcut breaks down for stronger weak acids and for dilute solutions, where a larger share of the acid ionizes. The table compares it with the exact answer the calculator gives:

Solution pKa Exact pH Shortcut pH Ionized
0.1 M acetic acid 4.76 2.88 2.88 1.3%
0.001 M acetic acid 4.76 3.91 3.88 12%
0.1 M formic acid 3.75 2.38 2.38 4.1%
0.1 M hydrofluoric acid 3.17 2.10 2.09 7.9%
0.001 M hydrofluoric acid 3.17 3.26 3.09 55%

Weak bases follow the same math with Kb and [OH−]. For 0.1 M ammonia, Kb = 1.78 × 10−5 (pKb 4.75), [OH−] = 1.33 × 10−3 M, pOH = 2.88 and pH = 11.12. If you only have the Ka of the conjugate acid, use Kb = 10−14 / Ka, or pKb = 14 − pKa.

For acids with more than one ionizable hydrogen, such as phosphoric, carbonic and citric acid, the first dissociation sets almost all of the pH. The calculator uses the first Ka for these and says so in the steps. For the organic acids among them, see examples of organic acids.

pH of sulfuric acid

Sulfuric acid is the common exception to “multiply the molarity by the number of hydrogens.” Its first hydrogen ionizes completely. The second, from HSO4−, is a weak acid with pKa 1.99, so it only partly ionizes:

H2SO4 molarity Exact pH pH if both H+ counted
0.1 M 0.96 0.70
0.05 M 1.24 1.00
0.01 M 1.85 1.70

Many textbooks treat both hydrogens as fully ionized for simplicity. If your class does, use the “both H+” column. The calculator gives the exact figure and shows the simplified one in the steps.

Why a dilute acid never goes above pH 7

The formula pH = −log(molarity) predicts that 10−8 M HCl has a pH of 8, which would make an acid solution basic. That is impossible. Pure water already contains 10−7 M H+ from its own ionization (Kw = [H+][OH−] = 1.0 × 10−14 at 25 °C), and at very low concentrations the water contributes more H+ than the acid does.

The exact hydrogen ion concentration of a strong acid at molarity C is:

[H+] = C/2 + √(C2/4 + Kw)

HCl molarity Exact pH −log(molarity)
10−6 M 6.00 6.00
10−7 M 6.79 7.00
10−8 M 6.98 8.00

A dilute strong base mirrors this from the other side: 10−8 M NaOH has a pH of 7.02, not 6.

How to convert pH to molarity

Run the equations backwards. [H+] = 10−pH and [OH−] = 10−(14 − pH).

  • Strong acid: molarity = [H+] divided by the number of H+ per formula. A pH 3 HCl solution is 0.001 M.
  • Strong base: molarity = [OH−] divided by the number of OH−. A pH 12 NaOH solution is 0.01 M.
  • Weak acid: molarity = [H+] + [H+]2 / Ka. Acetic acid needs 0.059 M to reach pH 3, about 59 times the molarity of HCl at the same pH.

To turn the molarity into grams to weigh out, multiply by the molar mass and the volume in liters. The molar mass calculator gives the molar mass of any formula.

Five test tubes in a wooden rack filled with red, orange, yellow, green and blue solutions
A color series like the one a universal indicator produces across the pH scale. Photo: Merrilee Schultz / Unsplash

pH, pOH, [H+] and [OH−] at a glance

pH [H+] (M) [OH−] (M) pOH Example
0 1 10−14 14 1 M HCl
2 10−2 10−12 12 Lemon juice
4 10−4 10−10 10 Tomato juice
7 10−7 10−7 7 Pure water
8.3 5.0 × 10−9 2.0 × 10−6 5.7 Baking soda solution
11 10−11 10−3 3 Household ammonia
14 10−14 1 0 1 M NaOH

pH + pOH = 14 is true only at 25 °C. Kw grows with temperature, so at 37 °C neutral water has a pH of about 6.8, and at 50 °C about 6.6. The calculator uses 25 °C, the temperature textbook problems assume.

Real solutions also stray from these numbers above about 0.1 M, because ions start to interact and the effective concentration (the activity) drops below the molarity. A pH meter reads activity, so a measured pH can differ from the calculated one by a few tenths in concentrated solutions. Mixtures of a weak acid and its salt behave differently again: those are buffer solutions, and their pH follows the Henderson-Hasselbalch equation. To work out how much acid or base it takes to move a real solution from one pH to another, use the pH adjustment calculator.

Sources

  • Harris, D. C. Quantitative Chemical Analysis, 10th ed. W. H. Freeman, 2020. Chapters 8 and 9 (activity, systematic treatment of equilibrium, monoprotic acid-base equilibria).
  • Rumble, J. R., ed. CRC Handbook of Chemistry and Physics, 104th ed. CRC Press, 2023. “Dissociation Constants of Inorganic Acids and Bases” and “Dissociation Constants of Organic Acids and Bases.”
  • IUPAC. Compendium of Chemical Terminology (the Gold Book), entries “pH” and “acidity constant.”
  • Bandura, A. V. and Lvov, S. N. “The Ionization Constant of Water over Wide Ranges of Temperature and Density.” Journal of Physical and Chemical Reference Data 35 (2006): 15–30.

Frequently asked questions

How do you convert molarity to pH?

For a strong acid with one H+, take the negative base-10 log of the molarity: pH = −log(M). For a strong base, find pOH = −log(M × number of OH−), then pH = 14 − pOH. For a weak acid, first find [H+] = √(Ka × M), then take its negative log.

What is the pH of 0.1 M HCl?

1.00. HCl is a strong acid that ionizes completely, so [H+] = 0.1 M and pH = −log(0.1) = 1.00.

What is the pH of 0.1 M NaOH?

13.00. NaOH releases one hydroxide ion per formula unit, so [OH−] = 0.1 M, pOH = 1.00 and pH = 14 − 1.00 = 13.00.

What is the pH of 0.1 M acetic acid?

2.88. Acetic acid is a weak acid with Ka = 1.74 × 10−5, so [H+] = √(1.74 × 10−5 × 0.1) = 1.32 × 10−3 M and pH = 2.88. About 1.3% of the acid molecules are ionized.

Is pH the same as molarity?

No. Molarity is the concentration of the acid or base you dissolved, in moles per liter. pH is the negative log of the hydrogen ion concentration that results. They match directly only for a strong acid with one H+, where [H+] equals the molarity.

How do you find pH from Ka and molarity?

Solve Ka = x2 / (C − x) for x, which is [H+]. If the acid is less than about 5% ionized, x ≈ √(KaC). Otherwise use the quadratic formula: x = (−Ka + √(Ka2 + 4KaC)) / 2. Then pH = −log x.

How do you find molarity from pH?

Calculate [H+] = 10−pH. For a strong monoprotic acid that is the molarity. For a strong base, calculate [OH−] = 10pH − 14 and divide by the number of OH− per formula. For a weak acid, molarity = [H+] + [H+]2 / Ka.

Can pH be negative?

Yes. Any strong acid solution above 1 M has a negative calculated pH: 2 M HCl gives −0.30. In practice, activity effects at those concentrations make measured values differ from the calculated ones, but negative pH readings in concentrated acids are real.

Why does a very dilute acid have a pH close to 7?

Water supplies 10−7 M H+ on its own. Once the acid’s concentration falls near or below that, the water’s contribution dominates and the pH approaches 7 from below. 10−8 M HCl has a pH of 6.98, not 8.

Does temperature change the pH calculation?

Yes. The relationship pH + pOH = 14 holds at 25 °C. Kw rises with temperature, so neutral water is pH 6.8 at 37 °C. The pH of a strong acid barely changes with temperature, but the pH of a strong base drops as the water warms.