Cooling Fans for Electronics Enclosures: CFM, Static Pressure, Noise, and PWM Control
Every enclosure guide on this site touches on ventilation in passing, but fan selection is its own small discipline with its own specs, and picking the wrong fan is one of the most common reasons a DIY enclosure ends up either too hot or unbearably loud. Whether it's a project box for a bench power supply, a 3D-printed enclosure for a Raspberry Pi cluster, or a sealed case for outdoor electronics, the same handful of numbers — CFM, static pressure, and dBA — determine whether a fan actually solves your heat problem or just makes noise.
The Core Specs
- CFM (cubic feet per minute): the volume of air a fan moves in open air, with nothing blocking the airflow. This is the number printed on the box, and it's also the most misleading one in isolation, because almost no real enclosure is "open air."
- Static pressure (measured in mmH2O or inH2O): how much resistance the fan can push air against before flow drops to zero. This is the number that actually matters for enclosures, because vents, filters, dust mesh, and internal components all restrict airflow. A high-CFM fan with low static pressure will struggle to blow air through a small vent grille or a dust filter and moves far less air in practice than the box number suggests.
- Noise (dBA): fan noise roughly scales with the cube of RPM — doubling fan speed for modest airflow gains produces a disproportionate noise increase. A slightly larger, slower-spinning fan is almost always quieter than a small fan spun fast to hit the same CFM.
- Fan curve: the actual relationship between airflow and pressure across a fan's full operating range, published by better fan manufacturers as a graph. Comparing fan curves rather than a single headline CFM number is how you tell whether a fan is suited to a restrictive enclosure or an open frame.
Restrictive vs. Open Airflow
Fan DesignBlade ShapeBest For Airflow-optimized fanFewer, wider blades, lower pressure capabilityOpen enclosures, large vents, moving air across an open PCB Static-pressure-optimized fanMore blades, steeper pitch, higher pressure capabilityPushing air through filters, dust mesh, small vent holes, heatsink fin stacks — the common case for a sealed project boxMost cheap generic "12V DC brushless fan" listings don't specify which design philosophy they use, which is why fans that look identical on paper can perform very differently once mounted behind a filtered vent. If an enclosure has any meaningful restriction — a dust filter, a small grille, or air having to travel across internal heatsinks — a static-pressure fan will outperform a higher-CFM airflow fan at the same noise level.
Sizing Airflow for an Enclosure
A simple starting method: estimate the heat you need to remove (in watts) from the components inside, and size airflow to keep the temperature rise across the enclosure within a target range. As a rough rule of thumb for electronics enclosures with modest heat loads (a few watts to a few tens of watts, like an ESP32 project box, a Pi cluster, or a small power supply), even a single well-placed 40–60mm fan moving 5–15 CFM through the case is often enough — the goal is establishing directional airflow (one intake, one exhaust) rather than brute-forcing maximum CFM. For higher heat loads — a reflow oven's cooling requirements, an enclosure housing a linear power supply's transformer and heatsinks, or a laser's power supply bay — size airflow against the specific component datasheets' thermal ratings rather than guessing.
- One intake, one exhaust, diagonal placement: place the intake low and the exhaust high and on the opposite side/corner, so air is forced across the whole interior rather than short-circuiting straight across a small area near the fans.
- Positive vs. negative pressure: running the intake fan(s) at slightly higher CFM than the exhaust creates positive pressure inside the case, which pushes dust out through gaps rather than pulling it in — useful in dusty shop environments (near a CNC router or laser cutter) where filtered intake air is cleaner than whatever leaks in through unfiltered seams.
- Don't fight the fan with a filter you didn't budget for: adding a dust filter after the fact turns an airflow-optimized fan choice into an underperforming one; account for filter restriction in the initial fan selection, not as an afterthought.
PWM Fan Control
A 4-pin PWM fan (the same standard used in PC cooling and increasingly common in 3D printer hotend/part-cooling fans) can be speed-controlled digitally instead of running full-speed all the time or being switched with a simple relay.
PinFunction 1Ground 2+12V (or +5V on some small fans) 3Tachometer (speed feedback, open-collector pulse output) 4PWM control input (25kHz nominal, 0–100% duty cycle)- Driving the PWM pin from an ESP32/Arduino: generate a 25kHz PWM signal on a GPIO (the LEDC peripheral on ESP32 handles this cleanly) and feed it to pin 4. Fan speed is not linear with duty cycle at the low end — most fans won't spin reliably below roughly 20–30% duty cycle and will stall rather than run slowly.
- Reading the tach signal: pin 3 outputs two pulses per revolution as an open-drain signal; pull it up to 3.3V/5V through a resistor and count pulses on an interrupt-capable GPIO to get real RPM feedback, which is what lets you build closed-loop thermal control (increase fan speed as measured temperature rises) instead of guessing at a fixed duty cycle.
- 3-pin (non-PWM) fans: these only support on/off or crude voltage-based speed control (via a MOSFET low-side switch or a linear regulator) — PID/PWM-style fine control isn't available on a 3-pin fan the way it is on a 4-pin one.
- Combine with PID control: for enclosures with meaningful heat load (like a reflow oven's cooldown phase, or a battery enclosure), the same PID loop concepts covered in this site's PID control guide apply directly to fan speed control against a temperature setpoint.
Practical Picks
ApplicationRecommendation Small ESP32/Pi project box, light heat loadSingle 40–50mm 5V or 12V fan, exhaust-only is often enough Filtered enclosure (dusty shop environment)Static-pressure-optimized fan, positive-pressure intake configuration Bench PSU or reflow oven enclosurePWM-controlled fan with tach feedback, closed-loop against a thermocouple/thermistor reading Outdoor/sealed enclosure (no direct venting)Consider a Peltier (TEC) module or a sealed heat-exchanger approach instead of a vented fan — see this site's Peltier module guideFan selection is a five-minute decision that's easy to get wrong by reading only the CFM number on the package. Matching a fan's pressure characteristics to how restrictive the actual enclosure is, giving air a real path in and out, and adding PWM control where the heat load justifies it will get better thermal results at lower noise than simply picking the highest-CFM fan that fits the mounting holes.
Related Guides
- Hearing Protection and Noise Control in a Maker Shop: Router, CNC, and Shop-Vac Noise Levels
- Compressed Air System for the Maker Shop: Compressor Sizing, Air Lines, and Air Tools
- EMI and Noise Suppression for Maker Electronics: Ferrite Beads, Decoupling, and Grounding Done Right
- Soundproofing and Noise Reduction for a Home Workshop
- Peltier (TEC) Modules for Makers: Cooling Electronics Enclosures, Camera Housings, and Cold Plates