Boyle’s Law states that the pressure and volume of a gas are inversely proportional when temperature is constant. This principle is applied in aerosol cans.Inside an aerosol can, the gas is stored at high pressure, meaning it has a small volume. When the nozzle is pressed, the gas expands rapidly as it is released into the lower-pressure environment outside. This expansion forces the liquid product (such as deodorant, spray paint, or air freshener) out of the can in a fine mist.Since the gas and liquid inside are under pressure, shaking or heating the can increases the pressure further, which can cause the can to explode due to the gas expanding beyond safe limits