How to Calculate LED Resistor Values

Learn how to calculate the correct current-limiting resistor value for any LED using forward voltage, supply voltage, and desired current with step-by-step examples.

Why LEDs Need Current-Limiting Resistors

An LED (Light Emitting Diode) is not a resistive load — it has a fixed forward voltage drop and will draw as much current as the circuit allows. Without a current-limiting resistor, the current rises rapidly once the forward voltage is reached, quickly burning out the LED. The resistor drops the excess supply voltage and sets a safe operating current, typically between 5 mA and 20 mA for standard indicator LEDs.

The Forward Voltage Drop

Every LED has a characteristic forward voltage (Vf) that depends on its color and semiconductor material. Typical values are: Red ≈ 1.8–2.2 V, Yellow/Green ≈ 2.0–2.4 V, Blue/White ≈ 3.0–3.5 V, UV ≈ 3.5–4.0 V. Always check the datasheet for the exact Vf at your intended operating current. Using an incorrect Vf in your calculation will cause the LED to run too dim or too hot.

The Current-Limiting Resistor Formula

The required resistance is calculated using Ohm's Law applied to the voltage across the resistor: R = (Vs − Vf) / If, where Vs is the supply voltage, Vf is the LED forward voltage, and If is the desired forward current in amperes. For a red LED (Vf = 2.0 V) powered from 5 V at 10 mA: R = (5 − 2.0) / 0.01 = 300 Ω. The nearest standard E24 value is 330 Ω, which gives a safe operating current of (5 − 2.0) / 330 ≈ 9.1 mA.

Accounting for Multiple LEDs in Series

When LEDs are wired in series, their forward voltages add up. The formula becomes R = (Vs − n × Vf) / If, where n is the number of LEDs. Three blue LEDs (Vf = 3.2 V each) in series from a 12 V supply at 15 mA: R = (12 − 3 × 3.2) / 0.015 = (12 − 9.6) / 0.015 = 160 Ω. Use a 180 Ω resistor to keep the current slightly below 15 mA for longer LED life. The supply voltage must exceed the total Vf sum for the circuit to work.

LEDs in Parallel — Proceed with Caution

Wiring LEDs in parallel with a single shared resistor is generally discouraged because slight Vf differences between individual LEDs will cause current imbalance — one LED hogs current while the others dim or go out. The safer approach is to give each LED its own individual resistor calculated separately. If parallel operation is required (e.g., for redundancy), match LEDs from the same manufacturing batch and accept some brightness variation.

Calculating Resistor Power Dissipation

The resistor must be rated to handle the power it dissipates: P = (Vs − Vf) × If, or equivalently P = I² × R. For the 5 V red LED example: P = (5 − 2.0) × 0.01 = 0.03 W, so a standard 1/4 W (0.25 W) resistor is more than adequate. For higher-current LEDs or multiple LEDs in series from higher voltages, the power dissipated in the resistor can approach 1 W or more, requiring a larger package.

High-Power LEDs and Constant-Current Drivers

For LEDs above about 100 mA, a simple resistor is inefficient because it dissipates significant power as heat. High-power LEDs (1 W, 3 W, 10 W) require constant-current LED driver ICs such as the PT4115, AMC7135, or a switching regulator configured for constant current output. These drivers regulate current directly, adapting to supply voltage variations and temperature changes in the LED's Vf, delivering efficiency above 90% compared to 50–70% for a resistor-based solution.

Try These Calculators

Put what you learned into practice with these free calculators.