Calculate Molar Solubility from pH and Ksp
Use this premium interactive calculator to estimate the molar solubility of a sparingly soluble salt when the anion can be protonated by acid. Enter your Ksp, pH, stoichiometry, and pKa to see the molar solubility, ion concentrations, and a pH-vs-solubility chart instantly.
Results
Enter values and click Calculate Molar Solubility to generate results.
How to calculate molar solubility from pH and Ksp
When students first learn solubility product problems, they usually solve cases where a slightly soluble salt dissolves in pure water. In the real world, however, many salts are dissolved in solutions that are already acidic or basic. That matters because pH can directly change the concentration of the dissolved anion. If the anion is a weak base, added acid consumes part of it by protonation. Once that happens, the dissolution equilibrium shifts to replace the lost free anion, and the salt becomes more soluble. This is the central idea behind calculating molar solubility from pH and Ksp.
This calculator is designed for an important and common case: a salt that dissociates into a metal cation and an anion that can be protonated once, such as F– becoming HF or OH– becoming H2O. Under that assumption, the pH tells you what fraction of the dissolved anion remains in the free base form that appears in the Ksp expression. Once that fraction is known, the molar solubility can be solved directly.
The core idea in one sentence
The lower the pH, the more a basic anion is converted into its protonated form, which lowers the free anion concentration and often increases the amount of solid that can dissolve before the Ksp limit is reached.
For a salt MpAq(s) ⇌ pM + qA:
Ksp = [M]p[A]q
If the anion A is protonated as HA, then the fraction remaining as free A is:
α = Ka / (Ka + [H+])
With molar solubility S:
[M] = pS
[A] = αqS
So:
Ksp = (pS)p(αqS)q
S = [Ksp / (pp qq αq)]1/(p+q)
Step-by-step method
- Write the dissolution reaction. For example, CaF2(s) ⇌ Ca2+ + 2F–.
- Write the acid-base reaction for the anion. For fluoride, F– + H+ ⇌ HF.
- Convert pH into hydrogen ion concentration. [H+] = 10-pH.
- Convert pKa into Ka. Ka = 10-pKa.
- Find the free-anion fraction. For a monoprotic conjugate acid, α = Ka / (Ka + [H+]).
- Insert stoichiometric coefficients and solve for S. This gives the total molar solubility of the solid.
- Calculate equilibrium concentrations if needed. The free cation concentration is pS, and the free anion concentration that enters Ksp is αqS.
Why pH changes solubility
The pH effect is strongest when the salt contains an anion that behaves as a weak base. Fluoride, sulfide, carbonate, phosphate, and hydroxide are classic examples, although some of those systems require more advanced multi-step protonation models than the simple one used here. In acidic solution, a weakly basic anion is removed from the Ksp expression because it is converted to its conjugate acid. Le Chatelier’s principle then pushes the dissolution equilibrium to the right.
By contrast, salts with anions that come from strong acids, such as chloride and nitrate, generally show little pH dependence under ordinary conditions because those anions are extremely weak bases. For example, Cl– is the conjugate base of HCl, whose pKa is about -7. That means protonation of chloride is negligible in most aqueous systems, so the free chloride concentration is essentially the total dissolved chloride concentration.
Quick interpretation tip: If the conjugate acid has a relatively high pKa, the anion is more basic and is more easily protonated in acidic solution. That typically means a stronger pH effect on molar solubility.
Worked conceptual example: calcium fluoride
Consider CaF2, a standard textbook example. Its dissolution is:
CaF2(s) ⇌ Ca2+ + 2F–
Its Ksp at 25 C is commonly listed near 3.9 × 10-11. Fluoride is the conjugate base of HF, with pKa about 3.17. At pH 2.00, the hydrogen ion concentration is 1.0 × 10-2 M, while Ka for HF is about 6.76 × 10-4. That makes the free fluoride fraction much less than 1, because a substantial portion of dissolved fluoride is converted to HF. Since only free F– appears in the Ksp expression, the solid can dissolve much more than it could in neutral water.
This is why many laboratory separations, ore leaching processes, and environmental mobility calculations must account for pH, not just Ksp. Solubility product constants are necessary, but not always sufficient by themselves.
Comparison table: typical Ksp and pKa values that control pH-sensitive solubility
| Salt | Dissolution | Approximate Ksp at 25 C | Conjugate acid of anion | Approximate pKa | Expected pH effect |
|---|---|---|---|---|---|
| AgCl | AgCl(s) ⇌ Ag+ + Cl– | 1.8 × 10-10 | HCl | -7.0 | Usually very small in ordinary aqueous pH ranges |
| CaF2 | CaF2(s) ⇌ Ca2+ + 2F– | 3.9 × 10-11 | HF | 3.17 | Strong increase in acidic solution |
| Mg(OH)2 | Mg(OH)2(s) ⇌ Mg2+ + 2OH– | 5.6 × 10-12 | H2O | 15.7 | Very strong increase in acidic solution |
| Zn(OH)2 | Zn(OH)2(s) ⇌ Zn2+ + 2OH– | 3.0 × 10-17 | H2O | 15.7 | Very strong increase in acidic solution |
How to judge whether pH matters a little or a lot
The easiest way to estimate pH impact is to compare pH with the pKa of the conjugate acid of the anion.
- If pH is far above pKa, the anion mostly stays unprotonated, so pH has less effect.
- If pH is near pKa, protonation becomes significant, and solubility can rise noticeably.
- If pH is far below pKa, much of the anion is protonated, often causing a dramatic increase in molar solubility.
This is closely related to the Henderson-Hasselbalch idea, but here we are using the acid-base equilibrium to determine how much of the dissolved anion remains in the exact form that enters the Ksp expression.
Comparison table: fraction of free anion versus pH
| Anion system | pKa | pH = 2.0 | pH = 4.0 | pH = 7.0 | Meaning for solubility |
|---|---|---|---|---|---|
| F–/HF | 3.17 | About 0.063 free F– | About 0.871 free F– | About 0.999 free F– | CaF2 becomes much more soluble at low pH |
| Cl–/HCl | -7.0 | About 1.000 free Cl– | About 1.000 free Cl– | About 1.000 free Cl– | AgCl is only weakly affected by pH in normal aqueous conditions |
| OH–/H2O | 15.7 | Extremely tiny free OH– fraction | Still very tiny | Still small compared with total protonated water form | Hydroxides dissolve much more in acid |
Important assumptions behind this calculator
No calculator is useful without understanding its scope. This tool uses a streamlined, chemically meaningful model, but it is still a model. It assumes:
- The anion has one relevant protonation step, represented by HA ⇌ H+ + A–.
- The Ksp expression contains the free unprotonated anion A.
- Activity effects are ignored, so concentrations are treated as if they were ideal.
- Complex ion formation, hydrolysis of the cation, and ionic strength corrections are neglected.
- Temperature is assumed to be close to the standard values used for the selected Ksp and pKa data.
For advanced systems such as carbonate, phosphate, sulfide, or amphoteric metal hydroxides with strong complexation, the full equilibrium treatment may require multiple Ka values and metal-complex stability constants. In those cases, this calculator is still a useful screening tool, but not a substitute for a full speciation model.
Common mistakes students make
- Using total anion concentration directly in Ksp. Only the free anion form belongs in the Ksp expression.
- Forgetting stoichiometric powers. CaF2 does not give Ksp = S2; it gives Ksp = [Ca2+][F–]2.
- Mixing pKa and Ka. pKa must be converted to Ka before equilibrium fractions are calculated.
- Ignoring units. Molar solubility is in mol/L. Converting to g/L requires molar mass.
- Applying the method to polyprotic systems without adjustment. Carbonate, phosphate, and sulfide often need more than one acid-base step.
When this calculation is especially useful
This type of calculation appears in analytical chemistry, geochemistry, environmental chemistry, and pharmaceutical formulation. If you are evaluating whether a mineral dissolves more readily in acid rain, whether stomach acid changes the availability of an insoluble ionic compound, or whether a precipitation step will still work in buffered solution, you need more than Ksp alone. You need the coupling between solubility equilibrium and acid-base equilibrium.
Authoritative references and further reading
- NIST Chemistry WebBook for trusted physical and chemical reference data.
- Purdue University Ksp and solubility equilibrium overview.
- Purdue University acid-base equilibrium topics.
Final takeaway
To calculate molar solubility from pH and Ksp, you must connect two equilibria: the dissolution of the solid and the protonation of the dissolved anion. Once you know how much of the anion remains free at the chosen pH, the Ksp equation can be solved for total solubility. Acidic conditions usually increase the solubility of salts whose anions are basic, sometimes by orders of magnitude. That is why pH-sensitive solubility calculations are so important in both education and real-world chemistry.