Gas has no fixed shape and no fixed volume: it spreads out to fill the space available in its container. This page’s calculator uses the ideal gas law to find a gas’s volume from its amount, temperature, and pressure, with the result reported in liters.
Formula
The ideal gas law is PV = nRT. Rearranging it to calculate volume gives V = nRT / P.
- V is gas volume in liters (L).
- n is amount of gas in moles (mol).
- R is the gas constant, 8.31446261815324 L·kPa/(mol·K).
- T is absolute temperature in kelvins (K).
- P is absolute pressure in kilopascals (kPa).
The stated value of R is the SI gas constant, 8.31446261815324 J/(mol·K), expressed in compatible units because 1 J = 1 kPa·L. The calculator assumes ideal behavior and therefore needs temperature in kelvins and absolute pressure, not a pressure measured relative to the atmosphere.
Worked Example
Use the calculator’s defaults: n = 1 mol, T = 273.15 K, and P = 101.325 kPa.
V = nRT / P
V = (1 mol × 8.31446261815324 L·kPa/(mol·K) × 273.15 K) / 101.325 kPa
V = 22.41397 L, or 22.4140 L to four decimal places.
The molar volume is V/n = 22.41397 L / 1 mol = 22.4140 L/mol. This is the ideal-gas result at 273.15 K and 101.325 kPa, commonly called standard temperature and pressure under that particular convention.
Assumptions
- The gas is treated as ideal; this is a useful approximation, not an exact description of every real gas.
- Temperature is supplied in kelvins, and pressure is absolute pressure.
- The sample is a single gas or a gas mixture whose total amount and total pressure are used.
Why Gases Have No Fixed Shape or Volume
A solid usually keeps its shape and volume because its particles remain close together in an organized or locally constrained arrangement. A liquid keeps a fairly definite volume but changes shape to match its container: its particles can move past one another while remaining close. Gas particles are much farther apart on average and move freely in all directions. They spread through the available space rather than staying in a fixed arrangement.
That particle motion explains both properties in the question. A gas has no fixed shape because it takes the shape of its container. It has no fixed volume because, if the container has more room, the gas expands to occupy it. If the container is sealed and rigid, its volume is fixed by the container—not by an inherent volume belonging to the gas. Compressing the gas into a smaller rigid space is possible because there is substantial empty space between particles.
How Pressure and Temperature Change Gas Volume
The ideal gas law makes the relationships precise. If the amount of gas and temperature stay constant, volume decreases as absolute pressure increases: doubling the pressure halves the calculated volume. This inverse relationship is often called Boyle’s law. It is a comparison between equilibrium states, not a claim that every real gas follows the relationship perfectly under every condition.
If pressure and amount stay constant, raising absolute temperature raises volume in direct proportion. Temperature must be measured from absolute zero in kelvins; Celsius values cannot be substituted directly. For example, a temperature of 0 °C is 273.15 K, not zero kelvins. At fixed volume instead, warming a sealed gas raises its pressure, provided the amount remains unchanged.
The amount of gas matters too. At the same temperature and pressure, twice as many moles occupy twice the volume in the ideal-gas model. The calculator can therefore help answer questions such as “What volume would one mole occupy at these conditions?” or “What volume corresponds to this amount at a specified pressure and temperature?” It does not identify a gas from its volume alone; additional information would be needed to determine its chemical identity.
What the Calculator Can and Cannot Tell You
The volume result is a model-based estimate. Real gas molecules have finite size and interact with each other. Those effects are often small at relatively low pressure and sufficiently high temperature, but can become important at high pressure or near a gas’s condensation point. Under those conditions, a real-gas equation of state or measured property data may be more appropriate.
Pressure conventions are a frequent source of error. The ideal gas law uses absolute pressure, measured from a vacuum. Gauge pressure is measured relative to local atmospheric pressure. To use a gauge reading, convert it to absolute pressure by adding the local atmospheric pressure, using consistent units. For instance, a gauge pressure of 0 kPa means approximately atmospheric pressure, not zero absolute pressure.
Keep units consistent, too. This calculator uses kPa, kelvins, moles, and liters. If a source gives volume in cubic meters, 1 m³ = 1,000 L; if it gives pressure in atmospheres, 1 atm = 101.325 kPa. Do not mix Celsius with kelvins or gauge pressure with absolute pressure. The displayed digits reflect arithmetic precision, not necessarily the precision of the measured inputs.
Gas Compared with Solids and Liquids
A gas’s lack of a fixed volume does not mean its particles have no volume; the particles themselves occupy space. Rather, the volume between particles is large enough that a gas can be compressed substantially compared with a liquid or solid. Liquids and solids are generally much less compressible under ordinary conditions because their particles are already close together.
A gas in an open room also spreads through the room, but the calculator describes a contained sample at a specified equilibrium pressure and temperature. In an open setting, gases can mix with other gases, move with air currents, or escape, so defining the sample’s boundaries and conditions becomes more complicated. A sealed container makes those quantities easier to specify.
Frequently Asked Questions
Does gas have a definite shape?
No. A gas takes the shape of its container because its particles move freely and spread through the available space.
Does gas have a definite volume?
No. A gas expands or contracts to occupy the space available. In a rigid, sealed container, the container fixes the gas’s volume.
Can gas be compressed?
Yes. Gas is compressible because its particles are widely spaced compared with particles in a liquid or solid. Raising pressure can reduce its volume, though real-gas behavior may matter at high pressures.
Why does a gas expand when heated?
At constant pressure, heating increases the particles’ average kinetic energy and the gas expands. The ideal gas law predicts volume proportional to absolute temperature when pressure and amount are fixed.
What is the volume of one mole of gas?
There is no single volume without specifying temperature, pressure, and the gas model. For an ideal gas at 273.15 K and 101.325 kPa, one mole occupies about 22.414 L.
Is gas volume the same as container volume?
For a gas that fills a sealed container uniformly, its occupied volume is the container’s internal volume. A sample confined to only part of a larger space, or a gas in an open environment, needs a clearly defined boundary before its volume can be stated.
Related
Formula used
in n | Amount of gas | mol | 1 | 0 in t | Temperature | K | 273.15 | 0 in p | Pressure | kPa | 101.325 | 0 out v | Gas volume | L | n * 8.31446261815324 * t / p | 4 out vm | Molar volume | L/mol | v / n | 4
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- Liters to Cubic Meters: Conversion and Examples0.001000 m³
- Normal Cubic Meter to Liters Calculator1,000.00 L
- Qt to Liters Conversion: US and Imperial Quarts0.946353 L
- Meters to Litres: Why Length Alone Is Not Enough1,000.00 L
- Meters to Liters Formula: Convert Length to Volume?1,000.000 L
- Cubic Meters per Hour to Liters per Second0.2778 L/s