Ksp calculator (solubility product)
This Ksp calculator links the solubility product of a sparingly soluble salt MₓAᵧ to its molar solubility in mol/L and g/L, solves the common ion effect exactly, and predicts whether a precipitate forms when two solutions are mixed, including how much precipitates.
Ksp calculator: Ksp ⇄ molar solubility
Common ion effect: solubility in a solution that already contains one of the ions
Precipitation check: will a precipitate form on mixing?
How to use the Ksp calculator
Every panel starts with the salt type, written as the ratio of cations to anions in the formula: AgCl and BaSO₄ are 1:1, CaF₂ and Mg(OH)₂ are 1:2, Ag₂CrO₄ is 2:1 and Ca₃(PO₄)₂ is 3:2. The first panel converts between Ksp and molar solubility in either direction, or gets Ksp from a gram solubility or a measured ion concentration. The second panel finds the solubility when one of the ions is already present (the common ion effect), and the third tells you whether mixing two solutions produces a precipitate. Type the formula when you want results in grams; the Ksp calculator computes the molar mass from IUPAC standard atomic weights. “Show the working” gives each step.
What is the solubility product behind the Ksp calculator?
A sparingly soluble ionic solid in contact with its saturated solution is in a dynamic equilibrium: ions leave the crystal as fast as they return to it. The equilibrium constant for this dissolution is the solubility product, Ksp. The solid itself does not appear in the expression, because its activity is 1. OpenStax Chemistry 2e, section 15.1 develops the topic with the same examples used here.
If s mol of the salt dissolve per liter of pure water (the molar solubility), the ion concentrations are [M] = x·s and [A] = y·s. Substituting gives the relation the Ksp calculator uses in both directions:
| Salt type | Example | Ksp in terms of s | Molar solubility s |
|---|---|---|---|
| 1:1 (MA) | AgCl, BaSO₄ | s² | √Ksp |
| 1:2 or 2:1 | CaF₂, Ag₂CrO₄ | 4s³ | (Ksp/4)1/3 |
| 1:3 or 3:1 | Fe(OH)₃, Ag₃PO₄ | 27s⁴ | (Ksp/27)1/4 |
| 3:2 or 2:3 | Ca₃(PO₄)₂, Bi₂S₃ | 108s⁵ | (Ksp/108)1/5 |
Worked examples with the Ksp calculator
Molar solubility of fluorite (first panel defaults). CaF₂ has Ksp = 3.45 × 10⁻¹¹ at 25 °C. For a 1:2 salt Ksp = 4s³, so s = (3.45 × 10⁻¹¹ / 4)1/3 = 2.05 × 10⁻⁴ mol/L. With M = 78.07 g/mol that is 0.0160 g/L, or 16 mg of CaF₂ per liter. In the saturated solution [Ca²⁺] = 2.05 × 10⁻⁴ M and [F⁻] = 4.10 × 10⁻⁴ M.
Ksp from an ion concentration (OpenStax Example 15.2). A saturated fluorite solution contains [Ca²⁺] = 2.15 × 10⁻⁴ M. Then [F⁻] = 4.30 × 10⁻⁴ M and Ksp = (2.15 × 10⁻⁴)(4.30 × 10⁻⁴)² = 3.98 × 10⁻¹¹. Choose “Ksp from the cation concentration” in the Ksp calculator to reproduce it. From a gram solubility the method is the same: PbCrO₄ dissolving to 4.6 × 10⁻⁶ g/L is 1.4 × 10⁻⁸ M, so Ksp = s² = 2.0 × 10⁻¹⁶ (OpenStax Example 15.5).
Common ion effect (second panel defaults). PbCl₂ (Ksp = 1.70 × 10⁻⁵) dissolves to 0.0162 M in pure water. In 0.010 M NaCl, the exact condition is s(0.010 + 2s)² = 1.70 × 10⁻⁵, which the Ksp calculator solves to s = 0.0131 M (3.63 g/L), only 1.24 times less than in pure water. The usual shortcut, which drops 2s next to 0.010, predicts s = 1.70 × 10⁻⁵ / 0.010² = 0.17 M, about thirteen times too high, because here the dissolving salt supplies more chloride than the NaCl does. When the added ion is in large excess the shortcut works, and the Ksp calculator says so in its note: for CdS (Ksp = 1.0 × 10⁻²⁸) in 0.010 M CdBr₂ both methods give 1.0 × 10⁻²⁶ M.
Will AgCl precipitate? (third panel defaults, after OpenStax Example 15.8). Equal volumes of 2.0 × 10⁻⁴ M AgNO₃ and 2.0 × 10⁻⁴ M NaCl are mixed. Dilution halves both concentrations to 1.0 × 10⁻⁴ M, so Q = (1.0 × 10⁻⁴)² = 1.0 × 10⁻⁸, larger than Ksp = 1.77 × 10⁻¹⁰: AgCl precipitates. The Ksp calculator goes one step further and finds that 8.67 × 10⁻⁵ mol/L of AgCl forms (in the 200 mL of mixture that is 1.73 × 10⁻⁵ mol, or 2.49 mg of AgCl), leaving 1.33 × 10⁻⁵ M of each ion in solution; 86.7 % of the silver precipitates.
Solubility product constants at 25 °C for the Ksp calculator
Values from the CRC Handbook of Chemistry and Physics as tabulated by LibreTexts (Table E3). The molar solubilities are calculated from Ksp with the ideal formula above, exactly as the Ksp calculator does. Different handbooks list slightly different values, so use the one your course or method specifies.
| Compound | Type | Ksp | Molar solubility (mol/L) | Solubility (g/L) |
|---|---|---|---|---|
| AgCl | 1:1 | 1.77 × 10⁻¹⁰ | 1.33 × 10⁻⁵ | 1.91 × 10⁻³ |
| AgBr | 1:1 | 5.35 × 10⁻¹³ | 7.31 × 10⁻⁷ | 1.37 × 10⁻⁴ |
| AgI | 1:1 | 8.52 × 10⁻¹⁷ | 9.23 × 10⁻⁹ | 2.17 × 10⁻⁶ |
| BaSO₄ | 1:1 | 1.08 × 10⁻¹⁰ | 1.04 × 10⁻⁵ | 2.43 × 10⁻³ |
| BaCO₃ | 1:1 | 2.58 × 10⁻⁹ | 5.08 × 10⁻⁵ | 0.0100 |
| CaCO₃ (calcite) | 1:1 | 3.36 × 10⁻⁹ | 5.80 × 10⁻⁵ | 5.80 × 10⁻³ |
| CaSO₄ | 1:1 | 4.93 × 10⁻⁵ | 7.02 × 10⁻³ | 0.956 |
| PbSO₄ | 1:1 | 2.53 × 10⁻⁸ | 1.59 × 10⁻⁴ | 0.0482 |
| SrSO₄ | 1:1 | 3.44 × 10⁻⁷ | 5.87 × 10⁻⁴ | 0.108 |
| CaF₂ | 1:2 | 3.45 × 10⁻¹¹ | 2.05 × 10⁻⁴ | 0.0160 |
| PbCl₂ | 1:2 | 1.70 × 10⁻⁵ | 0.0162 | 4.50 |
| PbI₂ | 1:2 | 9.8 × 10⁻⁹ | 1.35 × 10⁻³ | 0.621 |
| Mg(OH)₂ | 1:2 | 5.61 × 10⁻¹² | 1.12 × 10⁻⁴ | 6.53 × 10⁻³ |
| Ca(OH)₂* | 1:2 | 5.02 × 10⁻⁶ | 0.0108 | 0.799 |
| Hg₂Cl₂ (Hg₂²⁺ + 2Cl⁻) | 1:2 | 1.43 × 10⁻¹⁸ | 7.10 × 10⁻⁷ | 3.35 × 10⁻⁴ |
| Ag₂CrO₄ | 2:1 | 1.12 × 10⁻¹² | 6.54 × 10⁻⁵ | 0.0217 |
| Ag₂SO₄ | 2:1 | 1.20 × 10⁻⁵ | 0.0144 | 4.50 |
| Fe(OH)₃ | 1:3 | 2.79 × 10⁻³⁹ | 1.01 × 10⁻¹⁰ | 1.08 × 10⁻⁸ |
* Ca(OH)₂: the tabulated solubility is the ideal estimate from Ksp; the measured solubility is ≈ 1.7 g/L (≈ 0.02 M) at 25 °C, because activity coefficients and ion pairing (CaOH⁺) raise it. The pH Calculator uses the measured value.
Note that a smaller Ksp does not always mean a lower solubility when the salt types differ. Ag₂CrO₄ has a smaller Ksp than AgCl (1.12 × 10⁻¹² against 1.77 × 10⁻¹⁰) yet is about five times more soluble in mol/L, because its Ksp grows with s³ rather than s². Compare molar solubilities, not Ksp values, across salt types; the Ksp calculator converts between them in one step.
Limits of the ideal Ksp model
The relation Ksp = xˣyʸsx+y treats concentrations as activities and assumes the dissolved salt exists only as free ions. Real solutions deviate in several ways. Ionic strength: in salty solutions, activity coefficients below 1 raise the solubility (the “salt effect”), partly offsetting the common ion effect. Ion pairs and complexes: CaSO₄ forms neutral CaSO₄(aq) pairs, which is why gypsum dissolves to about 2 g/L rather than the 0.96 g/L predicted above; excess chloride dissolves AgCl as AgCl₂⁻. Hydrolysis: carbonate, sulfide, phosphate and hydroxide ions react with water, so the solubility of CaCO₃ and metal sulfides depends strongly on pH. Treat Ksp calculator results as the textbook ideal; they are excellent for comparing salts and planning precipitations but can be off by a factor of two or more for real waters.
Common mistakes in Ksp problems (and how the Ksp calculator avoids them)
Forgetting the coefficient inside the bracket. For CaF₂, [F⁻] = 2s, so Ksp = s(2s)² = 4s³, not s³. Forgetting the dilution on mixing. Mixing equal volumes halves both concentrations before you compute Q. Using the salt concentration instead of the ion concentration. 0.010 M CaCl₂ supplies 0.020 M Cl⁻. Applying the common-ion shortcut when the added ion is not in excess. Always check that the dissolved amount is small compared with C, or use the exact solution as the Ksp calculator does. Mixing up mol/L and g/L. Convert with the molar mass from the Molar Mass Calculator.
Related calculators
Ksp is one case of the general equilibrium constant: see the Equilibrium Constant Calculator for K and Q, and the ICE Table Calculator for other equilibria. The Ksp calculator pairs with the Molarity Calculator when you prepare the solutions you mix.
- Equilibrium Constant Calculator
- ICE Table Calculator
- Molar Mass Calculator
- Molarity Calculator
- pH Calculator
- Crystallization Yield Calculator
- All chemistry calculators
Frequently asked questions
How do you calculate molar solubility from Ksp?
Write Ksp in terms of s using the ion ratio, then solve: s = √Ksp for a 1:1 salt, s = (Ksp/4)1/3 for 1:2 or 2:1, s = (Ksp/27)1/4 for 1:3. For CuBr (Ksp = 6.3 × 10⁻⁹) s = 7.9 × 10⁻⁵ M.
How do you find Ksp from solubility in g/L?
Divide the mass solubility by the molar mass to get s in mol/L, then use Ksp = xˣyʸsx+y. Choose “Ksp from solubility in g/L” in the Ksp calculator and enter the formula.
What is the common ion effect?
Adding a soluble salt that shares an ion with a sparingly soluble salt pushes the dissolution equilibrium back toward the solid (Le Chatelier’s principle), so the sparingly soluble salt dissolves less. CdS is about 10¹² times less soluble in 0.010 M Cd²⁺ than in pure water.
How do you know if a precipitate will form?
Compute the ion concentrations after mixing (including dilution), then Q = [M]ˣ[A]ʸ. If Q > Ksp a precipitate forms; if Q < Ksp the solution is unsaturated and nothing precipitates.
Does Ksp change with temperature?
Yes. Like any equilibrium constant it depends on temperature, usually increasing as temperature rises (but not always: CaCO₃ and CaSO₄ become less soluble in hot water). Tabulated values are normally for 25 °C.
Is this Ksp calculator free?
Yes. It runs in your browser, needs no sign-up and does not store or send the values you enter.