LED Resistor Calculator
Enter your supply voltage, the LED's forward voltage, and your target current to find the series resistor needed.
Enter nonnegative voltages, a positive target current, and 1–1000 whole LEDs. Supply voltage must exceed their combined forward voltage. The ideal resistance must be between 10⁻⁹ and 10¹² Ω.
Use identical LEDs in series: R = (Vs − N·Vf) / I. E12 rounds upward so the calculated current does not exceed the target. Ideal DC model; use datasheet values and allow for tolerances and resistor power derating.
How the LED series resistor is calculated
Use identical LEDs in series: R = (Vs − N·Vf) / I. E12 rounds upward so the calculated current does not exceed the target. Ideal DC model; use datasheet values and allow for tolerances and resistor power derating.
The resistor also dissipates power as heat, calculated as P = I² × R. Choosing a resistor rated for at least this power (with some margin) prevents it from overheating.
Frequently asked questions
What's a typical LED forward voltage?
It varies by LED color and type: roughly 1.8-2.2 V for red, 2.0-2.4 V for yellow/orange, and 2.8-3.4 V for green, blue, or white LEDs — always check the specific LED's datasheet for an accurate figure.
What's a safe current for a standard LED?
The allowable current depends on the LED and operating conditions. Use the manufacturer’s recommended operating current and temperature limits; the initial 20 mA is an editable example.
What happens if I skip the resistor?
Without a current-limiting resistor, an LED connected directly to a voltage source higher than its forward voltage will draw excessive current, overheat, and likely burn out almost immediately.