A Code Blue is a hospital’s emergency call for a patient who has stopped breathing or whose heart has stopped beating. It means a cardiac or respiratory arrest is happening right now, and a specially trained team must respond immediately to try to restart the heart and breathing. This is not a drill or a general warning — it is the most urgent emergency a hospital can declare for a single patient. The team rushes to the patient’s bedside with a crash cart, defibrillator, medications, and airway equipment to perform cardiopulmonary resuscitation (CPR) and advanced life support.
Why Is It Called a Code Blue?
Hospitals use color-coded alerts to communicate emergencies quickly without alarming patients and visitors. A Code Blue specifically signals a medical emergency involving loss of pulse or breathing. The exact origin of the term is not certain, but it has been standard in North American hospitals for decades. Other codes cover different emergencies: Code Red for fire, Code Silver for an active shooter, and Code Stroke for a suspected stroke. The color system lets staff know exactly what action to take without broadcasting details over the loudspeaker.
What Happens During a Code Blue?
When a Code Blue is called, overhead speakers announce the location — for example, “Code Blue, Room 214” — and a special team drops everything to respond. That team typically includes several people with specific roles: a physician (often a hospitalist or intensivist), a critical care nurse, a respiratory therapist, a pharmacist, and possibly others. Within seconds of arriving, team members begin chest compressions, attach a defibrillator to check the heart rhythm, and secure the patient’s airway to deliver oxygen.
The team leader directs the effort: someone does chest compressions, another person ventilates the patient with a bag-valve mask, and another starts an intravenous line to give medications such as epinephrine. If the heart rhythm is shockable — such as ventricular fibrillation or pulseless ventricular tachycardia — a defibrillator delivers an electrical shock to try to restore a normal rhythm. The team checks the rhythm and pulse every two minutes, adjusts medications, and continues CPR until the patient regains a pulse or the team decides to stop resuscitation efforts.
Who Responds to a Code Blue?
The response team varies by hospital size and resources. In large academic centers, a dedicated “rapid response team” may be on call around the clock. In smaller hospitals, the team might consist of the hospitalist on duty, the emergency department doctor, a respiratory therapist, and a few nurses. Some hospitals also include a chaplain or social worker to support the family. Every member of the team has advanced training in resuscitation, and they practice together regularly through mock codes to stay prepared.
Importantly, the first person to discover the patient — often a bedside nurse — starts CPR immediately before the team arrives. Early chest compressions and defibrillation within minutes dramatically improve the chance of survival.
What Causes a Code Blue Event?
Cardiac arrest is the most common reason for a Code Blue, but respiratory arrest can also trigger it. In adults, the most frequent causes of cardiac arrest in the hospital are heart attacks (myocardial infarction), severe infections, major blood loss, electrolyte imbalances, and drug overdoses. In children, respiratory failure leading to cardiac arrest is more common. Some codes are expected — for example, a patient in the intensive care unit with worsening vital signs — while others happen suddenly, such as a patient who stops breathing after a medication error.
It is important to understand that a Code Blue does not always mean a heart attack. The heart may stop for many reasons, and the treatment depends on the underlying rhythm. A patient in a rhythm called “pulseless electrical activity” cannot be shocked; the team must treat the underlying cause, such as low blood volume or a blood clot in the lungs.
How Often Do Patients Survive a Code Blue?
Survival to hospital discharge after an in-hospital cardiac arrest averages around 15 to 25 percent, according to large studies from the United States and other countries. This figure varies widely based on the patient’s age, overall health, how quickly CPR started, and the initial heart rhythm. Patients whose heart rhythm is shockable — like ventricular fibrillation — have a better chance of survival, sometimes approaching 40 percent when defibrillation occurs within three minutes. Patients with rhythms that are not shockable have a much lower survival rate, often less than 10 percent.
These numbers reflect real-world outcomes, not worst-case scenarios. Many factors influence survival, and the hospital’s goal is to improve those odds through rapid response, high-quality CPR, and post-resuscitation care such as controlled temperature management.
What Is the Difference Between Code Blue and Other Hospital Codes?
Hospitals use many codes to designate different emergencies. Code Red means fire. Code Orange means a hazardous material spill. Code Silver means an active shooter. Code Gray means a combative or violent person. Code Blue is the only one that specifically refers to a patient in cardiac or respiratory arrest. Some hospitals also have a Code Stroke, which activates a separate team to evaluate and treat a suspected stroke, and a Code Sepsis to rapidly treat severe infection. Each code triggers a different team and protocol.
If you hear a Code Blue overhead and you are not part of the response team, the best thing to do is stay out of the way. The team needs a clear path to the patient’s room, and extra people in the hallway can slow them down.
What Should Patients and Families Know About Code Blue?
If you or a family member is in the hospital, it is natural to feel anxious hearing a Code Blue announcement. Remember that it means a team is working to save someone’s life, and that team is highly trained. If you have questions about your own care, ask your doctor or nurse about what would happen if your heart were to stop. This is called a “code status” discussion. Some patients choose to be “full code,” meaning they want all resuscitation efforts. Others, especially those with advanced illness, may choose a “do not resuscitate” (DNR) order so that if their heart stops, medical staff will not attempt chest compressions or electric shocks. This decision is personal and should be made with your healthcare team based on your values and medical condition.
It is also worth knowing that Code Blue events are rare for the average patient. Most hospital stays do not involve any resuscitation emergency. The system exists as a safety net for the most critical situations.
Frequently Asked Questions
Is a Code Blue always a heart attack?
No. A Code Blue means the heart has stopped or the patient has stopped breathing, but the cause may be an infection, blood loss, drug overdose, or respiratory failure — not necessarily a heart attack.
Should I be worried if I hear a Code Blue in the hospital?
You do not need to panic. The team is trained to respond quickly, and the code is for a specific patient — it does not mean the whole hospital is in danger.
Can a patient survive a Code Blue?
Yes. On average, about 15 to 25 percent of patients survive to discharge after in-hospital cardiac arrest, and survival is higher when the heart rhythm is shockable and CPR starts immediately.
What does “code status” mean?
Code status is a medical order that specifies whether you want resuscitation if your heart or breathing stops. “Full code” means try everything; “DNR” means do not attempt resuscitation.

