What Is an Airlock and How Does It Work?

An airlock is a sealed chamber with two doors that never open at the same time, allowing people or materials to pass between two environments with different pressures or contamination levels without letting air flow freely between them. It’s one of the simplest and most critical safety concepts in engineering, used everywhere from the International Space Station to submarine hulls to high-security virus labs.

How an Airlock Works

The core principle is straightforward: two airtight doors separated by a small chamber, with an interlock system that physically prevents both doors from opening simultaneously. When you enter through the first door, it seals behind you. Only then can the second door unlock. This creates a buffer zone that keeps two different environments completely isolated from each other, even while people move between them.

Most modern airlock systems use electronic interlocks: sensors on each door, magnetic locks, and a programmable controller that enforces the sequence. Smaller pass-through airlocks for transferring materials sometimes use simpler mechanical interlocks. Either way, an emergency release button is typically part of the system. The key engineering requirement is that the chamber and its doors are genuinely airtight, not just closed but sealed against pressure differences on either side.

Airlocks in Space

Space is the setting most people picture when they hear “airlock,” and for good reason. Without one, opening any door on a spacecraft would vent all breathable air into the vacuum. The Quest Airlock on the International Space Station is the primary exit point for American spacewalks. It’s an 18-foot-long, 13-foot-diameter module weighing nearly 22,000 pounds, and it consists of two compartments joined end to end.

The inner compartment, called the equipment lock, is where astronauts suit up and maintain their spacesuits. The outer compartment, the crew lock, is where the actual exit happens. Before a spacewalk, astronauts seal themselves inside the crew lock and gradually reduce the air pressure to zero over a period of 15 to 40 minutes, depending on the pre-breathing protocol they’ve followed. This slow depressurization is essential to avoid decompression sickness, the same condition scuba divers call “the bends.” Once the pressure inside matches the vacuum outside, the outer hatch opens safely, and the rest of the station stays fully pressurized.

Quest supports both American and Russian spacesuits, making it a shared gateway for international crews.

Airlocks in Submarines

Submarine airlocks solve the opposite problem from space airlocks. Instead of keeping air in against a vacuum, they manage the crushing pressure of deep water trying to get in. Escape trunks on submarines function as airlocks that allow crew members to exit a disabled vessel one small group at a time. The group enters the trunk, the inner hatch seals, and the chamber is gradually pressurized to match the ocean depth outside. Once pressure equalizes, the outer hatch opens and the crew can swim to the surface.

The critical advantage of this design is that the rest of the submarine stays at near-normal pressure while each group takes its turn. Without the airlock, the entire compartment would need to flood to equalize pressure, exposing everyone to dangerous conditions at once. At depths beyond about 150 feet, nitrogen in compressed air starts causing narcosis (a disorienting, intoxicating effect), making escape increasingly dangerous. U.S. Navy research found that replacing nitrogen with helium in breathing equipment can prevent unconsciousness at depths of 500 feet or more, which has shaped how deep-water escape systems are designed. The practical depth limit for escape using pure oxygen is around 200 feet; beyond that, helium-oxygen mixtures become necessary.

Airlocks in Biosafety Labs

The highest-security biological laboratories, classified as BSL-4, use airlocks to contain the world’s most dangerous pathogens. These labs maintain negative air pressure, meaning air constantly flows inward so that nothing airborne can escape. The airlock chambers between rooms use air-pressure-resistant doors with inflatable seals around the frame. When a door closes, a rubber bladder inflates to create a completely airtight seal. The door on the opposite side won’t unlock until that seal is confirmed.

The entry and exit process in a BSL-4 lab is far more involved than simply walking through two doors. Researchers wear positive-pressure “space” suits connected to dedicated breathing air lines. To move between rooms, they disconnect from the air line, request access through an interlock system, wait for the first door’s seal to deflate and its magnet to disengage, step through, then close that door and wait for it to reseal before the next one will open. Exiting requires passing through a chemical shower that automatically activates to disinfect both the suit and the chamber itself. Every step is designed so that at no point are the lab’s interior and the outside world connected by open air.

Airlocks vs. Anterooms

In cleanrooms, pharmaceutical facilities, and hospital environments, you’ll sometimes hear “airlock” and “anteroom” used interchangeably. They’re actually different things. A true airlock uses airtight, hard-interlocked doors and prevents any airflow between the two connected spaces. An anteroom uses pressure differences and controlled airflow to reduce contamination, but it allows some managed air movement between zones. Anterooms might use a “bubble” design (where the anteroom has higher pressure than both adjoining spaces, pushing air out in both directions) or a “sink” design (where it has lower pressure, pulling air in from both sides).

True airlocks with fully airtight assemblies are relatively rare outside of BSL-3 and BSL-4 labs, fumigation chambers, and other hazardous specialty environments. Most cleanroom “airlocks” in hospitals and manufacturing plants are technically anterooms, relying on pressure cascades and administrative controls rather than absolute airtight seals. The distinction matters in facility design and regulatory compliance, but both serve the same basic goal: keeping contaminants from crossing between spaces.

The Interlocking Principle Across All Settings

Whether the airlock sits on the outside of a space station, inside a submarine’s pressure hull, or between rooms in a virus lab, the engineering principle is identical. Two sealed doors, one chamber, and a system that guarantees only one door opens at a time. The specific hardware varies enormously. Space airlocks use vacuum-rated hatches and take up to 40 minutes to cycle. Submarine escape trunks use flood valves and pressure equalization. Biosafety airlocks use inflatable door seals and chemical showers. But every version exists because two environments need to stay separated while people still need to cross between them.