Complex ions vs precipitation
A metal ion can either form a complex with a ligand L or precipitate as a sparingly
soluble salt MX(s) with an anion X−. Which process dominates depends on
the formation constant \(K_f\) and the solubility product \(K_{sp}\).
Complex-ion formation
\[
\mathrm{M^{n+}} + a\,\mathrm{L} \rightleftharpoons \mathrm{ML_a}
\]
\[
K_f = \frac{[\mathrm{ML_a}]}{[\mathrm{M^{n+}}][\mathrm{L}]^{a}}
\]
With total concentrations \([\mathrm{M}]_{\text{tot}}\) and \([\mathrm{L}]_{\text{tot}}\):
\[
[\mathrm{M}]_{\text{tot}} = [\mathrm{M^{n+}}] + [\mathrm{ML_a}],\quad
[\mathrm{L}]_{\text{tot}} = [\mathrm{L}] + a[\mathrm{ML_a}].
\]
Large \(K_f\) means most metal is complexed, so free \([\mathrm{M^{n+}}]\) is very small.
Solubility and ion product
\[
\mathrm{MX}(s) \rightleftharpoons \mathrm{M^{n+}} + \mathrm{X^-}
\]
\[
K_{sp} = [\mathrm{M^{n+}}][\mathrm{X^-}],\qquad
Q_{sp} = [\mathrm{M^{n+}}]_{\text{actual}}[\mathrm{X^-}]_{\text{actual}}.
\]
- \(Q_{sp} < K_{sp}\): unsaturated, no precipitate.
- \(Q_{sp} = K_{sp}\): saturated, at equilibrium with MX(s).
- \(Q_{sp} > K_{sp}\): MX(s) precipitates until \(Q_{sp} = K_{sp}\).
Mode 1 — Will MX(s) precipitate?
Given \(a\), \(K_f\), \(K_{sp}\), \([\mathrm{M}]_{\text{tot}}\),
\([\mathrm{L}]_{\text{tot}}\), and \([\mathrm{X^-}]\), the calculator:
- Solves the metal–ligand system (using \(K_f\) and mass balances) for free \([\mathrm{M^{n+}}]\).
- Computes \(Q_{sp} = [\mathrm{M^{n+}}][\mathrm{X^-}]\).
- Compares \(Q_{sp}\) with \(K_{sp}\) to decide if MX(s) precipitates and reports what fraction of metal is complexed.
Mode 2 — Minimum ligand to prevent precipitation
For fixed \([\mathrm{M}]_{\text{tot}}\) and \([\mathrm{X^-}]\), the maximum free metal
allowed without precipitation is
\[
[\mathrm{M^{n+}}]_{\max} = \frac{K_{sp}}{[\mathrm{X^-}]}.
\]
If \([\mathrm{M}]_{\text{tot}} > [\mathrm{M^{n+}}]_{\max}\) and \(K_f\) is large,
the approximate minimum free-ligand concentration needed is
\[
[\mathrm{L}]_{\min} =
\left(
\frac{[\mathrm{M}]_{\text{tot}}}
{K_f[\mathrm{M^{n+}}]_{\max}}
\right)^{1/a},
\]
and the approximate minimum total ligand concentration is
\[
[\mathrm{L}]_{\text{tot,min}} \approx [\mathrm{L}]_{\min} + a[\mathrm{M}]_{\text{tot}}.
\]
Assumes dilute solution, activities ≈ concentrations, and no additional side
equilibria beyond the single complex MLa and the salt MX(s).