Trane HVAC Error Code 21: How to Fix It

Medium 45-90 minutes Medium Severity Verified June 2026
Error Code
21
Brand
Trane
Product Type
hvac
Severity
Medium
DIY Difficulty
Medium
Estimated Fix Time
45-90 minutes
Trane HVAC error code 21 indicates that your compressor is short cycling — meaning it starts up, runs for only a brief period, and shuts off repeatedly rather than completing a full cooling or heating cycle. This puts excessive strain on the compressor motor and can lead to permanent damage if left unaddressed. Common causes include low refrigerant charge, dirty filters, electrical issues, or a failing high-pressure or low-pressure safety switch.
Ad

Tools You'll Need

How to Fix Error Code 21

  1. Check and Replace the Air Filter

    Turn the thermostat to OFF before accessing the air handler compartment. Do not run the system with no filter installed — debris can damage the blower motor and evaporator coil.
  2. Inspect and Clean the Outdoor Condenser Coils

    Disconnect power at the outdoor disconnect box AND turn the thermostat to OFF before spraying water near the unit. Never use a pressure washer — it will bend the delicate aluminum fins.
  3. Check the Thermostat Settings and Location

  4. Inspect the High-Pressure and Low-Pressure Safety Switches

    Refrigerant lines are under high pressure and contain chemicals that can cause frostbite or injury. Do NOT disconnect refrigerant lines yourself. Only a certified HVAC technician with an EPA 608 certification may legally handle refrigerant.
  5. Inspect the Capacitor on the Compressor

    CRITICAL: Capacitors store a lethal electrical charge even after power is disconnected. You MUST discharge the capacitor safely using a resistor or insulated discharge tool before touching it. If you are not comfortable with this step, call a licensed HVAC technician immediately.
  6. Check the Condensate Drain and Float Switch

    Standing water in the drain pan can cause mold growth. If the pan has been wet for an extended period, inspect for mold and clean thoroughly with an appropriate cleaner before restarting the system.
  7. Reset the System and Monitor Operation

    Do not attempt to restart the system repeatedly in quick succession — rapid restarts without the 5-minute wait can permanently damage the compressor.

Parts You May Need

High-pressure safety switch
Check Price on Amazon
Low-pressure safety switch
Check Price on Amazon
Replacement air filter
Check Price on Amazon
Condensate drain float switch
Check Price on Amazon
High-pressure safety switch
Check Price on Amazon
Low-pressure safety switch
Check Price on Amazon
Replacement air filter
Check Price on Amazon
Condensate drain float switch
Check Price on Amazon
High-pressure safety switch
Check Price on Amazon
Low-pressure safety switch
Check Price on Amazon
Replacement air filter
Check Price on Amazon
Condensate drain float switch
Check Price on Amazon
Ad

When to Call a Professional

Call a licensed HVAC technician immediately if: (1) the compressor is making grinding, rattling, or loud humming noises; (2) you suspect a refrigerant leak (ice on refrigerant lines, hissing sounds, or system blows warm air constantly); (3) the capacitor is visibly damaged and you are not comfortable safely discharging it; (4) short cycling continues after completing all the steps above; (5) the error code returns within 24 hours of a reset. Refrigerant handling legally requires an EPA 608 certification — attempting to add or recover refrigerant yourself is illegal and dangerous. A failing compressor also requires professional replacement, which is a complex, expensive repair.

Frequently Asked Questions

What does error code 21 mean on a Trane HVAC system?
Trane error code 21 indicates compressor short cycling — your compressor is starting and stopping in rapid, abnormally short intervals instead of running through a complete cycle. This is usually caused by low or overcharged refrigerant, a dirty filter or coil, a failing capacitor, a tripped pressure switch, or a clogged condensate drain line.
Can I fix Trane error code 21 myself?
Some causes of error code 21 are DIY-friendly, such as replacing a clogged air filter, cleaning the condenser coils, clearing a blocked condensate drain, or replacing a failed capacitor (if you know how to safely discharge it). However, anything involving refrigerant levels, refrigerant leaks, or a damaged compressor must be handled by a certified HVAC professional with an EPA 608 license.
How long does a compressor last when it short cycles?
Short cycling significantly shortens compressor life. Each startup puts far more electrical and mechanical stress on the compressor than normal operation. If a compressor short cycles for days or weeks without repair, it can fail within months rather than lasting its expected 10–15 year lifespan. Address the root cause of error code 21 as soon as possible.
Why does my Trane AC keep turning on and off every few minutes?
If your Trane AC turns on and off every few minutes, it is short cycling. The most common reasons include a dirty or blocked air filter starving the system of airflow, low refrigerant causing the low-pressure switch to trip, a failing run capacitor preventing the compressor from staying running, a dirty condenser coil causing high head pressure, or an oversized AC unit that cools the space too quickly. Start by checking the filter and outdoor unit cleanliness before calling a technician.
How much does it cost to repair Trane error code 21 compressor short cycling?
Repair costs vary widely depending on the cause. A simple filter replacement costs only a few dollars. A capacitor replacement typically runs $75–$200 including labor. If the system needs refrigerant, expect to pay $150–$400+ depending on the type and amount needed, plus leak repair if applicable. A compressor replacement — the worst-case scenario — can cost $1,200–$2,800 or more depending on unit size and labor rates in your area.