LED Series Resistor Calculator

This tool is used to determine the value of current limiting resistors needed to connect multiple LEDs. Find the resistor value and power required to connect multiple LEDs with our LED Series Resistor calculator using supply and forward voltage. Enter the indicated values to identify the value of current limiting series resistor when driving a single or an array of LEDs. When you select a resistor for this purpose, choose a device with a power rating between 2 and 10 times the value calculated below in order to avoid excessive resistor temperatures.

LED Series Resistor Calculator

Supply Voltage
V
Forward Voltage
V
Forward Current
mA
Resistor Value
=Ω
Power
=W

Formula

Introduction

This video explained how to calculate the resistance value for LEDs for both series and parallel circuits.

How to calculate Resistor value for LED series and parallel circuit with Ohm's Law

LED Series Resistor Calculator Overview

The LED Series Resistor Calculator determines the resistance and resistor power required to limit current through one LED or a series string of LEDs supplied from a voltage source. Enter the supply voltage, LED forward voltage, target current, and number of series LEDs to estimate a suitable resistor value.

A series resistor is a simple current-limiting method for low-current indicator LEDs when the supply voltage is reasonably stable. It is not a constant-current regulator. LED forward voltage, supply variation, resistor tolerance, temperature, and driver voltage drop all affect the actual current.

Use the LED manufacturer's datasheet to select forward current and forward-voltage limits. Do not assume that every indicator LED should operate at 20 mA, and do not design from LED color alone.

LED Series Resistor Circuit

The resistor, LED, and voltage source form one series current path. The resistor drops the voltage remaining after the LED forward voltage is subtracted from the supply.

LED circuit with a current-limiting series resistor

Calculator Inputs

InputMeaningTypical Unit
Supply voltage, VSThe voltage applied to the LED and resistor circuit.V
LED forward voltage, VFThe forward voltage of one LED at the intended current and operating condition.V
LED current, IFThe target forward current selected from the LED datasheet and application requirements.A or mA
Number of series LEDs, NThe number of LEDs connected in the same series current path.Unitless
Additional series voltage dropAn optional driver, transistor, switch, or output-pin voltage drop.V

Calculator Outputs

OutputMeaningUnit
Calculated resistanceThe resistance required for the selected nominal voltage and current.Ω
Resistor voltageThe voltage remaining across the resistor.V
Resistor powerThe nominal power dissipated by the resistor.W
LED powerAn ideal estimate of electrical power in the LED at the selected operating point.W

Single LED Series Resistor Formula

For one LED connected directly in series with a resistor:

R = (VS - VF) / IF

Where:

  • R = required series resistance in ohms

  • VS = supply voltage in volts

  • VF = LED forward voltage at the intended current in volts

  • IF = target LED forward current in amperes

Convert milliamperes to amperes before using the formula:

I in amperes = I in milliamperes / 1000

Multiple LEDs in Series

LEDs in the same series string carry the same current. Add their forward voltages before calculating the resistor:

R = (VS - VF1 - VF2 - ... - VFN) / IF

If the LEDs are treated as having the same forward voltage:

R = (VS - N × VF) / IF

The supply voltage must exceed the total LED forward voltage plus any driver voltage drop and enough resistor voltage to control current. If the calculated resistor voltage is zero or negative, that LED string cannot reach the target current from the stated supply using this circuit.

Including a Driver or Switch Voltage Drop

A transistor, logic output, open-drain driver, or current-sink output may have a nonzero voltage drop. Include it in the calculation:

R = (VS - ΣVF - VDRIVER) / IF

Use the driver voltage specified at the intended current rather than assuming an ideal 0 V switch. Also verify the output pin's current, voltage, and total package limits.

LED Forward Voltage Is Not Fixed

LED forward voltage depends on semiconductor material, current, temperature, manufacturer, production variation, and device construction. Color may suggest a broad voltage range, but it is not a precise design parameter.

Use the datasheet values for the specific part number. For worst-case current checks, the minimum forward voltage is usually the critical value because it leaves more voltage across the resistor and produces more current.

General LED color and forward-voltage reference chart

The chart above is retained from the original page as a general reference only. Do not use a color-based typical voltage in place of the minimum, typical, and maximum VF values from the actual LED datasheet.

How to Select LED Current

Select current from the LED datasheet and the required brightness, not from a universal rule. Check:

  • Recommended or test forward current

  • Absolute maximum continuous forward current

  • Permitted pulse current, pulse width, and duty cycle

  • Luminous intensity or flux at the intended current

  • Junction and ambient temperature limits

  • Driver or GPIO current capability

Modern high-efficiency indicator LEDs may be bright at currents well below 20 mA. High-power LEDs may require hundreds of milliamperes or more, but they normally need a regulated constant-current driver and proper thermal design rather than a simple resistor.

Resistor Power Calculation

The resistor voltage is:

VR = VS - ΣVF - VDRIVER

Resistor power can be calculated in any equivalent form:

PR = VR × IF

PR = IF2 × R

PR = VR2 / R

Select a resistor whose power rating remains adequate at the expected ambient temperature and PCB conditions. Apply the resistor manufacturer's derating curve and allow practical thermal margin. A fixed rule such as always choosing two to ten times the calculated power is not a substitute for checking the actual component rating and temperature rise.

Single LED Example

A 5 V supply drives an LED with VF = 2.0 V at a target current of 10 mA.

Convert current to amperes:

10 mA = 0.010 A

Calculate resistance:

R = (5 - 2) / 0.010 = 300 Ω

Calculate resistor power:

PR = 3 × 0.010 = 0.030 W

A standard 300 Ω resistor gives the nominal 10 mA result. Select the power rating after checking worst-case voltage, tolerance, ambient temperature, and derating.

Multiple Series LED Example

A 12 V supply drives three LEDs in series. Each LED has a nominal forward voltage of 3.0 V at 20 mA.

Total LED voltage:

ΣVF = 3 × 3.0 = 9.0 V

Series resistance:

R = (12 - 9) / 0.020 = 150 Ω

Resistor power:

PR = 3 × 0.020 = 0.060 W

This is a nominal calculation. The final design must be checked using the minimum and maximum forward voltages and supply limits.

Choosing the Nearest Standard Resistor

If the exact calculated resistance is unavailable, selecting the next higher standard value normally reduces current and provides a conservative starting point. Recalculate the actual current with the chosen value:

IF = (VS - ΣVF - VDRIVER) / RSELECTED

Standard Value Example

A 9 V supply drives two LEDs, each with VF = 2.1 V, at a target of 15 mA:

R = (9 - 4.2) / 0.015 = 320 Ω

If 330 Ω is selected:

I = (9 - 4.2) / 330 = 0.01455 A = 14.55 mA

The nominal resistor power is approximately:

PR = 4.8 × 0.01455 = 0.0698 W

Worst-Case Current Calculation

The nominal resistor value alone does not guarantee the maximum LED current. For a resistor-limited series string, the highest current generally occurs with maximum supply voltage, minimum LED forward voltage, minimum driver drop, and minimum resistor value:

IMAX = (VS,MAX - ΣVF,MIN - VDRIVER,MIN) / RMIN

The lowest current generally occurs with minimum supply voltage, maximum LED forward voltage, maximum driver drop, and maximum resistor value:

IMIN = (VS,MIN - ΣVF,MAX - VDRIVER,MAX) / RMAX

Verify that IMAX stays within the selected operating current and all device limits, while IMIN still provides acceptable brightness.

Resistor Tolerance Example

For a resistor with nominal value R and tolerance T expressed as a decimal:

RMIN = R × (1 - T)

RMAX = R × (1 + T)

A 330 Ω resistor with 5% tolerance may range from 313.5 Ω to 346.5 Ω before additional temperature effects are considered.

Parallel LEDs Need Separate Current Control

Do not assume identical LEDs connected directly in parallel will share current equally. Small forward-voltage differences can cause one LED to carry more current than another. For low-current indicator circuits, give each parallel LED or each parallel series string its own resistor.

  • One LED per branch: calculate one resistor for each LED.

  • Several LEDs in series per branch: calculate one resistor for each series string.

  • Multiple branches: add the branch currents to determine total supply and driver current.

A single resistor shared by several parallel LEDs does not provide independent current balancing.

Driving LEDs from GPIO Pins

When an LED is driven by a microcontroller or logic device, the available output voltage may change with current. Check the device datasheet for guaranteed high-level or low-level output voltage at the selected current.

  • Verify the maximum current per pin.

  • Verify total current limits for the port and package.

  • Include VOH, VOL, transistor saturation voltage, or driver headroom in the resistor calculation.

  • Check whether the pin sources or sinks LED current.

  • Use an external transistor or LED driver when the required current exceeds the logic output capability.

PWM Brightness Control

Pulse-width modulation changes average brightness by switching the LED current on and off. The series resistor still needs to limit the instantaneous on-state current. Reducing PWM duty cycle does not make an excessive peak current safe unless the LED datasheet explicitly permits the pulse amplitude, duration, repetition rate, and thermal conditions.

When to Use a Constant-Current LED Driver

A regulated LED driver is usually a better choice when:

  • The LED operates at high current or high power.

  • The supply voltage varies widely.

  • Brightness must remain consistent over temperature and production variation.

  • Several LED strings require matched current.

  • Efficiency is important.

  • The available voltage headroom across a resistor is small.

  • Dimming, open-LED protection, short-circuit protection, or thermal regulation is required.

High-power LEDs also require suitable heatsinking, PCB thermal design, and junction-temperature verification.

How to Use the LED Series Resistor Calculator

  1. Find the LED's intended forward current and forward-voltage range in its datasheet.

  2. Enter the supply voltage.

  3. Enter the forward voltage of one LED.

  4. Enter the number of LEDs in the series string.

  5. Enter the target current using the correct unit.

  6. Include any switch or driver voltage drop when applicable.

  7. Calculate the resistance and nominal resistor power.

  8. Select a standard resistor and recalculate actual current.

  9. Repeat the calculation with worst-case supply, VF, driver drop, and resistor tolerance.

  10. Check resistor derating, LED thermal limits, and driver current limits.

Common LED Resistor Calculation Mistakes

  • Entering current in milliamperes without converting it to amperes.

  • Assuming every indicator LED should operate at 20 mA.

  • Using LED color as the only source of forward voltage.

  • Using typical VF without checking minimum VF for maximum current.

  • Forgetting to add forward voltages for series LEDs.

  • Using one resistor for directly paralleled LEDs.

  • Ignoring GPIO or transistor voltage drop and current limits.

  • Checking resistance but not resistor power.

  • Ignoring supply tolerance and resistor tolerance.

  • Assuming PWM duty cycle removes the need to limit peak current.

  • Using a simple resistor for a high-power LED without current regulation and thermal design.

Frequently Asked Questions

Why does an LED need a series resistor?

An LED has a steep current-voltage relationship. A small voltage change can produce a large current change, so a resistor limits current when the LED is driven from a voltage source.

What is the LED resistor formula?

For one LED, R = (VS - VF) / IF. For a series string, subtract the sum of all LED forward voltages and any driver voltage drop.

Should I always use 20 mA?

No. Select current from the specific LED datasheet and required brightness. Many indicator LEDs operate effectively below 20 mA, while high-power LEDs require dedicated current regulation.

Which forward voltage should I use?

Use the datasheet value at the intended current and temperature. Check minimum VF for maximum-current analysis and maximum VF for minimum-current and voltage-headroom analysis.

Can several LEDs share one resistor?

LEDs in one series string can share one resistor because they carry the same current. Parallel LEDs or parallel strings should normally have separate resistors or regulated branch currents.

What happens if the supply voltage is below the total LED forward voltage?

The desired current cannot be established by the resistor calculation. The LEDs may be dim, off, or highly sensitive to component variation.

How do I choose the resistor power rating?

Calculate worst-case resistor dissipation, then choose a rating that remains adequate after applying the manufacturer's temperature and mounting derating guidance.

Does PWM eliminate the need for a resistor?

No. PWM controls average brightness, but the on-state current still needs to be limited by a resistor or regulated driver.

Can a resistor regulate a high-power LED?

A resistor may be inefficient and provide poor current control as voltage and temperature change. A constant-current LED driver is normally preferred for high-power LEDs.

Related Online Calculation Tools

Frequently Asked Questions

How do you calculate the resistor in a LED series?

The value of the correct Resistor for LEDs in Series is the Supply Voltage (pressure) minus the total pressure consumed by all off the LEDs (Voltage Drop Across a Single LED times by the total Number of LEDs), that answer is then divided by the LED Current (electron flow) required by the circuit.

What size resistor do I need for LED?

LEDs typically require 10 to 20mA, the datasheet for the LED will detail this along with the forward voltage drop. For example an ultra bright blue LED with a 9V battery has a forward voltage of 3.2V and typical current of 20mA. So the resistor needs to be 290 ohms or as close as is available.

Do you need a resistor for each LED?

An LED (Light Emitting Diode) emits light when an electric current passes through it. The simplest circuit to power an LED is a voltage source with a resistor and an LED in series. Such a resistor is often called a ballast resistor. If the voltage source is equal to the voltage drop of the LED, no resistor is required.

How do I connect 220 volts to LED?

You can use a LED at 220V by having a capacitor in series in order to limit the current. The advantage is that the capacitor will not heat up! The role of the zener diode is to protect the LED from high voltages. During the positive half-cycle D1 limits the voltage on LED and R1 at 2.7 Volts.

What happens if you don't use a resistor with an LED?

When hooking up an LED, you are always supposed to use a current-limiting resistor to protect the LED from the full voltage. If you hook the LED up directly to the 5 volts without a resistor, the LED will be over-driven, it will be very bright for a while, and then it will burn out.

What voltage do LEDS use?

Typically, the forward voltage of an LED is between 1.8 and 3.3 volts. It varies by the color of the LED. A red LED typically drops around 1.7 to 2.0 volts, but since both voltage drop and light frequency increase with band gap, a blue LED may drop around 3 to 3.3 volts.

Should resistor go before after LED?

It doesn't matter! The resistor can go before – or after – the LED, and it will still protect it. the current that flows out of a battery is always equal to the current that flows back into the battery.

How do I calculate resistance?

If you know the total current and the voltage across the whole circuit, you can find the total resistance using Ohm's Law: R = V / I. For example, a parallel circuit has a voltage of 9 volts and total current of 3 amps. The total resistance RT = 9 volts / 3 amps = 3 Ω.

How do I know what voltage my LED is?

How to find voltage and current of LED 1.The easiest way is to look it up in the datasheet. 2.You could find the LED voltage by using a multimeter with diode function. 3.You could connect a battery to the LED and a potentiometer. Start with a high resistance on the potentiometer and gradually decrease it until you have an nice brightness.

What resistor do I need to reduce voltage?

To reduce voltage in half, we simply form a voltage divider circuit between 2 resistors of equal value (for example, 2 10KΩ) resistors. To divide voltage in half, all you must do is place any 2 resistors of equal value in series and then place a jumper wire in between the resistors.
Hot products

ImagePart NumberManufacturerCategoryPackage/CaseDescriptionPriceQuantityBuy/Quote
BLM18PG121SN1DBLM18PG121SN1DMurata ElectronicsFerrite Beads and Chips0603 (1608 Metric)MURATA - BLM18PG121SN1D - Ferrite Bead, 0603 [1608 Metric], 120 ohm, 2 A, BLM18P Series, 0.05 ohm, ± 25%-

In stock : 355131

Minimum: 1

AD9364BBCZAD9364BBCZAnalog Devices Inc.RF Transceiver ICs144-LFBGA, CSPBGARF Transceiver 1.3V 144-Pin CSP-BGA Tray-

In stock

Minimum: 1

CY62256LL-70SNXCCY62256LL-70SNXCCypress Semiconductor CorpMemory28-SOIC (0.295, 7.50mm Width)IC SRAM 256K PARALLEL 28SOIC-

In stock : 305

Minimum: 1

M24C16-MN6M24C16-MN6STMicroelectronicsMemory8-SOIC (0.154, 3.90mm Width)IC EEPROM 16K I2C 400KHZ 8SO-

In stock : 98

Minimum: 1

MPZ2012S102AT000MPZ2012S102AT000TDK CorporationFerrite Beads and Chips0805 (2012 Metric)TDK - MPZ2012S102AT000 - FERRITE BEAD, 0.15OHM, 1.5A, 0805
  • 1:$0.125460
  • 10:$0.118358
  • 100:$0.111659
  • 500:$0.105338

In stock : 93850

Minimum: 1

SE2537L-RSE2537L-RSkyworks Solutions Inc.RF Amplifiers16-VFQFN Exposed PadRF Amplifier 5GHz Gain 30 dB 3.3Volt -10C 85C-

In stock : 10000

Minimum: 1

CYBL10162-56LQXICYBL10162-56LQXICypress Semiconductor CorpRF Transceiver ICs56-UFQFN Exposed PadMCU 32-Bit CYBL10X6X ARM Cortex M0 RISC 128KB Flash 1.8V/2.5V/3.3V/5V 56-Pin QFN EP Tray-

In stock : 48

Minimum: 1

SKY81294-14-001SKY81294-14-001Skyworks Solutions Inc.PMIC - LED Drivers9-BGA, WLCSPIC LED FLASH DVR 1.2V 9CSP
  • 1:$0.465667
  • 10:$0.439309
  • 100:$0.414442
  • 500:$0.390983

In stock : 22794

Minimum: 1

HSMS-282P-TR1GHSMS-282P-TR1GBroadcom LimitedDiodes - RF6-TSSOP, SC-88, SOT-363Diode Schottky 15V 6-Pin SOT-363 T/R-

In stock

Minimum: 1

IS61LV12816L-8TLIS61LV12816L-8TLISSI, Integrated Silicon Solution IncMemory44-TSOP (0.400, 10.16mm Width)SRAM Chip Async Single 3.3V 2M-bit 128K x 16 8ns 44-Pin TSOP-II-

In stock : 15

Minimum: 1

AT25DF161-SH-TAT25DF161-SH-TAdesto TechnologiesMemory8-SOIC (0.209, 5.30mm Width)Flash Memory 16M, 2.7V, 100Mhz Serial Flash-

In stock

Minimum: 1

80HCPS1432CRM80HCPS1432CRMRenesas Electronics America Inc.Specialized ICs576-BBGA, FCBGAIC SER RAPIDIO SWITCH 576FCBGA-

In stock

Minimum: 1

SZNUP3105LT1GSZNUP3105LT1GON SemiconductorTVS - DiodesTO-236-3, SC-59, SOT-23-3TVS DIODE 32V 66V SOT23-3-

In stock : 1000

Minimum: 1

DS1230AB-200INDDS1230AB-200INDMaxim IntegratedMemory28-DIP Module (0.600, 15.24mm)IC NVSRAM 256K PARALLEL 28EDIP-

In stock

Minimum: 1

STK17TA8-RF45ISTK17TA8-RF45ICypress Semiconductor CorpMemory48-BSSOP (0.295, 7.50mm Width)IC NVSRAM 1M PARALLEL 48SSOP-

In stock

Minimum: 1

ALT6702RM45Q7ALT6702RM45Q7Skyworks Solutions Inc.RF Amplifiers-IC RF AMP CELLULAR SMD-

In stock

Minimum: 1

SI8261BBD-C-ISSI8261BBD-C-ISSilicon LabsIsolators - Gate Drivers6-SOIC (0.295, 7.50mm Width)4A Gate Driver Capacitive Coupling 5000Vrms 1 Channel 6-SDIP
  • 1:$7.591286
  • 10:$7.161591
  • 100:$6.756218
  • 500:$6.373790

In stock : 2191

Minimum: 1

SI8261BAD-C-ISSI8261BAD-C-ISSilicon LabsIsolators - Gate Drivers6-SOIC (0.295, 7.50mm Width)Gate Drivers 5kV Opto input Sgl channel 4.0A driver
  • 1:$4.576037
  • 10:$4.317016
  • 100:$4.072657
  • 500:$3.842129

In stock : 23

Minimum: 1

CSR8510A06-ICXR-RCSR8510A06-ICXR-RQualcommRF Transceiver ICs6-XFBGAIC RF TXRX BLUETOOTH 6XFBGA-

In stock

Minimum: 1

SZNUP4114UCLW1T2GSZNUP4114UCLW1T2GON SemiconductorTVS - Diodes6-TSSOP, SC-88, SOT-363TVS DIODE 5.5V 10V SC88
  • 1:$0.624585
  • 10:$0.589231
  • 100:$0.555878
  • 500:$0.524414

In stock : 155000

Minimum: 1