To cool your Raspberry Pi effectively, you need to match the cooling method to your workload: a simple heatsink suffices for light tasks, while a small fan or active cooler is necessary for sustained heavy use to prevent thermal throttling. This article explains the heat problem, compares passive and active cooling, and gives practical steps to keep your Pi fast and stable.
Why Raspberry Pi Overheats
The Raspberry Pi’s CPU and GPU are packed into a tiny system-on-chip (SoC). Under load—like video transcoding, running a web server, or compiling code—the SoC can quickly reach its thermal limit. The official operating system, Raspberry Pi OS, includes a built-in governor that reduces the CPU clock speed when the temperature hits 85°C (185°F) to protect the silicon. This is called thermal throttling. You’ll notice it as slower performance, laggy UI, or longer compile times. In extreme cases, if the temperature exceeds 100°C, the Pi will shut down to prevent damage.
Ambient temperature matters too. A Pi in a warm room or inside a closed case with no airflow will run hotter than one in a cool, open space. The Pi 4 and Pi 5 are the most heat-prone models because they have faster quad-core processors. The Pi 5, released in 2023, has a more powerful CPU and can throttle even sooner under sustained load if not cooled.
Passive Cooling: Heatsinks and Cases
Passive cooling uses a heatsink—a metal block (usually aluminum or copper) with fins—that absorbs heat from the SoC and dissipates it into the air. The larger the surface area, the better it works. Many cases include a heatsink that attaches directly to the CPU with thermal adhesive or a pad. For light use, such as running a home automation hub or a retro gaming console for short periods, a heatsink alone is often enough.
However, passive cooling has limits. In a warm environment or under continuous load, a heatsink alone may not keep the Pi below 85°C. The Pi 5, in particular, can throttle even with a large heatsink if the case has poor airflow. If you plan to run heavy tasks for hours, you’ll likely need active cooling.
Active Cooling: Fans and Coolers
Active cooling adds a fan to move air across the heatsink or directly over the SoC. This is dramatically more effective. A small 30mm fan running at 5V can drop temperatures by 20-30°C compared to passive cooling alone. The official Raspberry Pi Active Cooler (for Pi 5) combines a heatsink with a blower fan that attaches to the board. Third-party options include clip-on fans, fan cases, and even liquid cooling kits (overkill for most users).
Fans introduce noise and moving parts, but modern Pi fans are quiet, especially at low speeds. You can control the fan with software (like pwmconfig or the built-in fan control in Raspberry Pi OS) to run only when the temperature exceeds a threshold, say 50°C. This extends fan life and keeps things silent during idle.
How to Choose the Right Cooling
Consider your use case:
- Light use (web browsing, SSH, simple scripts): a heatsink or even nothing is fine, but a heatsink is cheap insurance.
- Medium use (retro gaming, Kodi media center, occasional compiling): a heatsink plus a small case fan is a good balance.
- Heavy use (24/7 server, video encoding, machine learning inference): you need an active cooler—either a fan case or the official Active Cooler for Pi 5.
- Enclosed or industrial environments: consider a fan with a dust filter, or a metal case that acts as a large heatsink.
Also check your Pi model. The Pi 5 has a different mounting hole pattern and a dedicated fan connector, so the official cooler is the easiest option. The Pi 4 and older models use GPIO pins for fan power (pin 4 is 5V, pin 6 is GND).
How to Monitor Temperature
Before adding cooling, it’s wise to know your current temperatures. The simplest way is to open a terminal and run:
vcgencmd measure_temp
This returns a reading like temp=45.0'C. You can also use the watch command to update it every second: watch -n 1 vcgencmd measure_temp. For a graphical view, install raspimon or use the built-in system monitor in Raspberry Pi OS (right-click the taskbar and add a CPU temperature widget).
To test your cooling, run a stress tool like stressberry or simply compile something large. Monitor the temperature over 10-15 minutes. If it stays below 80°C, your cooling is adequate. If it hits 85°C, you’ll see throttling.
Common Mistakes and Misconceptions
One common mistake is using a heatsink without any thermal compound or pad. The heatsink must make good contact with the chip. Most kits include a pre-applied pad, but if you buy a bare heatsink, apply a tiny drop of thermal paste. Another mistake is blocking airflow. A fan that blows onto the heatsink but has no exhaust will just recirculate hot air. Ensure your case has vents.
A misconception is that the Pi always needs cooling. If you only use it for lightweight tasks, it runs fine without any. Another is that bigger is always better—a huge heatsink with no fan may perform worse than a small heatsink with a fan because the fan actively moves heat away. Finally, don’t ignore the power supply: a weak power supply can cause undervoltage (lightning bolt icon) which actually reduces performance, but that’s separate from temperature.
Cost and Safety Considerations
Cooling is inexpensive. A basic heatsink kit costs a few dollars, and a fan case is typically under $15. The official Raspberry Pi Active Cooler is around $5. There’s no risk of electrical shock from a fan, but be careful when attaching it—avoid bending the GPIO pins. Use a proper power supply (5V/3A for Pi 4 and Pi 5) to ensure the fan gets enough current. If you use a fan that draws too much current, it could cause voltage drops, so stick to fans rated for 5V and under 100mA.
Also, keep the Pi away from flammable materials. The board itself won’t catch fire, but a fan failure could cause overheating. Check that the fan spins freely after installation.
Alternatives: Underclocking and Software
If you can’t add hardware, you can reduce heat by limiting the CPU speed. In raspi-config, you can set the GPU memory or overclock, but underclocking is less common. You can also change the CPU governor to “powersave� to reduce clock speeds, which lowers heat and power consumption. For example, set it with:
echo powersave | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
This is a temporary change; to make it permanent, edit /etc/rc.local. Another software approach is to use cpufrequtils to set the max frequency. Underclocking reduces performance, so it’s only a fallback.
Frequently Asked Questions
Do I really need a heatsink for my Raspberry Pi?
For casual use, no. The Pi will throttle only under sustained load. But a heatsink is cheap and helps extend the life of the board by keeping temperatures lower. If you plan to run anything CPU-intensive, get one.
What is the ideal temperature for a Raspberry Pi?
Below 60°C is cool, 60-80°C is normal under load, and above 85°C triggers throttling. Aim to keep it under 80°C for best performance. The official operating range is -40°C to 85°C ambient, but the SoC itself can handle up to 100°C before shutdown.
Can I use a PC fan to cool my Raspberry Pi?
Yes, but you need to adapt the connector. Most PC fans run on 12V, which is too high for the Pi’s 5V pins. You can use a 5V fan, or a 12V fan with a buck converter, but it’s easier to buy a small 5V fan designed for the Pi.
Does overclocking require better cooling?
Yes. Overclocking increases heat output. If you overclock, you must have active cooling—a fan or liquid cooler—to avoid throttling or damage. The Pi 5 has a built-in overclocking mode that requires the official cooler.
How do I know if my Pi is throttling?
Run vcgencmd get_throttled. A value of 0x0 means no throttling. If you see 0x2 or 0x3, it has throttled. You can also watch the CPU frequency with vcgencmd measure_clock arm—if it drops below the maximum (e.g., 1500MHz on Pi 4) while under load, it’s throttling.
Is liquid cooling worth it for a Raspberry Pi?
Almost never. Liquid cooling adds complexity and cost, and the Pi’s heat output is low. A good fan cooler is sufficient for any workload the Pi can handle. Liquid cooling is only for hobbyists who enjoy the build, not for practical benefit.
Related
Formula used
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Is G-Sync Worth It? Benefits, Costs, and Alternatives
- AI Coding Tools: Do Developers Lose Their Skills?
- Paper Mario: The Thousand-Year Door Beyond the Remake
- Apple’s Limited Access to OpenAI Evidence Explained
- Why Shiny Pokémon Run Away and How to Avoid Losing Them
- Exercise and Muscle Aging: What Flies and Mice Reveal