Grahams Law Of Diffusion Calculator - Gas Rate Ratio

Use this grahams law of diffusion calculator to compare two gases by molar mass or estimate an unknown molar mass from observed diffusion rates.

Updated: July 6, 2026 • Free Tool

Grahams Law Of Diffusion Calculator

Use molar masses for a predicted rate ratio, or use two measured rates to solve for gas 2 molar mass.

Molar mass of gas 1 in g/mol. The default is helium.

Molar mass of gas 2 in g/mol when comparing known gases. The default is nitrogen.

Measured or assumed rate for gas 1. Use the same unit as gas 2 rate.

Measured gas 2 rate for the unknown molar mass mode. In comparison mode this field is not used.

Choose the label used for the matching gas 2 rate output.

Results

Gas 1 / gas 2 rate ratio
0
Gas 2 matching rate 0mL/min
Gas 2 molar mass 0g/mol
Faster gas 0
Gas 2 time factor 0

What Is the Grahams Law Of Diffusion Calculator?

A grahams law of diffusion calculator compares how fast two gases diffuse or effuse when you know their molar masses or measured rates. Use it for chemistry homework, lab report checks, gas identification problems, and quick comparisons such as helium versus nitrogen or hydrogen versus oxygen. The result tells you the rate ratio, the matching rate for gas 2, the faster gas, and the time factor for equal-distance or equal-amount comparisons.

  • Compare two known gases: Enter both molar masses to calculate the gas 1 to gas 2 rate ratio and the gas 2 rate that corresponds to your gas 1 rate.
  • Estimate an unknown molar mass: Switch to rate mode when a lab problem gives two rates and the molar mass of only one gas.
  • Check which gas is faster: Use the faster-gas output to confirm the physical direction before writing the final answer.
  • Convert rate thinking into time thinking: Use the time factor when the question asks how long gas 2 takes for the same path or amount.

The grahams law of diffusion calculator is most useful when the gases are at the same temperature and pressure and the comparison is about relative speed rather than a full transport simulation. It does not require container size, pressure, or temperature because those shared conditions cancel in the ratio.

Keep the units consistent. Molar masses must be in grams per mole, and both rates must use the same rate unit. The selected rate unit is only a label on the output; the square-root relationship depends on molar mass, not on whether you measure rate in mL/min, cm/s, or a relative classroom unit.

When a formula is given but the molar mass is not, the mole molar mass calculator converts a compound formula or mass amount into the g/mol value needed here.

How the Grahams Law Of Diffusion Calculator Works

The grahams law of diffusion calculator applies the square-root relationship between gas rate and molar mass, then rearranges it when rates are the known values.

r1 / r2 = sqrt(M2 / M1); M2 = M1 x (r1 / r2)^2; r2 = r1 / (r1 / r2)
  • r1: Diffusion or effusion rate of gas 1. Use the same unit as r2.
  • r2: Diffusion or effusion rate of gas 2.
  • M1: Molar mass of gas 1 in g/mol.
  • M2: Molar mass of gas 2 in g/mol.

The rate ratio can be above or below 1. A value of 2.0000 means gas 1 moves twice as fast as gas 2. A value of 0.5000 means gas 2 moves twice as fast as gas 1.

The time factor uses the reciprocal idea. If gas 1 has the higher rate, gas 2 needs more time for the same path or the same collected amount.

Helium compared with nitrogen

M1 = 4.002602 g/mol for helium, M2 = 28.0134 g/mol for nitrogen, and r1 = 100 mL/min.

r1 / r2 = sqrt(28.0134 / 4.002602) = 2.6455, so r2 = 100 / 2.6455 = 37.80 mL/min.

Helium diffuses 2.6455 times as fast as nitrogen, and nitrogen's matching rate is 37.80 mL/min.

For the same path or equal amount, nitrogen takes 2.6455 times as long as helium under the same conditions.

Unknown gas molar mass from rates

M1 = 4.000 g/mol, r1 = 100 mL/min, and r2 = 25 mL/min.

M2 = 4.000 x (100 / 25)^2 = 64.000 g/mol.

The unknown gas has estimated molar mass 64.000 g/mol.

A gas that diffuses one quarter as fast as helium is much heavier because the rate ratio is squared when solving for molar mass.

According to OpenStax Chemistry 2e, when two gases are at the same temperature and pressure, the ratio of their effusion rates is inversely proportional to the square roots of their molar masses.

If pressure, volume, temperature, or moles are part of the same homework set, the ideal gas calculator handles the PV = nRT side before you compare diffusion rates.

Key Concepts Explained

Graham's law is short, but the interpretation is easier when the rate ratio, molar mass, and time relationship are kept separate.

Diffusion

Diffusion is the spreading of gas particles through another gas or through open space. Graham's law compares relative diffusion rates for gases under matching conditions.

Effusion

Effusion is gas escape through a small opening. The same square-root molar-mass ratio is commonly used for ideal effusion comparisons.

Molar mass

Molar mass is the mass of one mole of particles. Lighter gas particles have higher average speeds at the same temperature, so they diffuse faster.

Rate ratio

The output r1 / r2 compares gas 1 against gas 2. Values above 1 favor gas 1; values below 1 favor gas 2.

Do not compare rates by dividing molar masses directly. The square root is the important step. A gas four times heavier does not diffuse four times slower; it diffuses about two times slower in the ideal comparison.

The grahams law of diffusion calculator also reports the faster gas in words because many mistakes in homework come from reversing M1 and M2.

For a molecular-speed view of why lighter gases move faster, the RMS speed calculator shows the temperature and molar-mass relationship behind the rate comparison.

How to Use This Calculator

Use the mode selector first, then enter values with consistent units. The outputs update from the same Graham's law equation.

  1. 1 Choose the calculation mode: Use molar-mass comparison when both gases are known, or unknown molar mass mode when two rates are measured.
  2. 2 Enter gas 1 molar mass: Type the reference gas molar mass in g/mol. Helium is entered by default for a common fast-gas comparison.
  3. 3 Enter gas 2 data: For comparison mode, enter gas 2 molar mass. For unknown mode, enter gas 2 measured rate.
  4. 4 Set gas 1 rate: Use the measured rate, a classroom reference rate, or 1 for a pure relative comparison.
  5. 5 Read the ratio and words: Check the numeric ratio, matching gas 2 rate, faster gas, and time factor before copying the result into your solution.

Suppose helium travels 100 mL/min through a small opening and nitrogen is the comparison gas. Enter 4.002602 g/mol for helium, 28.0134 g/mol for nitrogen, and 100 mL/min for gas 1. The calculator returns a 2.6455 ratio, so nitrogen moves at about 37.80 mL/min and needs about 2.6455 times as long for the same amount.

When a gas mixture problem asks you to separate component pressure before rate work, the partial pressure calculator keeps the mixture setup consistent.

Benefits of Using This Calculator

The grahams law of diffusion calculator saves the square-root algebra for the parts of the problem that need judgment.

  • Keeps the ratio direction clear: The calculator labels r1 / r2 and states which gas is faster, reducing the chance of swapping numerator and denominator.
  • Handles both classroom forms: Use one mode for two known gases and the other mode for unknown molar mass from measured rates.
  • Preserves rate units: The matching gas 2 rate carries the unit label you selected, so lab notes and worksheet answers stay consistent.
  • Adds the time interpretation: The time factor translates a rate comparison into a practical statement about equal path length or equal collected amount.
  • Supports quick reason checks: If the heavier gas appears faster, the faster-gas output flags the likely setup error before you submit the answer.

Use the numeric outputs as a check on your setup, not just as final numbers. A lighter gas should have the higher rate at the same temperature. If the direction does not match that rule, revisit which gas you entered as gas 1.

For lab work, record measured rates before rounding. Rounding the rate ratio too early can noticeably change the squared molar-mass estimate.

Factors That Affect Your Results

Graham's law is a relative ideal-gas rule. It works best when the gases share the same conditions and the comparison is not dominated by equipment effects.

Same temperature

Temperature must match because the molar-mass comparison assumes both gases have the same average kinetic energy.

Same pressure setup

Large pressure differences can change measured rates, especially in a lab apparatus that is not measuring pure ideal effusion.

Correct molar masses

Use molecular molar mass for molecules such as N2 and O2, not the atomic mass of a single atom.

Comparable path or opening

The time factor assumes the gases travel the same path or pass through the same kind of opening.

  • The model is a relative comparison, not a detailed diffusion-coefficient model for liquid mixtures, membranes, crowded pores, or turbulent gas flow.
  • Very reactive gases, nonideal gases at high pressure, and gases interacting strongly with the container can depart from the simple molar-mass relationship.
  • Measured rates must come from the same experimental setup. Mixing a classroom example rate with a different apparatus rate can produce a misleading molar-mass estimate.

Default values use helium and nitrogen because they give a clear contrast between a very light monatomic gas and a common diatomic gas. You can replace them with any positive molar masses.

When the formula of a gas mixture is not a pure compound, compute or estimate a mixture molar mass first. Then use that value in the grahams law of diffusion calculator as the gas molar mass.

According to NIST Chemistry WebBook, helium has molecular weight 4.002602.

According to NIST Chemistry WebBook, nitrogen has molecular weight 28.0134.

If the same gas data also needs density, the gas density calculator connects molar mass, pressure, and temperature through the ideal gas relationship.

grahams law of diffusion calculator showing gas rate ratio and molar mass comparison
grahams law of diffusion calculator showing gas rate ratio and molar mass comparison

Frequently Asked Questions

Q: What does Graham's law calculate?

A: Graham's law calculates a relative gas diffusion or effusion rate from molar masses. It tells you how fast gas 1 moves compared with gas 2 under matching temperature and pressure. The same equation can be rearranged to estimate an unknown gas molar mass from measured rates.

Q: How do you calculate the rate ratio in Graham's law?

A: Divide the rate of gas 1 by the rate of gas 2, then set that equal to the square root of gas 2 molar mass divided by gas 1 molar mass. Written compactly, r1 / r2 = sqrt(M2 / M1).

Q: Can Graham's law be used for diffusion and effusion?

A: Yes, the same inverse square-root molar-mass relationship is commonly used for ideal diffusion and effusion comparisons. It is strongest for relative comparisons under the same conditions, especially when the apparatus and path are the same for both gases.

Q: How do you calculate unknown molar mass from diffusion rates?

A: Use the rearranged equation M2 = M1 x (r1 / r2)^2. Enter the known gas molar mass, both measured rates, and the matching rate unit. The calculator squares the rate ratio because molar mass and rate are linked through a square root.

Q: Why do lighter gases diffuse faster?

A: At the same temperature, gases have the same average kinetic energy. A lighter particle needs a higher average speed to have that energy, so it covers distance or passes through an opening faster than a heavier particle in the ideal comparison.

Q: What assumptions does Graham's law use?

A: The comparison assumes the gases are under the same temperature and pressure, use the same path or opening, and behave close to ideal gases. It does not model chemical reactions, wall adsorption, high-pressure nonideal behavior, or full diffusion-coefficient measurements.