Step outside next to your air conditioning unit on a hot day and hold your hand near it. You will feel a blast of hot air coming out. That heat is not a byproduct. It is the entire point of how your AC works.
Your air conditioner does not create cold air. It removes heat from the air already in your room and dumps that heat outside.
Most people picture an AC blowing cold air into a room, as if it has some supply of coldness it draws from. It does not. There is no cold being manufactured anywhere in the system. What your air conditioner actually does is move heat: it extracts heat from your indoor air and deposits it outdoors. Your room feels cooler because heat has left it. The outdoor unit feels hot because that heat has arrived there.
The mechanism that makes this possible is a substance called a refrigerant, a fluid that is very good at absorbing heat when it evaporates and releasing heat when it condenses. That fluid travels in a continuous loop between the indoor unit (the evaporator) and the outdoor unit (the condenser). The compressor drives the whole cycle by creating a pressure difference that forces the refrigerant through both phase changes. Understanding this loop is understanding everything about how an AC works.
The compressor, sitting in the outdoor unit, squeezes the refrigerant gas, raising its pressure and temperature. This hot gas flows into the condenser coil, also outside, where a fan blows air over it. The refrigerant is hotter than the outdoor air, so heat flows from the refrigerant into the outside air. That heat is gone, deposited outdoors. Now cooler, the refrigerant travels back inside through a tiny expansion valve. That valve drops the pressure suddenly, and dropping pressure drops temperature. The refrigerant becomes extremely cold. It flows into the evaporator coil inside your home. Room air is warmer than this cold coil, so heat flows from the air toward the refrigerant. The air loses heat. The refrigerant absorbs it. The indoor fan blows that cooler air back into the room, and the cycle repeats.
Where does the heat actually go?
Every unit of heat that leaves your room ends up outside, plus a little extra from the compressor motor itself. This is why the outdoor unit blows hot air. It is not a malfunction. It is the entire job of that half of the machine.
This also explains something most people never think about: your air conditioner makes your room cooler but makes the outdoors slightly warmer. In a city where millions of AC units run simultaneously on a hot day, the expelled heat measurably raises the outdoor temperature. Research from Arizona State University found that AC waste heat increases nighttime air temperatures in some urban areas by more than 1 degree Celsius. That hotter outdoor air makes every AC work harder, which dumps more heat outside, which raises temperatures further. It is a feedback loop, and it is one reason city summers have been getting hotter faster than rural areas.
Turn off the AC and watch indoor particles speed up as heat accumulates. Blue particles flow through the wall when the AC moves heat outside.
The thing that surprises everyone
Your AC makes your room cooler but your city slightly warmer. All that heat has to go somewhere.
Once you understand the loop, the outdoor unit stops being a mystery. It is not a separate thing from the cold you feel inside. It is the other half of the same machine, doing the second half of the same job. Your room gets cold the same way your refrigerator gets cold: not by generating cold, but by continuously removing heat and putting it somewhere else. The fridge puts it in your kitchen. Your AC puts it outside. Every air conditioner, heat pump, refrigerator, and car climate system is the same four stages, run for different purposes, in different directions. The refrigerant loop is one of the most useful physical principles ever put to work.