Cooling a Raspberry Pi 5
When a Pi 5 needs a cooler, how the fan header and the built-in fan control work, and how to change when the fan comes on.
Does it need cooling?
A Raspberry Pi 5 can't overheat itself into damage. Its processor watches its own temperature and slows down to protect itself:
- from 80°C it starts throttling the CPU cores, a step at a time;
- at 85°C it throttles both the CPU and the GPU.
So cooling isn't about safety; it's about speed. Light jobs (a Pi-hole, a sensor logger, a desktop that mostly sits idle) run fine with no cooler. Anything that keeps the processor busy for minutes at a time (compiling code, video, games, AI models, a busy home server) will hit 80°C and slow down without one. If you plan to overclock, fit the Active Cooler.
Standing the board on its edge helps a little, as warm air rises off it more easily.
Your options
| Option | How it cools | Best for |
|---|---|---|
| Active Cooler | Heatsink plus a fan, clipped to the board | Sustained work, overclocking |
| Raspberry Pi 5 Case | A fan built into the case lid | A tidy desktop or media box |
| Tower coolers | Large heatsink with a fan above it | Maximum headroom, open builds |
| Passive heatsink | Metal fins, no fan | Quiet, light-to-medium loads |
The Active Cooler and the official case both plug into the fan header, so the Pi controls their speed for you. The case's fan uses about 60 mA at 5 V.
The fan header
The Pi 5 has a small four-pin fan socket (a JST-SH connector) in the top-right corner, between the GPIO header and the USB 2.0 ports. Its pins are:
- +5 V
- PWM speed control
- Ground
- Tachometer (speed sense)
Power for the fan comes out of the same budget as the USB ports, so a fan is one more reason to use the 27 W power supply.
When the Pi starts, it spins the fan briefly and checks the tachometer. If a fan answers, Raspberry Pi OS switches on fan control automatically. There's nothing to install.
When the fan comes on
Out of the box the fan follows the processor temperature:
| Temperature | Fan speed |
|---|---|
| below 50°C | off |
| 50°C | 30% |
| 60°C | 50% |
| 67.5°C | 70% |
| 75°C | full speed |
Each step only drops back once the temperature has fallen 5°C below it, so the fan doesn't flick on and off around a threshold.
Changing the fan curve
You can move those thresholds in /boot/firmware/config.txt. There are four steps, numbered 0 to 3, each with a temperature (in thousandths of a degree), a speed (0–255) and a hysteresis. For example, to keep the fan off until 55°C:
dtparam=fan_temp0=55000
The other settings follow the same pattern: fan_temp1, fan_temp0_speed, fan_temp0_hyst and so on. Reboot after editing.
Checking the temperature
Run this in a terminal to see the processor temperature:
vcgencmd measure_temp
and this to see whether the Pi has throttled since it started (anything other than throttled=0x0 means it has, either from heat or from a weak power supply):
vcgencmd get_throttled