# Why do we use external pressure to calculate work done by a gas in case of compression instead of using internal pressure? [closed]

According to formula work done is (Resisting pressure X dV)? Then in case of compression, isn't the resisting force is internal Pressure? Then why we the formula for compression is same as expansion which is (External Pressure X dV)?