This account already has saved data. Do you want to keep this device's data, or use your account's saved data?
Appearance
Unit System
Temperature Format
Time Format
Ideal Gas Law
Pressure
0 atm
Volume
0 L
Moles
0 Mol
Temperature
0 K
Pressure
0 atm
Volume
0 L
Moles
0 Mol
Temperature
0 K
Your Recent & Past Results
Restored a past calculation.
Compare Calculations
Side-by-Side Comparison
A comparison of your calculations' results.
Downloads
Includes your inputs and results for this calculation, plus any additional calculations you've compared.
Share & Print
The link includes your inputs and results, so anyone who opens it sees this exact calculation.
Solving PV = nRT for Any One Variable
The ideal gas law relates a gas’s pressure, volume, amount, and temperature in a single
equation: PV = nRT. Enter any three of pressure, volume, moles, and temperature, and this
calculator solves for the fourth.
This relationship is one of the foundational equations of chemistry and physics, combining
Boyle’s law (pressure and volume), Charles’s law (volume and temperature), and Avogadro’s law
(volume and amount) into one formula that works for any of these variables held constant or
changing.
The Formula
PV=nRT
Where $P$ is pressure (atmospheres), $V$ is volume (liters), $n$ is the amount of gas (moles),
$T$ is absolute temperature (kelvin), and $R$ is the ideal gas constant, 0.0821 L·atm/(mol·K) in
these units. Temperature must always be in kelvin — Celsius or Fahrenheit have an arbitrary zero
point that would make the equation give the wrong answer, not just a differently labeled one.
Worked Example
At standard temperature and pressure (STP: 0°C, or 273.15 K, and 1 atm), what volume does exactly
1 mole of an ideal gas occupy?
Rearranging for volume: V=PnRT.
Plugging in: V=11×0.0821×273.15≈22.4 liters — the widely
cited “molar volume” of an ideal gas at STP.
Doubling the temperature (at the same pressure and amount) doubles the volume; doubling the
pressure (at the same temperature and amount) halves the volume.
Key Factors to Consider
The three “special case” gas laws are all this same equation with one variable held
constant. Boyle’s law (constant temperature and amount), Charles’s law (constant pressure and
amount), and Avogadro’s law (constant temperature and pressure) each describe a simplified slice
of PV = nRT — recognizing which variables are fixed in a given problem often makes it easier to
reason through than the full four-variable equation.
The gas constant R has different numeric values depending on which units you use. This
calculator uses R = 0.0821 L·atm/(mol·K), matching liters, atmospheres, and kelvin — using
different pressure or volume units (like pascals or cubic meters) requires a different value of
R, so always match the constant to the unit system actually in use.
Real gases deviate most from ideal behavior at high pressure and low temperature. Under
those conditions, the assumptions behind the ideal gas law (no molecular volume, no
intermolecular attraction) break down most noticeably — the Van der Waals equation is a common
refinement that corrects for these effects when higher precision is needed.
This equation assumes a fixed, unchanging amount of gas unless you’re solving for moles
directly. If gas is added to or removed from a system during a process, the calculation needs
to track the changing amount of gas (n) as its own variable, not treat it as constant throughout.
Common Mistakes
Entering temperature in Celsius or Fahrenheit instead of kelvin. Because these scales have
an arbitrary zero point, plugging them directly into PV = nRT gives a genuinely wrong answer,
not just a mislabeled one — always convert to kelvin first (add 273.15 to Celsius).
Mixing units that don’t match the gas constant. R = 0.0821 L·atm/(mol·K) only works with
liters, atmospheres, and kelvin — entering volume in cubic meters or pressure in pascals without
converting first, or without switching to a different value of R, produces a wrong result.
Forgetting a real gas isn’t perfectly ideal. The equation is a very good approximation at
ordinary conditions, but it can noticeably overstate accuracy at high pressure or low
temperature, where real molecular volume and intermolecular attraction start to matter.
Treating a changing amount of gas as a fixed constant. If moles of gas are added or removed
partway through a process, n needs to be tracked as its own changing variable, not assumed
constant throughout the whole calculation.
Useful to Know
Need to know how much of a solute is dissolved in a solution rather than a gas’s own
properties? The Molarity & Dilution Calculator calculator handles concentration instead.
Working from a substance’s mass rather than its moles directly? The
Molar Mass Calculator calculator converts between the two.
Curious how heating a gas (or any substance) relates to the energy involved? The
Heat Energy Calculator calculator estimates the energy needed for a given temperature
change.
Resolviendo PV = nRT para Cualquier Variable
La ley de los gases ideales relaciona la presión, el volumen, la cantidad y la temperatura de un gas en una sola ecuación: PV = nRT. Introduce tres de presión, volumen, moles y temperatura, y esta calculadora resuelve la cuarta.
Esta relación es una de las ecuaciones fundamentales de la química y la física, combinando la ley de Boyle (presión y volumen), la ley de Charles (volumen y temperatura) y la ley de Avogadro (volumen y cantidad) en una sola fórmula que funciona sin importar cuál de estas variables se mantiene constante o cambia.
La Fórmula
PV=nRT
Donde $P$ es la presión (atmósferas), $V$ es el volumen (litros), $n$ es la cantidad de gas
(moles), $T$ es la temperatura absoluta (kelvin), y $R$ es la constante de los gases ideales,
0.0821 L·atm/(mol·K) en estas unidades. La temperatura siempre debe estar en kelvin — tanto
Celsius como Fahrenheit tienen un punto cero arbitrario, lo que le daría a la ecuación una
respuesta incorrecta, no solo etiquetada de forma diferente.
Ejemplo Resuelto
A temperatura y presión estándar (STP: 0 °C, o 273.15 K, y 1 atm), ¿qué volumen ocupa exactamente 1 mol de un gas ideal?
Reorganizando para el volumen: V = nRT/P.
Sustituyendo: V = (1 × 0.0821 × 273.15) ÷ 1 ≈ 22.4 litros — el ampliamente citado “volumen molar” de un gas ideal en STP.
Duplicar la temperatura (a la misma presión y cantidad) duplica el volumen; duplicar la presión (a la misma temperatura y cantidad) reduce el volumen a la mitad.
Factores Clave a Considerar
Las tres leyes especiales de los gases son todas esta misma ecuación con una variable
mantenida constante. La ley de Boyle (temperatura y cantidad constantes), la ley de Charles
(presión y cantidad constantes) y la ley de Avogadro (temperatura y presión constantes) describen
cada una una porción simplificada de PV = nRT — reconocer qué variables están fijas en un problema
dado a menudo hace más fácil razonar que la ecuación completa de cuatro variables.
La constante de los gases R tiene valores numéricos distintos según las unidades que uses.
Esta calculadora usa R = 0.0821 L·atm/(mol·K), coincidiendo con litros, atmósferas y kelvin — usar
unidades de presión o volumen diferentes (como pascales o metros cúbicos) requiere un valor
distinto de R, así que siempre haz coincidir la constante con el sistema de unidades realmente en
uso.
Los gases reales se desvían más del comportamiento ideal a alta presión y baja temperatura.
Bajo esas condiciones, las suposiciones detrás de la ley de los gases ideales (sin volumen
molecular, sin atracción intermolecular) se rompen de forma más notable — la ecuación de Van der
Waals es un refinamiento común que corrige estos efectos cuando se necesita mayor precisión.
Esta ecuación asume una cantidad fija e inmutable de gas a menos que estés resolviendo
directamente para los moles. Si se agrega o elimina gas de un sistema durante un proceso, el
cálculo necesita rastrear la cantidad cambiante de gas (n) como su propia variable, no tratarla
como constante en todo momento.
Errores Comunes
Ingresar la temperatura en Celsius o Fahrenheit en lugar de kelvin. Como estas escalas
tienen un punto cero arbitrario, sustituirlas directamente en PV = nRT da una respuesta
realmente incorrecta, no solo etiquetada de forma diferente — siempre convierte a kelvin
primero (suma 273.15 a Celsius).
Mezclar unidades que no coinciden con la constante de los gases. R = 0.0821 L·atm/(mol·K)
solo funciona con litros, atmósferas y kelvin — ingresar el volumen en metros cúbicos o la
presión en pascales sin convertir primero, o sin cambiar a un valor diferente de R, produce un
resultado incorrecto.
Olvidar que un gas real no es perfectamente ideal. La ecuación es una muy buena aproximación
en condiciones normales, pero puede sobreestimar notablemente la precisión a alta presión o
baja temperatura, donde el volumen molecular real y la atracción intermolecular empiezan a
importar.
Tratar una cantidad cambiante de gas como una constante fija. Si se agregan o eliminan moles
de gas a mitad de un proceso, n debe rastrearse como su propia variable cambiante, no asumirse
constante durante todo el cálculo.
Bueno Saber
¿Necesitas saber cuánto soluto está disuelto en una solución en lugar de las propiedades de un
gas? La Calculadora de Molaridad y Dilución maneja la concentración en su lugar.
¿Trabajas a partir de la masa de una sustancia en lugar de sus moles directamente? La
Calculadora de Masa Molar convierte entre ambas.
¿Tienes curiosidad por saber cómo se relaciona calentar un gas (o cualquier sustancia) con la
energía involucrada? La Calculadora de Energía Térmica estima la energía necesaria para un
cambio de temperatura dado.
PV = nRT relates a gas’s pressure (P), volume (V), amount in moles (n), and absolute temperature (T), tied together by the gas constant R. Knowing any three of the four lets you solve for the fourth.
Why does temperature have to be in kelvin?
The ideal gas law only holds true on an absolute temperature scale, where zero really means zero molecular motion. Celsius or Fahrenheit both have an arbitrary zero point, which would make the math wrong, not just differently labeled -- always convert to kelvin first (add 273.15 to Celsius).
How accurate is the ideal gas law for a real gas?
It’s a very good approximation for most gases at ordinary temperatures and pressures, but it assumes gas particles have no volume and no attraction to each other. Real gases deviate from this at very high pressure or very low temperature, where more advanced equations of state are needed.
We use cookies for analytics and ads to help support this free site. You can accept all, or decline and we'll only use what's needed for the site to work.