LED Resistor Calculator

Series resistor for one or more LEDs: resistance, next standard value, actual current and the power rating the resistor needs.

Runs locally in your browser
V
V
A
Resistor (E12)
150 Ω
Exact value150 Ω
Nearest standard value150 Ω
Current with this resistor20 mA
Power in the resistor60 mW
Use at least0.125 W
Power of the LEDs40 mW
Efficiency40 %

The resistor is rounded up so the current stays at or below the target. Forward voltages vary – check the LED’s datasheet.

About this tool

An LED needs a series resistor that limits the current – without it, the current rises until the LED burns out. The calculator finds the resistance from the supply voltage, forward voltage and desired current: R = (U − n · U_F) / I, also for several LEDs in series.

The result is rounded up to the next value of the chosen E series so the current does not exceed the target. The calculator also shows the actual current, the power in the resistor with a suggested rating, the efficiency and the color code of the resistor.

How it works

  1. Enter the supply voltage, for example 5 V from an Arduino or 12 V.
  2. Pick the LED type or enter the forward voltage from the datasheet, plus the current (e.g. 20m for 20 mA) and the number of LEDs in series.
  3. Read off the standard resistor, the power rating and the color code.

Frequently asked questions

What forward voltage does my LED have?

As rough values: red about 2.0 V, yellow and orange about 2.1 V, classic green about 2.2 V, blue, white and bright green about 3.2 V, infrared about 1.3 V. The exact value depends on the type and the current and is in the datasheet.

Which current should I use?

Standard LEDs (3 mm, 5 mm) are usually rated for 20 mA but are often bright enough at 2–10 mA. Less current is easier on the LED and the microcontroller pin. For high-power LEDs a constant-current driver is better than a resistor.

Can several LEDs share one resistor?

In series yes – the forward voltages add up, and the supply must be higher than their sum. In parallel on one shared resistor no: small differences in forward voltage make one LED draw most of the current. Give parallel LEDs a resistor each.

Why is the value rounded up?

With the next higher standard value the current stays below the target, so the LED is on the safe side. The calculator still shows the nearest standard value. All values of a series are listed by the E Series Finder.

How do I find the right resistor in my parts box?

The color code of the standard value is shown with the result; the Resistor Color Code has the details. Calculate voltage, current and power in general with the Ohm’s Law Calculator calculator.