Stack effect is the movement of air into and out of buildings, chimneys, flue gas stacks, or other containers, resulting from air buoyancy. Buoyancy occurs due to a difference in indoor-to-outdoor air density resulting from temperature and moisture differences. The result is either a positive or negative buoyancy force. The greater the thermal difference and the height of the structure, the greater the buoyancy force, and thus the stack effect. The stack effect is also referred to as the "chimney effect", and it helps drive natural ventilation, infiltration, and fires (see Kaprun disaster and King's Cross fire).
Since buildings are not totally sealed (at the very minimum, there is always a ground level entrance), the stack effect will cause air infiltration. During the heating season, the warmer indoor air rises up through the building and escapes at the top either through open windows, ventilation openings, or unintentional holes in ceilings, like ceiling fans and recessed lights. The rising warm air reduces the pressure in the base of the building, drawing cold air in through either open doors, windows, or other openings and leakage. During the cooling season, the stack effect is reversed, but is typically weaker due to lower temperature differences.
In a modern high-rise building with a well-sealed envelope, the stack effect can create significant pressure differences that must be given design consideration and may need to be addressed with mechanical ventilation. Stairwells, shafts, elevators, and the like, tend to contribute to the stack effect, while interior partitions, floors, and fire separations can mitigate it. Especially in case of fire, the stack effect needs to be controlled to prevent the spread of smoke and fire, and to maintain tenable conditions for occupants and firefighters.
The stack effect in industrial flue gas stacks is similar to that in buildings, except that it involves hot flue gases having large temperature differences with the ambient outside air. Furthermore, an industrial flue gas stack typically provides little obstruction for the flue gas along its length and is, in fact, normally optimized to enhance the stack effect to reduce fan energy requirements.