Your sleep doctor said you need a CPAP or BiPAP machine. Maybe you've been using one for months. You know it blows air into your nose (or mouth) while you sleep. But have you ever wondered why that actually works? Why does pushing air into your face prevent your airway from collapsing?
Understanding the mechanics behind PAP therapy isn't just academic. It helps you make sense of your settings, have better conversations with your sleep physician, and understand why some people need CPAP while others need BiPAP with pressure support. This guide explains everything from first principles, with diagrams, analogies, and zero assumed knowledge.
Your Airway Is a Flexible Tube
Let's start with anatomy. When you breathe, air travels from your nose or mouth, through the back of your throat (the pharynx), and down into your lungs via the trachea (windpipe).
Here's the critical thing: your trachea is a rigid tube, reinforced with C-shaped cartilage rings. It holds its shape no matter what. But the pharynx above it? That's a flexible, collapsible tube made of soft tissue and muscle. When you're awake, your throat muscles actively hold this tube open. During sleep, especially during REM sleep, that muscle tone drops significantly. The tube becomes floppy, like a wet paper towel roll.
For people with obstructive sleep apnoea or upper airway resistance syndrome, this floppy section of the airway narrows or collapses during sleep, partially or completely blocking airflow. That's the entire problem PAP therapy is designed to solve.
Cross-section of the pharynx. The orange ring represents surrounding soft tissue. Left: muscles hold the airway open while awake. Centre: during sleep, gravity and relaxed muscles collapse the flexible tube. Right: PAP pressure inflates the airway from inside, like a balloon.
The Suction Problem: Why Breathing In Is the Dangerous Part
Here's something most people don't realise: breathing in is what makes your airway collapse, not breathing out. When you inhale, your diaphragm (the big muscle below your lungs) contracts and pulls downward. This creates negative pressure inside your chest, like pulling back a syringe plunger. That suction is what draws air in through your nose and down into your lungs.
The problem? That same suction also pulls on the walls of your pharynx. Remember, the pharynx is a flexible tube. Negative pressure inside a flexible tube makes it want to collapse inward, just like sucking too hard on a paper straw.
The paper straw analogy
Take a rigid plastic straw and suck through it. The straw holds its shape and air flows freely. Now try sucking through a thin paper straw, or a piece of cooked spaghetti. The harder you suck, the more it collapses. That's exactly what happens to a floppy pharynx during inspiration: more effort = more collapse = less airflow. In respiratory medicine, this paradox is called Negative Effort Dependence (NED), and it's one of the hallmarks of an obstructed airway.
It gets worse. As the airway narrows, air has to flow faster through the remaining opening (think of putting your thumb over a garden hose). Faster airflow through a narrow passage creates even lower pressure on the walls, a phenomenon called the Bernoulli effect. This creates a vicious cycle: narrowing leads to faster flow, which leads to lower pressure on the walls, which leads to more narrowing. Left unchecked, this cascade ends in full airway collapse, an apnoea.
This is why snoring tends to get louder before an apnoea event. The vibrating tissue is narrowing, airflow is speeding up, and the physics of the situation are pulling toward total collapse.
EPAP: Inflating the Tent from Inside
EPAP stands for Expiratory Positive Airway Pressure. It is the baseline pressure that your machine maintains at all times, including during exhalation. On a CPAP machine, EPAP and CPAP are effectively the same thing (there is only one pressure). On a BiPAP machine, EPAP is the lower of the two pressure settings.
EPAP is the foundation of PAP therapy. Its job is deceptively simple: keep positive pressure inside the airway at all times, so the airway never has the chance to collapse. Think of it as a pneumatic splint, like inflating a tent from inside. The fabric might be floppy on its own, but with positive pressure inside, it holds its shape even against wind and gravity.
Red arrows show forces trying to collapse the airway (gravity, tissue weight, inspiratory suction). Blue arrows show EPAP pushing outward from inside. As long as the outward force exceeds the inward forces, the airway stays open.
The crucial point: EPAP doesn't just help during exhalation. It provides continuous positive pressure that counteracts all the forces trying to collapse your airway. Without it, every single breath you take during sleep is a battle between your inspiratory muscles (pulling inward) and the structural integrity of your pharynx (trying to stay open). EPAP changes the equation by adding outward pressure from inside the tube.
The key insight
EPAP doesn't push air into your lungs. That's not its job. Its job is to keep the airway tube open so that when you breathe in, air can actually flow through an unobstructed passage. It's a splint, not a ventilator. This distinction matters when we get to pressure support.
CPAP: One Pressure for Everything
CPAP stands for Continuous Positive Airway Pressure. The word "continuous" tells you everything: one pressure level, maintained continuously during both inhalation and exhalation. If your CPAP is set to 12 cmH2O, you get 12 cmH2O whether you're breathing in or breathing out.
For most people with obstructive sleep apnoea, this is all that's needed. The continuous pressure splints the airway open, preventing collapse. You breathe normally against a pressurised airway. Your inspiratory muscles still do the work of pulling air in, but now they're pulling air through an open tube instead of fighting a collapsing one.
The tradeoff? You're also exhaling against that same pressure. Many people describe it as "breathing out against a wall." This is uncomfortable for some, which is why most CPAP machines offer a comfort feature:
EPR (Expiratory Pressure Relief)
EPR is a ResMed feature (other brands call it A-Flex, C-Flex, or simply expiratory relief). It temporarily drops the pressure by 1, 2, or 3 cmH2O during exhalation, making it easier to breathe out. EPR 3 on a CPAP set to 12 means you get 12 cmH2O on inhalation but only 9 cmH2O on exhalation. This makes CPAP more comfortable, but the lower expiratory pressure can sometimes allow airway narrowing. If you see significant flow limitation in your data, reducing EPR is often the first thing a sleep physician will suggest.
When One Pressure Isn't Enough
CPAP works well for many people, but not everyone. Some patients need something more, and the reasons usually fall into a few categories:
- Persistent flow limitation: Even with CPAP pressure high enough to prevent apnoeas, the airway can still narrow partially. This flow limitation means you're getting air through, but not as much as your body needs with each breath. Increasing the CPAP pressure doesn't always fix this because higher pressure during exhalation makes it harder to breathe out.
- High work of breathing: Some patients have to work very hard to pull air in against the continuous pressure and through a partially narrowed airway. Their respiratory muscles fatigue, and they hypoventilate, moving less air with each breath than they should.
- Neuromuscular or chest wall issues: Conditions like obesity hypoventilation, COPD, or neuromuscular diseases can reduce the strength of the breathing muscles themselves. These patients need active assistance with ventilation, not just a splint.
- Comfort intolerance: Some people simply cannot tolerate exhaling against high pressure. They need a lower expiratory pressure (EPAP) but still need high inspiratory pressure to keep the airway open and move enough air.
For all of these situations, the answer is the same: use two different pressures. A lower pressure during exhalation (to keep the airway splinted and make exhaling comfortable) and a higher pressure during inhalation (to push extra air through and support ventilation). That's BiPAP.
BiPAP: Two Pressures, One Goal
BiPAP (Bilevel Positive Airway Pressure) delivers two distinct pressure levels that alternate with your breathing:
EPAP (Expiratory)
The lower pressure, active during exhalation. This is your airway splint. It keeps the pharynx open at all times, exactly like CPAP does. EPAP is the baseline your therapy is built on.
IPAP (Inspiratory)
The higher pressure, active during inhalation. When the machine detects you're starting to breathe in, it ramps up to IPAP. This higher pressure actively pushes air into your lungs, augmenting your own breathing effort.
The machine continuously monitors your airflow. When it detects the start of inspiration (you begin breathing in), it swings up to IPAP. When it detects expiration (you start breathing out), it drops back to EPAP. This happens automatically with every breath, typically 12-20 times per minute.
Top: CPAP delivers a constant 12 cmH2O regardless of breath phase. Bottom: BiPAP oscillates between EPAP (8 cmH2O during exhalation) and IPAP (16 cmH2O during inhalation). The difference between them is Pressure Support (PS = 8). The purple line shows the actual pressure delivered to the patient over time.
Notice the key difference: with CPAP, you breathe in and out against the same pressure. With BiPAP, the machine works with your breathing rhythm. Lower pressure when you breathe out (easier exhalation, but the airway stays splinted), higher pressure when you breathe in (actively assisting your inhalation).
Pressure Support: The Push That Moves Air
Pressure Support (PS) is the difference between IPAP and EPAP. If your IPAP is 16 and your EPAP is 8, your PS is 8 cmH2O. This number is arguably the most important setting on a BiPAP machine, because it determines how much the machine actively helps you breathe.
Remember our earlier distinction: EPAP is a splint, it holds the airway open. PS is a ventilatory assist. It actively pushes extra air volume into your lungs during each breath. Here's what that means in practice:
It augments tidal volume
Tidal volume is the amount of air you move with each breath. Without PS, you rely entirely on your respiratory muscles to pull air in. With PS, the machine actively pushes a burst of extra air during inhalation. More air per breath = better gas exchange = more oxygen delivered and more CO2 removed.
It reduces work of breathing
On CPAP, your diaphragm does all the work of inhalation, essentially pulling air in against the machine's pressure. With PS, the machine shares the load. Your muscles still initiate the breath, but the pressure boost does part of the heavy lifting. Less work = less muscle fatigue = more sustainable breathing overnight.
It pushes through flow limitation
When the airway is partially narrowed (flow-limited), air has difficulty getting through. The higher IPAP pressure during inhalation creates a bigger pressure gradient, physically pushing more air through the narrowed passage. Think of it like turning up the water pressure when a hose has a kink, more pressure = more flow through the restriction.
It stays ahead of the negative pressure
Remember the suction problem? When you inhale, you create negative pressure that wants to collapse the airway. IPAP delivers a burst of positive pressure right when that collapse tendency is highest, essentially "getting ahead" of the negative pressure. Instead of your muscles fighting to suck air through a collapsing tube, the machine pushes air through before collapse can take hold.
Left: breathing on CPAP, your respiratory muscles do all the work. Right: with pressure support, the machine pushes extra air during inhalation (green area), increasing tidal volume. The dashed blue line shows the CPAP-equivalent breath for comparison. More volume per breath means better ventilation.
The two-job summary
EPAP holds the door open. Pressure Support pushes you through it. EPAP prevents collapse, PS ensures adequate ventilation. On CPAP, one pressure tries to do both jobs. On BiPAP, each job gets its own optimised pressure. That's why BiPAP can be more effective for complex cases.
The Complete Breath Cycle on BiPAP
Here's what happens during a single breath cycle on a BiPAP machine, step by step:
Resting at EPAP
Between breaths, the machine maintains EPAP. The airway is splinted open at baseline pressure. You're in the exhalation phase of the previous breath, air flows out of your lungs easily because you're exhaling against the lower pressure.
Inspiration detected
Your diaphragm contracts, starting inhalation. The machine detects this by sensing a change in airflow direction or a small drop in circuit pressure. Within milliseconds, it begins ramping up to IPAP.
IPAP delivered
The machine reaches IPAP. The higher pressure does two things simultaneously: it maintains the airway splint (since IPAP is even higher than EPAP, the airway is held open even more firmly), and it creates a pressure gradient that pushes air into your lungs. Your respiratory muscles and the machine are now working together to move air in.
Peak inspiration
Your lungs fill with the augmented tidal volume. Because IPAP is pushing air through, you get more volume per breath than you would on CPAP alone. For someone with flow limitation, the higher pressure forces more air through the narrowed section of the airway.
Expiration begins
Your inspiratory muscles relax. The machine detects the start of exhalation and drops back to EPAP. The lower expiratory pressure makes it easy to breathe out, your lungs naturally recoil and push air out against the relatively gentle EPAP. The airway stays splinted open throughout.
Cycle repeats
The machine returns to EPAP and waits for your next inspiration. This entire cycle happens 12-20 times per minute, all night long, perfectly synchronised with your natural breathing rhythm.
What Your Settings Actually Mean
Now that you understand the mechanics, here's a quick reference for the settings you'll see on your machine or in your data:
CPAP Pressure
The single pressure setting on a CPAP machine. Measured in cmH2O (centimetres of water pressure). Typical range: 4-20 cmH2O. This is both your splint pressure and the pressure you breathe against.
EPAP
Expiratory pressure on a BiPAP. Your airway splint. Set high enough to prevent collapse but low enough to exhale comfortably. Typical range: 4-15 cmH2O.
IPAP
Inspiratory pressure on a BiPAP. Always higher than EPAP. The difference (PS) determines how much ventilatory assistance you get. Typical range: 8-25 cmH2O.
PS (Pressure Support)
IPAP minus EPAP. The "boost" during inhalation. Higher PS = more air pushed per breath = more ventilatory support. Typical range: 4-12 cmH2O. Some machines let you set PS directly instead of IPAP.
EPR (Expiratory Pressure Relief)
CPAP comfort feature. Drops pressure by 1-3 cmH2O during exhalation. Effectively gives CPAP a small amount of bilevel behaviour. Setting: 0 (off), 1, 2, or 3.
Auto/Min-Max Pressure
Auto-titrating machines adjust pressure based on detected events. You set a minimum and maximum range, and the machine finds the optimal pressure within that range each night. Available for both CPAP (APAP) and BiPAP modes.
Ramp
A comfort feature that starts at a lower pressure and gradually increases to your prescribed pressure over 5-45 minutes, making it easier to fall asleep. The tradeoff: lower pressure during ramp means less airway splinting while falling asleep.
Trigger Sensitivity
How sensitive the BiPAP machine is to detecting the start of your breath. Higher sensitivity means quicker IPAP delivery but risks false triggers from mask leak. Lower sensitivity is more reliable but may feel less responsive.
Why Understanding This Matters for Your Data
Understanding how PAP therapy works isn't just background knowledge. It directly helps you interpret your data and have productive conversations with your sleep physician:
- High flow limitation despite good EPAP? Your airway is splinted, but air isn't getting through efficiently. You may benefit from BiPAP with pressure support to push through the restriction. This is especially relevant for UARS patients who have persistent flow limitation without frank apnoeas.
- Flow limitation worse during REM? Muscle tone is at its lowest during REM sleep. The airway is floppiest, and the splinting pressure needed is highest. Many auto-titrating machines raise pressure during REM, and seeing this pattern in your data helps explain why.
- Better numbers in the second half of the night? Auto-titrating machines learn throughout the night. If your flow limitation improves after hour 2-3, the machine may have found the right pressure. Your H1/H2 split data can show this.
- High EPR causing flow limitation? EPR reduces expiratory pressure for comfort, but too much EPR can let the airway narrow between breaths. If you see significant flow limitation with EPR 3, try reducing to EPR 1 or 2 (with your doctor's guidance).
- Understanding NED scores? Negative Effort Dependence directly reflects the physics we discussed. A high NED score means breathing harder is producing less airflow (the paper straw collapsing). This is a direct signal that EPAP may be too low or that PS could help overcome the restriction.
The better you understand the physics, the more actionable your data becomes. You're not just seeing numbers anymore. You're seeing the story of how air moves (or doesn't move) through your airway, and why.
Further Reading
Sullivan et al. (1981). "Reversal of obstructive sleep apnoea by continuous positive airway pressure applied through the nares." The Lancet, 317(8225), 862-865. The original CPAP paper.
Schwartz et al. (2010). "Effect of pressure support on upper airway mechanics and flow limitation in sleep apnoea patients." European Respiratory Journal, 36(2), 371-378.
Farré et al. (2004). "Noninvasive monitoring of respiratory mechanics during sleep." European Respiratory Journal, 24(6), 1052-1060.
Piper & Sullivan (1994). "Effects of short-term NIPPV in the treatment of patients with severe obstructive sleep apnea and hypercapnia." Chest, 105(2), 434-440.
Berry et al. (2012). "Rules for scoring respiratory events in sleep: update of the 2007 AASM Manual." Journal of Clinical Sleep Medicine, 8(5), 597-619.
Medical disclaimer: This article is educational and does not constitute medical advice. PAP therapy settings should only be changed under the guidance of your sleep physician or respiratory therapist. If you have concerns about your therapy, discuss them with your clinician.
Ready to Understand Your PAP Data?
AirwayLab analyses your ResMed SD card data for flow limitation, NED scores, breathing regularity, and estimated arousals, all in your browser with nothing uploaded to any server. See the physics of your therapy in action.