How-to · Intermediate · 3 min read
Heatsinks, Fans and Thermal Paste
Keeping Parts Cool
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
Every part that drops voltage while passing current turns that power into heat. Work out the power, multiply by the thermal resistance in °C per watt, and add the room temperature: if the result is near the part's maximum junction temperature, add a heatsink. Use a thin layer of thermal paste, an insulating pad where the tab is live, and a fan when passive cooling is not enough.
Key specs at a glance
- Heat formula
- Tj = Ta + P × (θjc + θcs + θsa)
- Bare TO-220
- Roughly 50 to 65 °C/W to air
- Small clip-on TO-220 heatsink
- Roughly 15 to 25 °C/W
- Thermal paste
- Thin layer only; fills air gaps
- Fans
- 2-wire, 3-wire (tach) or 4-wire PWM (25 kHz)
- Liquid cooling
- Water blocks for Peltiers, lasers and high power
Do I need a heatsink?
Example: a 7805 dropping 12 V to 5 V at 0.5 A burns (12 − 5) × 0.5 = 3.5 W. Bare in a TO-220 at about 60 °C/W, it would try to rise 210 °C above room temperature, far past its limit. A heatsink of about 10 °C/W keeps the rise to about 35 °C plus the case-to-sink losses, which is fine. A buck converter avoids most of that heat in the first place.
Use the linear regulator heat calculator and power dissipation calculator.
Mounting
- 1Clean both surfaces.
- 2Apply a rice-grain amount of thermal paste and spread it thin; too much insulates.
- 3If the part's tab is connected to a voltage (most TO-220 tabs are), and the heatsink touches other parts or a case, use an insulating pad and shoulder washer.
- 4Tighten the screw firmly but do not crack the package.
Check with a finger test only on low-voltage circuits: if you cannot hold it for 5 seconds it is above about 60 °C.
Fans
Small DC fans run at 5, 12 or 24 V. A 2-wire fan can be switched or speed-controlled with a MOSFET and a flyback diode. 3-wire fans add a tachometer output for RPM; 4-wire fans take a 25 kHz PWM speed signal directly, so the supply stays on. An arrow on the frame shows airflow direction. Push cool air across the heatsink fins, and give hot air somewhere to leave the case.
Try it: Linear regulator heat calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Thick layers of thermal paste.
- Live heatsinks touching a metal case without an insulating pad.
- Ignoring heat because 'it worked on the bench'.
- Fans blowing against each other.
- Driving a fan straight from a GPIO pin.
Frequently asked questions
How hot is too hot for a regulator?
Most silicon parts are rated to about 125 to 150 °C at the junction. Keep the case well below 80 °C for long life.
Do I need thermal paste?
Yes. Without it, tiny air gaps add a lot of thermal resistance.
Can I control a 12 V fan with Arduino?
Yes, through a logic-level MOSFET with a flyback diode, or with the PWM wire of a 4-wire fan.
Why is my TO-220 heatsink live?
The tab is connected to a pin, usually the middle one. Insulate it if the heatsink touches anything else.
When do I need water cooling?
For high heat in a small space, such as Peltier modules, lasers or high-power LEDs.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 6 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
- Aavid (Boyd) heatsink selection guides
- Texas Instruments thermal design application notes
- Intel 4-wire PWM fan specification
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.




