Ideell gasslovkalkulator
Løs PV = nRT for enhver variabel, når du velger trykk, volum og temperatur.
Resultatene blir oppdaterte mens du skriver.
Om denne kalkulatoren
The ideal gas law ties together the four state variables of a gas in one equation, PV = nRT: pressure times volume equals the number of moles times the gas constant times the absolute temperature. The constant R = 8.314462618 J/(mol·K) in SI units. Rearranged, you can solve for any variable — P = nRT/V, V = nRT/P, n = PV/RT or T = PV/nR — and this calculator does exactly that, converting pressure (Pa, kPa, bar, atm, mmHg, psi), volume (m³, L, mL, cm³) and temperature (K, °C, °F) internally so you can work in whatever units you have.
The classic worked example is one mole of gas at standard temperature and pressure: at 0 °C (273.15 K) and 1 atm, V = nRT/P = 1 × 8.314 × 273.15 / 101,325 ≈ 0.0224 m³, or the familiar 22.4 litres per mole. Heat that gas to 300 K at constant pressure and the volume rises in proportion, since V ∝ T. A crucial detail: temperature must be absolute — always convert °C or °F to kelvin (add 273.15 to °C) before the math, which the calculator handles for you.
The law is called "ideal" because it assumes gas molecules have no volume and do not attract one another. Real gases follow it closely at ordinary pressures and temperatures well above their boiling point, and it is the everyday tool for scuba and diving gas calculations, chemistry stoichiometry of gases, HVAC and pneumatics, and estimating how a balloon or tyre responds to heating and cooling. It becomes less accurate at very high pressure or near condensation, where equations like van der Waals do better.
Ofte stilte spørsmål
Hva er den ideelle gassloven?
PV = nRT forbinder trykk, volum, mol og temperatur for en ideell gass gjennom konstanten R = 8,314 J/(mol·K). Omordne den for å løse en enkelt variabel.
Hva er de riktige enhetene?
Internally everything is SI — pascals, cubic metres, moles and kelvin — with R = 8.314. One mole of gas at 0 °C (273.15 K) and 1 atm occupies about 22.4 L (0.0224 m³). Enter any units you like; the calculator converts for you.
Hvorfor må temperaturen være i Kelvin?
PV = nRT bruker absolutt temperatur, der 0 K er absolutt null. Celsius og Fahrenheit har vilkårlige nuller, så kobling i °C gir direkte feil svar. Legg til 273.15 til °C for å få Kelvin – kalkulatoren gjør dette automatisk.
Hva er STP og molar volum?
Standard temperature and pressure is commonly 0 °C and 1 atm, at which one mole of an ideal gas occupies about 22.4 litres. This "molar volume" is a handy check: if your result for one mole near those conditions is far from 22.4 L, recheck the units.
Når brytes den ideelle gassloven ned?
Den er veldig nøyaktig ved moderat trykk og temperaturer godt over kokepunktet, men vokser unøyaktig ved høyt trykk eller nær kondensering, der molekylvolum og attraktioner materie. Real-gass ligninger som van der Waals håndterer disse.
Hvordan påvirker det å endre en variabel de andre?
Ved faste mol er trykk og volum omvendt beslektet (Boyles lov), mens volum og absolutt temperatur er direkte beslektet (Charles’ lov). Varme en forseglet stiv beholder og trykket stiger i forhold til kelvintemperaturen.
Hvilken verdi av R skal jeg bruke?
It depends on units. In SI it is 8.314 J/(mol·K); in litre-atmospheres it is 0.08206 L·atm/(mol·K). This calculator works in SI internally with R = 8.314, so you can enter any units and it reconciles them.
API — bruk denne kalkulatoren fra kode
Kall denne kalkulatoren som et fritt JSON- endepunkt – ikke nødvendig. Send feltverdiene nedenfor som spørreparametre eller JSON. Alt du utelater bruker samme standard denne siden er fylt med. En ukjent parameter er en 400, aldri en stille null. Les alle API- doc- er →
Endepunkt
GET https://calculator.free/api/v1/ideal-gas-law/
curl
curl "https://calculator.free/api/v1/ideal-gas-law/?solve=volume&pressure=1&pressure_unit=atm&volume=22.4&volume_unit=l&moles=1&temperature=273.15&temperature_unit=k"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/ideal-gas-law/?" + new URLSearchParams({
"solve": "volume",
"pressure": "1",
"pressure_unit": "atm",
"volume": "22.4",
"volume_unit": "l",
"moles": "1",
"temperature": "273.15",
"temperature_unit": "k"
}));
const data = await r.json();
console.log(data.results);
Resultatene er estimater bare for generell veiledning, ikke finansiell, medisinsk eller skattemessig rådgivning.