pH measures how acidic or basic a solution is. To calculate pH, use the formula pH = −log₁₀, where represents the molar concentration of hydrogen ions in the solution. For example, if a solution has a hydrogen ion concentration of 1 × 10⁻³ moles per liter, its pH is 3.
The calculation depends on what information you have. If you know the hydrogen ion concentration, you can calculate pH directly. If you know the hydroxide ion concentration, you can calculate pOH first and then determine pH. Weak acids and weak bases require additional steps because they do not ionize completely in water.
Understanding these methods makes it easier to calculate pH in chemistry problems and interpret the acidity of everyday substances, from vinegar and citrus juice to drinking water and cleaning solutions.
What pH means
The pH scale describes the acidity or basicity of an aqueous solution, meaning a solution in which water is the solvent. Acidity is associated with hydrogen ions, H⁺, while basicity is associated with a lower hydrogen ion concentration and, in many aqueous solutions, a higher hydroxide ion concentration, OH⁻.
The pH scale is logarithmic rather than linear. Each change of one pH unit represents a tenfold change in hydrogen ion activity. In dilute solutions, hydrogen ion activity is often approximated by its molar concentration.
For example, a solution at pH 3 has approximately ten times the hydrogen ion activity of a solution at pH 4 and 100 times that of a solution at pH 5. This explains why even a small numerical change in pH can represent a substantial chemical difference.
At approximately 25°C, aqueous solutions are commonly classified as follows:
- Acidic: pH below 7
- Neutral: pH equal to 7
- Basic or alkaline: pH above 7
These classifications depend on temperature. Neutral water does not have a pH of exactly 7 at every temperature because the equilibrium between water, hydrogen ions, and hydroxide ions changes with temperature.
The formula for calculating pH
The standard introductory chemistry formula for pH is:
pH = −log₁₀
Here, represents the molar concentration of hydrogen ions, expressed in moles per liter (mol/L), also written as M. The symbol log₁₀ means the base-10 logarithm, and the negative sign makes the pH increase as the hydrogen ion concentration decreases.
Strictly speaking, pH is defined using hydrogen ion activity rather than concentration alone. Activity describes the effective chemical concentration of an ion, accounting for interactions with other dissolved particles. For many introductory problems involving dilute aqueous solutions, concentration provides a sufficiently accurate approximation.
The formula works in reverse as well. If you know the pH and want to calculate the hydrogen ion concentration, rearrange the equation:
≈ 10⁻ᵖᴴ M
For instance, a solution with a pH of 5 has an approximate hydrogen ion concentration of 10⁻⁵ M, or 0.00001 mol/L.
The logarithmic relationship means that pH values cannot be interpreted as ordinary linear measurements. A solution at pH 2 is not simply twice as acidic as one at pH 4; its hydrogen ion activity is approximately 100 times greater.
How to calculate pH step by step
When a problem gives the hydrogen ion concentration directly, calculating pH requires only a few steps.
Step 1: Identify the hydrogen ion concentration.
Find the value of in the problem. It may appear in scientific notation, such as 2 × 10⁻⁴ M, or in decimal form, such as 0.0002 M.
Step 2: Apply the pH formula.
Substitute the concentration into:
pH = −log₁₀
Step 3: Calculate the base-10 logarithm.
Use a scientific calculator’s log function, which typically calculates log₁₀. Make sure you enter the entire concentration, including its exponent if it is written in scientific notation.
Step 4: Apply the negative sign.
The logarithm of a concentration below 1 M is negative. The negative sign in the pH formula converts that result into a positive pH value in many common dilute-solution problems.
Step 5: Round appropriately.
Report the answer with reasonable precision based on the precision of the supplied concentration and the assumptions of the problem.
For example, if = 1 × 10⁻⁴ M, then:
pH = −log₁₀(1 × 10⁻⁴)
pH = −(−4)
pH = 4
The negative sign in the formula is essential. Forgetting it would produce the wrong sign for the result.
Worked example 1: Calculating pH from hydrogen ion concentration
Suppose a laboratory solution has a hydrogen ion concentration of 3 × 10⁻⁵ M. What is its pH?
Begin with the standard formula:
pH = −log₁₀
Substitute the known concentration:
pH = −log₁₀(3 × 10⁻⁵)
Use the logarithm rule for multiplying numbers:
log₁₀(3 × 10⁻⁵) = log₁₀3 − 5
Since log₁₀3 is approximately 0.4771:
pH = −(0.4771 − 5)
pH = −(−4.5229)
Answer: pH ≈ 4.52
The solution is acidic because its pH is below 7 at approximately 25°C.
Worked example 2: Calculating pH from a decimal concentration
Suppose a solution has = 0.002 M. Calculate its pH.
First, convert the concentration to scientific notation:
0.002 M = 2 × 10⁻³ M
Apply the formula:
pH = −log₁₀(2 × 10⁻³)
Using logarithm rules:
pH = −(log₁₀2 − 3)
Since log₁₀2 is approximately 0.3010:
pH = −(0.3010 − 3)
pH = 2.6990
Answer: pH ≈ 2.70
The solution is acidic. Its hydrogen ion concentration is greater than that of a solution at pH 3 because its calculated pH is slightly lower than 3.
Worked example 3: Calculating hydrogen ion concentration from pH
Sometimes the known value is pH rather than hydrogen ion concentration. In that case, rearrange the equation:
≈ 10⁻ᵖᴴ
Suppose a solution has a pH of 6.5.
Substitute the pH:
≈ 10⁻⁶·⁵ M
Evaluating the expression gives:
≈ 3.16 × 10⁻⁷ M
Answer: ≈ 3.16 × 10⁻⁷ M
This calculation is useful when you have a pH measurement from a meter or indicator and want to estimate the corresponding hydrogen ion concentration.
Remember that the concentration is approximate when inferred from pH, particularly for solutions in which dissolved salts or other solutes significantly affect ion activity.
How to calculate pH using pOH
The pOH scale describes the hydroxide ion concentration in a solution. Its introductory formula is:
pOH = −log₁₀
Here, is the hydroxide ion concentration in mol/L.
For dilute aqueous solutions at approximately 25°C, pH and pOH are related by:
pH + pOH = 14
This relationship follows from the ion-product constant of water, Kw, which is approximately 1 × 10⁻¹⁴ at 25°C:
Kw =
Taking the negative base-10 logarithm of both sides gives pH + pOH = 14 under the usual introductory chemistry assumptions.
To calculate pH from hydroxide concentration:
- Calculate pOH using pOH = −log₁₀.
- Subtract the result from 14 to obtain pH.
The value 14 is specific to approximately 25°C. At other temperatures, use the appropriate value of Kw and the relationship pH + pOH = pKw, where pKw = −log₁₀Kw.
Worked example 4: Calculating pH from hydroxide concentration
Suppose a solution has a hydroxide ion concentration of 1 × 10⁻³ M. Calculate its pH at approximately 25°C.
First, calculate pOH:
pOH = −log₁₀(1 × 10⁻³)
pOH = 3
Next, use the relationship between pH and pOH:
pH = 14 − pOH
pH = 14 − 3
Answer: pH = 11
The solution is basic because its pH is above 7. Its hydroxide ion concentration is relatively high compared with that of neutral water at the same temperature.
How to calculate pH for strong acids and strong bases
Strong acids and strong bases are substances that ionize or dissociate essentially completely in water under ordinary dilute-solution conditions. This makes their pH calculations relatively straightforward, although the number of hydrogen or hydroxide ions produced per formula unit must be considered.
For a typical strong monoprotic acid, such as hydrochloric acid, each acid molecule can supply one hydrogen ion. If the acid concentration is 0.01 M and the acid dissociates completely, then:
≈ 0.01 M = 1 × 10⁻² M
Therefore:
pH ≈ −log₁₀(1 × 10⁻²)
pH ≈ 2
For a strong base such as sodium hydroxide, which supplies one hydroxide ion per formula unit, a 0.001 M solution has approximately:
≈ 1 × 10⁻³ M
Thus:
pOH ≈ 3
pH ≈ 14 − 3
pH ≈ 11 at 25°C
Not every strong acid or base supplies just one ion of the relevant type per formula unit. For example, calcium hydroxide can supply two hydroxide ions per formula unit when it dissolves completely. In an idealized calculation, a 0.01 M solution of fully dissolved calcium hydroxide would therefore have ≈ 0.02 M.
Strong acids and bases can also require more advanced calculations when solutions are very concentrated, when activity effects are significant, or when multiple chemical equilibria affect the final composition.
How to calculate pH for weak acids and weak bases
Weak acids and weak bases do not ionize completely in water. Instead, they establish an equilibrium between ionized and unionized forms. Consequently, their initial concentration alone is generally not enough to determine pH.
For a weak acid represented by HA, the equilibrium can be written as:
HA ⇌ H⁺ + A⁻
The acid dissociation constant, Ka, describes the extent of this ionization:
Ka = /
A larger Ka generally indicates a stronger acid because the equilibrium favors ionization to a greater extent under comparable conditions.
For a weak acid of initial concentration C, a common approximation assumes that the amount ionized is small compared with C. If x represents the hydrogen ion concentration produced by the acid, then:
≈ x
≈ x
≈ C
Substituting these approximations into the equilibrium expression gives:
Ka ≈ x² / C
Solving for x:
≈ √(Ka × C)
The approximate pH is then:
pH ≈ −log₁₀√(Ka × C)
This approximation is useful when the fraction of acid ionized is small enough that the decrease in the original acid concentration can be neglected. If that condition is not satisfied, solve the full equilibrium expression instead.
Weak bases follow a similar approach using the base dissociation constant, Kb. For a weak base B reacting with water:
B + H₂O ⇌ BH⁺ + OH⁻
For a sufficiently small degree of ionization, the hydroxide concentration can be approximated as:
≈ √(Kb × C)
Calculate pOH from the hydroxide concentration, then determine pH using the appropriate temperature-dependent relationship.
Worked example 5: Calculating the pH of a weak acid
Consider a 0.10 M solution of acetic acid, the acid responsible for vinegar’s characteristic acidity. Its Ka at room temperature is approximately 1.8 × 10⁻⁵.
Assume that the weak-acid approximation is appropriate.
Start with:
≈ √(Ka × C)
Substitute the known values:
≈ √((1.8 × 10⁻⁵)(0.10))
Multiply the values inside the square root:
≈ √(1.8 × 10⁻⁶)
Taking the square root gives:
≈ 1.34 × 10⁻³ M
Now calculate pH:
pH ≈ −log₁₀(1.34 × 10⁻³)
Answer: pH ≈ 2.87
This is an approximate result based on the weak-acid equilibrium model. It illustrates why the pH of a weak acid cannot generally be calculated by assuming that its entire initial concentration becomes hydrogen ions.
How dilution changes pH
Dilution occurs when solvent, usually water, is added to a solution. It decreases the concentration of dissolved substances, provided no additional chemical reactions or solute additions change the composition.
For a strong acid in a dilute aqueous solution, reducing the hydrogen ion concentration by a factor of 10 increases pH by approximately one unit.
For example, suppose a strong monoprotic acid has a hydrogen ion concentration of 0.01 M:
pH ≈ −log₁₀(0.01) = 2
If dilution reduces the concentration to 0.001 M:
pH ≈ −log₁₀(0.001) = 3
The pH rises from approximately 2 to 3.
However, dilution does not always change pH by exactly one unit for every tenfold increase in volume. Weak acids and bases respond through chemical equilibria, and extremely dilute solutions require consideration of the hydrogen and hydroxide ions produced by water itself. Concentrated solutions may also behave differently from ideal dilute solutions because ions interact with one another.
For laboratory calculations, the dilution equation can help determine a new concentration when the amount of solute remains constant:
C₁V₁ = C₂V₂
Here, C₁ and V₁ are the initial concentration and volume, while C₂ and V₂ are the final concentration and volume. Once the new concentration is known, calculate pH using the appropriate chemical model.
How to calculate pH when mixing acids and bases
When an acid and a base are mixed, they can react with each other. The resulting pH depends on the quantities of acid and base, their chemical strengths, their concentrations, and the volume of the final mixture.
For a strong acid reacting with a strong base, the first step is usually to calculate the moles of hydrogen ions and hydroxide ions available to react.
Moles = concentration × volume
Use volume in liters when concentration is expressed in mol/L.
Hydrogen ions and hydroxide ions react to form water:
H⁺ + OH⁻ → H₂O
If the acid supplies more hydrogen ions than the base supplies hydroxide ions, the solution generally remains acidic. If the base supplies more hydroxide ions, it generally remains basic. If they neutralize one another in exactly equivalent amounts, the resulting solution is approximately neutral at 25°C for a simple strong-acid–strong-base mixture.
Consider mixing 50 mL of 0.10 M hydrochloric acid with 25 mL of 0.10 M sodium hydroxide.
First, calculate the acid’s hydrogen ion amount:
0.10 mol/L × 0.050 L = 0.0050 mol H⁺
Next, calculate the base’s hydroxide ion amount:
0.10 mol/L × 0.025 L = 0.0025 mol OH⁻
After neutralization, the excess hydrogen ion amount is:
0.0050 − 0.0025 = 0.0025 mol H⁺
The total volume is:
50 mL + 25 mL = 75 mL = 0.075 L
The remaining hydrogen ion concentration is approximately:
= 0.0025 mol / 0.075 L
≈ 0.0333 M
Calculate the pH:
pH ≈ −log₁₀(0.0333)
Answer: pH ≈ 1.48
This method works for a simple strong-acid–strong-base mixture because neutralization consumes the available hydrogen and hydroxide ions in a predictable ratio. Weak acids, weak bases, buffer solutions, and mixtures involving multiple reactions may require equilibrium calculations rather than simple subtraction.
Common mistakes when calculating pH
One frequent mistake is forgetting the negative sign in the formula. Because the logarithm of a small positive concentration is negative, omitting the negative sign produces an incorrect pH.
Another mistake is confusing pH with pOH. pH is calculated from hydrogen ion activity, while pOH is calculated from hydroxide ion activity. For dilute aqueous solutions at 25°C, they add up to 14, but they are not interchangeable.
A third error is treating every acid as a strong acid. Strong acids ionize essentially completely in water under ordinary dilute conditions, while weak acids establish equilibria. Using the initial concentration of a weak acid as if it were the hydrogen ion concentration can lead to a substantially incorrect answer.
It is also important to handle scientific notation carefully. For example, 1 × 10⁻⁴ M corresponds to pH 4, not pH −4. The exponent of the concentration and the negative sign in the pH equation must both be accounted for.
Finally, avoid assuming that pH 7 is neutral at every temperature or that pH values directly measure total acid content. pH describes hydrogen ion activity, not the total amount of acid or the solution’s ability to neutralize added acid or base. Two solutions can have the same pH but respond very differently when additional chemicals are introduced.
When pH calculations require more advanced methods
The basic pH formula is sufficient for many introductory chemistry problems, but real solutions can be more complicated.
In concentrated solutions, dissolved ions interact more strongly, so their activities can differ substantially from their molar concentrations. In such cases, calculating pH from concentration alone may not provide an accurate result.
Buffer solutions, which contain a weak acid and its conjugate base or a weak base and its conjugate acid, resist large changes in pH when small amounts of acid or base are added. Their pH depends on both components and their equilibrium relationship. For an appropriate weak-acid buffer, the Henderson–Hasselbalch equation provides a useful approximation:
pH = pKa + log₁₀(/)
Here, pKa = −log₁₀Ka, is the concentration of the conjugate base, and is the concentration of the weak acid. This equation is most useful when both buffer components are present in meaningful amounts and their concentrations provide reasonable approximations of their activities.
Solutions containing several acids, bases, dissolved salts, or reacting chemical species may require solving multiple equilibrium equations simultaneously. In those cases, the correct method depends on the chemical composition and the assumptions that can reasonably be made.
How to check whether a pH answer makes sense
A quick reasonableness check can help identify calculation errors.
For a typical dilute acidic solution at approximately 25°C, expect a pH below 7. For a typical dilute basic solution, expect a pH above 7. Neutral water has a pH of approximately 7 under these conditions.
Check the relationship between concentration and pH. If the hydrogen ion concentration increases tenfold, pH should decrease by approximately one unit when activity effects are negligible. If hydrogen ion concentration decreases tenfold, pH should increase by approximately one unit under the same conditions.
For example, a hydrogen ion concentration of 1 × 10⁻² M corresponds to pH 2, while a concentration of 1 × 10⁻⁴ M corresponds to pH 4. The second solution has one-hundredth the hydrogen ion concentration of the first and a pH two units higher.
The essential principle is simple: calculate pH by taking the negative base-10 logarithm of hydrogen ion activity, approximated by concentration for many dilute solutions. When hydrogen ion concentration is not given directly, determine it from the relevant acid–base chemistry first. Choosing the correct chemical model is just as important as applying the formula correctly.
