Derivation:
Consider a gas of N molecules, each of mass m, enclosed in a cubic container of volume V=L^3. When a gas molecule collides with the wall of the container and bounces off in the opposite direction with the same speed (an elastic collision), then the momentum lost by the particle and gained by the wall is:
Then, using the idea gas law: