Learn / Basics / Ohm's law and power

Ohm’s Law, Power & Heat

ReviewedBeginnerFreeAbout 5 min
Vout = 2.5 V
In short

Ohm’s Law, Power & Heat: the short answer

Every resistor turns some electrical energy into heat. The heat per second is power, measured in watts: P = V × I. Example: 0.1 W is 40 % of a 1/4 W rating, so it is safe with margin. At 220 Ω the power would be 0.45 W, which needs a 1/2 W or bigger part.

Level
Beginner
Time
About 5 min
Topic
Basics
You will learn to

Work out how much power a part dissipates and choose a resistor rating with margin.

Before this: Voltage, Current & Resistance

Every resistor turns some electrical energy into heat. The heat per second is power, measured in watts: P = V × I. Using Ohm's law you can also write it as P = I² × R or P = V² ÷ R, whichever uses the numbers you already know.

Each resistor has a power rating. The common through-hole size is 1/4 W (0.25 W). A part run near its rating gets hot, drifts in value and wears out sooner, so pick a rating at least twice the power you calculate.

The same idea applies to regulators, LEDs and transistors. Whenever a part drops voltage while current flows through it, it makes heat equal to that voltage times that current.

Where the heat comes from

When current flows through a resistor, the voltage across it times the current through it is energy turned into heat every second. Nothing else happens to it: a resistor is a small, deliberate heater. A 0.25 W resistor carrying 0.25 W gets uncomfortably hot to touch, which is why we never run parts at their full rating.

Power in watts (W) is energy per second. A 1 W part left on for an hour turns 1 watt-hour of energy into heat, the same unit your battery capacity is quoted in.

Picking the right form of the formula

P = V × I is the definition. If you know the current through a part and its resistance, use P = I² × R. If you know the voltage across it and its resistance, use P = V² ÷ R. All three give the same answer; choosing the right one just saves a step.

The squares matter. Double the current through a resistor and its heat goes up four times. That is why a small increase in LED current can push a resistor from warm to too hot.

How to choose a rating with margin

Work out the worst case: the highest supply voltage and the lowest resistor value in its tolerance band. Then pick a resistor rated at least twice that power. Through-hole resistors are commonly 1/4 W, 1/2 W, 1 W and 2 W; SMD sizes 0603 and 0805 are typically 0.1 W and 0.125 W.

The rating assumes free air at about 70 °C or less. Inside a closed box, next to a regulator, or bunched with other hot parts, a resistor can take less than its printed rating. The datasheet shows this as a derating curve.

The same sum works for every part

A linear regulator dropping 12 V to 5 V at 200 mA makes (12 − 5) × 0.2 = 1.4 W of heat, which is far too much for a small TO-92 regulator without help. A MOSFET carrying 3 A with 0.05 Ω on-resistance makes 3² × 0.05 = 0.45 W. A transistor, a diode, an LED: any part with voltage across it and current through it makes heat equal to their product.

This one habit, multiplying the voltage across a part by the current through it, catches most overheating problems before you build anything.

Common mistakes
  • Using the supply voltage instead of the voltage across the resistor. In an LED circuit the resistor only sees the supply minus the LED drop.
  • Trusting a part that "only gets warm" on the bench: in summer inside a sealed enclosure it can run 20 to 30 °C hotter.
  • Reading the power rating off the size alone. Different makers rate the same body size differently; check the listing or datasheet.
Key formulas
V = I × R
voltage = current × resistance
P = V × I = I² × R = V² ÷ R
power in watts, all three forms give the same answer
Try it: Ohm's law, live

Current against voltage

0 A20 mA40 mA0 V5 V10 VVoltage22.7 mA

For a resistor, current rises in a straight line with voltage. A bigger resistor gives a shallower line.

I = V ÷ R = 22.7 mA, P = V × I = 114 mW

Current against voltage. The slope is 1 ÷ R.

Work it with your own numbers: Ohm's law · LED resistor

Worked example

Is a 1/4 W resistor safe for a 12 V LED strip indicator?

  1. Circuit: 12 V supply, LED with 2 V drop, 1 kΩ resistor.
  2. Voltage across the resistor: 12 − 2 = 10 V.
  3. Current: 10 V ÷ 1000 Ω = 10 mA.
  4. Power: 10 V × 0.01 A = 0.1 W.

Result. 0.1 W is 40 % of a 1/4 W rating, so it is safe with margin. At 220 Ω the power would be 0.45 W, which needs a 1/2 W or bigger part.

Try it

Put a 470 Ω resistor across 5 V. Work out the current and the power, then measure the voltage across it with your meter and recalculate. Write down why the two answers differ.

Check yourself

3 quick questions

  1. A 220 Ω resistor carries 20 mA. How much power does it dissipate?

  2. A 12 V load draws 0.5 A. What is its power?

  3. A resistor will dissipate 0.2 W. Which rating is the better choice?

Common questions

What will I learn in "Ohm’s Law, Power & Heat"?

Work out how much power a part dissipates and choose a resistor rating with margin.

Is a 1/4 W resistor safe for a 12 V LED strip indicator?

Circuit: 12 V supply, LED with 2 V drop, 1 kΩ resistor. Voltage across the resistor: 12 − 2 = 10 V. Current: 10 V ÷ 1000 Ω = 10 mA. Power: 10 V × 0.01 A = 0.1 W. 0.1 W is 40 % of a 1/4 W rating, so it is safe with margin. At 220 Ω the power would be 0.45 W, which needs a 1/2 W or bigger part.

A 220 Ω resistor carries 20 mA. How much power does it dissipate?

88 mW. P = I² × R = 0.02² × 220 = 0.088 W, which is 88 mW.

A 12 V load draws 0.5 A. What is its power?

6 W. P = V × I = 12 × 0.5 = 6 W.

A resistor will dissipate 0.2 W. Which rating is the better choice?

1/2 W (0.5 W). 0.25 W would run close to its limit and hot. A 0.5 W part gives a comfortable margin.