🔬
🔬 Science & engineering

Diffusion Calculator (Fick’s law, diffusion length)

Results update as you type.

Your numbers

Understanding the diffusion calculator — concept and principle

Diffusion is the spontaneous spreading of molecules from regions of high concentration to regions of low concentration. This calculator gives two numbers: the steady diffusive flux through a layer (Fick's first law) and the typical distance molecules travel in a given time. It helps judge how fast oxygen crosses a membrane or how far a dye spreads in a gel.

Fick’s law: molecules cross a 1 mm layer and spread over timeA crowded side with 100 mol/m³ more than the other pushes molecules through a 1 mm layer at 0.0002 mol per square metre per second. In one hour they spread about 3.79 mm; in four hours only about 7.59 mm.Molecules drift from crowded to sparseC highC lowΔx 1 mmΔC 100 mol/m³Flux J = D × ΔC ÷ Δx2×10⁻⁹ × 100 ÷ 0.001 = 0.0002 mol/(m²·s)How far in time t? L = √(2Dt)1 h3.79 mm4 h7.59 mm4× the time → only 2× the distance
Flux needs a gradient; spreading distance grows only with √t (1 h ≈ 3.79 mm).

How it is calculated

The principle

Molecules move randomly. Where there are more molecules, more of them happen to wander outward than wander back, so there is a net flow down the concentration gradient. Fick's law says this net flow is proportional to the gradient, and the minus sign means it runs from high to low. The second formula comes from the random walk: the mean squared displacement along one axis grows linearly with time, ⟨x²⟩ = 2Dt, so the typical distance grows only with the square root of time. Doubling the distance takes four times as long.

Worked example

  1. Inputs: D = 2 × 10⁻⁹ m²/s (typical of a small molecule in water), ΔC = 100 mol/m³, Δx = 1 mm = 0.001 m, t = 3,600 s.
  2. Gradient: 100 ÷ 0.001 = 100,000 mol/m⁴.
  3. Flux: 2 × 10⁻⁹ × 100,000 = 0.0002 mol/(m²·s).
  4. Diffusion length: √(2 × 2 × 10⁻⁹ × 3,600) = √(1.44 × 10⁻⁵) = 0.003795 m = 3.794733 mm.
How Flux (mol/m²·s) changes with Distance (mm)How Flux changes with Distance00.00020.00040.00060.00080.250.50.7511.251.52Example: 0.0002Distance (mm)
Each point is the calculator re-run with only “Distance (mm)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Distance (mm)Flux (mol/m²·s)
0.250.0008
0.50.0004
0.750.0002666667
10.0002
1.250.00016
1.50.0001333333
20.0001

How to read the result

Small molecules in liquids have D of roughly 10⁻⁹ m²/s, so in one hour they spread only a few millimetres. Gases in air have D near 10⁻⁵ m²/s, about ten thousand times faster. A thin layer gives a large flux, which is why lungs, gills and catalysts have very thin barriers and large surface areas. Multiply J by area for total moles per second.

Common mistakes

Keep in mind: The flux formula assumes a steady, straight-line concentration profile and a constant D. Real systems with stirring, convection, temperature changes or reactions can behave very differently, and √(2Dt) is only an order-of-magnitude scale, not a sharp front.

Frequently asked questions

Why is the factor 2 in √(2Dt)?

It is the one-dimensional random-walk result. For spreading in three dimensions the mean squared distance is 6Dt, so the typical radius is √(6Dt).

How does temperature affect D?

D rises with temperature. In liquids it roughly follows the Stokes–Einstein relation, D = kT/(6πηr), so lower viscosity and smaller molecules diffuse faster.

What is Fick's second law?

It describes how concentration changes with time, ∂C/∂t = D ∂²C/∂x², and is needed when the profile is not yet steady.

Sources: A. Fick, "Ueber Diffusion", Annalen der Physik 94 (1855) · E. L. Cussler, Diffusion: Mass Transfer in Fluid Systems, Cambridge University Press · R. B. Bird, W. E. Stewart, E. N. Lightfoot, Transport Phenomena, Wiley

Checked 8 Nov 2026. Standard textbook formulas in SI units, computed in your browser. For learning and estimates — real designs must follow your local codes and be checked by a qualified engineer.

🔬 All science & engineering tools →🌍 Calculators by country →