Diffusion Coefficient Calculator

Calculate the diffusion coefficient D from Stokes-Einstein relation for liquids, or the rate ratio of two gases by Graham law.

Science Stokes-Einstein Graham law RMS displacement
Rate this calculator · 4.0 (2)

Diffusion coefficient

D = kT / (6πηr) · Stokes-Einstein

Instructions — Diffusion Coefficient Calculator

  1. Pick the method — Stokes-Einstein for molecules or particles in a liquid; Graham law for the relative effusion rate of two gases.
  2. For Stokes-Einstein, enter T, η, r — absolute temperature in kelvin, dynamic viscosity in Pa·s (water is 8.9 × 10⁻⁴ at 25°C), and hydrodynamic radius in nm.
  3. For Graham law, enter two molar masses — the calculator returns √(M₂/M₁), which equals the ratio of effusion rates for the lighter gas relative to the heavier one.
  4. Read the result — Stokes-Einstein D appears in m²/s and cm²/s; RMS displacement in 1 second gives a feel for the physical scale.

Formulas

Stokes-Einstein equation: D = k_B · T / (6π · η · r), where k_B = 1.380649 × 10⁻²³ J/K is the Boltzmann constant, T is absolute temperature (K), η is dynamic viscosity (Pa·s), and r is the hydrodynamic radius (m).

Graham law of effusion: r₁ / r₂ = √(M₂ / M₁). Lighter gases diffuse and effuse faster, with the rate scaling as the inverse square root of molar mass.

RMS displacement: ⟨x²⟩ = 6 D t for 3D diffusion. In one second a typical small molecule (D ≈ 10⁻⁹ m²/s) moves about 77 µm RMS.

Temperature scaling: D ∝ T / η. Because viscosity drops sharply with T, diffusion rises faster than linearly — roughly doubling for every 10°C rise in water.

Typical D values: small molecules in water ≈ 10⁻⁹ m²/s. Proteins in water ≈ 10⁻¹¹ m²/s. Gases in air ≈ 10⁻⁵ m²/s — about 10,000× faster than liquid diffusion.

Reference

Stokes-Einstein assumes spherical particles. Real proteins aren't spheres, so the formula gives an effective hydrodynamic radius — the radius of an ideal sphere that would diffuse the same way. Dynamic light scattering and NMR-DOSY report this value directly.

Graham law works for ideal gases. At STP and low pressure the prediction matches experiment within 1%. Real gases at high pressure or near liquefaction drift from the ideal scaling, especially for hydrogen and helium.

Self-diffusion vs. tracer diffusion. Self-diffusion measures how the same species moves in itself. Tracer (or mutual) diffusion measures how two different species mix. The two values can differ by a factor of two, especially in dense liquids.

Article — Diffusion Coefficient Calculator

Diffusion coefficient calculator: Stokes-Einstein and Graham law

A diffusion coefficient D measures how quickly molecules spread through a medium. The Stokes-Einstein equation D = k_BT/(6πηr) gives D for spherical particles in a liquid. Graham law r₁/r₂ = √(M₂/M₁) compares gas effusion rates. Small molecules in water sit near 10⁻⁹ m²/s; gases in air near 10⁻⁵ m²/s.

Einstein published the Stokes-Einstein result in 1905, the same year as his special relativity and photoelectric-effect papers. The work let Jean Perrin make the first absolute determination of Avogadro's number from observations of pollen grains in water — Brownian motion connected to molecular reality through a single equation.

What is a diffusion coefficient?

Diffusion is the random spreading of particles caused by thermal motion. The coefficient D quantifies the rate. By Fick's first law, the molar flux J equals −D times the concentration gradient: more gradient gives more flux, and the proportionality is D. Higher D means faster spreading.

The units are m²/s in SI, or cm²/s in older biochemistry literature. The reason for length-squared per time is geometric: in 3D random walks the mean squared displacement grows linearly with time, ⟨x²⟩ = 6Dt. A molecule with D = 10⁻⁹ m²/s spreads to about 77 µm RMS in 1 second and about 23 mm in a full day.

Did you know

Einstein's 1905 derivation of D = k_BT/(6πηr) was the third great unification of his miracle year. He connected statistical mechanics (kT thermal energy), fluid mechanics (Stokes drag), and observational chemistry (Brownian motion of pollen grains) in one equation. Jean Perrin used it to nail down Avogadro's number — Nobel Prize 1926.

Stokes-Einstein diffusion formula

The Stokes-Einstein equation links diffusion to fluid viscosity, temperature, and particle size:

Stokes-Einstein
D = k_B · T / (6π · η · r)
k_B 1.380649 × 10⁻²³ J/K
T absolute temperature (K)
η dynamic viscosity (Pa·s)
r hydrodynamic radius (m)

The equation assumes spherical rigid particles, dilute solutions, and laminar flow around each particle (Reynolds number well below 1). For typical molecular solutes in water, these conditions hold well. The hydrodynamic radius is not quite the molecular radius — it includes any hydration shell that moves with the particle — but the two are usually close for small uncharged molecules.

Graham law for gas diffusion

Gas molecules move so much faster than liquid molecules that a different framework applies. Graham's law, named for Thomas Graham (1846), relates effusion or diffusion rates of two gases to the inverse square root of their molar masses:

r₁ / r₂ = √(M₂ / M₁) = √(ρ₂ / ρ₁). For hydrogen versus oxygen, the ratio is √(32 / 2) = 4 — hydrogen diffuses through a porous barrier four times faster. Uranium hexafluoride enrichment exploits this scaling: ²³⁵UF₆ effuses 0.43% faster than ²³⁸UF₆, a tiny difference but enough to build a cascade.

H₂
Hydrogen
4× faster
M = 2 g/mol
O₂
Oxygen
1× reference
M = 32 g/mol

Typical diffusion coefficient values

Diffusion coefficients span eight orders of magnitude across phases. Memorize these benchmarks to spot calculator errors:

  • Gases in air 10⁻⁵ m²/s. O₂ in air: 2.0 × 10⁻⁵ at 25°C.
  • Small molecules in water 10⁻⁹ m²/s. Glucose: 7 × 10⁻¹⁰. Caffeine: 6 × 10⁻¹⁰.
  • Proteins in water 10⁻¹⁰ to 10⁻¹¹ m²/s. Lysozyme: 1.0 × 10⁻¹⁰. Hemoglobin: 7 × 10⁻¹¹.
  • Ions in water 10⁻⁹ m²/s. H⁺ is unusually fast at 9.3 × 10⁻⁹ (Grotthuss mechanism).
  • Solids 10⁻²⁰ m²/s or smaller. Carbon in iron at 25°C is essentially zero on human timescales.

How temperature changes diffusion

Temperature affects diffusion through two channels: the explicit T in the Stokes-Einstein numerator and the viscosity η in the denominator. In water, η drops from 1.79 mPa·s at 0°C to 0.89 mPa·s at 25°C to 0.55 mPa·s at 50°C — roughly halving over 50°C. The net effect is that D roughly doubles for every 25°C rise in water.

For gases, Chapman-Enskog theory predicts D ∝ T^1.5 to T^1.75. A 100°C temperature rise increases gas diffusion by 60–70%. This is much weaker than the liquid case because gas viscosity actually rises with temperature, partly canceling the kinetic-energy boost.

Tip

Use D(T₂) ≈ D(T₁) · (T₂ / T₁) · (η₁ / η₂) for rapid temperature scaling of Stokes-Einstein. Pull η values from a viscosity table — water-data are tabulated to four decimal places across the full liquid range.

Diffusion coefficient pitfalls

Three common errors trip up new users:

  • Mixing units — Stokes-Einstein needs SI throughout. Convert nm to m by 10⁻⁹, cP to Pa·s by 10⁻³, °C to K by adding 273.15.
  • Using molecular radius instead of hydrodynamic radius — for hydrated species the hydrodynamic radius is 10–30% larger. NMR-DOSY measures the right value.
  • Applying Stokes-Einstein to gases — it's valid only when the particle is much larger than solvent molecules. Use Chapman-Enskog or Graham law for gas-phase transport.
Stokes-Einstein breaks down at the nanoscale

For particles smaller than 1 nm in water, the continuum-fluid assumption fails — solvent molecules become comparable in size to the diffusing particle. Experimentally measured D for small molecules often runs 50–100% higher than Stokes-Einstein predicts. Use the equation as a benchmark for proteins and nanoparticles, not for atomic ions or single water molecules.

Measuring diffusion experimentally

Four common techniques span the practical range of diffusion measurement:

NMR-DOSY (Diffusion-Ordered Spectroscopy) applies pulsed magnetic field gradients to encode position; the signal decay vs. gradient strength yields D directly. Works for any NMR-active nucleus, with typical 5% accuracy. Used routinely for protein and polymer characterization.

Dynamic Light Scattering (DLS) measures intensity fluctuations of scattered laser light caused by Brownian motion. The autocorrelation function decay constant gives D; via Stokes-Einstein, this gives hydrodynamic radius. Standard tool for nanoparticle sizing.

Fluorescence Recovery After Photobleaching (FRAP) bleaches a spot in a fluorescent sample, then watches fresh fluorophores diffuse in. Recovery rate gives D. Essential for live-cell membrane and cytoplasm diffusion studies.

Taylor-Aris dispersion measures broadening of a tracer pulse flowing through a capillary at known Reynolds number. The bandwidth at the outlet gives D. Useful for liquid-phase measurements when NMR or fluorescence isn't practical.

Did you know

The Manhattan Project enriched uranium using gaseous diffusion of ²³⁵UF₆ versus ²³⁸UF₆, exploiting a Graham-law mass ratio of just 1.0043. To reach weapons-grade material, the gas had to pass through about 4000 membrane cascades — a plant the size of a small city consuming roughly 7% of US electricity in 1945.

FAQ

The diffusion coefficient D measures how quickly particles spread through a medium. Units are m²/s in SI or cm²/s in older literature. Typical values: small molecules in water ≈ 10⁻⁹ m²/s, gases in air ≈ 10⁻⁵ m²/s, proteins in water ≈ 10⁻¹¹ m²/s.
D = k_B · T / (6π · η · r). Diffusion rises with temperature, falls with viscosity and particle size. Derived by Einstein (1905) and independently Sutherland for spherical particles in a viscous fluid at low Reynolds number. It was the first equation to give an absolute measurement of Avogadro's number.
Graham law states that the rate of effusion of two gases is inversely proportional to the square root of their molar masses: r₁ / r₂ = √(M₂ / M₁). Hydrogen (M = 2) effuses about 4 times faster than oxygen (M = 32) because √(32/2) = 4.
Two effects combine. Higher T boosts molecular kinetic energy (the kT term). Higher T also drops viscosity sharply in liquids. The net effect roughly doubles D for every 10°C rise in water. In gases the scaling is closer to T^1.75.
The effective sphere radius that diffuses the same way as the actual particle. For globular proteins it's a few angstroms larger than the geometric radius because hydration shells move with the particle. NMR-DOSY and dynamic light scattering measure this radius directly.
Gas molecules have mean free paths thousands of times longer than liquid molecules. They travel ballistically between rare collisions, while liquid molecules stay in constant contact with neighbors. The ratio is typically 10⁴–10⁵.
For 3D Brownian diffusion, ⟨x²⟩ = 6Dt. RMS displacement = √(6Dt). A molecule with D = 10⁻⁹ m²/s moves about 77 µm RMS in 1 second, 7.7 mm in 1 day. Crossing a 1 mm distance takes about 170 seconds.