Gas Laws Calculator
Use this Gas Laws Calculator to solve Combined Gas Law, Boyle's Law, Charles's Law, Gay-Lussac's Law, Ideal Gas Law, Dalton's Law, Avogadro's Law, gas density, molar mass, and STP gas volume problems. Choose the law, select what you want to solve for, enter your values with units, and get a clear formula-based answer.
Calculate Gas Law Values
Select a gas law from the dropdown, choose the unknown variable, and calculate pressure, volume, temperature, moles, density, molar mass, or gas volume.
Combined Gas Law Calculator
Boyle's Law Calculator
Charles's Law Calculator
Gay-Lussac's Law Calculator
Ideal Gas Law Calculator
Dalton's Law of Partial Pressures
Avogadro's Law Calculator
Gas Density / Molar Mass Calculator
STP Gas Volume Converter
What Is a Gas Laws Calculator?
A Gas Laws Calculator is a chemistry tool that solves relationships between pressure, volume, temperature, and amount of gas. Gas laws are used in general chemistry, AP Chemistry, IB Chemistry, GCSE, IGCSE, A-level Chemistry, physical chemistry, environmental science, engineering, medicine, meteorology, scuba diving, balloons, compressed gas cylinders, engines, and laboratory calculations. This calculator brings the major introductory gas law equations into one place so students can choose the correct law and calculate the missing value.
Gases are useful to study because their behavior can often be modeled with simple mathematical relationships. If temperature and moles stay constant, pressure and volume are inversely related. If pressure and moles stay constant, volume and temperature are directly related. If volume and moles stay constant, pressure and temperature are directly related. If pressure, volume, temperature, and moles are all involved, the ideal gas law connects them in one equation.
This calculator includes the Combined Gas Law, Boyle's Law, Charles's Law, Gay-Lussac's Law, Ideal Gas Law, Dalton's Law of Partial Pressures, Avogadro's Law, gas density and molar mass calculations, and STP gas volume conversions. It supports pressure units such as atm, kPa, Pa, bar, mmHg, torr, and psi. It supports volume units such as liters, milliliters, cubic meters, and cubic centimeters. It supports temperature input in Kelvin, Celsius, and Fahrenheit, while internally converting all gas law temperatures to Kelvin.
The calculator is designed to be both practical and educational. It gives the final answer in the unit you selected, but it also shows base converted values, the formula used, and a step table. That makes it easier to understand why the answer is correct. Students often get gas law problems wrong because they forget to convert Celsius to Kelvin, mix pressure units, or use the wrong gas law. This tool reduces those errors by handling unit conversion and displaying the relevant equation.
The most important rule for gas law calculations is that temperature must be absolute. Celsius and Fahrenheit can be useful everyday scales, but gas law proportions require Kelvin. A gas volume cannot be directly proportional to a Celsius temperature because Celsius has an arbitrary zero point. Kelvin begins at absolute zero, making it the correct scale for gas law relationships.
How to Use This Gas Laws Calculator
Start by selecting a gas law from the dropdown. Choose Combined Gas Law when pressure, volume, and temperature change but the amount of gas stays constant. Choose Boyle's Law when temperature and moles stay constant and only pressure and volume change. Choose Charles's Law when pressure and moles stay constant and volume changes with temperature. Choose Gay-Lussac's Law when volume and moles stay constant and pressure changes with temperature.
Choose Ideal Gas Law when pressure, volume, moles, and temperature are involved in one state of a gas. This mode can solve for pressure, volume, amount of gas, or temperature. The calculator uses the gas constant internally in the form \(R=0.082057\ L\cdot atm\cdot mol^{-1}\cdot K^{-1}\), so pressure is converted to atm, volume to liters, and temperature to Kelvin before calculation.
Choose Dalton's Law when a gas mixture contains multiple gases and you want the total pressure. Dalton's Law states that total pressure equals the sum of the partial pressures. The calculator also uses the optional mole fraction to estimate the partial pressure of gas 1 from the total pressure.
Choose Avogadro's Law when volume and moles change at constant pressure and temperature. It is useful for understanding why equal volumes of gases at the same temperature and pressure contain equal numbers of particles. Choose Gas Density / Molar Mass when you want density from pressure, molar mass, and temperature, or molar mass from density, temperature, and pressure. Choose STP Gas Volume Converter when you want the common introductory chemistry conversion based on \(1\ mol\approx22.414\ L\) at standard temperature and pressure.
After selecting the law, select the value you want to solve for. Enter the other known values and choose units. The result panel displays the answer and a short explanation. The step table shows converted base values and calculation logic. For best accuracy, enter measured values with appropriate significant figures and check that your units match the problem statement.
Gas Law Formulas
The Combined Gas Law is:
Boyle's Law is:
Charles's Law is:
Gay-Lussac's Law is:
The Ideal Gas Law is:
Dalton's Law of Partial Pressures is:
Avogadro's Law is:
The gas density relationship from the ideal gas law is:
At STP, introductory chemistry often uses:
Combined Gas Law
The Combined Gas Law connects pressure, volume, and temperature when the amount of gas is constant. It is useful when a gas sample changes from one condition to another. For example, a balloon may move from a cool room to a warm outdoor environment, or a gas cylinder may experience a change in pressure and temperature. If moles do not change, the relationship \(P_1V_1/T_1=P_2V_2/T_2\) can be used.
The combined law is called “combined” because it merges Boyle's Law, Charles's Law, and Gay-Lussac's Law. If temperature is constant, it reduces to Boyle's Law. If pressure is constant, it reduces to Charles's Law. If volume is constant, it reduces to Gay-Lussac's Law. This makes it one of the most flexible equations for introductory gas law problems.
The key caution is temperature. Always use Kelvin. If the problem gives Celsius, convert by adding 273.15. If it gives Fahrenheit, convert to Kelvin using the correct two-step conversion. This calculator does those conversions internally, but understanding the reason matters: gas law proportions depend on absolute temperature.
Boyle's Law
Boyle's Law states that pressure and volume are inversely related when temperature and amount of gas are constant. If volume decreases, pressure increases. If volume increases, pressure decreases. The mathematical form is \(P_1V_1=P_2V_2\). This relationship explains why compressing a gas increases pressure and why expanding a gas lowers pressure.
A common example is a syringe with the tip sealed. When the plunger is pushed inward, the gas volume decreases and pressure rises. When the plunger is pulled outward, volume increases and pressure falls. Boyle's Law is also important in breathing, diving, gas compression, and pressure-volume relationships in physical chemistry.
Boyle's Law does not require temperature conversion because temperature is not directly entered. However, the law assumes temperature remains constant. If temperature changes significantly, use the Combined Gas Law instead.
Charles's Law
Charles's Law states that volume and absolute temperature are directly related when pressure and moles remain constant. If temperature increases, gas volume increases. If temperature decreases, gas volume decreases. The equation is \(V_1/T_1=V_2/T_2\). This relationship explains why balloons expand when warmed and shrink when cooled.
The direct relationship only works with Kelvin. Doubling the Kelvin temperature doubles the volume if pressure and moles remain constant. Doubling a Celsius value does not have the same physical meaning. For example, 20°C to 40°C is not a doubling of absolute temperature because those values correspond to 293.15 K and 313.15 K.
Gay-Lussac's Law
Gay-Lussac's Law states that pressure and absolute temperature are directly related when volume and moles remain constant. If a sealed rigid container is heated, pressure increases. If it is cooled, pressure decreases. The equation is \(P_1/T_1=P_2/T_2\).
This law is important for understanding pressurized containers. Heating a sealed gas cylinder can increase internal pressure, which is why compressed gas storage requires safety precautions. In classroom problems, Gay-Lussac's Law is used when volume is fixed and the gas cannot expand.
Ideal Gas Law
The Ideal Gas Law combines pressure, volume, moles, and temperature into one equation: \(PV=nRT\). It is one of the most widely used gas equations because it can solve for any one variable if the other three are known. In this calculator, values are internally converted to atm, liters, moles, and Kelvin so that \(R=0.082057\ L\cdot atm\cdot mol^{-1}\cdot K^{-1}\) can be used.
The Ideal Gas Law assumes ideal gas behavior. Real gases have particles with finite size and intermolecular attractions. At low pressure and high temperature, many gases behave close to ideal. At high pressure, low temperature, or near condensation, real gas deviations become more important. In advanced chemistry, equations such as van der Waals may be used for real gases.
Dalton's Law and Avogadro's Law
Dalton's Law states that the total pressure of a gas mixture equals the sum of the partial pressures of the gases. Each gas contributes to the total pressure as if it were alone in the container, assuming ideal behavior. This is useful for air composition, gas collection over water, breathing mixtures, and laboratory gas mixtures.
Avogadro's Law states that volume is directly proportional to moles when temperature and pressure remain constant. If the number of moles doubles, the volume doubles. This law supports the idea that equal volumes of gases at the same temperature and pressure contain equal numbers of particles.
Gas Density and STP Calculations
Gas density can be derived from the ideal gas law. Because density is mass divided by volume and moles connect mass to molar mass, the relationship becomes \(d=PM/(RT)\). This equation helps calculate density from molar mass or molar mass from density. It is useful for identifying gases, comparing air density, and connecting molecular mass with measurable gas properties.
STP gas volume calculations use the common approximation that one mole of an ideal gas occupies about 22.414 liters at standard temperature and pressure. This shortcut is useful for introductory chemistry, but always check the definition of STP used by your course or textbook because some standards use different reference pressure values.
Gas Laws Worked Examples
Example 1: Boyle's Law. If \(P_1=1.00\ atm\), \(V_1=2.00\ L\), and \(V_2=1.00\ L\), then:
Example 2: Charles's Law. If \(V_1=2.00\ L\), \(T_1=300\ K\), and \(T_2=375\ K\), then:
Example 3: Ideal Gas Law. If \(n=1.00\ mol\), \(T=273.15\ K\), and \(V=22.414\ L\), then:
Example 4: Dalton's Law. If three gases have partial pressures of 0.50 atm, 0.30 atm, and 0.20 atm, the total pressure is:
Common Gas Law Mistakes
The most common gas law mistake is using Celsius directly in a proportional equation. Temperature must be in Kelvin. Another common mistake is mixing units without conversion. If one pressure is in atm and another is in kPa, the calculation must convert them to a common unit. This calculator handles common unit conversions, but students should still check the logic.
A third mistake is choosing the wrong law. If pressure and volume change while temperature stays constant, use Boyle's Law. If volume and temperature change while pressure stays constant, use Charles's Law. If pressure and temperature change in a rigid container, use Gay-Lussac's Law. If pressure, volume, and temperature all change for the same amount of gas, use the Combined Gas Law. If moles are involved, use the Ideal Gas Law or Avogadro's Law.
Gas Laws Calculator FAQs
What does a Gas Laws Calculator do?
It calculates pressure, volume, temperature, moles, total pressure, gas density, molar mass, and STP volume using common gas law equations.
Which gas law should I use?
Use Boyle's Law for pressure-volume changes at constant temperature, Charles's Law for volume-temperature changes at constant pressure, Gay-Lussac's Law for pressure-temperature changes at constant volume, the Combined Gas Law when pressure, volume, and temperature change, and the Ideal Gas Law when moles are involved.
Why must temperature be in Kelvin?
Gas law proportional relationships require absolute temperature. Kelvin starts at absolute zero, so it is the correct temperature scale for gas law equations.
What is the ideal gas law?
The ideal gas law is \(PV=nRT\), where P is pressure, V is volume, n is moles, R is the gas constant, and T is temperature in Kelvin.
What is STP gas volume?
In many introductory chemistry settings, one mole of ideal gas at STP occupies approximately 22.414 liters.
Can this calculator handle Celsius and Fahrenheit?
Yes. The calculator accepts Celsius and Fahrenheit for convenience, then internally converts them to Kelvin for gas law calculations.
Are gas law calculations exact for real gases?
No. These equations are ideal or simplified models. Real gases deviate most at high pressure, low temperature, or near condensation.
Important Note
This Gas Laws Calculator is for educational chemistry learning. It is not a substitute for laboratory validation, industrial gas system design, pressure vessel safety analysis, medical gas calculations, diving safety planning, or professional engineering review.
