LED Series Resistor Calculator Back
Electronics

LED Series Resistor Calculator

Size the current-limiting resistor for a LED string with Ohm's law. Enter supply voltage, forward voltage, forward current and the number of LEDs in series; the required resistance, the nearest E12 standard value, the actual current, the power and the circuit efficiency are computed in real time.

Parameters
Supply voltage V_s
V
Voltage of the battery or DC supply
LED forward voltage V_f
V
Red ≈ 2.0 V, green/yellow ≈ 2.2 V, blue/white ≈ 3.2 V
LED forward current I_f
mA
Standard indicator LEDs run at 10-20 mA
Number of LEDs in series n
LEDs wired one after another (no parallel here)
Resistor tolerance
E-series tolerance band. 5% is the default.
Results
Voltage across resistor (V)
Ideal resistance (Ω)
Recommended E12 (Ω)
Actual current (mA)
Power in resistor (W)
Efficiency η = P_LED/P_total (%)
LED circuit schematic — current flow

Battery (left) → resistor (middle) → series LEDs (right) → back to the battery. LED brightness is proportional to the actual current; the arrow shows the direction of conventional current I_f.

Required resistance vs number of LEDs n
Efficiency η vs supply voltage V_s
Theory & Key Formulas

$$R=\frac{V_s-n\,V_f}{I_f},\qquad P_R=R\,I_f^{2}=(V_s-n V_f)\,I_f$$

Current-limiting resistance R and the power it dissipates P_R. V_s: supply voltage, V_f: LED forward voltage, n: number of LEDs in series, I_f: forward current. After rounding to an E12 value the actual current is slightly below I_f, which is the safe direction.

What is the LED Series Resistor Calculator?

🙋
Can I just wire an LED straight to a battery? It looks like a tiny bulb, after all.
🎓
Try that and it dies in an instant. A bulb is a voltage-driven device, but an LED is current-driven. Past the forward voltage V_f (about 2 V for a red LED, about 3.2 V for a white one), the current shoots up exponentially. Feeding 2.1 V into a V_f = 2.0 V LED can push more than ten times the rated current — enough to fry the chip and produce a puff of smoke.
🙋
Yikes. So how do you make the current the right size?
🎓
The simplest, most reliable trick is to add one resistor in series. The resistor takes whatever is left of the supply after subtracting the LED's forward voltage drop, and that voltage divided by the resistance is the current. As a formula: R = (V_s - n·V_f) / I_f. That single equation is the starting point of every LED circuit, and the first thing to memorise.
🙋
Got it. And what's "E12"? My calculation says 495 Ω, but the tool keeps recommending 560 Ω.
🎓
Good catch. Resistors aren't sold at arbitrary values — they come in fixed steps: 1.0, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8, 8.2 (× 10ⁿ). That's the 12-step E12 series. 495 Ω isn't in the catalogue, so the next value up — 560 Ω — is chosen. That pushes the actual current slightly below I_f, which is gentler on the LED. Rounding down instead would risk over-current.
🙋
Another thing — the efficiency looks low. With one LED I only get 17.5 %. Are we really throwing that much energy away in the resistor?
🎓
Sharp eye. That's the inherent cost of resistor-based limiting: every bit of voltage difference between the supply and the LED string turns into heat in the resistor. With 12 V on one V_f = 2.1 V LED the resistor swallows about 10 V, leaving 17 % efficiency. Now bump "LEDs in series" up to 4. Now the LED side sees 8.4 V and the resistor only 3.6 V, so efficiency climbs near 70 %. The basic trick is to stack as many LEDs in series as the supply allows.
🙋
Even so, for a 1 W high-power LED it feels wasteful to burn so much off in a resistor.
🎓
Right — at 1 W and above, a resistor wastes too much, so engineers move to switching constant-current drivers (buck-mode LED-driver ICs). Those can hit 90 % efficiency while regulating the current precisely. But the circuit is more complex and costs more, so for indicator and pilot LEDs at 20 mA, "one series resistor" still wins by being simple, cheap and almost impossible to break.

Frequently Asked Questions

Use Ohm's law: R = (V_s - n·V_f) / I_f, where V_s is the supply voltage, V_f is the forward voltage drop of one LED, n is the number of LEDs in series, and I_f is the target forward current. For example, to run one V_f = 2.1 V LED at 20 mA from a 12 V supply: R = (12 - 2.1) / 0.020 = 495 Ω. Rounding this up to the nearest E12 standard value (560 Ω) yields an actual current slightly below I_f, which is the safe side.
Because an LED is a current-driven device, not a voltage-driven one. Above the forward voltage V_f, the current rises exponentially: applying just a few hundred millivolts more than V_f produces many times the rated current and burns out the LED in an instant. Driving a V_f = 2.0 V red LED with 2.1 V can give over ten times the rated current. That is why an LED must never be wired straight across a supply — a current-limiting element (most simply, a series resistor) is mandatory.
The power dissipated in the resistor is P_R = (V_s - n·V_f) · I_f. For a 12 V supply, V_f = 2.1 V, one LED at 20 mA: P_R = 9.9 V × 0.020 A ≈ 0.20 W. A common 1/4 W (0.25 W) resistor has just enough margin, but a safety factor of 2-3× is standard practice. For continuous operation, where the resistor self-heats and drifts, pick at least twice the calculated power (in this case 1/2 W).
If the supply voltage allows, series is far more efficient. Series ensures that every LED carries the same current (matched brightness), and the resistor takes a smaller share of the total voltage so losses fall. Running four V_f = 2.1 V LEDs from a 12 V supply in series leaves only 12 - 8.4 = 3.6 V across the resistor and gives about 70% efficiency. Parallel without per-LED resistors fails: small V_f mismatches steer all the current into the LED with the lowest V_f and that one burns out. If parallel is unavoidable, give each LED its own series resistor.

Real-World Applications

Pilot/indicator LEDs on consumer electronics: The "power on" LED on a TV stand-by panel, the heartbeat LED on a PC motherboard, the state LEDs on a UPS — the classic application. These need only a few milliamps to be clearly visible, so one current-limiting resistor is more than enough. Putting a switching driver here would only add part cost and PCB area. With a stable supply rail, the resistor approach is still the overwhelming choice in this niche.

Microcontroller GPIO indicators: Hanging an LED off an Arduino, ESP32 or Raspberry Pi GPIO pin always calls for a 220 Ω to 1 kΩ series resistor. With a 3.3 V output and a V_f = 2 V LED at 5 mA, R = (3.3 - 2) / 0.005 = 260 Ω — and 270 Ω or 330 Ω from the E12 series is the standard pick. Skipping the resistor not only fries the LED in a flash but also blows the GPIO driver inside the MCU. This is why every textbook "Blink" wiring diagram shows the resistor.

12 V automotive LED retrofits: When swapping a car's interior lamp from incandescent to LED, commercial LED modules already include the resistor, but a DIY build must be sized for the 12 V rail. Plug V_s = 12 V, V_f = 2.1 V, I_f = 20 mA, n = 4 into this tool and you get a 180 Ω resistor at about 70 % efficiency — a clean, efficient design. Note that car battery voltage actually swings between 11 and 14 V, so a protective design uses the upper end of that range as V_s.

Educational LED matrix displays: A 4×4 or 8×8 LED matrix has a series resistor on every row or column. Because the matrix is multiplexed in time, the average current is low but the peak current is high; the resistor is sized for the peak. For a 1/8 duty cycle, use one-eighth of the value this tool returns to keep apparent brightness constant — provided the LEDs' pulse current rating is not exceeded.

Common Misconceptions and Pitfalls

The biggest trap is connecting an LED directly to a supply, or skimping on the resistor. An LED's I-V curve is a steep exponential and current explodes near V_f. Picking a "just-tight" resistor and hoping for the best loses on three fronts at once: resistor tolerance (±5%), supply voltage variation (±10%), and the temperature coefficient of V_f (−2 mV/°C). Together they can drive the actual current to 1.5-2× of the rated value and slash LED lifetime by orders of magnitude. Rounding up to the next E12 isn't laziness — it is the required margin against those variations.

Next, connecting LEDs in parallel without per-LED resistors. Even units from the same lot show V_f spread of about ±0.1 V, and a parallel string drives most of the current into the LED with the lowest V_f. What starts as a brightness mismatch becomes a thermal runaway: the hot LED ages faster, its V_f drops further, current concentrates more, and the row falls one by one. If parallel is unavoidable, give each LED its own series resistor (parallel-with-individual-resistors), or arrange the LEDs as a series string first and only parallel multiple strings.

Finally, forgetting the heat that comes with low efficiency. At 12 V driving one 20 mA LED the efficiency is 17 %, and more than 80 % of the input energy becomes heat in the resistor. Packed densely on a PCB, resistor temperatures rise above 60 °C and start cooking neighbouring components or the board itself. A 1/4 W-rated resistor can be too hot to touch at even 1/8 W in some layouts. Above ~0.1 W of resistor dissipation, either reserve more copper area, jump to a larger physical resistor (1/2 W to 1 W), or move altogether to a switching LED driver.

How to Use

  1. Enter supply voltage (V_s) in the first field—typical values range 5V to 48V DC for LED circuits.
  2. Input forward voltage (V_f) of your LED type: red LEDs ~2.0V, blue/white ~3.2V, RGB common-cathode ~3.5V per channel.
  3. Specify desired forward current (I_f) in milliamps: standard indicators 20mA, high-brightness 30–100mA, power LEDs 350mA–1A.
  4. Enter LED count (n) for series string length.
  5. Read the ideal resistance, then select the nearest E12 standard resistor value from the recommendation.
  6. Verify actual current, power dissipation, and efficiency before purchasing components.

Worked Example

Design a 12V supply with three red LEDs (V_f=2.1V each, I_f=20mA) in series. Total LED voltage: 3×2.1=6.3V. Voltage across resistor: 12−6.3=5.7V. Ideal R=(5.7V)/(0.020A)=285Ω. Nearest E12 value: 270Ω. Actual current: 5.7/270=21.1mA. Resistor power: 5.7×0.0211=0.12W (use 0.25W minimum). Efficiency: (6.3×0.0211)/(12×0.0211)=52.5%. Select a 270Ω, 0.25W carbon-film resistor.

Practical Notes

  1. Always derate resistor power rating by 50%; a calculated 0.12W requires at least 0.25W rating for 60°C ambient operation.
  2. E12 series (10, 12, 15, 18, 22, 27, 33, 39, 47, 56, 68, 82 Ω and decade multiples) ensures stock availability; avoid custom values.
  3. For automotive 24V buses with white LEDs (3.2V each), four LEDs consume 12.8V, leaving 11.2V for the resistor—verify worst-case voltage tolerance ±5%.
  4. Efficiency drops below 50% when V_f is much less than V_s; use buck converters for 48V→3.3V LED systems to recover power.