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
Rent Adjustment Calculator
Compute annual rent adjustment by IGP-M or IPCA accumulated in the last 12 months (manually configurable).
Pregnancy Calculator
Compute estimated due date (EDD), gestational age and trimester from the last menstrual period (LMP).
Fertile Period Calculator
Compute fertile window and ovulation day from the first day of the last cycle and the average cycle length.