Loading…

Ideal Gas Law Solver

Physics Thermodynamics • Kinetic Theory of Ideal Gases

View all topics

1. Ideal Gas Law Solver

Solve \(PV=nRT\) (macroscopic) or \(PV = NkT\) (molecular). Converts between \(n\) (moles) and \(N\) (molecules) via \(N=nN_A\). Includes density \(\rho=\dfrac{PM}{RT}\) (ideal) and an optional 2nd-virial correction.

Inputs support: pi, e, sqrt(), sin, cos, exp, log. Use * for multiplication.
Inputs

Tip: You can either enter \(n\) or \(N\). If both are blank and you are not solving for \(n\) or \(N\), the solver will error. Use “Solve for” to choose the unknown.

Advanced: partial pressures (mixtures)

Dalton’s law: \(P_{\text{tot}}=\sum_i P_i\), and for ideal mixtures \(P_i=y_iP_{\text{tot}}\).

University: 2nd virial correction (optional)

Uses \(Z \approx 1 + B/V_m\) with molar volume \(V_m=V/n\). Implemented as: \(P = \dfrac{nRT}{V}\left(1 + B\dfrac{n}{V}\right)\). (Good at low/moderate densities.)

Graph + kinetic animation

PV graph supports drag-to-pan, wheel-to-zoom, and double-click/Reset view. The kinetic animation shows a small number of particles (visual only); particle speed scales with \(\sqrt{T}\).

Ready

Steps

Enter values and click Solve.

Kinetic theory animation (illustrative)

Particles in a box (speed ~ \(\sqrt{T}\))
Status: … \(v_{\mathrm{rms}}\)=…

PV graph (isotherm + state marker)

Isotherm \(P(V)\) through the solved state (ideal / optional virial)
Hover: (V,P)=… Marker: τ=1

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.