What Is Code Blue? Triggers, Response & Survival

Code Blue is a hospital-wide alert that signals a patient is in cardiac or respiratory arrest and needs immediate resuscitation. When this announcement goes out over a hospital’s intercom or paging system, a specialized team drops what they’re doing and rushes to the patient’s location. About 25.8% of patients who experience an in-hospital cardiac arrest survive to discharge, making the speed and coordination of the response critical.

What Triggers a Code Blue

A Code Blue is called when a patient’s heart stops beating, they stop breathing, or both. These events are unexpected, meaning the patient wasn’t already at the very end of life with comfort-focused care in place. A nurse, doctor, or any staff member who finds a patient unresponsive and without a pulse can activate the code, typically by pressing a button in the room or calling a dedicated number.

Hospitals also use a separate, less urgent alert system sometimes called a Medical Emergency Team (MET) call or “rapid response.” This is for patients who are deteriorating but haven’t yet gone into full arrest. Warning signs like a sudden drop in blood pressure, dangerously low oxygen levels, an altered mental state, or new chest pain can trigger a rapid response. The goal is to intervene before the situation escalates to a Code Blue.

Who Responds and What They Do

A Code Blue team typically includes four or more people, each with a defined role. The team leader, usually a physician or senior nurse, runs the code. They follow established resuscitation algorithms, direct the other team members, and make real-time decisions about medications and interventions. Staying calm and keeping the scene organized is a core part of this role.

Other team members fill specific positions:

  • CPR providers perform chest compressions, rotating out every two minutes to avoid fatigue that reduces compression quality.
  • Airway manager keeps the patient breathing by delivering oxygen through a bag-mask device, suctioning the airway, and assisting with placing a breathing tube if needed.
  • Recorder applies defibrillator pads, operates the defibrillator, and documents every medication given and the exact time of each action. This real-time record is essential for guiding the resuscitation and reviewing it afterward.

These roles are starting points. In practice, team members shift and support each other as the situation demands. Additional nurses, respiratory therapists, or pharmacists often join depending on the hospital.

How Fast the Team Needs to Arrive

Every minute without CPR or defibrillation reduces the chance of survival. Studies show that hospital code teams arrive in an average of about four minutes, though the range varies widely. Some hospitals have documented response times under two minutes, while larger facilities may take closer to six. Many hospitals set an internal benchmark of three minutes or less. In at least one study, 90 patients received treatment within a single minute of the code being called.

What Happens During a Code Blue

The first priority is high-quality chest compressions and getting a defibrillator on the patient. The defibrillator reads the heart’s electrical activity and determines whether a shock can restart a normal rhythm. Not all cardiac arrests respond to a shock. When the heart is in a “shockable” rhythm, rapid defibrillation is the single most important intervention. If the first round of CPR and defibrillation doesn’t restore a heartbeat, the team begins administering medications through an IV line.

The team works in two-minute cycles: compress, check the heart rhythm, shock if appropriate, and repeat. Between cycles, they reassess, give medications, and adjust their approach. A crash cart at the bedside holds everything needed, from oxygen equipment and IV supplies to emergency drugs and suction devices. The process continues until the heart restarts, or the team leader determines that further efforts won’t be successful.

What Happens After the Heart Restarts

Getting the heart beating again is only the first challenge. The period immediately afterward is medically fragile, and what happens in those hours significantly affects whether the patient recovers with good brain function.

The care team focuses on keeping blood pressure stable, since low blood pressure after arrest starves the brain and organs of oxygen. Oxygen levels are carefully managed rather than simply maximized. Per American Heart Association guidelines, once oxygen saturation can be reliably measured, the target is 90% to 98%. Too much oxygen can actually cause additional damage. Patients are also monitored to keep carbon dioxide levels in a normal range, because imbalances affect blood flow to the brain.

Body temperature management is another key step. Patients who remain unconscious after their heart restarts are often kept at a controlled temperature for at least 36 hours. This slows the cascade of brain injury that can follow oxygen deprivation. Imaging scans of the brain and heart are commonly performed to identify what caused the arrest and to check for complications from the resuscitation itself, such as rib fractures from chest compressions.

Survival Rates and What Affects Them

Roughly one in four patients who have an in-hospital cardiac arrest survive to leave the hospital. That figure comes from a large U.S. registry that tracked outcomes across hundreds of hospitals. More than half of these events happen in intensive care units, operating rooms, or emergency departments, where monitoring is continuous and response times are shortest.

Several factors influence the odds. A shockable heart rhythm carries a better prognosis than a non-shockable one. How quickly compressions begin matters enormously, as does the patient’s overall health before the arrest. Younger patients and those without multiple chronic conditions tend to fare better. Location within the hospital plays a role too: arrests on general medical floors, where staffing is lighter and monitoring less intense, tend to have worse outcomes than those in monitored units.

How DNR Orders Change the Response

A Do Not Resuscitate (DNR) order means that if a patient’s heart stops, the medical team will not perform CPR or call a Code Blue. The concept, first described in medical literature in 1976, grew out of palliative care and recognizes that for some patients, particularly those with advanced terminal illness, the trauma of resuscitation is unlikely to result in meaningful recovery.

A DNR applies specifically to cardiac arrest. It does not necessarily mean a patient refuses all treatment. Someone with a DNR can still receive antibiotics, IV fluids, pain management, and other therapies. In practice, though, the boundaries can be complex. Physicians sometimes interpret DNR orders broadly, which can lead to less aggressive treatment of conditions that aren’t cardiac arrest. Clear conversations between patients, families, and the care team about exactly what interventions are and aren’t wanted help prevent misunderstandings.

Other Hospital Color Codes

Code Blue is the most widely recognized hospital code, but it’s part of a larger color-coded alert system. While there’s no single universal standard and codes vary between hospitals, common examples include Code Red for fire, Code Pink for infant abduction, Code Gray for a combative or aggressive person, and Code Black for a bomb threat. Some hospitals have moved toward plain-language announcements to reduce confusion, but Code Blue for cardiac arrest remains nearly universal across the United States and many other countries.