Avogadro's Law Calculator
This solver works with Avogadro's Law, V1 / n1 = V2 / n2, which says a gas's volume is proportional to its amount in moles when temperature and pressure hold steady. Enter any three of the four quantities, choose which one is unknown, and the tool returns the fourth. Because only the ratio matters, volumes can be in any unit you like, and every step runs locally in your browser.
How to use the Avogadro's Law calculator
- Choose the unknown from the Solve for dropdown (V1, n1, V2, or n2).
- The row you selected greys out and is marked (unknown); leave it blank.
- Type the other three values, using moles for n1 and n2 and any consistent unit for the volumes.
- Read the four-cell result grid, where the solved quantity is highlighted.
- Use Copy to save V1, n1, V2, and n2 as labeled text.
Examples
Solve for the final volume
Solve for V2, V1 = 10, n1 = 2, n2 = 4
V2 = 20
Solve for the final moles
Solve for n2, V1 = 8, n1 = 2, V2 = 20
n2 = 5
Solve for the initial volume
Solve for V1, n1 = 2, V2 = 20, n2 = 4
V1 = 10
Frequently asked questions
What is Avogadro's Law?
At fixed temperature and pressure, the volume of a gas is directly proportional to the number of moles present, written V1 / n1 = V2 / n2. Doubling the moles doubles the volume, which is why inflating a balloon adds both gas and size together.
Which units should I enter?
Amounts n1 and n2 are in moles. Volumes can be in litres, millilitres, cubic metres, or anything else, as long as V1 and V2 use the same unit, because the law depends only on the ratio.
Do temperature and pressure have to stay the same?
Yes. Avogadro's Law is valid only when temperature and pressure are held constant. If either changes between the two states, switch to the combined gas law or the ideal gas law, which include those variables.
How many values do I need?
Exactly three of V1, n1, V2, and n2. The Solve for dropdown blanks the fourth; if you also clear one of the others, the calculator reports that it needs exactly three inputs.
Why does it reject zero or negative numbers?
A real gas sample has a positive volume and a positive number of moles, so every entered value must be greater than zero. Zero or negative entries trigger an error instead of an unphysical answer.
Does it tell me the actual molecule count?
No. It compares two states as a ratio and returns the missing volume or mole figure, not an absolute particle count. To turn moles into molecules, multiply by Avogadro's number, about 6.022 x 10^23.
How is this different from the ideal gas law?
The ideal gas law PV = nRT ties pressure, volume, moles, and temperature together at once. Avogadro's Law is the special slice of it where pressure and temperature are frozen, leaving just volume and moles in proportion.
Can I use it for a reaction's gas volumes?
Yes. For gases at the same temperature and pressure the mole ratio equals the volume ratio, so reacting-gas volumes follow the same proportion. This is the basis of the law of combining volumes.
Is my input sent to a server?
No. The solver runs entirely in your browser with JavaScript, so the numbers you enter are never transmitted or stored elsewhere.
Learn more
- Moles, Molar Volume, and Gas Proportions
How Avogadro's Law links moles to volume, why 22.4 litres per mole appears at STP, and where the proportion breaks down.
Related tools
Boyle's Law Calculator
Solve Boyle's Law P1V1 = P2V2 for the missing pressure or volume at constant temperature. Enter any three values in any consistent units and get the fourth.
Combined Gas Law Calculator
Solve the combined gas law P1V1/T1 = P2V2/T2 for any missing value. Enter five of the six, set Kelvin or Celsius, and get the sixth instantly.
Ideal Gas Law Calculator
Solve the ideal gas law PV = nRT for pressure, volume, moles or temperature. Enter any three values, pick your units in atm, kPa, L, m3, K or C.
Mole Calculator
Convert between moles, mass and particles. Enter mass and molar mass, or moles, or a particle count, and get the rest using Avogadro's number.
555 Timer Calculator
Calculate 555 timer astable frequency, period, high and low times and duty cycle from R1, R2 and the timing capacitor. Free oscillator design helper.
Absolute Humidity Calculator
Calculate absolute humidity in grams of water vapor per cubic meter from air temperature and relative humidity. Fast, free and works in your browser.