What is Graham's law?
Graham's law says that light gases escape faster than heavy ones: the rate at which a gas effuses through a small hole is inversely proportional to the square root of its molar mass. Hydrogen, at 2 grams per mole, effuses about four times as fast as oxygen, at 32 grams per mole — the square root of 16 is 4. It is the law behind uranium enrichment, gas leaks, and the smell of a gas spreading across a room.
This calculator compares the effusion rates of two gases. Type the first gas's rate and the molar masses of both gases, and it shows the second gas's rate, the ratio of the two rates, and which gas is faster. It is the calculation for effusion and diffusion problems in every chemistry course.
Everything on this page runs in your browser. Nothing you type is uploaded, stored, or sent to a server, and there is no account to create and no sign-up step. You can use the tool as many times as you like, close the tab, and come back later — your inputs are never saved anywhere.
This site has a full set of related tools, and the links in this article point to the ones people reach for next. They all work the same way — type your numbers, read the answer, nothing uploaded — so once you know one of them, you know all of them. The "More free tools" section at the bottom of the page lists three close neighbours.
How Graham's law is calculated
The method is a square root. The ratio of the rates is the square root of the inverse ratio of the molar masses: rate 1 over rate 2 equals the square root of M2 over M1. For hydrogen against oxygen, the square root of 32 over 2.016 is the square root of 15.87, which is 3.98 — so hydrogen effuses 3.98 times as fast as oxygen.
The calculator works the other way too: give it gas 1's rate and both molar masses, and it returns gas 2's rate — gas 1's rate times the square root of M1 over M2. With gas 1's rate set to 1, gas 2's rate is the square root of 2.016 over 32, which is 0.251. The ratio of the two rates is then 1 over 0.251, which is 3.98, matching the direct calculation.
This tool uses the standard textbook treatment: ideal behaviour, standard constants, and the conditions stated on the page. Real systems drift from that — gases are not perfectly ideal, activity differs from concentration in salty solutions, and measured values carry error. For school and college work the standard treatment is what is asked for; for research work, treat the result as a starting point and check it against measured data.
Before you rely on a result, run a quick sanity check on it. Convert a value you already know — one large egg should come out near 57 grams, one mole of water near 18 grams — and see that the tool agrees. If it does, your inputs are right and the rest of the answers will be too. If it does not, the input is usually the problem, not the tool.
Molar masses: the inputs that matter
The input people get wrong is which molar mass goes on top. The rate ratio is the square root of the other gas's mass over this gas's mass — the heavier gas is slower, so the mass of the slower gas belongs on top when you are working out how much faster the lighter one is. Inverting the ratio gives the reciprocal of the answer, which is the most common error in these problems.
The second trap is the square root itself. The rate depends on the square root of the mass, not on the mass directly: a gas sixteen times heavier is only four times slower, not sixteen times slower. Forgetting the square root is the second most common error, and it makes the answer wrong by a large factor.
The one habit that prevents nearly every wrong answer here is checking the units before you trust the result. Grams are not ounces, millilitres are not cups, and a value typed in the wrong unit gives a confident-looking wrong answer. Read the label next to each box, match it to the unit on your recipe or your lab sheet, and only then read the result.
A worked example: hydrogen vs oxygen
Take the default example: hydrogen at 2.016 grams per mole against oxygen at 32, with hydrogen's rate set to 1. Oxygen's rate is the square root of 2.016 over 32, which is 0.251. The ratio of the rates is 3.98, and Gas 1 effuses faster — hydrogen, by nearly four times.
Check the other test: helium at 4.003 grams per mole against nitrogen at 28.014, with helium's rate set to 2, gives nitrogen a rate of 2 times the square root of 4.003 over 28.014, which is 0.756. And two gases with the same molar mass effuse at the same rate — the ratio is 1, as it must be.
The answers on this page are rounded for display, usually to two decimal places, while the maths underneath keeps full precision. That means a result shown as 2.28 may really be 2.2814, and the reverse check may differ in the last digit for the same reason. That is rounding, not an error, and it never changes the answer by more than a fraction of a percent.
The most common mistake with any calculator is typing a number and trusting it without a glance at the label beside it. The second is copying a result with more digits than the inputs justify — if your inputs are good to two digits, the answer is good to two digits, however many the screen shows. Round the answer to match the precision of what you measured.
Why Graham's law matters
Students use Graham's law in gas problems, especially effusion through a pinhole and diffusion through a room. It is also the classic way to find an unknown molar mass: measure how fast the unknown gas effuses compared with a known gas, and the law gives the mass from the rate ratio.
The most famous application is uranium enrichment, where uranium hexafluoride made with the lighter uranium-235 effuses slightly faster than the same compound made with uranium-238, and thousands of stages separate them. The same principle separates isotopes in the lab and explains why a helium balloon goes flat faster than an air-filled one.
Students use tools like this one for homework and exam practice, teachers use them to check answers quickly in class, and working cooks and lab staff use them because a fast, correct conversion beats doing the same arithmetic by hand for the twentieth time. The tool does not replace understanding the method — it removes the arithmetic so the understanding is what you spend your time on.
The share and print buttons sit with every tool on this site. Share sends the page link, not your numbers, so whoever opens it starts from the same defaults you saw. Print gives you a clean copy for a lab notebook, a recipe folder, or a classroom handout, with the formula and the worked example included.
Two related tools worth knowing are the density calculator and molar mass converter.
Graham's law vs the ideal gas law
The ideal gas law, on the ideal gas law calculator, relates a gas's pressure, volume, temperature, and moles in one state. Graham's law compares two gases' speeds, and it needs only their molar masses — no pressure, no temperature, no volume. Use the ideal gas law to find a missing value; use Graham's law to compare rates.
A mole calculator converts a mass to moles, which is the step before a molar mass can be used at all. If your gas is given in grams, convert to moles first; if you are given the molar masses directly, type them here.
Students use tools like this one for homework and exam practice, teachers use them to check answers quickly in class, and working cooks and lab staff use them because a fast, correct conversion beats doing the same arithmetic by hand for the twentieth time. The tool does not replace understanding the method — it removes the arithmetic so the understanding is what you spend your time on.
Common mistakes with Graham's law
The most common mistake is inverting the molar-mass ratio, which gives the reciprocal of the answer. The second is forgetting the square root, which makes the answer wrong by a large factor. The third is using atomic masses instead of molar masses — oxygen gas is O2 at 32, not O at 16.
A fourth mistake is confusing effusion with diffusion: effusion is escape through a hole, diffusion is spreading through another gas, and the law applies to both only approximately — diffusion in air is slowed by collisions, so the measured ratio is smaller than the law predicts. A fifth is using the rate of the wrong gas as the reference: the ratio is always relative to the gas whose rate you typed in.
The one habit that prevents nearly every wrong answer here is checking the units before you trust the result. Grams are not ounces, millilitres are not cups, and a value typed in the wrong unit gives a confident-looking wrong answer. Read the label next to each box, match it to the unit on your recipe or your lab sheet, and only then read the result.
How to use this Graham's law calculator
Type the first gas's rate, its molar mass, and the second gas's molar mass. The second gas's rate appears instantly, with the ratio of the two rates and which gas is faster alongside. Change any number and the answers update at once.
Set the first gas's rate to 1 to get the rates as a simple comparison — the second gas's rate is then the fraction of the first's. And use the molar mass of the gas molecule, O2 at 32 and not O at 16, or the answer will be wrong by the square root of 2.
Everything on this page runs in your browser. Nothing you type is uploaded, stored, or sent to a server, and there is no account to create and no sign-up step. You can use the tool as many times as you like, close the tab, and come back later — your inputs are never saved anywhere.