Dev.to WebDev 🛠 Dev 👁 2 📖 2 min read

Common ion effect in JavaScript: why AgCl is 745x less soluble with a pinch of salt

Silver chloride dissolves in pure water, just barely. Add a little sodium chloride - a salt that has nothing to do with silver - and the AgCl's own solubility collapses. Nothing about AgCl changed; what changed is that t

Silver chloride dissolves in pure water, just barely. Add a little sodium chloride - a salt that has nothing to do with silver - and the AgCl's own solubility collapses. Nothing about AgCl changed; what changed is that the solution is no longer starting from zero chloride ion.

Why adding a spectator salt suppresses solubility

AgCl(s) <-> Ag+(aq) + Cl-(aq), Ksp = [Ag+][Cl-]

In pure water, solubility s satisfies Ksp = s^2, so s = sqrt(Ksp). But if the solution already has chloride ions from another source, Le Chatelier's principle pushes the equilibrium left: dissolution has to stop sooner to keep [Ag+][Cl-] at the same fixed Ksp. With a large excess of common ion, [Cl-] is about the added concentration, so s is about Ksp / [Cl-]_added.

Checked in JavaScript

const Ksp = 1.8e-10;                 // AgCl at 25°C

const sPureWater = Math.sqrt(Ksp);
const Cl_added = 0.01;               // 0.01 M NaCl
const sWithCommonIon = Ksp / Cl_added;

console.log(sPureWater.toExponential(4));        // 1.3416e-5 M
console.log(sWithCommonIon.toExponential(4));     // 1.8000e-8 M
console.log((sPureWater / sWithCommonIon).toFixed(1));   // 745.4
Solvent Solubility of AgCl
Pure water 1.34e-5 M
0.01 M NaCl solution 1.80e-8 M
Ratio 745x less soluble

A 1% (0.01 M) solution of an entirely unrelated salt knocks AgCl's solubility down by nearly three orders of magnitude. This is the exact principle behind precipitating a metal ion to completion in gravimetric analysis, and behind why adding NaCl to a saturated NaCl solution precipitates more solid rather than dissolving it further.

A buffer resisting pH change when you add a common ion (acetate suppressing acetic acid's own dissociation) and AgCl's solubility collapsing in NaCl are both Le Chatelier's principle applied to the same kind of equilibrium: adding a product ion from an outside source pushes the reaction back toward reactants, whether the equilibrium is a dissolution or a weak-acid dissociation.

I build PractiSci (https://www.practisci.in), a free virtual chemistry lab, and the equilibrium chapter has an interactive common-ion-effect solubility calculator: common ion effect lab, or browse all Class 11 and 12 chemistry practicals.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.