Soil Cation Exchange & pH Buffering Simulator
Interactive soil chemistry simulator: watch exchangeable cations (Ca2+, K+, H+, Al3+) trade places on clay/humus exchange sites as you add acid or lime, and see how a soil's CEC sets its pH buffer capacity in real time.
Soil particles — clay minerals and humus — carry a fixed number of negatively charged exchange sites that hold onto positively charged cations. This simulator visualizes that population of sites directly: hundreds of tiny orbiting cations, colored by whether they are base cations (Ca²⁺, Mg²⁺, K⁺) or acid cations (H⁺, Al³⁺). Add acid or lime and watch cations swap places on the exchange complex while a live titration curve traces how soil pH actually responds — steeply for a sandy, low-CEC soil, and much more slowly for a clay- or humus-rich, high-CEC soil that can buffer far more acid or base before its pH moves.
Explore how soil particles maintain pH levels by holding exchangeable cations. Adjust acidity with sliders to see the Henderson-Hasselbalch effect in action.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install