Lung Compliance & Work of Breathing Simulator Back
Biomechanics

Lung Compliance & Work of Breathing Simulator

Treat the lungs as an elastic bag and calculate the mechanical work of a single breath. Adjust the tidal volume, lung compliance, airway resistance and respiratory rate to see the elastic pressure that inflates the lung, the resistive pressure that drives the airflow, and the elastic work of one breath update in real time.

Parameters
Tidal volume
mL
Volume of air moved in one breath
Lung compliance
mL/cmH₂O
How easily the lungs and chest wall stretch. Lower = stiff lung
Airway resistance
cmH₂O/(L/s)
How hard it is to drive air through the airways. Rises in asthma/COPD
Respiratory rate
breaths/min
Number of breaths per minute
Results
Elastic pressure change (cmH₂O)
Resistive pressure (cmH₂O)
Minute ventilation (L/min)
Mean inspiratory flow (L/s)
Elastic work per breath (J)
Lung compliance assessment
Breathing cycle — lung expansion and pressure-volume loop

On the left the lungs and diaphragm expand and contract with each breath. On the right the pressure-volume loop of one breath is traced; the enclosed area is the work of breathing.

Pressure-volume loop of one breath
Elastic pressure change vs lung compliance
Theory & Key Formulas

$$C=\frac{\Delta V}{\Delta P},\qquad W_{elastic}=\tfrac12\,\Delta P\cdot\Delta V$$

Lung compliance C (volume change ΔV divided by pressure change ΔP) and the elastic work of one breath W (the area of the pressure-volume triangle). The smaller C — the stiffer the lung — the larger the ΔP and the work needed for the same ΔV.

$$\Delta P_{elastic}=\frac{V_T}{C},\qquad P_{resistive}=R\cdot\dot{V}$$

Elastic pressure change (tidal volume V_T divided by compliance C) and resistive pressure (airway resistance R multiplied by the mean inspiratory flow V̇). The work of breathing splits into an elastic part (partly recovered) and a resistive part (lost as heat).

What is the Lung Compliance & Work of Breathing Simulator?

🙋
I've heard the phrase "lung compliance", but what does it actually mean?
🎓
Roughly speaking it is "how easily the lungs expand". Mechanically the lung is just an elastic bag, much like a balloon. Some balloons go soft and inflate with a tiny puff; others are stiff and barely budge. Compliance C is the ratio "this much pressure produced this much expansion" — that is, C = ΔV/ΔP. The bigger the value, the softer the lung.
🙋
I see. So what's the trouble when the lungs become stiff?
🎓
A stiff lung — one with low compliance — needs a much larger pressure swing to draw in the same amount of air. Drag the "lung compliance" slider on the left down from 200 to about 70. You will see the elastic pressure change jump up, and the elastic work of one breath rise with it. Pulmonary fibrosis and ARDS (acute respiratory distress syndrome) are exactly this: the lung turns hard, and breathing becomes ever more of a heavy labour.
🙋
So breathing is "work"... Besides the elastic part, is there anything else to the work of breathing?
🎓
Good question. The work of breathing fights two opponents. The first is the "elastic" one we just discussed — stretching the lungs and chest wall like a spring. Part of that is stored as spring energy and comes back when you breathe out. The second is "resistance" — pushing air through the narrow branching airways. In asthma or COPD the airways narrow and this resistance rises. The energy spent against resistance is lost entirely, turned into heat by viscous friction.
🙋
So raising the airway-resistance slider raises the resistive pressure. But why does the resistive pressure also change when I raise the respiratory rate?
🎓
That is the interesting part. The resistive pressure is "airway resistance × flow". Raise the respiratory rate and each inspiration has less time, so you must push the same volume of air through faster. A higher flow means a higher resistive pressure. Breathe deep and slow and the flow drops instead. So "shallow fast breathing" and "deep slow breathing" carry a different mix of work even at the same minute ventilation.
🙋
How much of a burden is the work of breathing for a healthy body?
🎓
For a healthy person at rest, the work of breathing is only a few percent of the body's total energy use — you barely notice it. But in severe lung disease, or during heavy exercise, it can rise many-fold and become exhausting in itself. Understanding this mechanics is the foundation of respiratory physiology and of mechanical-ventilator design: a ventilator must deliver the needed tidal volume while keeping the airway pressures within a safe range. Note that this is an engineering education tool, not medical advice.

Frequently Asked Questions

Lung compliance C measures how much the lungs expand for a given pressure: it is the volume change divided by the pressure change, C = ΔV/ΔP, in mL/cmH₂O. The larger the value, the softer the lung — it inflates a lot for a small pressure change. In a healthy adult the lungs and chest wall together have a compliance of about 100-300 mL/cmH₂O. Pulmonary fibrosis and the acute respiratory distress syndrome (ARDS) drastically lower the compliance, so the lung becomes stiff, a much larger pressure is needed to draw in the same volume, and the work of breathing climbs.
The work of one breath splits into two parts. The elastic component stretches the lungs and chest wall like a spring; part of it is stored as spring energy and recovered during expiration. The resistive component pushes air through the branching tree of airways, and this energy is lost entirely as heat through viscous friction. This tool computes the elastic work as the area of the pressure-volume triangle, ½·ΔP·ΔV. Stiff lungs raise the elastic component and narrowed airways raise the resistive component, making breathing harder.
Airway resistance is how hard it is to drive air through the airways, in cmH₂O/(L/s). In asthma and chronic obstructive pulmonary disease (COPD) the airways narrow and the resistance rises, so a larger pressure is needed to produce the same flow. This tool calculates the resistive pressure as airway resistance multiplied by the mean inspiratory flow. High airway resistance raises the resistive component of the work of breathing, and the pressure burden climbs sharply when you breathe fast, because the flow is then large.
Minute ventilation is the total volume of air moving in and out of the lungs each minute: minute ventilation = tidal volume × respiratory rate. For a tidal volume of 500 mL and a rate of 14 breaths/min, this is 500×14 = 7000 mL/min = 7.0 L/min. A resting healthy adult is typically around 5-8 L/min. This tool shows how minute ventilation changes with the tidal-volume and respiratory-rate sliders. Importantly, for the same minute ventilation, shallow fast breathing and deep slow breathing distribute the work of breathing differently.

Real-World Applications

Design and setting of mechanical ventilators: An intensive-care ventilator works precisely by measuring lung compliance and airway resistance in real time. It must deliver the set tidal volume while keeping the airway pressures (plateau and peak pressure) within a range that does not injure the lung, and here the split between elastic and resistive pressure is directly useful. In a stiff lung such as ARDS, the low compliance makes pressures rise easily even for a small tidal volume, which is why the concept of lung-protective ventilation arose.

Pulmonary function testing (spirometry) and clinical assessment: Lung-function tests such as vital capacity and forced expiratory volume are tools that put numbers on lung elasticity and airway patency. A drop in compliance suggests a restrictive ventilatory defect (the lung is hard to inflate), and a rise in airway resistance suggests an obstructive defect (air is hard to exhale). Understanding the relation between pressure, volume and flow, as in this tool, makes the meaning of the test results easier to grasp.

Respiratory rehabilitation and sports physiology: In respiratory-muscle training and breathing-technique coaching, it matters that "shallow fast breathing" and "deep slow breathing" carry a different mix of work. For the same minute ventilation, cutting the resistive component makes breathing more efficient. In endurance sports such as marathon running or swimming, the work of breathing rises many-fold during exercise compared with rest, so the efficiency of breathing affects competitive performance.

Biomechanical models, CAE and medical-device development: Treating the lung as an elastic body plus a resistive element, as this tool does, is the starting point for more precise numerical models of the respiratory system (multi-compartment models and finite-element models). In developing medical devices such as artificial lungs, oxygen concentrators and CPAP machines, such mechanical models predict the behaviour of pressure, flow and volume and verify the design. It is a classic biomechanics field that combines fluid dynamics with the mechanics of elastic bodies.

Common Misconceptions and Pitfalls

The most common misconception is assuming the work of breathing is purely the elastic work. The elastic work ½·ΔP·ΔV computed by this tool is the work of stretching the lungs and chest wall as a spring, and part of it is recovered as spring energy during expiration. But a real breath also includes the resistive work of pushing air through the airways, which is lost entirely as heat through viscous friction. In someone with narrow airways, the resistive component can even dominate. Elastic work is only one part of the work of breathing; to grasp the whole picture you must look at both the elastic and resistive components.

Next, thinking compliance is a single fixed number. The real pressure-volume relationship of the lung is an S-shaped curve: compliance falls both when the lung is nearly empty and when it is nearly full, and is highest at intermediate volumes. This tool is an educational model that linearises the range of quiet breathing and treats one breath with a single compliance value. The lungs and the chest wall also each have their own compliance, and what is treated here is the combined "respiratory system" compliance. Measured values also vary with body size, posture and age.

Finally, this tool is a simplified simulator for engineering and physiology education, not medical advice. Real respiratory physiology involves many factors not modelled here — alveolar surface tension, surfactant, uneven distribution of ventilation, dynamic airway narrowing, and the difference between active and passive expiration. Assumptions such as a 1:2 inspiration-to-expiration ratio and a mean flow are also simplifications of reality. Use this tool to build the basic mechanical picture of "the lung as an elastic bag plus a resistive element", and do not use it for diagnostic or treatment decisions.

How to Use

  1. Set tidal volume (mL) between 300–800 mL using the slider; typical resting value is 500 mL for a 70 kg adult.
  2. Adjust lung compliance (mL/cmH₂O) between 50–150 mL/cmH₂O; ARDS patients show reduced compliance (~25 mL/cmH₂O), whereas healthy lungs average 100 mL/cmH₂O.
  3. Input airway resistance (cmH₂O·s/L) from 2–10 cmH₂O·s/L; asthma or COPD increases resistance to 8–15 cmH₂O·s/L.
  4. Select breathing rate (breaths/min) between 8–40 to observe changes in minute ventilation and total work per minute.
  5. Read elastic work per breath (calculated as ½ × ΔP_elastic × V_t in joules), resistive pressure, and minute ventilation outputs.

Worked Example

A 75 kg mechanically ventilated patient receiving V_t = 450 mL with compliance C = 40 mL/cmH₂O and resistance R = 6 cmH₂O·s/L at RR = 16 breaths/min: elastic pressure change = 450 ÷ 40 = 11.25 cmH₂O; resistive pressure = 6 × (450 mL ÷ 60 s) = 45 cmH₂O; elastic work per breath = 0.5 × 11.25 × 0.45 = 2.53 J; minute ventilation = 450 × 16 ÷ 1000 = 7.2 L/min; total work per minute = 2.53 × 16 = 40.5 J/min, indicating increased respiratory effort typical of ARDS.

Practical Notes

  1. Inverse relationship: reducing compliance from 100 to 50 mL/cmH₂O doubles elastic work; critical for ICU weaning protocols.
  2. Resistance dominates at high flow rates; mean inspiratory flow = V_t ÷ inspiratory time; reducing flow from 1.0 to 0.5 L/s halves resistive pressure.
  3. Minute ventilation = V_t × RR; increasing rate from 12 to 20 breaths/min without changing V_t raises minute ventilation from 6 to 10 L/min but may increase dead-space ventilation.
  4. Clinical alarm: elastic work exceeding 1.5 J/breath or total work >50 J/min suggests need for mechanical support or surfactant therapy in neonatal RDS.