Calculate Molar Solubility at a pH
Use this chemistry calculator to estimate the molar solubility of a sparingly soluble salt at a specified pH. It is especially useful for salts containing the conjugate base of a weak acid, where lower pH can increase dissolution by protonating the anion.
Expert Guide: How to Calculate Molar Solubility at a Given pH
Molar solubility tells you how many moles of a substance dissolve per liter of solution at equilibrium. For many salts, this is not just a matter of reading the Ksp expression and taking a square root. If one of the ions can react with hydrogen ions, the pH of the solution can strongly change the observed solubility. That is why students, lab scientists, pharmacists, environmental chemists, and materials researchers often need a practical way to calculate molar solubility at a pH rather than only in pure water.
This calculator is designed for the common case of a sparingly soluble salt that contains an anion which is the conjugate base of a weak acid. Classic examples include fluoride salts, cyanide salts, sulfide salts, carbonate salts, and phosphate salts. In acidic solution, some of the dissolved anion is protonated. As free anion concentration drops, the dissolution equilibrium shifts to the right, and the solid becomes more soluble.
Why pH changes solubility
Suppose a generic salt dissolves according to the equilibrium:
MpAq(s) ⇌ pM + qA
The solubility product is:
Ksp = [M]p[A]q
If the anion A is basic, it can also react with hydrogen ions:
H + A ⇌ HA
The acid dissociation constant for HA is:
Ka = [H][A] / [HA]
At lower pH, more of A is converted into HA. Because only free A appears in the Ksp expression, the system can dissolve more solid before reaching equilibrium. That is the core reason acidic media often increase the solubility of salts containing weakly basic anions.
The approximation used in this calculator
This tool uses a practical single protonation model. It assumes the dissolved anion exists in two forms, free base A and protonated form HA. The fraction present as free A is:
α = Ka / (Ka + [H])
where [H] = 10-pH.
If the salt dissolves as:
MpAq(s) ⇌ pM + qAtotal
and the total molar solubility is s, then:
- [M] = p × s
- [A free] = α × q × s
Substituting into the solubility product gives:
Ksp = (p s)p(α q s)q
Solving for molar solubility:
s = {Ksp / [pp(α q)q]}1/(p+q)
For a 1:1 salt, this becomes especially simple:
s = √(Ksp / α)
When Ka is large relative to [H], α approaches 1, meaning the anion mostly remains unprotonated and pH has only a small effect. When Ka is small or pH is low enough that [H] is comparable to or larger than Ka, α becomes much smaller, and the molar solubility rises.
How to use the calculator correctly
- Enter the pH of the solution.
- Enter the Ksp of the salt at the relevant temperature.
- Enter the Ka of the conjugate acid of the anion. For fluoride, use the Ka of HF. For cyanide, use the Ka of HCN.
- Choose the stoichiometric coefficients of cation and anion in the solid formula.
- Click the calculate button to generate the molar solubility, free ion concentrations, protonated fraction, and the pH solubility chart.
This approach is ideal for first pass equilibrium work, exam review, and routine planning calculations. It is also useful for checking whether pH control could significantly increase or suppress dissolution.
Worked Conceptual Example
Take calcium fluoride as an example. The dissolution equilibrium is:
CaF2(s) ⇌ Ca2+ + 2F–
Its Ksp at 25 C is commonly cited near 3.9 × 10-11. Fluoride is the conjugate base of HF, whose Ka is about 6.8 × 10-4. At neutral pH, [H] is only 1.0 × 10-7, much smaller than Ka, so most dissolved fluoride remains as free F–. At lower pH, more fluoride is converted to HF, the free F– concentration decreases, and the solid can dissolve more.
The practical lesson is simple: acidic conditions can make fluoride salts more soluble than a pure Ksp calculation in water would suggest. The same logic applies to many salts of weak acid anions.
Comparison Table: Representative Solubility and Acid Base Constants
| Compound | Approximate Ksp at 25 C | Relevant conjugate acid | Approximate Ka at 25 C | Why pH matters |
|---|---|---|---|---|
| CaF2 | 3.9 × 10-11 | HF | 6.8 × 10-4 | Acid converts some F– to HF, increasing dissolution |
| AgCN | 2.2 × 10-16 | HCN | 6.2 × 10-10 | CN– is protonated in acidic media, sharply affecting free cyanide |
| CaCO3 | 3.3 × 10-9 | H2CO3 first dissociation | 4.3 × 10-7 | Acid consumption of carbonate species drives dissolution of carbonate minerals |
| ZnS | 2.0 × 10-25 | H2S first dissociation | 9.1 × 10-8 | Sulfide protonation can increase apparent solubility at low pH |
Values above are commonly cited approximate constants at 25 C. Exact values can vary slightly by source, ionic strength, and reference conventions.
How pH changes the free anion fraction
The free anion fraction, α, is one of the most useful quantities in this entire calculation. It tells you what part of the dissolved anion pool is actually present in the free form that appears in Ksp. Once you know α, the effect of pH becomes much easier to visualize.
For a monoprotonated weak acid equilibrium, the fraction of anion in the free basic form is:
α = Ka / (Ka + [H])
If pH is high, [H] is low, and α approaches 1. If pH is low, [H] increases, and α falls. Even a small drop in α can noticeably increase the calculated molar solubility of a low Ksp salt.
| pH | [H] in mol/L | α for fluoride using Ka(HF) = 6.8 × 10-4 | Interpretation |
|---|---|---|---|
| 2 | 1.0 × 10-2 | 0.0637 | Only about 6.4% of dissolved fluoride remains as free F– |
| 4 | 1.0 × 10-4 | 0.8718 | Most fluoride is free, but protonation is still noticeable |
| 7 | 1.0 × 10-7 | 0.99985 | Nearly all fluoride remains as F– |
| 10 | 1.0 × 10-10 | 0.99999985 | pH effect is essentially negligible for this system |
Common mistakes when calculating molar solubility at a pH
- Using Kb instead of Ka. The calculator needs the acid dissociation constant of the protonated form, not the base dissociation constant of the free anion.
- Ignoring stoichiometry. For salts like CaF2, the ion concentrations are not equal to s. Instead, [Ca2+] = s and total fluoride released is 2s.
- Forgetting temperature effects. Ksp and Ka change with temperature. A room temperature constant may not match a heated process stream or a cold environmental sample.
- Assuming all protonation steps are captured by a one step model. Polyprotic anions such as carbonate or phosphate may require a more complete treatment for rigorous work.
- Ignoring complex ion formation. Some metals form strong complexes that can dominate solubility behavior and make a simple Ksp plus protonation model incomplete.
When this calculation is especially useful
Calculating molar solubility at a pH is important in several real world settings:
- Analytical chemistry: Choosing buffer conditions for selective precipitation or dissolution.
- Environmental chemistry: Predicting how acid rain or wastewater pH influences mineral dissolution and contaminant mobility.
- Pharmaceutical science: Estimating how acidic or buffered media affect the dissolution of salts.
- Geochemistry: Understanding carbonate mineral behavior in soil, groundwater, and seawater influenced systems.
- Teaching and exam preparation: Connecting Ksp, Ka, stoichiometry, and Le Chatelier reasoning in one problem type.
Interpretation tips for your result
If the solubility increases sharply as pH falls
That usually means the anion is basic enough that protonation removes a meaningful fraction of free anion from solution. In such cases, acid addition can strongly increase total dissolved concentration.
If the solubility barely changes with pH
That usually means one of two things: either the anion is not protonated much in the chosen pH range, or the entered Ka is very large relative to [H], leaving α close to 1 over the entire chart. It can also mean the anion has no important acid base role in the system.
If you see extreme values
Very high or very low computed solubilities may be mathematically correct within the simplified model, but they may also indicate that additional equilibria need to be included. Complexation, activity corrections, hydrolysis of the cation, or multiple acid dissociation steps can all matter in advanced cases.
Authoritative references for equilibrium constants and acid base chemistry
- NIST Chemistry WebBook
- U.S. EPA on pH, alkalinity, and ionic chemistry
- Purdue University chemistry resource on acid strength and pKa relationships
Final takeaway
To calculate molar solubility at a pH, you combine the solubility product expression with acid base equilibrium for the dissolved anion. The most important bridge between the two is the fraction of anion that remains free rather than protonated. Once that fraction is known, you can solve for total molar solubility and then convert the answer into actual ion concentrations. This calculator automates that process, shows the assumptions clearly, and plots how solubility changes across the full pH scale so you can make better laboratory and analytical decisions.