1001Ferramentas
๐Ÿ’ก Calculators

LED Resistor Calculator

Computes the ideal series resistor for an LED from supply voltage, LED drop, and desired current.

โ€”

LED series resistor: sizing the current-limiting R

Wire an LED straight to a supply with nothing in series and it burns out within milliseconds. That's why you need a series resistor to hold the current in check. The math is R = (Vsource โˆ’ VLED) / ILED. Forward voltage depends on color: red โ‰ˆ 2 V, yellow/green โ‰ˆ 2.1โ€“2.4 V, blue/white โ‰ˆ 3โ€“3.5 V, and UV โ‰ˆ 3.3โ€“4.2 V. Indicator LEDs usually run somewhere between 5 and 20 mA. Example: 5 V supply, red LED (2 V), 20 mA โ†’ R = (5 โˆ’ 2) / 0.02 = 150 ฮฉ. The resistor also dissipates power, P = (Vsource โˆ’ VLED) ยท I, so give yourself headroom and pick one rated for at least twice that.

Applications: Arduino, LED strips, decoration

The classic Arduino blinky puts a series R on a GPIO pin (220โ€“470 ฮฉ at 5 V, 150โ€“330 ฮฉ at 3.3 V). 12 V LED strips are different: each segment already has its own resistor, so as long as you cut at the marked points you don't add anything. Building your own decoration from bare 3 mm/5 mm LEDs off a 9 V battery or USB 5 V? Work out R separately for each LED color.

FAQ

Can I parallel LEDs with one resistor? Avoid it. Even tiny differences in Vf let one LED grab most of the current and cook itself. Give each LED its own resistor, or string them in series behind a single R.

How do I pick the resistor wattage? Work out P = (Vs โˆ’ VLED) ยท I and double it for safety. A common 20 mA / 3 V drop comes to about 60 mW, so a 1/4 W resistor has plenty to spare.

Can I run an LED below 20 mA? Sure. Modern LEDs already look bright at 5โ€“10 mA, and running them softer keeps them cooler and stretches their life.

Related Tools