A code blue is a medical emergency. It means a patient has stopped breathing, has no pulse, or both. Nurses are often the first to recognize it and the first to act. Running a code well comes down to a clear sequence: recognize the emergency, call for help, start high-quality chest compressions, and follow the team’s assigned roles until the patient recovers or the code is called.
This guide walks through that sequence step by step. It focuses on what nurses actually do during a code, why each step matters, and where honest uncertainty exists.
How To Run A Code Blue Step By Step For Nurses?
The steps below follow the general structure of advanced life support. Your facility’s protocol, equipment, and team roles may differ in the details, so always defer to your employer’s policy and your current certification training.
Step 1: Recognize the emergency
You notice a patient who is unresponsive, not breathing normally, or has no palpable pulse. Agonal gasping — irregular, gasping breaths — is not normal breathing and should be treated as cardiac arrest.
Check responsiveness by tapping and shouting. Look at the chest for breathing for no more than 10 seconds. If you are trained and it is within your scope, check for a carotid pulse at the same time.
If there is no normal breathing and no pulse, this is a code. Do not delay to search for a blood pressure cuff or a monitor reading.
Step 2: Call for help and activate the code
Shout for help. Activate the code blue system — this may be a button, a phone call, or a page, depending on your facility. If you are alone, call for help before starting compressions unless your protocol directs otherwise.
Give a clear, loud report when responders arrive. State the room number, the patient’s name, and what you found. “Room 412, John Doe, unresponsive, no pulse, no breathing.” That single sentence tells the team everything they need to move.
Step 3: Start chest compressions
Begin compressions immediately. Time to first compression is one of the few things that clearly changes outcomes, so this step should not wait for the crash cart or the code team.
Position the patient flat on a firm surface. Place the heel of one hand on the lower half of the breastbone and the other hand on top. Keep your arms straight and your shoulders directly over your hands.
Push hard and fast. The established rate is 100 to 120 compressions per minute, with a depth of at least 2 inches (about 5 cm) in adults, allowing the chest to fully recoil between compressions. Minimize interruptions — every pause drops the pressure that keeps blood moving to the brain and heart.
If you are trained and the patient has an advanced airway in place, compressions can continue without pausing for breaths. If not, follow the compression-to-breath ratio you were trained in, which for a single rescuer is typically 30 compressions to 2 breaths.
Step 4: Attach the monitor and defibrillator
As soon as the crash cart arrives, attach the defibrillator pads. The monitor will show whether the rhythm is shockable.
Two rhythms respond to a shock: ventricular fibrillation and pulseless ventricular tachycardia. If the monitor shows one of these, the patient needs defibrillation as soon as possible. If it shows a non-shockable rhythm such as asystole or pulseless electrical activity, the team continues compressions and looks for reversible causes.
Resume compressions immediately after a shock. Do not stand back to watch the monitor.
Step 5: Establish roles and communicate
A code runs best when everyone has a defined job. Common roles include:
- Compressor — delivers chest compressions and rotates out every 2 minutes or sooner if fatigued
- Airway — manages ventilation and the airway
- Monitor/defibrillator — operates the defibrillator and tracks rhythm
- IV/medication nurse — gives drugs as ordered
- Recorder — documents times, interventions, and drugs
- Team leader — directs the code and makes decisions
Compressor rotation matters more than it sounds. Fatigue quietly reduces compression depth and rate, and the person pushing often does not notice it happening. Swap out on schedule, not when you feel tired.
The team leader should be someone who is not doing a hands-on task, so they can see the whole picture. This is a widely accepted practice, though the evidence for any single leadership model is not strong.
Step 6: Give medications as ordered
During a code, medications are given on the team leader’s orders, usually through an IV or IO line. Epinephrine is the standard drug for cardiac arrest and is typically given at fixed intervals. Antiarrhythmic drugs may be used for shockable rhythms.
Medication timing and dosing should follow your facility’s protocol and your current certification. Do not rely on memory for doses — confirm against the code cart reference or your protocol.
Step 7: Search for reversible causes
Some cardiac arrests have a cause that can be corrected. Teams are trained to run through a standard list, often remembered by the “H’s and T’s.” These include low oxygen, low blood volume, low body temperature, high or low potassium and other electrolytes, acid-base problems, and toxins, along with tension pneumothorax, tamponade, toxins, thrombosis in the lungs, and thrombosis in the heart.
Finding and fixing one of these can change the outcome. This is why the team keeps asking why the patient arrested, not just how to keep the heart moving.
Step 8: Decide when to stop
A code ends in one of three ways: the patient gets a pulse back, the team leader determines that further efforts will not help, or the patient has a valid do-not-resuscitate order that should have stopped the code before it started.
Deciding to stop is a medical and ethical judgment made by the team leader, based on the patient’s condition, the duration of the arrest, and any known wishes. Nurses should speak up if they have information the leader does not — for example, a DNR order that was not flagged, or a family member’s stated wishes.
Step 9: After the code
If the patient gets a pulse back, care shifts to supporting breathing, blood pressure, and organ function. This is called post-cardiac-arrest care, and it is its own set of priorities.
If the patient does not survive, your job shifts to documentation and support. Write down what happened while it is fresh: times, drugs, interventions, and who was present. Debrief with the team. Codes are hard on everyone, and talking through them is part of good practice, not a sign of weakness.
What Are the Most Common Mistakes During a Code Blue?
The biggest problem is interruptions. Every time compressions stop — to check a rhythm, to switch people, to place a line — blood flow to the brain drops, and it takes time to build back up. Keeping pauses short is one of the clearest ways to improve a code.
Other common issues include:
- Compressions that are too shallow or too slow as the rescuer tires
- Waiting for the crash cart before starting compressions
- Not assigning clear roles, so tasks get missed or duplicated
- Forgetting to document in real time, which makes the record unreliable
- Failing to rotate compressors on schedule
Most of these come down to one thing: hesitation. Practice and mock codes reduce it, which is why most facilities run them regularly.
What Should Nurses Do Before a Code Ever Happens?
Preparation is what makes a code run smoothly. The skills are the same whether you have done a hundred codes or none, but the confidence comes from practice.
Know where your code cart is, how to activate the code system, and what your role would be. Keep your basic and advanced life support certifications current. Take part in mock codes when your unit offers them.
One point that is easy to overlook: the recorder role is not a lesser job. A clear, accurate record of what happened and when is often the single most useful document after a code, for the team and for the family.
Does the Evidence Support Every Step?
Some steps are backed by strong evidence. Early, high-quality chest compressions and early defibrillation for shockable rhythms are consistently linked to better survival. This is not controversial.
Other steps are widely practiced but rest on weaker evidence. The exact compression-to-breath ratio, the timing of some medications, and the best leadership structure during a code are areas where practice varies and the research is less settled. That does not mean those steps are wrong — it means the evidence is not as strong as it is for compressions and defibrillation.
This distinction matters for nurses. It is worth knowing which parts of a code are firmly established and which are accepted practice that may change as new research comes out.
How Do You Handle the Emotional Side of a Code?
Running a code is stressful, and that stress does not disappear when the code ends. It is normal to feel shaken afterward, whether the patient survived or not.
Debriefing helps. Many hospitals hold a short team debrief after a code, and some offer access to peer support or employee assistance programs. Talking through what happened — what went well and what was hard — is a recognized part of clinical practice.
There is no single right way to process a code. What matters is that nurses do not carry it alone.
What Is the Difference Between a Code Blue and Other Codes?
A code blue specifically means a medical emergency, usually cardiac or respiratory arrest. Hospitals may use other colors or names for different emergencies, such as a fire, an infant abduction, or a violent situation. The exact color codes are set by each facility, so what is a code blue at one hospital may be named differently at another.
The one thing that is consistent is the response: a code blue brings the resuscitation team to the patient as fast as possible.
Frequently Asked Questions
What does a code blue mean?
A code blue means a patient needs immediate resuscitation, usually because they have stopped breathing, have no pulse, or both. The exact meaning can vary slightly by hospital, so check your facility’s policy.
Who is allowed to start chest compressions during a code blue?
Anyone trained in basic life support can start compressions, and nurses are often the first to do so. Starting compressions immediately matters more than waiting for the code team to arrive.
How often should compressors rotate during a code?
Compressors should rotate about every 2 minutes, or sooner if they become fatigued. Rotating on schedule helps prevent the drop in compression depth and rate that happens as rescuers tire.
What should a nurse do if they are unsure of their role during a code?
Speak up and ask the team leader for an assignment. Clear roles prevent missed tasks, and it is always better to ask than to stand unsure while the code is running.

