Graham’s Law Calculator
Compare how fast two gases effuse or diffuse. Pick a gas or type its formula, and get the rate ratio, which gas is faster and by how many times, how long each takes to effuse the same amount, or where two gases meet when released from opposite ends of a tube. Every result comes with a labeled chart and every step shown.
Background
Graham’s law says that at the same temperature and pressure, a gas effuses at a rate inversely proportional to the square root of its molar mass: rA / rB = √(MB / MA). Lighter molecules move faster on average, so they pass through a tiny hole sooner. This calculator compares two known gases. If you need to find an unknown molar mass or an unknown rate, use the Rate of Effusion Calculator instead.
How to use this calculator
- Choose Compare Rates to see rA/rB, which gas is faster and by what factor, and the matching time ratio.
- Choose Time to Effuse when you know how long Gas A takes to effuse an amount and want the time for Gas B to effuse the same amount.
- Choose Meeting Point for two gases released from opposite ends of a tube, as in the classic NH₃ and HCl demonstration.
- Pick each gas from the list, or type its formula (NH3, CO2, SF6) and the molar mass is worked out for you. You can also type a molar mass in g/mol.
- To solve for an unknown molar mass or an unknown rate, use the Rate of Effusion Calculator instead.
How Graham's law works
Effusion is gas escaping through a tiny hole into a vacuum. Diffusion is gas spreading through another gas. Graham's law describes how the speed depends on the molar mass.
At the same temperature, all gases have the same average kinetic energy, ½mv². A heavier molecule must therefore move more slowly, and the speed is proportional to 1/√m.
Rate follows speed, so the rate ratio is rA/rB = √(MB/MA). The masses are flipped: the heavier gas sits in the numerator of the square root when A is the lighter one.
A ratio above 1 means Gas A is faster. A ratio below 1 means Gas B is faster, and you can turn it around by taking 1 divided by the ratio.
Time is the inverse of rate. For the same amount of gas, tA/tB = rB/rA = √(MA/MB). The heavier gas takes longer, and the masses are no longer flipped.
Two gases that travel for the same time cover distances in proportion to their rates, dA/dB = rA/rB. Released from opposite ends of a tube of length L, they meet when dA + dB = L, which gives dA = L·rA/(rA + rB).
The law is exact for an ideal gas effusing through a small hole. For diffusion through air it is only approximate, because collisions with other molecules matter, so real results can differ a little.
Formulas & Equations Used
Graham's law: r_A / r_B = √(M_B / M_A)
Time to effuse the same amount: t_B / t_A = r_A / r_B = √(M_B / M_A)
Distance in the same time: d_A / d_B = r_A / r_B
Meeting point in a tube of length L: d_A = L · r_A / (r_A + r_B) = L · √M_B / (√M_A + √M_B), d_B = L − d_A
Molar mass from a formula: M = Σ (number of atoms × atomic weight)
Example Problems & Step-by-Step Solutions
Example 1 — Helium versus oxygen
How much faster does He (4.0026 g/mol) effuse than O₂ (31.998 g/mol)?
Step: rHe/rO₂ = √(31.998 ÷ 4.0026) = √7.9945.
Result: 2.827. Helium effuses about 2.83 times faster.
Example 2 — Hydrogen versus oxygen
Compare H₂ (2.016 g/mol) with O₂ (31.998 g/mol).
Step: rH₂/rO₂ = √(31.998 ÷ 2.016) = √15.872.
Result: 3.984. Oxygen is about 16 times heavier, so hydrogen is only about 4 times faster, because the rate depends on the square root.
Example 3 — Reading a ratio below 1
Let Gas A be O₂ and Gas B be He.
Step: rA/rB = √(4.0026 ÷ 31.998) = 0.3537. A ratio below 1 means Gas B is the faster gas, so take the reciprocal: 1 ÷ 0.3537.
Result: He is 2.827 times faster than O₂. It's the same answer as Example 1, just seen from the other side.
Example 4 — Helium balloons
Compare He with air, whose average molar mass is 28.96 g/mol.
Step: rHe/rair = √(28.96 ÷ 4.0026) = √7.2352.
Result: 2.690. Helium escapes through the balloon's tiny pores about 2.7 times faster than air gets in, which is one reason balloons go limp.
Example 5 — Time to effuse
A sample of H₂ takes 20 s to effuse. How long does the same amount of CO₂ take?
Step: tCO₂ = 20 s × √(44.009 ÷ 2.016) = 20 × 4.672.
Result: 93.44 s. The heavier gas takes longer, so the time goes up by the square root of the mass ratio.
Example 6 — Time in minutes
He takes 2.000 min to effuse a sample. How long for Ar (39.948 g/mol)?
Step: tAr = 2.000 min × √(39.948 ÷ 4.0026) = 2.000 × 3.159.
Result: 6.318 min. Time units stay the same, so you can use seconds, minutes or hours.
Example 7 — The NH₃ and HCl tube
NH₃ (17.031 g/mol) and HCl (36.458 g/mol) start at opposite ends of a 100 cm tube.
Step: rNH₃/rHCl = √(36.458 ÷ 17.031) = 1.4631. Then dNH₃ = 100 × 1.4631 ÷ (1.4631 + 1) cm.
Result: They meet 59.40 cm from the NH₃ end and 40.60 cm from the HCl end, so the white NH₄Cl ring forms nearer the heavier HCl.
Example 8 — Separating uranium isotopes
Compare ²³⁵UF₆ (349.03 g/mol) with ²³⁸UF₆ (352.04 g/mol).
Step: r235/r238 = √(352.04 ÷ 349.03) = √1.00862.
Result: 1.00430. The difference is under half a percent, so many repeated stages are needed to enrich uranium by effusion.
Frequently Asked Questions
Do I need temperature or pressure for Graham's law?
No. When the two gases are at the same temperature and pressure, those quantities cancel in the ratio. The calculator assumes the same conditions for both gases.
What units should I use for molar mass?
Grams per mole (g/mol). You can also type a formula such as NH3 or CO2, and the calculator adds up the atomic weights for you. Only the ratio matters, as long as both gases use the same unit.
Does Graham's law work for diffusion as well as effusion?
It is exact for an ideal gas effusing through a small hole, and approximate for diffusion through another gas. In a real air-filled tube, collisions mean the measured result can differ a little from the calculated one.
Why do lighter gases effuse faster?
At the same temperature, gases have the same average kinetic energy ½mv². A lighter molecule therefore has a higher average speed, proportional to 1/√m, so more of them reach and pass through the hole each second.
How do I get time from the rate ratio?
Time is the inverse of rate for the same amount of gas, so tA/tB = rB/rA = √(MA/MB). The heavier gas takes longer. The Time to Effuse mode does this for you.
What does a rate ratio below 1 mean?
It means Gas B is the faster gas. Nothing is wrong: it just depends which gas you called A. Take 1 divided by the ratio to see how many times faster B is, or use Swap A ↔ B.
What if I type N or O instead of N₂ or O₂?
A single symbol is read as one atom, so N is 14.007 g/mol. Most of these gases exist as molecules, so enter N2 or O2. The calculator warns you when you enter a symbol that is normally a diatomic gas.
Can I find an unknown molar mass or rate?
This calculator compares two gases whose molar masses you know. To solve for a missing rate or an unknown molar mass, use the Rate of Effusion Calculator.