When makers and engineers ask how does thermal electricity work, they are usually wrestling with a smoking voltage regulator, a MOSFET that just desoldered itself from the PCB, or an ESP32 that keeps brownout-resetting under load. In physics, "thermal electricity" can refer to thermoelectric effects like the Seebeck or Peltier effects. But in practical circuit design and DIY electronics, it almost always refers to Joule heating—the process where electrical resistance converts current into thermal energy—and the subsequent battle to move that heat away from sensitive silicon.

Every watt of power dissipated by a component is a watt of heat that must travel from the microscopic silicon junction, through the package, into a heatsink, and finally into the ambient air. If the thermal path is bottlenecked, the junction temperature spikes until the part fails. Here is how to calculate that path, read a derating curve, and pick the right hardware to keep your build alive.

The Physics of Heat in Electronics and Package Limits

At the atomic level, as electrons are forced through a resistive material (like the channel of a MOSFET or the pass transistor of a linear regulator), they collide with the metal lattice. These collisions transfer kinetic energy to the lattice, manifesting as heat. This is quantified by Joule's First Law ($P = I^2R$ or $P = V imes I$). Joule heating is unavoidable in any component that drops voltage or passes current through a resistance.

So, how hot is too hot? The absolute physical limit for most commercial silicon dies is 150°C to 175°C. At this threshold, the silicon intrinsic carrier concentration spikes, and the semiconductor essentially turns into a conductor, losing its ability to block current or amplify signals. However, designing to the absolute limit is a recipe for disaster. A practical, reliable target for the component case temperature is 85°C or lower. Above 85°C, you rapidly accelerate the degradation of nearby electrolytic capacitors and risk burning a finger if the enclosure is touched.

To manage this heat, we use thermal resistance ($R_{\theta}$), measured in °C/W. It tells you how many degrees Celsius the temperature will rise for every watt of power dissipated. The table below outlines the baseline thermal capabilities of common semiconductor packages before any external heatsinks are added.

Table 1: Baseline Thermal Resistance of Common Semiconductor Packages (No Heatsink)
Package Type Junction-to-Case ($R_{\theta JC}$) Junction-to-Ambient ($R_{\theta JA}$) Max Power at 25°C Ambient (Target $T_J$ = 125°C)
TO-220 (Standard) 3.0 °C/W 62.5 °C/W ~1.6 W
TO-247 (High Power) 1.5 °C/W 40.0 °C/W ~2.5 W
D2PAK / TO-263 (SMD) 3.0 °C/W 50.0 °C/W (1 oz Cu pad) ~2.0 W
SOT-223 (SMD) 15.0 °C/W 62.0 °C/W ~1.6 W

Note: $R_{\theta JA}$ values assume natural convection in still air on a standard 2s2p JEDEC test board. Your actual PCB layout will alter these numbers.

Calculating the Thermal Path: Junction-to-Ambient Math

To determine if a part will overheat, you must model the entire thermal path from the silicon junction ($J$) to the ambient air ($A$). The governing equation is:

$T_J = T_A + P_D \times (R_{\theta JC} + R_{\theta CS} + R_{\theta SA})$
  • $T_J$: Junction temperature (°C) — what we want to keep under 125°C.
  • $T_A$: Ambient temperature (°C) — the air inside your enclosure, not just the room.
  • $P_D$: Power dissipated (Watts).
  • $R_{\theta JC}$: Junction-to-Case resistance (fixed by the manufacturer).
  • $R_{\theta CS}$: Case-to-Sink resistance (determined by your thermal interface material, like a silicone pad or thermal paste).
  • $R_{\theta SA}$: Sink-to-Ambient resistance (determined by your heatsink).

Worked Example: Sizing a Heatsink for an LM317

Let’s say you are using an LM317 in a TO-220 package to drop a 12V supply down to 5V to power a microcontroller and a relay, drawing a continuous 1.5A.

  1. Calculate Power Dissipation ($P_D$): The regulator drops 7V (12V - 5V) at 1.5A. $P_D = 7V \times 1.5A = 10.5W$.
  2. Define the Environment: The ambient air inside your project box reaches 40°C on a warm day. You want to keep the silicon junction ($T_J$) below 125°C.
  3. Look up Known Resistances: According to the Texas Instruments LM317 Datasheet, the TO-220 $R_{\theta JC}$ is 3.0 °C/W. You are using a mica insulator with thermal grease for electrical isolation, giving an $R_{\theta CS}$ of roughly 0.5 °C/W.
  4. Solve for the Heatsink ($R_{\theta SA}$):
    $125 = 40 + 10.5 \times (3.0 + 0.5 + R_{\theta SA})$
    $85 = 10.5 \times (3.5 + R_{\theta SA})$
    $8.09 = 3.5 + R_{\theta SA}$
    $R_{\theta SA} = 4.59 °C/W$

You need a heatsink with a thermal resistance of 4.59 °C/W or lower. A standard bare TO-220 in free air has an $R_{\theta JA}$ of 62.5 °C/W, which would result in a junction temperature of over 700°C (instant destruction). By selecting a part like the Aavid 593102B03400G (a heavily finned TO-220 extruded aluminum sink rated at roughly 4.5 °C/W in natural convection), you keep the junction safely at ~124°C.

⚠️ Warning: Interpreting the Derating Curve

Never trust the "Max Power" headline number on a MOSFET datasheet. A TO-247 IRLB8721 might boast 300W of continuous drain power. However, that rating assumes the case is held perfectly at 25°C. The power derating curve shows a linear slope down to 0W at the max junction temperature (usually 175°C). If your case temperature rises to 100°C, that 300W part can only safely dissipate about 125W. Always derate based on your actual expected case temperature.

Heatsink Selection, Airflow, and Enclosure Dynamics

If the math tells you that you need a 2.0 °C/W heatsink in natural convection, you are going to need a massive, heavy block of aluminum that might not fit in your enclosure. This is where airflow and enclosure design come into play.

What Airflow Buys You: Moving air disrupts the boundary layer of stagnant, heated air clinging to the heatsink fins. Pushing air at just 200 LFM (Linear Feet per Minute)—roughly 1 meter per second, easily achieved with a standard 40mm or 80mm PC cooling fan—can drop a heatsink’s $R_{\theta SA}$ by 40% to 50%. Our 4.5 °C/W Aavid sink from the previous example would drop to roughly 2.5 °C/W with a modest fan, giving you a massive safety margin or allowing you to use a physically smaller, cheaper heatsink.

Enclosure Penalties: Makers often calculate thermal resistance using room temperature (25°C) for $T_A$, forgetting that the component is inside a sealed plastic or metal box. An unventilated enclosure traps heat. A good rule of thumb is to add 10°C to 15°C to your room ambient temperature to estimate the internal $T_A$ of a sealed project box. If you are dissipating more than 5W total inside a sealed enclosure, you must either add ventilation louvers, mount the heatsinks to the outside of the metal chassis, or introduce forced airflow.

Recognizing the Failure Signatures of Thermal Stress

When thermal management fails, components rarely just "stop working" instantly. They exhibit specific failure signatures based on their chemistry and construction. Recognizing these can help you debug a failing prototype on the bench.

1. BJT Thermal Runaway

Bipolar Junction Transistors (BJTs) have a negative temperature coefficient for their base-emitter voltage ($V_{BE}$). As the silicon heats up, $V_{BE}$ drops by about 2mV/°C. If your base bias voltage is fixed, this drop causes the transistor to draw more collector current. More current creates more Joule heating, which drops $V_{BE}$ further, drawing even more current. This positive feedback loop is thermal runaway, ending in a shorted, melted silicon die. Fix: Always use emitter degeneration (a small resistor in series with the emitter) to provide negative feedback and stabilize the bias point.

2. MOSFET $R_{DS(on)}$ Drift and SOA Violations

Unlike BJTs, power MOSFETs have a positive temperature coefficient for their on-resistance ($R_{DS(on)}$). As they get hot, their resistance increases, which actually helps them share current safely when wired in parallel. However, that higher resistance means they dissipate more power at high temperatures. If a MOSFET is operating near the edge of its Safe Operating Area (SOA) curve, the thermal drift can push it into the secondary breakdown region, causing localized hot spots on the die that melt the silicon even if the average case temperature feels fine.

3. Solder Joint Fatigue and CTE Mismatch

If you mount a TO-220 directly to a PCB and also bolt it to a chassis, you create a mechanical conflict. Silicon, copper, aluminum, and FR4 fiberglass all have different Coefficients of Thermal Expansion (CTE). As the part heats up and cools down during power cycles, the materials expand at different rates. Over hundreds of cycles, this shears the solder joints, leading to micro-cracks. The symptom is a circuit that works perfectly when cold, but fails intermittently once the board warms up. Fix: Leave the leads slightly untrimmed and bent to act as mechanical strain reliefs, or use flexible wire jumpers instead of rigid PCB traces for high-mass, high-heat components.

4. Electromigration in ICs

Inside integrated circuits, high current density combined with high temperatures causes metal atoms in the microscopic traces to physically migrate in the direction of electron flow. This is governed by Black's Equation. Over months or years, this leaves voids in the traces (causing open circuits) or piles up metal (causing short circuits between adjacent lines). This is why commercial server CPUs are kept under 85°C; running them at 105°C doesn't just throttle performance, it exponentially accelerates electromigration, cutting the chip's lifespan from 10 years down to a few months.

Understanding how thermal electricity works isn't just about keeping your fingers from getting burned. It is about modeling the invisible flow of phonons and electrons, sizing your hardware with hard math, and designing enclosures that let your electronics survive the real world.