A hospital worker hearing "code red" or "code blue" over the overhead speaker needs to know which response applies. The general rule is that code red signals a fire or smoke emergency, while code blue signals a medical emergency, typically a patient in cardiac or respiratory arrest. The two codes call different teams and trigger different actions, so the distinction is not cosmetic.

What Code Red Means

Code red is the standard hospital overhead alert for fire, smoke, or burning smell inside the building. Staff hearing it follow the facility's fire response plan: clear corridors, close doors to contain smoke, and prepare for possible evacuation of the affected zone. The announcement usually names the location, such as a floor, wing, or room number, so responders go directly to the right area.

Hospitals choose color codes because plain language can cause panic among visitors and patients. A code red lets trained staff move into action without alarming the public. The exact procedure varies by facility, and staff should follow the printed fire plan posted in their unit rather than a generic script.

What Code Blue Means

Code blue is the alert for a patient who is unresponsive and not breathing normally, or who has no pulse. It summons the resuscitation team, often called the code team, to the patient's bedside with a crash cart, defibrillator, and airway equipment. The announcement includes the location so the team can find the patient quickly.

In most facilities, any staff member who finds an unresponsive patient calls for help, starts chest compressions if trained, and triggers the code blue through the internal emergency system. The team then takes over advanced resuscitation. Hospitals train staff on the exact activation method, which may be a phone number, a pull cord, or a button on the wall panel.

Side-by-Side Comparison

The table below compares the two codes on the points that matter when a call goes out.

AttributeCode RedCode Blue
TriggerFire, smoke, or burning odorPatient unresponsive, not breathing, or pulseless
Team summonedFire response team and unit staffResuscitation or code team
EquipmentFire extinguisher, evacuation aids, fire doorsCrash cart, defibrillator, airway kit, medications
Primary actionContain fire and smoke, prepare to evacuate the zoneStart CPR, attach monitor, deliver advanced life support
Location announcedFloor, wing, or room of the fireFloor, wing, or room of the patient
Who responds firstStaff nearest the alarm and the fire teamStaff who find the patient and the code team
Visitor instructionStay clear of the area, follow staff directionsStep out of the room, allow the team access

Which Code Applies to Your Situation

Use this decision list when a code is called or when you are writing a facility plan.

  • Pick code red if you see flames, smoke, or smell burning plastic or wiring, or if a fire alarm activates in your zone.
  • Pick code blue if a person is unresponsive, gasping, or has no detectable pulse and no normal breathing.
  • If both are present, such as a fire in a patient room, call code red first and move the patient if it is safe to do so; the fire team and code team can be activated together.
  • If you are unsure whether a patient meets code blue criteria, activate the code and let the team assess; delaying a resuscitation call is more dangerous than a false alarm.

Pros and Cons of Color Codes

Color codes have clear advantages: they are short, easy to hear over a speaker, and understood by trained staff across departments. They also keep visitors from panicking. The drawbacks are that meanings differ between facilities, so a code blue in one hospital may not mean the same in another, and new staff must learn each facility's list. Plain-language announcements are an alternative some hospitals use, but they can alarm the public and are slower to say.

Other Codes You May Hear

Code red and code blue are two entries in a longer list. Common additional codes include code pink for an infant or child abduction, code silver for a person with a weapon, code orange for a hazardous material spill, and code yellow for a missing patient. Names and meanings vary by facility, so check the posted code list in your unit. Do not assume a code means the same thing in a different building.

What to Do When a Code Is Called

For code red, stop what you are not required to finish, close doors behind you, and move to the nearest safe area away from the announced location. Do not use elevators unless directed. For code blue, clear the hallway outside the room, bring the crash cart if you are assigned to it, and keep family members calm while the team works. In both cases, follow the instructions of the charge nurse or incident commander.

After the event, staff usually take part in a debrief. For code blue, record the time compressions started and the time of the first shock if one was delivered; these times matter for the patient's record. For code red, note the location and cause if known. Facilities review these events to improve response.

Training and Drills

Most hospitals run fire drills and mock code blue drills at set intervals. Staff should know the location of the nearest fire extinguisher, alarm pull station, and crash cart. During a drill, treat the scenario as real: walk the route, check that the cart seal is intact, and confirm that the emergency phone number is posted. If a drill reveals a blocked exit or an empty oxygen cylinder, report it before the next shift.

For code blue, the first few minutes matter most. Compressions at 100 to 120 per minute and 2 to 2.4 inches deep are standard for adult CPR, with a switch of compressor every 2 minutes to limit fatigue. Those figures come from resuscitation guidelines, and staff should follow the current protocol taught in their certification course.

Code Red and Code Blue in Other Settings

Outside hospitals, the terms appear in workplaces, schools, and public buildings that use color-coded emergency plans. A code red in a factory may mean fire, while a code blue in a school may mean a medical emergency. Because the meanings are local, read the emergency plan posted at the site. If no plan is posted, ask the safety officer which code applies to fire and which to a medical emergency.

Some facilities use the terms informally for non-emergency situations, such as a code blue for a broken machine. Treat any overhead code as real until staff confirm otherwise, and never ignore an announcement because it is probably a drill.

Common Points of Confusion

People sometimes ask whether code blue means a psychiatric emergency. In most facilities it does not; behavioral emergencies often use a different code, such as code violet or a plain-language call. Another confusion is code red versus a fire alarm: the alarm may sound automatically, while code red is the staff announcement that directs the response. If both occur, follow the fire plan and the announced location.

Visitors should not try to respond to either code beyond staying out of the way. If a family member is in the room when code blue is called, step into the hallway and let the team enter; staff will explain what is happening as soon as they can.