Chemistry
How To Calculate pH
pH is the negative base ten logarithm of the hydrogen ion concentration. That single logarithm is why a hundredfold change in concentration moves the scale by only two units.
Quick Answer
pH = -log10[H+]
- H+
- Hydrogen ion concentration in moles per litre
- pH
- Negative base ten logarithm of that concentration
- pOH
- 14 minus the pH at 25 degrees Celsius
- OH-
- Hydroxide ion concentration, equal to 10 to the minus pOH
A hydrogen ion concentration of 0.001 moles per litre gives a pH of 3, because the base ten logarithm of 0.001 is minus 3 and the negative of that is 3. The pOH is then 11 and the hydroxide concentration is 10 picomoles per litre, which is the same as 1e-11 moles per litre. Diluting the solution tenfold drops the concentration to 0.0001 and raises the pH to 4.
What Is pH?
pH is a compact way of writing a hydrogen ion concentration that would otherwise be a small number with a large negative exponent. It is defined as the negative base ten logarithm of the concentration in moles per litre, so a concentration of 0.001 gives a pH of 3. The logarithm is what makes the scale manageable, and it is also what makes the scale counter-intuitive: a lower pH means a higher concentration of hydrogen ions.
The sign convention exists so that ordinary solutions land on convenient positive numbers. Pure water at 25 degrees Celsius has a hydrogen ion concentration of 0.0000001, which is one times ten to the minus seven, and its pH is therefore 7. Acidic solutions have more hydrogen ions and a pH below 7; alkaline solutions have fewer and a pH above 7.
Because the scale is logarithmic, a change of one pH unit means a tenfold change in concentration. Going from pH 4 to pH 3 is not a small adjustment, it is ten times the hydrogen ion concentration. A change of two units is a hundredfold, and three units is a thousandfold. This is the single most useful fact about pH and the one most often mishandled.
The pOH is defined the same way for hydroxide ions, and at 25 degrees Celsius the two are linked by pH plus pOH equals 14. That constant comes from the self-ionisation of water, whose ion product is one times ten to the minus fourteen. Because the sum is fixed, any statement about pH is simultaneously a statement about pOH, and one can always be read off from the other.
Strong acids dissociate completely, so the hydrogen ion concentration equals the acid concentration and the pH follows directly from the logarithm. A 0.01 mole per litre solution of a strong monoprotic acid therefore has a pH of exactly 2. Weak acids dissociate only partly, and the pH then depends on the acid dissociation constant as well as the concentration.
For a weak acid the calculation uses the half-logarithm shortcut: the pH is approximately one half of the pKa minus the logarithm of the concentration. The pKa is itself minus the logarithm of the acid dissociation constant. This approximation assumes the acid is barely dissociated, which holds for the dilute solutions where the formula is normally used.
Dilution changes the concentration in proportion to the volumes involved. Mixing a small sample volume with a larger volume of water multiplies the concentration by the ratio of the sample volume to the total volume. Ten millilitres made up to one hundred millilitres is a tenfold dilution, and since the concentration falls by a factor of ten the pH rises by exactly one unit.
There is a limit to how far dilution can push the pH, and it is the reason a litre of pure water does not have a pH of 8. Once the acid has been diluted so far that its contribution is smaller than water's own self-ionisation, the water dominates and the pH settles back towards 7. The simple logarithmic formula ignores this and will happily report a pH of 9 for an extremely dilute acid, which is physically impossible.
The measurement is also temperature dependent. The ion product of water grows with temperature, so the neutral point moves below 7 as a solution warms. A pH of 7 is therefore only neutral at 25 degrees Celsius; the definition of pH itself, the logarithm, does not change, but the point where hydrogen and hydroxide concentrations balance does.
In practice pH is measured with a glass electrode that reads a voltage proportional to the logarithm of the activity rather than the raw concentration. Activity differs from concentration in solutions with a high concentration of dissolved salts, which is why a carefully calculated pH can differ slightly from a meter reading. For teaching and for most laboratory work the concentration-based formula is the one to use, and it is the one this page computes.
Formula
pH = -log10[H+]
The definition. Take the base ten logarithm of the concentration in moles per litre and change its sign, which turns small negative logarithms into the familiar positive pH scale.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| H | Hydrogen ion concentration | moles per litre | In moles per litre; 0.001 gives a pH of 3. |
| pH | pH value | dimensionless | Lower means more acidic; 7 is neutral at 25 degrees. |
pH + pOH = 14
At 25 degrees Celsius the two scales always sum to 14, because the ion product of water is one times ten to the minus fourteen. Knowing one gives the other immediately.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| pH | pH value | dimensionless | The acidity measure computed from hydrogen ions. |
| pOH | pOH value | dimensionless | 14 minus the pH; the alkalinity measure. |
pH_new = -log10([H+] x Vsample / Vtotal)
Dilution multiplies the concentration by the ratio of sample volume to total volume. A tenfold dilution raises the pH by exactly one unit.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| Vs | Sample volume | litres | Volume of the solution being diluted. |
| Vtot | Total volume | litres | Sample volume plus the water added. |
| pH | New pH | dimensionless | Rises by one unit for each tenfold dilution. |
How To Calculate pH
- 1
Write the concentration in moles per litre
The formula expects a molar concentration, not grams per litre or a percentage. Convert first if necessary, because the logarithm of a wrongly scaled number is simply wrong rather than obviously wrong.
- 2
Take the base ten logarithm
The logarithm of 0.001 is minus 3. Concentrations below one always produce a negative logarithm, which is exactly why the definition includes a minus sign in front.
- 3
Change the sign to get pH
Minus 3 becomes a pH of 3. If the answer comes out negative, the concentration was larger than one mole per litre, which is possible for very strong concentrated acids.
- 4
Subtract from 14 for the pOH
A pH of 3 leaves a pOH of 11. This step is free and gives a useful cross-check, because the two values must always add to 14 at room temperature.
- 5
Apply the dilution ratio when volumes change
Multiply the concentration by the sample volume divided by the total volume, then take the logarithm again. Each tenfold dilution adds one whole unit to the pH, so the shift is easy to sanity-check.
Examples
Example 1: A 0.001 mol/L strong acid
- Hydrogen ion concentration
- 0.001 moles per litre
| Step | Calculation | Result |
|---|---|---|
| pH | -log10(0.001) | 3 |
| pOH | 14 - 3 | 11 |
| Hydroxide concentration | pow(10, -11) | 1e-11 |
| pH after a tenfold dilution | -log10(0.0001) | 4 |
Result: The solution sits at a pH of 3 and a pOH of 11, and a tenfold dilution lifts the pH to 4 while dropping the pOH to 10.
Example 2: Comparing two concentrations a hundredfold apart
- Stronger solution
- 0.01 moles per litre
- Weaker solution
- 0.0001 moles per litre
| Step | Calculation | Result |
|---|---|---|
| pH of the stronger solution | -log10(0.01) | 2 |
| pH of the weaker solution | -log10(0.0001) | 4 |
| Difference in pH units | 4 - 2 | 2 |
Result: Dropping the concentration a hundredfold from 0.01 to 0.0001 moles per litre lifts the pH from 2 to 4, a shift of 2 units.
Example 3: A weak acid using its pKa
- Acid dissociation constant
- 0.000018
- Concentration
- 0.1 moles per litre
| Step | Calculation | Result |
|---|---|---|
| pKa from the dissociation constant | -log10(0.000018) | 4.7447275 |
| Logarithm of the concentration | log10(0.1) | -1 |
| pH from the half-logarithm shortcut | 0.5 x (4.7447275 - (-1)) | 2.87236375 |
Result: With a pKa of 4.7447275 and a concentration of 0.1 moles per litre, the pH works out to 2.87236375.
Calculator
pH
3
- pOH
- 11
- Hydroxide concentration in picomoles per litre
- 10
- Dilution factor
- 0.1
- pH after dilution
- 4
Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.
Prefer a full-width tool? Open the pH calculator page.
Common Mistakes
Forgetting the minus sign
The definition includes a minus sign precisely because concentrations below one produce negative logarithms. Dropping it gives minus 3 where the pH should be 3, and the sign error is easy to miss in a column of numbers.
Treating a one unit pH change as small
The scale is logarithmic, so one unit is a tenfold change in hydrogen ion concentration. Two units is a hundredfold and three is a thousandfold; reading the scale as linear understates every difference.
Using grams per litre instead of moles per litre
The logarithm requires a molar concentration. A figure in grams per litre must be divided by the molar mass first, and skipping that step produces a pH that is plausible but simply wrong.
Assuming pH 7 is always neutral
Neutrality is defined by equal hydrogen and hydroxide concentrations, which happens at pH 7 only near 25 degrees Celsius. Warm water is neutral at a pH below 7 because the ion product grows with temperature.
Trusting the formula past the point of absurdity
An extremely dilute acid eventually contributes less than water itself, and the true pH returns towards 7. The logarithmic formula ignores that and will report values like 8 or 9 for a dilute acid, which cannot be right.
Multiplying by the dilution volume ratio the wrong way round
The concentration is multiplied by the sample volume divided by the total volume, a number smaller than one. Inverting the ratio concentrates the solution instead of diluting it and shifts the pH in the wrong direction.
FAQ
Why is pH a logarithm rather than a plain concentration?
Hydrogen ion concentrations in ordinary solutions span many orders of magnitude, from roughly one mole per litre in strong acid down to a ten millionth in pure water. A logarithm compresses that enormous range into a short, readable scale and turns multiplicative changes into simple additions.
What does a change of one pH unit actually mean?
It means a tenfold change in hydrogen ion concentration. Going from pH 4 to pH 3 multiplies the concentration by ten; going from pH 4 to pH 2 multiplies it by a hundred. The relationship is exponential, not linear.
Can pH be negative or above 14?
Yes, in principle. A hydrogen ion concentration above one mole per litre gives a negative pH, and concentrated alkaline solutions can exceed 14. The familiar zero to fourteen range is a convenience for dilute aqueous solutions, not a hard limit of the definition.
How do I get pOH from pH?
Subtract the pH from 14 at 25 degrees Celsius. A pH of 3 gives a pOH of 11. The sum is fixed because the product of the hydrogen and hydroxide concentrations is constant, so one value always determines the other.
Why does dilution stop raising the pH after a point?
Water itself contributes hydrogen ions at a concentration of one times ten to the minus seven. Once the acid is diluted below that level the water dominates, and further dilution brings the pH back towards 7 rather than pushing it ever higher.
Is a calculated pH as good as a meter reading?
For dilute solutions of fully dissociated acids the two agree closely. In solutions with a lot of dissolved salt the meter responds to activity rather than concentration and can read slightly differently. The formula computes concentration-based pH, which is the standard teaching definition.
References
- [1]Wikipedia, pH — https://en.wikipedia.org/wiki/PH
- [2]Wikipedia, Buffer solution — https://en.wikipedia.org/wiki/Buffer_solution
- [3]Wikipedia, Acid dissociation constant — https://en.wikipedia.org/wiki/Acid_dissociation_constant