Graham’s Law of Diffusion Calculator

Pick two gases (or enter custom molar masses) and the calculator returns the rate ratio r<sub>1</sub>/r<sub>2</sub> from Graham’s law, the inverse ratio, and a side-by-side bar plot of relative diffusion speed.

Science 20 gases Custom M Side-by-side bars
Rate this calculator · 5.0 (2)

Graham’s law calculator

r₁/r₂ = √(M₂/M₁)

Instructions — Graham’s Law of Diffusion Calculator

Pick gas 1 and gas 2 from the dropdowns — their molar masses fill in automatically. Choose Custom to enter any value (the dropdown stays at Custom and the molar mass field becomes editable).

The calculator returns:

  • The rate ratio r1/r2, showing how many times faster gas 1 diffuses than gas 2
  • The inverse ratio (handy for effusion timing problems)
  • The mass ratio M2/M1 for sanity-checking
  • A side-by-side bar plot where the faster gas reaches 100% and the slower gas scales proportionally

Graham’s law applies equally to diffusion (a gas spreading through another gas) and effusion (a gas escaping through a tiny pinhole into a vacuum).

Formulas

r1 / r2 = √(M2 / M1)

Where M1 and M2 are molar masses (g/mol). Equivalent forms:

r2 = r1 · √(M1 / M2)

Timing form: if the same volume effuses in t1 for gas 1 and t2 for gas 2, then t2/t1 = √(M2/M1). A heavier gas takes longer.

Derivation: from kinetic theory, the average molecular speed is √(3RT/M). The diffusion or effusion rate scales linearly with that speed, so the ratio simplifies to √(M2/M1).

Reference

  • Light: H2 2.02, He 4.00, CH4 16.04, NH3 17.03
  • Air-like: N2 28.01, O2 32.00, Ar 39.95
  • Heavy: CO2 44.01, SO2 64.07, Cl2 70.91
  • Very heavy: Xe 131.29, SF6 146.06, UF6 352.02

Famous applications of Graham’s law include the Manhattan Project’s gaseous-diffusion separation of uranium isotopes (UF6 with U-235 vs U-238 differs by only 0.43% in mass, so thousands of cascaded stages were needed) and the spread of smell molecules through still air.

Article — Graham’s Law of Diffusion Calculator

How Graham's law of diffusion works

Graham's law of diffusion says the rate at which a gas diffuses or effuses is inversely proportional to the square root of its molar mass. For two gases at the same temperature and pressure, r1/r2 = √(M2/M1). Hydrogen diffuses about 4 times faster than oxygen because its molar mass is 16 times smaller and the square root of 16 is 4.

Thomas Graham published the relation in 1846 after measuring how quickly gases passed through plaster-of-paris stoppers. The law became the kinetic-theory cornerstone for understanding gas behavior and the practical basis for the uranium enrichment that powered the first nuclear weapons.

What is Graham's law of diffusion

Diffusion is the gradual spread of one gas through another (perfume across a room, ammonia along a corridor). Effusion is the escape of a gas through a small hole into a region of lower pressure (helium leaking from a balloon, gas escaping a vacuum chamber). Both rates depend on the average molecular speed, which in turn depends on temperature and molar mass.

The law applies at constant temperature. Both gases share the same average kinetic energy, so the lighter gas must move faster to carry the same energy — the same way a tennis ball must move faster than a bowling ball to have the same kinetic energy.

The Graham's law formula

The relation is:

r1 / r2 = √(M2 / M1)

Where r1 and r2 are diffusion or effusion rates and M1, M2 are molar masses (g/mol). Equivalent forms:

  • Solving for r2 — r2 = r1 · √(M1/M2)
  • Time form — if a volume effuses in t1 for gas 1 and t2 for gas 2, then t2/t1 = √(M2/M1)
  • Unknown mass — if you measure r1/r2 for a known gas (e.g. O2) and an unknown, you can solve for the unknown's molar mass

Diffusion vs effusion in Graham's law

Strictly Graham's law was derived for effusion — gas escape through an opening smaller than the mean free path. Diffusion through another gas adds collision effects that complicate the picture. In practice the same square-root scaling works well for both, because collisions affect both gases similarly and the ratio remains close to √(M2/M1).

Did you know

The classic ammonia-HCl demonstration places cotton wool soaked in NH3 at one end of a tube and cotton wool soaked in concentrated HCl at the other. A white ring of NH4Cl forms where the gases meet, displaced toward the HCl end. NH3 (17.03 g/mol) diffuses faster than HCl (36.46 g/mol) by a factor of √(36.46/17.03) = 1.46.

Graham's law from kinetic theory

The kinetic theory of gases gives the average molecular speed as:

vavg = √(8RT / πM)

(or, for the RMS speed, √(3RT/M)). Both have the 1/√M scaling that Graham's law captures. At a fixed temperature the ratio of speeds for two gases is exactly √(M2/M1), independent of which speed (mean, RMS, most probable) you choose. T cancels, which is why Graham's law has no temperature dependence.

The diffusion or effusion rate is proportional to the average speed because faster molecules hit the boundary or hole per unit time more often. The proportionality is the same for any gas, so the ratio of rates equals the ratio of speeds equals √(M2/M1).

Graham's law and uranium enrichment

Natural uranium contains 0.72% U-235 (the fissile isotope) and 99.27% U-238. To make weapons or fuel reactors that use enriched fuel, the U-235 fraction must be raised. The first method to scale up was gaseous diffusion: convert uranium to UF6 (gaseous above 56 °C), then push it through porous barriers.

The molar masses of 235UF6 and 238UF6 are 349.03 and 352.04 g/mol respectively. The single-stage enrichment factor is √(352.04/349.03) = 1.0043 — only 0.43% per stage. Reaching weapon-grade U-235 (90%+) required thousands of cascaded stages. The K-25 plant at Oak Ridge during the Manhattan Project consumed more electricity than a major city.

UF₆ per stage
1.0043 ratio
0.43% enrichment
H₂/O₂ ratio
3.98 ratio
H2 4x faster

Modern enrichment uses gas centrifuges, which give per-stage factors of about 1.5 — far better than diffusion. But the underlying physics is still Graham's law: the lighter isotopomer outpaces the heavier one in any process that exploits molecular speed.

Worked examples for Graham's law

How much faster does H2 effuse than O2? r(H2)/r(O2) = √(32.00 / 2.016) = √15.87 = 3.98. H2 effuses about 4 times faster.

Unknown gas effuses 1.4 times slower than CO2. r(CO2) / r(X) = 1.4 = √(MX/MCO2). So MX = 1.42 × 44.01 = 86.3 g/mol. Likely candidate: SF2O or a heavy hydrocarbon.

A balloon filled with helium loses pressure 2.7 times faster than one filled with air. √(Mair/MHe) = √(28.97/4.003) = 2.69. The measurement confirms helium's escape rate predicted by Graham's law.

Tip

To convert rate ratio into time ratio, just invert. If H2 effuses 4 times faster than O2, the same volume of H2 escapes in 1/4 the time. The same square-root-of-molar-mass formula applies, just multiplied or divided depending on whether you want speed or time.

Graham's law limitations

The law assumes ideal gas behavior, no chemical interaction between the gases, free molecular flow (the opening or mean free path is small compared with the apparatus), and constant temperature. Deviations appear in three regimes:

Graham's law breaks down at high pressure

At high pressure or low temperature gases stop behaving ideally — molecular interactions slow diffusion in ways that depend on the specific gases, not just the molar masses. The simple 1/√M scaling becomes only an approximation, and detailed transport calculations (Chapman-Enskog) are required for accurate diffusion coefficients.

  • Polyatomic gases at high T — rotational and vibrational excitation give extra degrees of freedom that complicate the simple kinetic picture, but the speed scaling stays approximate
  • Charged species — ions follow different rules dominated by electrostatic forces, not Graham's law
  • Surface diffusion — molecules adsorbed on a solid surface diffuse by hopping, with rates governed by activation energy rather than molecular speed
  • Cluster formation — in saturated vapor near condensation small clusters change the effective M

For most general chemistry homework, Graham's law works exactly as written. For research-grade diffusion calculations in real mixtures, the Chapman-Enskog theory and the Maxwell-Stefan equations replace the simple square-root form. They predict diffusion coefficients in cm2/s rather than relative rates, and they account for cross-collisions, temperature dependence, and non-ideality. The simple Graham's law remains the right teaching tool because it captures the essence in one square root.

FAQ

Diffusion is one gas spreading through another - say, ammonia spreading through air. Effusion is a gas escaping through a small hole into a vacuum (or near-vacuum). Both follow Graham’s law because both depend on average molecular speed. The hole has to be smaller than the mean free path of the gas for the simple formula to hold exactly.
Kinetic theory gives the average molecular speed as sqrt(3RT/M). At a fixed temperature speed scales as 1/sqrt(M). The diffusion rate is proportional to speed, so the rate ratio of two gases at the same T is sqrt(M2/M1). The square root is a direct consequence of kinetic energy being proportional to m v squared / 2.
No, but it affects each absolute rate. Both gases speed up as T increases (the sqrt(3RT/M) formula), but the ratio of their speeds is unchanged because temperature cancels. That is why Graham’s law has no T in it.
Uranium isotopes U-235 and U-238 were converted to UF6 vapor. The mass difference of the two UF6 species is 352.04 vs 349.03 - only 0.86% - so a single diffusion stage enriches by only sqrt(352.04/349.03) - 1 = 0.4%. The K-25 plant at Oak Ridge cascaded thousands of stages to reach weapon-grade U-235.
Ideal gas behavior at the operating pressure and temperature, free molecular flow (the hole or the path is smaller than the mean free path), and no chemical interactions or condensation. At very low temperatures or high pressures real gases deviate from sqrt-M scaling.
Yes. For He, Ne, Ar, Kr, Xe the molar mass equals the atomic mass because the molecule is one atom. For diatomic gases like N2 or O2 you must use the molecular molar mass (28.01 and 32.00), not the atomic mass.
The classic demo soaks one cotton ball with concentrated HCl and another with ammonia, then places them at opposite ends of a glass tube. A white ring of NH4Cl forms where the two gases meet - closer to the HCl side because NH3 is lighter and diffuses faster. The position of the ring matches the prediction within experimental error.
Most aroma molecules are organic compounds with molar masses in the 50-200 g/mol range. Lighter molecules (esters at 80-100) reach your nose seconds faster than heavier ones (musks at 250). For the same reason a hydrogen leak betrays itself faster than a methane leak.