What Is a CPET: How It Tests Your Heart and Lungs

A cardiopulmonary exercise test, or CPET, is a non-invasive test that measures how well your heart, lungs, and muscles work together during physical exercise. Unlike a standard stress test that mainly tracks your heart’s electrical activity, a CPET captures breath-by-breath data on how much oxygen your body takes in and how much carbon dioxide it pushes out, giving doctors a detailed picture of your overall fitness and the specific reason you may be struggling with exercise.

The American Heart Association and American College of Cardiology call CPET the “gold-standard assessment of the physiological response to exercise.” It’s used before major surgeries, to evaluate unexplained shortness of breath, and to gauge the severity of heart or lung disease.

How a CPET Differs From a Standard Stress Test

A regular treadmill stress test monitors your heart rate and electrical signals (EKG) while you exercise. It tells doctors whether your heart muscle is getting enough blood flow. A CPET does all of that plus measures the gases you breathe in and out with every single breath. This gas exchange data reveals whether it’s your heart, your lungs, your circulation, or your muscles that are limiting your ability to exercise. A standard stress test can show that something is wrong; a CPET can show exactly where in the chain the problem sits.

What Happens During the Test

The test is performed on a stationary bike (most commonly) or a treadmill. You’ll wear a face mask or mouthpiece connected to a rapid gas analyzer that tracks oxygen and carbon dioxide levels breath by breath. At the same time, you’ll have a continuous 12-lead EKG, a blood pressure cuff, and a pulse oximeter clipped to your finger.

The whole procedure has four phases. It starts with a few minutes of rest so the equipment can capture your baseline values. Then you pedal with no resistance for a brief warm-up period. Next comes the incremental exercise phase, which lasts roughly 8 to 12 minutes. During this phase, resistance increases gradually every few seconds (called a ramp protocol), pushing you steadily harder until you can’t continue. Finally, there’s a short cool-down period while doctors monitor your recovery. The goal is to reach your maximum effort, so expect to feel genuinely exhausted by the end.

Preparing for the Test

Preparation is straightforward. Avoid caffeine for 24 hours before the test. Don’t eat or drink anything except water for four hours beforehand. Wear comfortable exercise clothing and shoes. Your doctor may also give specific instructions about which medications to take or hold on the day of testing.

The Key Numbers a CPET Measures

A CPET generates a large amount of data, but three measurements matter most.

Peak VO2 (maximal oxygen uptake): This is the single most important number from the test. It represents the maximum amount of oxygen your muscles can use during exercise, and it’s the best objective measure of your aerobic fitness. As you exercise harder, oxygen uptake rises in a straight line until your cardiovascular system simply can’t deliver any more. That ceiling is your peak VO2. Higher values mean greater fitness. Values below 80% of what’s predicted for your age, sex, and body size are considered abnormal and suggest a cardiac, pulmonary, or metabolic limitation. Peak VO2 naturally declines with age, dropping roughly 10% every decade after age 30.

Anaerobic threshold (AT): As exercise intensity climbs, there’s a tipping point where your muscles can no longer get all the oxygen they need and start relying on anaerobic energy production. This generates lactic acid and triggers a compensatory spike in breathing. The anaerobic threshold typically occurs between 45% and 65% of your peak VO2. A threshold below 40% of peak VO2 is considered abnormal. This number is especially useful for surgical risk assessment because it reflects the level of stress your body can handle before running into trouble.

Respiratory exchange ratio (RER): This is the ratio of carbon dioxide your body produces to the oxygen it consumes. It tells doctors what fuel your body is burning and, importantly, whether you truly pushed yourself to maximum effort during the test. An RER above 1.1 indicates you reached significant physiological stress. If it stays below 1.0 without any other abnormalities, you may have stopped short of your true maximum, or a condition like severe COPD may be preventing you from breathing hard enough to expel excess carbon dioxide.

Why Doctors Order a CPET

CPET serves several distinct clinical purposes, and the reason you’re getting one shapes what your doctor is looking for in the results.

Preoperative risk assessment: Before major surgery, particularly abdominal, thoracic, or vascular procedures, surgeons need to know whether your body can handle the physiological stress of the operation and recovery. The 2024 AHA/ACC perioperative guidelines recommend CPET for high-risk patients undergoing elevated-risk procedures when objective functional capacity appears reduced and additional data are needed to plan perioperative care. A low anaerobic threshold, for example, can flag patients who may need closer monitoring after surgery or benefit from a structured exercise program (prehabilitation) before the operation.

Unexplained shortness of breath: When standard tests like echocardiograms and pulmonary function tests come back inconclusive, a CPET can reveal the underlying cause of exercise intolerance by stressing all the relevant systems at once. It can distinguish between cardiac limitation, ventilatory limitation, deconditioning, and even breathing pattern disorders.

Heart failure management: Peak VO2 is one of the strongest predictors of outcomes in heart failure. It helps determine disease severity, guide treatment decisions, and evaluate whether a patient qualifies for advanced therapies like a heart transplant. Another key metric in heart failure is the VE/VCO2 slope, which reflects how efficiently you ventilate relative to the carbon dioxide your body produces. Values above 34 are associated with increased mortality risk.

Chronic lung disease: In conditions like COPD, a CPET can quantify how much airflow obstruction and air trapping are limiting exercise. The test produces characteristic patterns: patients with emphysema tend to show high VE/VCO2 values because damaged lung tissue creates ventilation that doesn’t participate in gas exchange, forcing the body to breathe more to compensate.

How CPET Tells Heart Problems From Lung Problems

One of the test’s most valuable features is its ability to separate cardiac causes of exercise limitation from pulmonary ones, even when both conditions coexist. Heart failure and COPD can produce overlapping symptoms like breathlessness and fatigue, but they leave different fingerprints in the CPET data.

In heart failure, the heart can’t pump enough blood to meet exercising muscles’ demand. This shows up as a low peak VO2 and an early anaerobic threshold. The lungs may also be affected because an enlarged heart and fluid congestion compress lung tissue, creating a restrictive pattern. In COPD, the primary limitation is airflow. The lungs can’t move air fast enough, which caps the amount of oxygen that reaches the blood regardless of how well the heart pumps. Both conditions can elevate the VE/VCO2 slope, but the underlying mechanisms differ, and a trained interpreter can distinguish them by examining the full set of data panels the test produces.

The CPET data is typically displayed in a standardized nine-panel plot. Three panels focus on cardiovascular function, three on ventilation, and three on the relationship between ventilation and blood flow in the lungs. Reading these panels together lets clinicians pinpoint the weakest link in the oxygen delivery chain.

Who Should Not Have a CPET

Because the test requires maximal exertion, certain conditions make it unsafe. Absolute contraindications include recent heart attack, unstable angina, uncontrolled heart rhythm disorders, acute blood clots in the lungs, and active infections of the heart. Relative contraindications, where the test may still be done with caution, include uncontrolled high blood pressure (above 200/120), moderate heart valve narrowing, significant pulmonary hypertension, advanced pregnancy, and orthopedic or neurological conditions that prevent safe exercise. Your referring physician and the testing team will screen for these before scheduling the test.