This ideal gas density calculator works out how heavy a gas is per unit of volume using a rearranged form of the ideal gas law. Starting from PV equals nRT and substituting the number of moles as mass divided by molar mass, the density of an ideal gas becomes density equals P times M divided by R times T, where P is pressure, M is molar mass, R is the universal gas constant and T is absolute temperature. You enter the pressure in pascals, the molar mass in kilograms per mole and the temperature in kelvin, and the tool returns the gas density in kilograms per cubic metre using R as 8.314 joules per mole kelvin. Chemistry and physics students, HVAC and process engineers, and anyone modelling buoyancy or ventilation use this relationship to estimate how a gas behaves under different conditions. The result makes physical sense, since density rises with pressure and molar mass and falls as temperature increases and the gas expands. To keep your answer accurate, use strict SI units, which means pascals not kilopascals, kilograms per mole not grams per mole, and kelvin not degrees Celsius, because a temperature entered in Celsius will be badly wrong. Convert Celsius to kelvin by adding 273.15 before you start. Remember that the ideal gas model is an approximation that works best for low pressures and high temperatures, well away from the point where a gas would condense, so real gases at high pressure will deviate a little. Used carefully, it gives a fast and dependable estimate for everyday conditions like ordinary air at room temperature.
Density = P M / (R T) with R = 8.314 J/mol K. Use pascals, kg/mol and kelvin. Estimate only.
The density of an ideal gas is the pressure times the molar mass divided by the gas constant times the temperature. The gas constant R is 8.314 joules per mole kelvin. Higher pressure or molar mass raises density, while higher temperature lowers it.
For air at 101325 pascals, a molar mass of 0.02897 kilograms per mole and a temperature of 298.15 kelvin, density is 101325 times 0.02897 divided by 8.314 times 298.15. That gives about 1.1842 kilograms per cubic metre.
If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.
Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.
All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.
Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.
Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.
Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.
All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.
© 2019 to 2026 Calculate.co.nz. All rights reserved.