Home▸Physics & Mechanics▸Osmosis & Diffusion Simulator (2D)

Osmosis & Diffusion Simulator (2D)

Interactive 2D osmosis simulator: two compartments of solute-laden water separated by a semipermeable membrane. Tune concentration on each side and membrane permeability, and watch water flow toward osmotic equilibrium (pi = MRT).

Physics & Mechanics2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-3d-osmosis-diffusion ↗ Open standalone

This 2D companion draws a schematic cross-section of two compartments joined by a semipermeable membrane: an orange solute that cannot cross, and blue water molecules that can. Set the solute concentration on each side and watch water diffuse from the dilute compartment into the concentrated one, raising its liquid level, exactly as van 't Hoff's law π = MRT predicts. Membrane permeability changes only how fast the system settles; raising or lowering either concentration changes where it settles, and the readouts track the live osmotic pressure on each side, the pressure difference driving flow, and the level gap until hydrostatic back-pressure brings the system to osmotic equilibrium.

⚙ Under the hood

Two compartments of solute-laden water separated by a semipermeable membrane in cross-section; tune concentration on each side and watch water flow toward osmotic equilibrium under van 't Hoff's law pi = MRT.

OsmosisDiffusionSemipermeable MembraneVan't Hoff Law

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)