What Happens During a Code Blue in a Hospital?

A Code Blue is a hospital-wide alert that a patient is in cardiac or respiratory arrest and needs immediate resuscitation. It is the most urgent emergency code used in hospitals, signaling that someone’s heart has stopped beating, they’ve stopped breathing, or both. About 26% of patients who experience an in-hospital cardiac arrest survive to leave the hospital.

How a Code Blue Gets Activated

Any hospital staff member who finds a patient unresponsive and without a pulse can trigger a Code Blue. The process typically starts with a call to the hospital operator, who then sends out a page to designated code team members and broadcasts an overhead announcement throughout the hospital. The announcement includes the patient’s location so the team can respond within minutes.

Some hospitals have also installed Code Blue buttons behind patient beds. Pressing the button alerts the operator and, in newer systems, sends a smartphone notification directly to code team members along with key patient data like their admitting diagnosis and recent lab results. This dual approach, combining traditional overhead pages with digital alerts, can shave precious seconds off response time.

What Happens When Code Blue Is Called

A specialized team converges on the patient’s room, each member with a defined role. The team leader directs the entire effort, talks through each decision out loud, and asks for input from the group. A compressor begins chest compressions at a rate of 100 to 120 per minute, pressing the chest about two inches deep with each push. Compressors rotate every two minutes to avoid fatigue. An airway manager takes over breathing for the patient using a bag-valve mask or, if needed, a breathing tube. A recorder documents everything that happens, including the timing of medications and rhythm checks.

The team follows a structured resuscitation protocol. Adrenaline (epinephrine) is given in standard doses every three to five minutes to try to restart the heart. If the heart monitor shows a rhythm that can be corrected with an electrical shock, the team uses a defibrillator. Between shocks and medication doses, chest compressions continue with minimal interruption, since every pause reduces the chance of bringing back a heartbeat.

The Crash Cart

Every Code Blue relies on a rolling supply station called a crash cart, which is kept stocked and checked regularly on every hospital floor. The cart contains everything the team needs in one place: airway equipment like masks, oxygen tubing, and oral airways in multiple sizes; IV supplies including catheters, tubing, and saline bags; a cardiac monitor with a built-in defibrillator; and a set of emergency medications.

The medication trays cover several scenarios beyond cardiac arrest itself. There are drugs to correct dangerous heart rhythms, medications to reverse opioid overdoses, treatments for severe allergic reactions, and supplies for low blood sugar emergencies. Specialized hospital units may customize their carts. A cardiac testing lab, for example, might stock additional heart rhythm drugs, while a surgical recovery area might carry extra opioid-reversal medication.

What Happens After the Heart Restarts

Getting a pulse back is not the end of the emergency. It marks the beginning of a critical post-resuscitation phase focused on preventing the heart from stopping again and protecting the brain from further damage. The medical team works to identify and treat whatever caused the arrest in the first place, stabilize blood pressure with IV fluids or medications, and carefully manage the patient’s oxygen levels and breathing.

One of the most important interventions is targeted temperature management. For patients who remain unconscious after their heart restarts, the body is cooled to a temperature between 33°C and 36°C (roughly 91°F to 97°F) and held there for at least 24 hours. This controlled cooling protects brain cells and improves neurological outcomes. Cooling can be achieved through ice packs placed on the neck, groin, and armpits, through cold IV fluids, or through specialized cooling blankets and catheters. The medical team monitors core body temperature continuously throughout this process and actively prevents fever in the hours and days that follow.

Survival Rates by Location

Overall, about one in four patients who experience cardiac arrest inside a hospital survive to discharge. But that average masks a wide range depending on where in the hospital the arrest happens. Patients who arrest in an operating room survive about 40% of the time, and those in a cardiac catheterization lab survive at a similar rate of 38%. These higher numbers reflect the fact that these patients are already surrounded by specialized equipment and staff who can respond in seconds. More than half of in-hospital cardiac arrests occur in the ICU, operating room, or emergency department.

Survival also depends heavily on how quickly the Code Blue team arrives, how effectively compressions are performed, and the underlying cause of the arrest. A heart that stops due to a correctable rhythm problem has a much better prognosis than one that stops because of overwhelming infection or organ failure.

Code Blue vs. Rapid Response Teams

A Code Blue is called after a patient’s heart or breathing has already stopped. Hospitals also use a separate system called a rapid response team, designed to intervene before things reach that point. Any staff member can activate a rapid response call when a patient is deteriorating but still has a pulse. Common triggers include a heart rate above 140 or below 40, a respiratory rate above 28 or below 8, blood pressure dropping below 90 systolic, oxygen levels falling below 90% despite supplemental oxygen, or a sudden change in mental status.

The goal of rapid response teams is to reduce the number of Code Blues by catching dangerous trends early. A nurse who notices a patient becoming confused and breathing rapidly can call for help before the situation escalates to full cardiac arrest. This early intervention system exists specifically because outcomes are far better when deterioration is caught before the heart stops.

Pediatric Code Blue

Children who go into cardiac arrest in a hospital receive the same level of urgent response, but the team and equipment differ. Pediatric Code Blue teams include providers trained in child-specific resuscitation, and crash carts carry pediatric-sized airway equipment, smaller doses of medications, and child-appropriate defibrillator pads. Some hospitals historically used a separate color code (such as “Code White”) for pediatric emergencies, though many have moved toward using “Code Blue, Pediatric” to keep the system simple and reduce confusion during a crisis.