Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

Gases. Fundamental laws and general equation

10/03/2026

The online gas simulations on this page will help you to better understand how gases behave and which are the main laws that help us to understand that behavior. We will discover what ideal gases or perfect gases are, what laws govern them, and what the gas equation is.

What are gases

A gas is a state of matter characterized by having no defined shape or volume, adapting completely to the container that holds it. Its particles are widely separated from each other and move freely and quickly, allowing them to expand and compress easily. These properties make the study of gases fundamental to understanding physical and chemical phenomena in fields as diverse as industry, meteorology, and everyday life.

Ideal gases or perfect gases

An ideal gas, also called a perfect gas, is a theoretical model that describes the behavior of a gas assuming that its particles are point-like, do not interact with each other except in elastic collisions, and move randomly. Although no real gas exactly meets these conditions, many gases come quite close to this model under conditions of low pressure and high temperature. The concept of a perfect gas simplifies the study of its properties and allows laws to be formulated that accurately predict its behavior in a large number of situations.

Gas laws

Gas laws describe the mathematical relationships between variables such as pressure, volume, and temperature of a gas. Based on experimental observations made by scientists such as Boyle, Charles, and Gay-Lussac, principles were established that allow us to predict the behavior of gases under different conditions. These laws are essential for understanding everything from how a hot air balloon works to complex industrial processes, and they form the basis of the general equation of ideal gases.

Boyle-Mariotte’s law

The Boyle-Mariotte’s law states that, at constant temperature, the volume of a gas is inversely proportional to its pressure. That is, if the pressure increases, the volume decreases, and vice versa.

Charles’s law

Charles’ law states that, at constant pressure, the volume of a gas is directly proportional to its absolute temperature. This means that if the temperature of a gas is increased, its volume will also increase.

Gay-Lussac’s law

Gay-Lussac’s law states that, at constant volume, the pressure of a gas is directly proportional to its absolute temperature. That is, if the temperature of a gas is increased, its pressure will also increase.

General equation of ideal gases

The general equation of ideal gases is a formula that unifies the classical laws of gases into a single mathematical expression. This equation relates the pressure, volume, temperature, and amount of substance of a gas using the formula

P = nRT

where

P is pressure,

V is volume,

n is the number of moles,

R is the universal gas constant, and

T is absolute temperature

This relationship allows us to predict the behavior of ideal gases under different conditions and is fundamental to numerous calculations in chemistry and physics.

Other gas laws

In addition to these laws, there are others that explain the behavior of gases, such as Dalton’s law, Avogadro’s law, and Graham’s law.

Dalton’s law (law of partial pressures)

Dalton’s law states that in a mixture of non-reacting gases, the total pressure is equal to the sum of the partial pressures of each gas. Each gas exerts pressure as if it were alone in the container, which allows individual pressures in mixtures to be calculated.

Avogadro’s law

Avogadro’s law states that equal volumes of gases, under the same conditions of temperature and pressure, contain the same number of particles or molecules. This underpins the concept of the mole and allows the quantity of a substance to be related to its volume.

Graham’s Law

Graham’s law describes that the diffusion or effusion velocity of a gas is inversely proportional to the square root of its molar mass. This explains why lighter gases disperse faster than heavier gases.

Importance of ideal gases

The study of gases and their laws is fundamental in different areas of science and technology, such as chemistry, physics, engineering, and medicine. Not only does it help us understand the behavior of gases under ideal conditions, but it also serves as a starting point for analyzing real gases and their deviations from the theoretical model. These principles are fundamental in chemistry, physics, and engineering, and form the basis for applications ranging from the design of engines and refrigeration systems to weather forecasting and space exploration.

Explore the exciting STEM world with our free, online, simulations and accompanying companion courses! With them you’ll be able to experience and learn hands-on. Take this opportunity to immerse yourself in virtual experiences while advancing your education – awaken your scientific curiosity and discover all that the STEM world has to offer!

Gas simulations

Kinetic theory of gases


The kinetic theory of gases is a model that describes the behavior of gases at the microscopic level. It explains their macroscopic properties, such as pressure, temperature and volume, from the motion and collisions of their molecules. Observe what happens in this simulation by increasing the agitation of the molecules and increasing their collisions.






Introduction and gas laws


Pump gas molecules into a box and discover what happens as you change the volume, add or remove heat, etc.
Licencia de Creative Commons

Boyle-Mariotte’s Law


This simulation shows the application of Boyle-Mariotte’s law. Change the pressure applied to the gas and observe how its volume changes.






Charles’ Law


This simulation shows the application of Charles’ law. Change the temperature applied to the gas by moving it to the left and right and observe how its volume changes.






Boyle-Mariotte’s Law


Explicación de la Ley de Boyle-Mariotte por teoría cinética. ¿Qué le sucede a la presión cuando se aumenta el volumen?


Gay-Lussac’s Law


Explanation of Gay-Lussac’s Law by kinetic theory. Explains why light molecules move faster than heavy molecules.


Charles’ Law


Explanation of Charles’ law by kinetic theory. Does the pressure remain constant in this example?


To learn and experience

Take your knowledge to the next level with science kits and hands-on tools that connect theory with experimentation

“If I have seen further, it is by standing on the shoulders of giants”

Isaac Newton

Your path to becoming a giant of knowledge begins with these top free courses
Your path to becoming a giant of knowledge begins with these top free courses

Test your knowledge

These laws explain how a gas responds when one of its variables is held constant. Boyle’s law shows that pressure and volume are inversely related; Charles’s law states that volume increases with temperature; and Gay‑Lussac’s law indicates that pressure rises when temperature increases at constant volume. Together, they form a coherent framework that predicts how gases behave under changing conditions. These relationships are fundamental for understanding real‑world systems such as pistons, balloons, atmospheric processes, and any situation where gases expand, compress, or heat up.
The ideal gas law unifies the individual laws into a single expression that links pressure, volume, temperature, and the amount of gas. It provides a simple and powerful way to describe gas behavior in most everyday conditions, especially at low pressures and moderate temperatures. However, when gas particles are very close together—such as at high pressures or very low temperatures—intermolecular forces become significant, and the ideal model no longer matches reality. In those cases, more advanced models are needed to describe the behavior of real gases accurately.
Yes, it makes perfect sense. When you compress a gas, the particles have less room to move, so they collide with the container walls more frequently. Those collisions are what create pressure. Reducing the volume forces the particles into a smaller space, increasing the intensity of their impacts. That’s why air pumps, compressors, and even bicycle tires show such a noticeable rise in pressure when the gas is squeezed.
Not necessarily. If the gas is free to expand, the particles move faster as the temperature increases, but instead of raising the pressure, the gas simply spreads out and occupies more space. In this situation, the pressure can remain nearly constant. This is the same principle that explains why warm air rises: it expands, becomes less dense, and moves upward without a significant increase in pressure.
Because under most everyday conditions, gas particles are far enough apart that their interactions are minimal. In those situations, real gases behave almost exactly like ideal ones. Only when the particles get very close—such as in high‑pressure cylinders or near condensation—do noticeable deviations appear. For typical laboratory and daily applications, the gas laws are an excellent approximation.

You may also be interested

Innovative
Cargando clima y ubicación...

You may also be interested

Innovative