LED Resistor Calculator

Choose a safe resistor for an LED. A quick estimate to support your own checks. It is not a design, and it does not replace a qualified professional or the rules that apply where you are. Everything runs in your browser; nothing you enter is uploaded or stored.

  • Free, no sign-up
  • Runs in your browser
  • Verified
See the datasheet: red about 2 V, blue and white about 3 V.

How to use it

  1. Enter the supply voltage, the LED’s forward voltage and the current you want.
  2. Read the calculated value and the standard value to use.
  3. Check the power rating.

How it works

R = (supply voltage − number of LEDs × forward voltage) ÷ current. The tool picks the next standard value up from the E12 or E24 series, so the current is no higher than your target, and reports the actual current and the power in the resistor (P = I² × R).

Examples

  • 5 V supply, a red LED at 2 V and 20 mA: R = 150 Ω. From 9 V with a 2.2 V LED: 340 Ω calculated, so use 390 Ω (E12) or 360 Ω (E24).

Limitations

  • Forward voltage and maximum current vary by LED; use the datasheet. Parallel LEDs should each have their own resistor. For PWM dimming or constant-current drivers a different design is needed.

Last verified . See our Accuracy & Editorial Policy. Found a problem? Email [email protected].