The acidity of a solution is most directly calculated using the pH formula: pH = −log10[H+], where [H+] is the molar concentration of hydrogen ions in mol/L. For a strong acid that fully dissociates, you can also calculate pH directly from the acid’s molarity; for weak acids, you use the acid dissociation constant (Ka) with the quadratic formula or an approximation.
Formula
The fundamental acidity formula is:
pH = −log10[H+]
where [H+] is the hydrogen ion concentration in moles per liter (mol/L, also written M). The inverse is [H+] = 10−pH.
For a strong acid like HCl or HNO3, which dissociates completely in water, the hydrogen ion concentration equals the acid’s molarity: [H+] = Cacid. So pH = −log10(Cacid).
For a weak acid (e.g., acetic acid), dissociation is partial. Using the equilibrium expression Ka = [H+][A−] / [HA], and assuming [H+] = [A−] and that the undissociated concentration is roughly the initial concentration Ca, you get:
pH = ½(pKa − log10Ca)
where pKa = −log10Ka. This approximation holds when Ca >> Ka (typically Ca > 100·Ka).
For a base, you first calculate pOH = −log10[OH−], then pH = 14 − pOH (at 25 °C).
Worked Example
Let’s calculate the molarity and then the pH of a solution made by dissolving 2.922 g of sodium chloride (NaCl, molar mass 58.44 g/mol) in enough water to make 250 mL. (NaCl is a neutral salt, so its pH is 7, but the molarity calculation is the same for any solute.)
- Convert volume to liters: 250 mL ÷ 1000 = 0.250 L.
- Calculate moles of solute: 2.922 g ÷ 58.44 g/mol = 0.05000 mol.
- Calculate molarity: 0.05000 mol ÷ 0.250 L = 0.2000 mol/L.
The calculator above gives the same: c = 2.922 / 58.44 / (250/1000) = 0.2000 mol/L. The concentration in millimolar is 0.2000 × 1000 = 200.0 mM.
Now, if this were 0.2000 M HCl (a strong acid), the pH would be −log10(0.2000) = 0.6990. If it were 0.2000 M acetic acid (Ka = 1.8 × 10−5, pKa = 4.74), the approximate pH would be ½(4.74 − log10(0.2000)) = ½(4.74 + 0.699) = 2.72. The exact quadratic solution gives pH 2.72 as well (since Ca >> Ka).
Assumptions
- Temperature is 25 °C (pH scale and Kw = 1.0 × 10−14 are temperature-dependent).
- Solutions are dilute (activity coefficients ≈ 1).
- Strong acids dissociate completely; weak acids follow the stated equilibrium.
- For the molarity part: the solute is pure and the final volume is used (not the solvent volume).
How to Choose the Right Formula
You cannot calculate pH until you know what kind of acid or base you have. The decision tree is simple:
- Strong acid (HCl, HNO3, H2SO4 first proton): pH = −log10(Cacid).
- Weak acid (acetic, citric, carbonic): use pH = ½(pKa − log10Ca) if Ca > 100·Ka; otherwise solve the quadratic: [H+]2 + Ka[H+] − KaCa = 0.
- Strong base (NaOH, KOH): pOH = −log10(Cbase), then pH = 14 − pOH.
- Weak base (ammonia): pOH = ½(pKb − log10Cb), then pH = 14 − pOH.
- Buffer (weak acid + its conjugate base): use the Henderson–Hasselbalch equation: pH = pKa + log10([A−]/[HA]).
The calculator above gives you the molarity first, which is the starting point for any of these pH calculations. If your solute is an acid or base, you still need its Ka or Kb value (a constant you look up for the specific compound).
Common Mistakes and How to Avoid Them
- Using the wrong volume units: molarity requires liters. If you measure in mL, divide by 1000 before plugging into the formula. Forgetting this gives a pH that is off by 3 units for a strong acid.
- Confusing pOH with pH: for bases, you must convert. pH = 14 − pOH only at 25 °C; at other temperatures, use pH + pOH = pKw (which is 14.00 at 25 °C, 13.62 at 50 °C).
- Ignoring the degree of dissociation for weak acids: the approximation pH = −log10(Ca) is wrong for weak acids because they do not fully dissociate. Always check Ca vs. Ka.
- Rounding too early: keep at least 3 significant figures in intermediate steps. For example, log(0.200) = −0.699, not −0.7.
- Forgetting that pH is logarithmic: a change of 1 pH unit means a 10-fold change in [H+]. A solution with pH 3 is 10 times more acidic than pH 4, not 1.33 times.
Real-World Applications and Limits
Acidity calculations are used in:
- Laboratory prep: making buffers for biochemistry (e.g., phosphate, Tris) requires precise pH control.
- Environmental science: calculating the acidity of rainwater (normal pH ~5.6 due to dissolved CO2) or assessing acid mine drainage.
- Food and beverage: monitoring pH in brewing, winemaking, and canning (safety threshold for low-acid foods is pH 4.6).
- Aquaculture and aquariums: maintaining appropriate pH for fish health.
The formulas above assume ideal behavior. In concentrated solutions (above ~0.1 M) or in non-aqueous solvents, the pH reading from a meter can differ from the calculated value because activity coefficients deviate from 1. Also, polyprotic acids (like H3PO4) have multiple Ka values; the first dissociation usually dominates, but at very low pH or high concentration, the second and third steps matter.
Safety and Accuracy Notes
When preparing acid solutions in the lab, always add acid to water (not water to acid) to avoid splattering. Wear appropriate PPE (gloves, goggles, lab coat). Follow your lab method, the safety data sheet (SDS) and your supervisor.
For pH measurement, a calibrated pH meter is the definitive check. Calculated pH is a good estimate, but temperature, ionic strength, and dissolved CO2 can shift the actual reading. Always calibrate the meter with fresh buffers (pH 4, 7, 10) before use.
Frequently Asked Questions
What is the difference between acidity and pH? Acidity is the total concentration of acid (both dissociated and undissociated), measured by titration. pH measures only the free hydrogen ion activity. A weak acid can have high total acidity but a relatively high pH.
How do I calculate pH from molarity of a strong acid? Simply take the negative base-10 logarithm of the molarity. For 0.01 M HCl, pH = −log(0.01) = 2. This works because strong acids dissociate completely.
Why is pH defined as negative log? Because hydrogen ion concentrations span many orders of magnitude (from ~100 to 10−14 M). Using a log scale compresses this range into a 0–14 scale. The negative sign makes most common solutions have a positive pH value.
Does temperature affect pH? Yes. The pH scale is temperature-dependent because the autoionization constant of water (Kw) changes with temperature. At 0 °C, Kw = 1.14 × 10−15 (pKw = 14.94), so neutral pH is 7.47. At 100 °C, neutral pH is 6.14.
Can I calculate pH of a mixture of acids? Yes, but you must sum the [H+] contributions from each acid, then take the log. For two strong acids, [H+] total = C1 + C2. For a strong acid plus a weak acid, you need to solve the equilibrium including the common ion effect.
What is the pH of pure water? At 25 °C, pure water has [H+] = 1.0 × 10−7 M, so pH = 7.00. This is the neutral point on the pH scale.
Related
Formula used
in m | Mass of solute | g | 2.922 | 0 in mm | Molar mass | g/mol | 58.44 | 0.001 in v | Final solution volume | mL | 250 | 0.001 out c | Molarity | mol/L | m / mm / (v / 1000) | 4 out cmm | Concentration in millimolar | mM | c * 1000 | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- Normality to g/L Converter & Formula29.220 g/L
- Normality to meq/mL Conversion Calculator1.0000 meq/mL
- Normality Test Q-Q Plot: How to Read It
- Normality Test Results: How to Analyze Them
- Normality Slay the Spire?
- Normality Test for Paired t Test: How to Check