A cabinet air conditioner is sized from two numbers: the heat your components generate, and the heat that leaks in through the walls. Get both, add margin, and the sizing is done. The installation matters as much as the number: mount the unit where condensate can drain freely, seal the cutout to the rating, and prove the drain works before you load the panel. Skip the drain check and the most common failure in the trade floods the box from the inside.
When an air conditioner is the right cooler
Start by confirming the unit type. A filtered fan can only bring the inside temperature down toward the outside temperature, and it pulls dust and moisture in with the air. A heat exchanger keeps the box sealed but also can only approach ambient. An air conditioner is the only closed-loop option that cools below ambient, which is what a hot-running drive, servo amplifier or compact PLC needs when the sun is on the door and the machine is running hard.
A sealed box with an air conditioner stays sealed: no dust, no oil mist, no washdown water at the components. If the ambient is mild and the load is light, check the alternatives first. The trade-offs between a fan, a heat exchanger and a compressor unit are laid out in the enclosure cooling comparison: fan vs air conditioner vs heat exchanger, and where the load is small and steady a thermoelectric cooler may beat an air conditioner.
Work out the internal heat load
Add the heat generated by everything inside, in watts. Use nameplate or datasheet dissipation figures:
- A 5 hp VFD running a heavy load: roughly 100 to 150 W of loss
- A compact PLC and power supply: 20 to 50 W
- A 15 W transformer at half load: around 10 W
- HMI, relays, terminal blocks: small, but not zero
Do not confuse electrical consumption with heat. A drive drawing 4 kW from the line does not put 4 kW into the box; it dissipates its losses, typically 2 to 4 percent at full load. When a datasheet is silent, assume its stated efficiency is the guide and the remainder becomes heat.
Add the heat that leaks through the walls
When the outside air is hotter than the inside target, heat flows in through the enclosure surface. The standard sizing formula:
Q_leak = A × ΔT × k
where A is the exposed surface area in square feet, ΔT is the difference between the maximum ambient and your target internal temperature, and k is about 1.25 W per square foot per degree F for a steel or stainless cabinet. Multiply the internal watts by 3.412 to express the total in BTU/hr if the cooler is rated that way.
Worked example: a 24 x 20 x 10 in enclosure, four sides plus top exposed, gives roughly 15 square feet. With 105 F (40 C) ambient outside and a 95 F (35 C) target inside, ΔT is 10 F, so the walls add about 190 W. If the components generate 400 W, the total is 590 W, or about 2,000 BTU/hr. A unit rated 3,000 BTU/hr carries a healthy margin for future additions.
For help getting the box size itself right, the guide on how to size an electrical enclosure covers the internal space the heat-producing components need in the first place.
Pick the mounting position
Where the unit sits decides how well it works and how it fails:
- Side-mounted is the default. The evaporator and drip pan sit inside, the condenser and hot air discharge outside, and the drain hose can run down the wall in a short, visible run.
- Top-mounted saves wall space but puts the drip pan above the components. Every blocked drain ends over your electronics. If you must go on top, make the drain check a scheduled task, not an afterthought.
- Keep it off the sun side where the layout allows. Direct sun adds real heat to the condenser and cuts capacity; the solar heat load on an outdoor enclosure can push a dark-skinned box dozens of degrees above air temperature.
Also leave the clearances the manufacturer calls for around the condenser intake and discharge. A unit starved for airflow cannot deliver its rated BTU/hr no matter what the label says.
Plan the cutout and keep the rating
The air conditioner needs a hole through the enclosure wall. On a rated box, that hole is the weak point unless you cut and seal it properly:
- Use the template the unit supplies and mark the opening on the outside face.
- Cut to the flange footprint, deburr the edge, and touch up any bare carbon-steel cut line; on stainless, passivate the edge.
- Mount with the supplied gasket compressed evenly, and seal any unused pilot holes.
- Route the drain through its own sealed pass-through, not a loose hose stuffed into the cutout.
Do it this way and the box keeps the manufacturer rating it shipped with; that rating is the manufacturer's, not UL listed, and it holds only if every opening is sealed as the cooling unit's instructions require. When you are ordering a box around a specific cutout layout, a custom stainless enclosure built to your drawing avoids field cutting altogether.
Plumb the condensate drain so it cannot flood the box
The air conditioner dries the air as it cools, and that water collects in a drip pan. In humid weather a unit can produce a surprising amount; a clogged or uphill drain overflows the pan straight into the cabinet. Make the drain fail-safe:
- Run the hose downhill the whole way, as short as possible, with no sags that hold water.
- Terminate where lint, dust and washdown spray cannot plug the end, and below the pan level.
- Support the hose so vibration cannot work it loose.
- Add the manufacturer's drain fitting, not a generic barb, so the pan seal stays intact.
Gravity-fed drains back up for predictable reasons, and the common failure modes and fixes are covered in this condensate drain backflow troubleshooting article. The general rule of keeping water moving out of a sealed box is the same one behind breather and drain placement by enclosure volume and the condensation guide for sealed enclosures.
Checks when the installation is done
Before you sign off:
- With the door open, pour a cup of water into the drip pan and confirm it exits freely at the drain end.
- Run the unit with the panel loaded and log the internal temperature for an hour against your target.
- Feel the condenser discharge: warm, steady airflow means the compressor is working.
- Inspect the door gasket and the unit's flange gasket for even compression.
- Look for condensation on the inside of the door after a humid day; the drip pan should catch it, and the drain should carry it away.
Mistakes that cost you the cooling and the rating
- Sizing on nameplate kilowatts instead of heat losses, and buying far more unit than the load needs.
- Forgetting wall leakage on a sun-exposed box, so the unit runs flat out and still loses the race on hot afternoons.
- Top-mounting without a drain maintenance plan; the classic way a cooler kills a machine.
- Cutting the hole oversize and sealing the gap with generic tape instead of the flange and gasket.
- Letting the drain end sit in a puddle or a filter sock that blocks it within weeks.
Size from the heat, mount it low enough to drain, seal the cutout like any other gland, and check the pan every service visit. The sizing math takes twenty minutes; a flooded panel costs a machine down and a rewiring week.
Questions
How do I size a cabinet air conditioner in watts or BTU/hr?
Add up the heat generated inside in watts, convert to BTU/hr by multiplying by 3.412, then add the heat that passes through the walls: surface area times the temperature difference times a transfer factor of roughly 1.25 W per square foot per degree F for a steel cabinet. Size the unit above that total, typically with 10 to 25 percent spare.
Why did condensate flood my enclosure if the air conditioner works?
The unit dehumidifies the air and collects water in a drip pan. If the drain hose clogs, kinks or runs uphill, the pan overflows into the cabinet. Mount the unit so the drain runs downhill with a short hose, and inspect the outlet during every service interval.
Can I cut a mounting hole in a rated enclosure without losing the rating?
Yes, if the cutout matches the air conditioner's flange and gasket footprint, all edges are deburred and sealed, and every fastener is tightened so the gasket compresses evenly. The rating is manufacturer-rated, not UL listed, and it only holds if the opening is sealed as the unit's instructions require.
Is an enclosure air conditioner better than a fan or heat exchanger?
A fan works only when the outside air is cooler and clean enough to admit. A heat exchanger keeps the enclosure sealed but can only pull the inside temperature down toward ambient. An air conditioner cools below ambient in a sealed box, which is what a hot-running drive or PLC needs on a hot day.





