Graham’s law is the rule that tells you how fast one gas escapes through a pinhole compared with another gas.
Graham's law says the rate of effusion of a gas is inversely proportional to the square root of its molar mass, so for two gases at the same temperature and pressure, rate1 / rate2 = sqrt(M2 / M1). Pick a gas and a reference gas and the answer appears at once: the lighter gas always effuses faster, and the time to effuse the same amount is the inverse of the rate ratio.
Please check the inputs: select a gas and a reference gas from the lists.
| Gas | Molar Mass (g/mol) | Rate Ratio | Time Ratio | % of Reference Rate | Faster or Slower |
|---|
Eight effusion cases, from 0.1686 to 1.000. The highlighted row matches your inputs: Oxygen (O2) vs Hydrogen (H2), giving a rate ratio of 0.2510.
Founder & CEO, Techraxy
Faiq Ur Rahman is a web designer, digital product developer, and Founder of Techraxy, a growing platform of online calculators and utility tools. He specializes in building structured, user-friendly tools focused on finance, health, conversions, productivity, and everyday problem-solving. He is passionate about developing practical digital solutions that make complex tasks simpler for users worldwide.
User Ratings:
ADVERTISEMENT
ADVERTISEMENT
Graham’s law is the rule that tells you how fast one gas escapes through a pinhole compared with another gas, and this free rate of effusion calculator applies it in one step. Pick a gas and a reference gas and it returns the relative effusion rate, the time ratio for the same amount of gas, and the gas rate as a percentage of the reference rate. At the defaults, oxygen against hydrogen, the answer is a relative effusion rate of 0.2510, a time ratio of 3.984, and oxygen effusing at 25.1 percent of the hydrogen rate.
The calculator takes two inputs: the gas and the reference gas, each chosen from a list of eight common gases with their molar masses built in. It returns the relative effusion rate, the time ratio, the percentage rate, the molar mass of each gas, and the formula used. The diagram shows a container of gas with a small pinhole in its wall, and five molecules escaping through the hole in a stream that spreads further apart as the rate rises.
A rate of effusion calculator is a tool that compares how fast two gases escape through a tiny hole, using Graham’s law. Effusion is the escape of gas molecules through a small hole, such as a pinhole in a balloon, into a vacuum. The law says the rate of effusion of a gas is inversely proportional to the square root of its molar mass, so for two gases at the same temperature and pressure, rate1 / rate2 = sqrt(M2 / M1), where M1 and M2 are the molar masses. The lighter gas always effuses faster, because at the same temperature all gases have the same average kinetic energy, so a lighter molecule must move faster to carry the same energy.
Effusion is not the same as diffusion, even though Graham’s law covers both with the same ratio. Diffusion is gas spreading through another gas or through space, driven by a concentration difference, while effusion is gas escaping through a hole into a vacuum. The Diffusion Coefficient Calculator covers the diffusion side, where the rate depends on the concentration gradient and the distance travelled as well as the molar mass. Graham’s law is exact for an ideal gas effusing through a small hole, and only approximate for diffusion, because collisions with other molecules matter there.
The molar mass is the only property that decides the ratio, which is why the calculator builds the masses in rather than asking you to type them. The Molar Mass of Gas Calculator finds the molar mass of a gas from its formula, which is the number this calculator uses for each gas. Hydrogen, at 2.016 g/mol, is the lightest gas in the list and the fastest, while chlorine, at 70.90 g/mol, is the heaviest and the slowest, effusing at 0.1686 times the hydrogen rate.
Pick the gas in the first list and the reference gas in the second list. The calculator updates as soon as you change a selection, and the Calculate button runs it again at any time. At the defaults the gas is oxygen and the reference gas is hydrogen, and the relative effusion rate is 0.2510.
Read the results in order. The headline numbers are the relative effusion rate, the time ratio, and the gas rate as a percentage of the reference rate, then the molar mass of each gas and the formula used. The highlight sentence repeats the answer in plain words, with the two gases it used and how much longer the slower gas takes to effuse the same amount.
The diagram shows the container on the left with the gas inside it, a pinhole in the right wall, and five molecules escaping through the hole. The escaping dots spread further apart as the rate rises: their spacing is 10 plus 14 times the rate ratio in pixels, capped at a rate of 2, so oxygen against hydrogen sits at 13.51 px apart while helium against oxygen spreads to the capped 38.00 px. The rate bar below the container fills 80 px per unit of rate, capped at 160 px, so the oxygen bar is 20.08 px wide and the helium bar fills the whole track.
The Compare Cases tab puts eight gases side by side against the reference gas you chose, with the molar mass, the rate ratio, the time ratio, the percentage rate, and whether each gas is faster or slower than the reference. The row matching your gas is highlighted. Changing the reference gas recomputes every row, because every ratio is measured against the reference you picked.
The formula is rate1 / rate2 = sqrt(M2 / M1), where rate1 and rate2 are the effusion rates of gas 1 and gas 2, and M1 and M2 are their molar masses in g/mol. The masses are flipped: the heavier gas sits in the numerator of the square root when gas 1 is the lighter one. Written out for the defaults, oxygen against hydrogen: rate of oxygen / rate of hydrogen = sqrt(2.016 / 32.00), which is sqrt(0.063), which is 0.2510. The time to effuse the same amount is the inverse of the rate, so t1 / t2 = sqrt(M1 / M2): oxygen takes sqrt(32.00 / 2.016), which is sqrt(15.87), which is 3.984 times as long as hydrogen to effuse the same amount.
The square root is what makes the law easy to misread. Doubling the molar mass does not halve the rate, it divides it by sqrt(2), which is 1.414, so the rate falls to 0.7071 of its value. A gas four times as heavy effuses at half the rate, because sqrt(4) is 2, and a gas sixteen times as heavy effuses at a quarter of the rate. The percentage column in the calculator is the rate ratio times 100, so oxygen at 0.2510 effuses at 25.1 percent of the hydrogen rate.
The law assumes both gases behave ideally and effuse through the same small hole at the same temperature and pressure. Temperature and pressure cancel in the ratio, which is why neither appears in the formula and the calculator does not ask for them. Real gases deviate from the ideal prediction, especially at high pressure or low temperature, where molecules interact and take up space, so treat the answer as the ideal-gas prediction rather than a laboratory measurement.
Take oxygen against hydrogen, the defaults. First, write down the molar masses: oxygen is 32.00 g/mol and hydrogen is 2.016 g/mol. Next, divide the reference mass by the gas mass: 2.016 divided by 32.00 is 0.063. Then take the square root: sqrt(0.063) is 0.2510, so oxygen effuses at 0.2510 times the hydrogen rate. The time ratio is the inverse: 1 divided by 0.2510 is 3.984, so oxygen takes 3.984 times as long as hydrogen to effuse the same amount. As a percentage, oxygen effuses at 25.1 percent of the hydrogen rate.
A second check shows a gas faster than its reference, helium against oxygen. First, the molar masses are 4.003 g/mol for helium and 32.00 g/mol for oxygen. Next, 32.00 divided by 4.003 is 7.994. Then sqrt(7.994) is 2.827, so helium effuses at 2.827 times the oxygen rate. The time ratio is 1 divided by 2.827, which is 0.3537, so helium takes just over a third of the oxygen time, and as a percentage it effuses at 282.7 percent of the oxygen rate.
A third check uses the textbook ammonia example, ammonia against hydrogen chloride. The molar mass of ammonia is 17.03 g/mol and of hydrogen chloride is 36.46 g/mol. The ratio is sqrt(36.46 / 17.03), which is sqrt(2.141), which is 1.463, so ammonia effuses 1.463 times as fast as hydrogen chloride. The same steps work for any pair in the list, and the compare table shows all eight gases against hydrogen, from chlorine at 0.1686 to hydrogen itself at 1.000.
The first benefit is getting the comparison without hand arithmetic on square roots. The ratio needs a division followed by a square root, and the masses must sit on the correct sides of the fraction, which is the step most often done backwards. The calculator keeps the masses in the right places, so the lighter gas always comes out faster, and the time ratio is the exact inverse of the rate ratio rather than a second calculation that can drift.
The second benefit is seeing all eight gases at once. The compare table shows the whole list against one reference, from hydrogen at 1.000 down to chlorine at 0.1686 against hydrogen, with the time ratio and the percentage alongside. That turns a single pair into a ranking, which is what a question usually asks for: which gas is fastest, which is slowest, and by how much.
The third benefit is the unknown-gas trick. Because the rate ratio squared gives the mass ratio, an unknown gas can be identified from how fast it effuses against a known gas: M unknown = M known divided by the rate ratio squared. An unknown gas that effuses 1.66 times as fast as carbon dioxide has a molar mass of 44.01 divided by 1.66 squared, which is 44.01 divided by 2.756, which is 15.97 g/mol, about 16.0 g/mol, which points to methane at 16.04 g/mol.
The fourth benefit is the effusion and diffusion distinction made visible. The diagram shows effusion, gas leaving through a hole, not diffusion, gas spreading through a room, and the article states plainly that Graham’s law is exact for the first and only approximate for the second. Students who learn the law as a diffusion rule often apply it where collisions dominate, and this calculator keeps the two processes separate.
Hydrogen effuses 3.984 times as fast as oxygen. Oxygen effuses at 0.2510 times the hydrogen rate, so the time ratio runs the other way: oxygen takes 3.984 times as long as hydrogen to effuse the same amount. The ratio comes from sqrt(32.00 / 2.016), which is sqrt(15.87), which is 3.984. The same pair in the other direction gives 0.2510, because the rate ratio and the time ratio are inverses of each other.
Because at the same temperature all gases have the same average kinetic energy, which is one half times mass times speed squared, so speed is proportional to one over the square root of the mass. A gas twice as heavy moves at 1 divided by sqrt(2), which is 0.7071 times the speed, not half the speed. The square root is the whole content of Graham’s law: the rate follows the molecular speed, and the speed follows the inverse square root of the molar mass.
Effusion is gas escaping through a tiny hole into a vacuum, one molecule at a time, while diffusion is gas spreading through another gas or through space in response to a concentration difference. Graham’s law gives the same ratio for both, but it is exact only for effusion of an ideal gas through a small hole. For diffusion it is only approximate, because collisions with other molecules slow the spreading and depend on the other gas present, so a measured diffusion ratio can differ from the Graham’s law prediction.
No, not when both gases are at the same temperature. Raising the temperature speeds up every gas, because the average kinetic energy rises with temperature, but it speeds up both gases by the same factor, so the factor cancels in the ratio and only the molar masses are left. That is why the calculator does not ask for a temperature. If the two gases were at different temperatures the law would not apply as written, because its derivation assumes equal average kinetic energies.
Yes. Measure how fast the unknown gas effuses against a known gas, square the rate ratio, and divide the known molar mass by it: M unknown = M known divided by (rate unknown / rate known) squared. An unknown gas that effuses 1.66 times as fast as carbon dioxide, at 44.01 g/mol, has a molar mass of 44.01 divided by 1.66 squared, which is 44.01 divided by 2.756, which is 15.97 g/mol, about 16.0 g/mol, which points to methane at 16.04 g/mol. The square makes the answer sensitive to the measured rate, so a small error in the rate gives a larger error in the mass.
This calculator compares gas effusion rates with Graham’s law, rate1 / rate2 = sqrt(M2 / M1), using the standard molar masses H2 2.016, He 4.003, CH4 16.04, NH3 17.03, N2 28.01, O2 32.00, CO2 44.01 and Cl2 70.90 g/mol, and it is for study, homework and general reference only. It assumes both gases behave ideally and effuse through the same small hole at the same temperature and pressure, so temperature and pressure cancel in the ratio, and it is exact only for effusion of an ideal gas through a small hole, not for diffusion through another gas, where collisions make the law approximate, so do not use a result from this calculator to set a batch size, a dose, or a process parameter without checking the procedure it specifies. If your course uses different molar masses or a different reference gas, use those for your coursework instead of this calculator.
Last updated: 3 December 2026
ADVERTISEMENT
ADVERTISEMENT