Code blue is a hospital emergency alert that means a patient’s heart has stopped beating, they’ve stopped breathing, or both. It triggers an immediate response from a specialized team trained in resuscitation. Of all the color-coded alerts hospitals use, code blue is the most universally recognized and one of the most time-sensitive, with every second of delay reducing the chance of survival.
What Triggers a Code Blue
A code blue is activated when a patient experiences cardiac arrest (the heart stops pumping blood), respiratory arrest (breathing stops), or both simultaneously. The clinical confirmation is straightforward: no detectable pulse, unresponsiveness, and no breathing. Any hospital staff member who discovers a patient in this state can call a code blue, and in most hospitals, that call goes out over the overhead speaker system to the entire facility.
Code blue is reserved specifically for situations where a patient’s heart or breathing has already stopped. It’s different from a rapid response call, which is designed to catch patients who are deteriorating but haven’t yet gone into arrest. Rapid response teams get called for warning signs like a heart rate above 140 or below 40, a respiratory rate above 28, blood pressure dropping below 90, or oxygen levels falling below 90%. The goal of those earlier interventions is to prevent a code blue from ever happening.
What Happens When a Code Blue Is Called
Within moments of the announcement, a resuscitation team converges on the patient’s location. This team typically includes physicians, nurses, respiratory therapists, and a pharmacist. The first priority is starting chest compressions. High-quality CPR is the foundation of the entire response, and compressions begin immediately while the rest of the team sets up equipment and assigns roles.
A crash cart, which is a mobile station stocked with emergency supplies, is brought to the bedside. It contains a defibrillator (the device that delivers electrical shocks to restart the heart), airway management tools, IV supplies, heart-monitoring equipment, and dozens of medications organized in labeled drawers. Among the most critical drugs on the cart are adrenaline, which helps restore heart rhythm and raise blood pressure, and medications that correct dangerous heart rhythms.
The team follows a structured resuscitation algorithm. Chest compressions continue in cycles, the patient’s heart rhythm is checked every two minutes, and shocks are delivered only when the heart is in a specific type of abnormal rhythm that responds to defibrillation. Not all cardiac arrests are “shockable,” so the team adapts their approach based on what the heart monitor shows. Overventilating the patient is a known risk during resuscitation because too much air pressure in the chest can actually reduce blood flow, so breathing is carefully controlled to about 10 breaths per minute.
Survival Rates After a Code Blue
About 1 in 4 patients who experience cardiac arrest inside a hospital survive to be discharged. An analysis of national data found that 25.8% of in-hospital cardiac arrest patients made it home. That number varies significantly depending on what caused the arrest, how quickly resuscitation began, the patient’s age and overall health, and whether the heart rhythm was one that could be corrected with a defibrillator shock.
Survival drops sharply when cardiac arrest happens alongside other serious illness. During the COVID-19 pandemic, for example, hospitalized patients with the virus who went into cardiac arrest had survival-to-discharge rates below 10%, even though about a third initially regained a pulse during resuscitation. The initial return of a heartbeat is an important milestone, but it doesn’t guarantee recovery. What happens in the hours and days after resuscitation matters enormously.
What Happens After Resuscitation
When a patient’s heart starts beating again on its own, a phase called post-cardiac arrest care begins. The immediate priorities are preventing the brain and organs from suffering further damage. The patient receives 100% oxygen until their oxygen levels can be accurately measured and adjusted. Blood pressure is closely monitored to make sure it stays high enough to keep blood flowing to the brain, with a minimum target that prevents dangerous drops.
One of the most important interventions is temperature management. Patients who remain unconscious after resuscitation are kept at a controlled body temperature for at least 36 hours. This protects the brain from swelling and further injury. The medical team also runs imaging scans to identify what caused the arrest in the first place, whether it was a heart attack, a blood clot in the lungs, or something else entirely, and to check for any complications from the resuscitation itself, such as broken ribs from chest compressions.
DNR Orders and Code Blue
Not every patient in a hospital will have a code blue called on their behalf. Patients with a Do Not Resuscitate (DNR) order have made the decision, usually in consultation with their family and medical team, that they do not want CPR or other aggressive life-saving measures if their heart stops. When a valid DNR order is in the medical record, staff will not initiate a code blue.
This system depends on clear documentation and communication. Hospitals typically use visual identifiers like colored wristbands to flag patients with DNR orders so that bedside staff don’t have to search through electronic records in an emergency. Errors can happen when orders aren’t properly entered, when wristbands aren’t placed, or when information about a patient’s wishes doesn’t get passed along during shift changes. Hospitals treat code status as a critical piece of information that should be communicated at every handoff between providers.
Why Some Hospitals Are Moving Away From Color Codes
While “code blue” for cardiac arrest is widely understood, other hospital color codes have historically varied from one facility to the next. A “code red” might mean fire at one hospital and something different at another. This inconsistency created confusion, particularly for staff who work at multiple facilities or during large-scale emergencies when outside teams arrive to help.
A growing number of hospitals are shifting to plain-language emergency alerts, announcing “cardiac arrest” instead of “code blue” or “fire” instead of “code red.” The Joint Commission, which accredits U.S. hospitals, has supported this transition because plain language is immediately understood by everyone, including patients, visitors, and new staff, without requiring memorization of a color system. That said, “code blue” remains deeply embedded in hospital culture and is still the most commonly used term for a cardiac or respiratory arrest emergency.

