The ideal gas law is very accurate for an $N_2$ gas when the temperature is around 300K and the pressure is around 1atm. At these conditions, $N_2$'s compressibility factor is 0.997, which means that for fixed temperature (around 300K) and fixed pressure (around 1atm), we have $$P_{\text{real}}=0.997 \cdot P_{ideal}$$ i.e., the error is 0.03%. This seems very weird to me. Here is why:
The derivation of the ideal gas law assumes spherical molecules, while a diatomic molecule like $N_2$ is not spherical. Furthermore, at room temperature the rotational mode is active, and by equipartition theorem, the average rotational energy is of the same order as the translational (the exact ratio is 2/3). It is intuitive that for fixed temperature and volume, this additional kinetic energy (due to rotation) should affect the pressure: an $N_2$ molecule bounces on the wall of the container due to its translational kinetic energy and also "slaps" the wall due to its rotational. This sounds hand-wavy, so I tested it with a simple two-dimensional model, where the molecule is a weightless rod with identical point-particles at its ends. Suppose this rod is approaching a wall with velocity $v$ while rotating with angular velocity $\omega$, such that the translational and rotational kinetic energies are equal. I simulated this model (the angle of contact at collision is assigned randomly) and found my intuition correct: after the collision, the new translational velocity has (on average) magnitude significantly larger than $|v|$: around 10% increase! This toy model indicates, that for the conditions I mentioned in the beginning, $N_2$'s compressibility factor should be significantly higher than $1$.
I understand that there are more factors at play (like intermolecular forces), but this even adds to the surprise that the ideal gas law is so accurate for $N_2$!