Welcome to Physics Forums! I'm not exactly sure what you're describing. However, since you're working with a gas, you should use the equation of state. If you are using a ideal gas such as air, nitrogen, oxygen, or a noble gas you should use the ideal gas law (PV=nRT). You may have to use one of...