Thermodynamics
Ideal gas law - formula in LaTeX
The equation of state of an ideal gas. Temperature must be in kelvins, not degrees Celsius: that is the most common mistake in calculations. The notation itself needs no commands at all, just five letters in math mode.
LaTeX code
$$
pV = nRT
$$Got this formula in your notes or on a whiteboard? Snap a photo and CamteX turns it into LaTeX. Try it free
What the symbols mean
- pressure (Pa)
- volume (m³)
- amount of gas (mol)
- gas constant, 8.314 J/(mol·K)
- absolute temperature (K)
A thermodynamics formula - useful for gas processes, heat balances and physical chemistry.
Worked example
Two moles of gas in a 50 litre cylinder at 27 °C. Temperature goes in as kelvin, 300 K, and the compound unit J/(mol·K) is written in a single \mathrm, parentheses included.
How to use this formula in LaTeX?
- Copy the code with the button above -
$$…$$is centered display math. - Paste it into the CamteX editor, Overleaf or any LaTeX document.
- Inside a sentence, use single
$…$instead of double. - The formula works without extra packages.
Related formulas - Thermodynamics
Drawing formulas is faster than typing them.
Draw a formula, table or chart - CamteX AI turns it into ready LaTeX and inserts it into your document.