Free Online Engineering Tools

💡 LED Resistor Calculator

Find the correct series resistor for any LED using R = (VS − VF) / IF. Select your LED colour, supply voltage, and forward current — the calculator shows the resistor value, power rating, nearest E24 standard, and a live glowing LED diagram. Supports 3.3V, 5V, 9V, 12V, and any custom supply.

R = VS VF IF
Series resistor formula for LED circuits
🎨 Select LED Color (sets VF)
Supply Voltage (VS)
V
1.5V24V
💡Forward Voltage (VF)
V
1.0V (IR)4.5V (UV)
🔵Forward Current (IF)
mA
1 mA (dim)50 mA (max)
+ 5.0V R 150 Ω LED VF=2.2V IF = 20 mA ◉ Normal (20.0 mA)
💡 LED Brightness 20 mA — Normal
🌑 Off🌙 Dim💡 Normal☀️ Bright🌟 Max

Required Resistor (R)

140 Ω
Exact calculated value

Nearest Standard (E24)

150 Ω
Closest E24 value

Resistor Power (PR)

56 mW
Use ≥ ¼W resistor

LED Power (PLED)

44 mW
Power in LED
E24 Nearest Standard Values
ℹ️

Always use a resistor equal to or above the calculated value. Choose a power rating at least 2× the calculated resistor power dissipation for safe operation.

⚙️ Calculation Steps
1
Identify supply voltage (VS) and LED forward voltage (VF) from datasheet.
2
Choose desired forward current (IF) — typically 10–20 mA for standard LEDs.
3
Calculate voltage across resistor: VR = VS − VF
4
Apply Ohm's Law: R = VR / IF
5
Calculate resistor power: PR = VR × IF = IF² × R
6
Round up to nearest standard E24 resistor value and verify power rating.
📊 Live Calculation
Step 1 — Voltages
V_S = 5.0V V_F = 2.2V
Step 2 — Voltage across resistor
V_R = 5.0 − 2.2 = 2.8V
Step 3 — Required Resistance
R = 2.8V / 20mA = 140 Ω
Step 4 — Power Dissipation
P_R = 2.8 × 20mA = 56 mW (use ¼W)
📋 Quick Reference — LED Types & Specifications
LED Color VF Typical VF Range Typical IF Wavelength R @ 5V, 20mA
Infrared (IR)1.3V1.2–1.6V20–100 mA850–950 nm185 Ω
Red2.0V1.8–2.2V10–30 mA620–750 nm150 Ω
Orange2.1V2.0–2.2V10–20 mA590–620 nm145 Ω
Yellow2.2V2.0–2.4V10–20 mA570–590 nm140 Ω
Green (standard)2.2V2.0–2.5V10–20 mA520–560 nm140 Ω
Green (bright)3.3V3.0–3.5V20–30 mA515–525 nm85 Ω
Blue3.2V3.0–3.5V20–30 mA460–500 nm90 Ω
White3.2V3.0–3.6V20–30 mABroadband90 Ω
UV / Violet3.6V3.4–4.0V10–20 mA380–420 nm70 Ω
ℹ️

Resistor values shown are for 5V supply at 20 mA. Always verify with the LED datasheet. Forward voltage varies with temperature — LEDs get brighter when cold and dimmer when hot. Add ~20% safety margin to resistor power rating.

LED Resistor Calculator — Complete Guide to LED Series Resistor Calculation

This LED resistor calculator finds the correct current-limiting series resistor for any LED using the fundamental formula R = (VS − VF) / IF. Enter your supply voltage (VS), LED forward voltage (VF), and desired forward current (IF) and the calculator instantly shows the exact resistance, the nearest E24 standard value, resistor power dissipation, recommended wattage rating, and a live LED brightness simulation. Use the colour presets to set typical VF values automatically for red, orange, yellow, green, blue, white, UV, or infrared LEDs.

Quick Reference: LED Resistor Formula

QuantityFormulaUnit
Series ResistorR = (VS − VF) / IFΩ (ohms)
Voltage across RVR = VS − VFV (volts)
Resistor PowerPR = VR × IF = IF² × RW (watts)
LED PowerPLED = VF × IFW (watts)
Total PowerPtotal = VS × IFW (watts)

Why Every LED Needs a Series Resistor

An LED is not an ohmic device — it does not obey Ohm's law like a resistor. Instead, it has a steep current–voltage curve: below the forward voltage VF it barely conducts; above it, current rises almost vertically. A supply voltage just slightly above VF drives enormous, destructive current. The series resistor absorbs the excess voltage (VS − VF) and converts it to heat, holding the current to the safe level you choose. Without it, the LED burns out in milliseconds.

R = (VS − VF) / IF

• VS = Supply voltage (V) — e.g., 3.3V, 5V, 9V, 12V
• VF = LED forward voltage (V) — from datasheet; typically 2.0–3.6V
• IF = Desired forward current (A) — typically 0.010–0.020 A (10–20 mA)

PR = (VS − VF) × IF — power the resistor must dissipate
Use a resistor rated ≥ 2 × PR for a safe thermal margin.

LED Colour Reference — Forward Voltage & Typical Resistor Values

Forward voltage varies significantly with LED colour because different semiconductor materials are used. Use this table as a starting point — always verify with the manufacturer's datasheet:

LED ColourVF TypicalVF RangeTypical IFWavelengthR at 5V, 20mAR at 12V, 20mA
🟣 Infrared (IR)1.3 V1.2–1.6 V20–100 mA850–950 nm185 Ω → 180 Ω535 Ω → 560 Ω
🔴 Red2.0 V1.8–2.2 V10–30 mA620–750 nm150 Ω500 Ω → 510 Ω
🟠 Orange2.1 V2.0–2.2 V10–20 mA590–620 nm145 Ω → 150 Ω495 Ω → 510 Ω
🟡 Yellow2.2 V2.0–2.4 V10–20 mA570–590 nm140 Ω490 Ω → 510 Ω
🟢 Green (standard)2.2 V2.0–2.5 V10–20 mA520–560 nm140 Ω490 Ω → 510 Ω
🟢 Green (bright)3.3 V3.0–3.5 V20–30 mA515–525 nm85 Ω435 Ω → 470 Ω
🔵 Blue3.2 V3.0–3.5 V20–30 mA460–500 nm90 Ω440 Ω → 470 Ω
⚪ White3.2 V3.0–3.6 V20–30 mABroadband90 Ω440 Ω → 470 Ω
🟣 UV / Violet3.6 V3.4–4.0 V10–20 mA380–420 nm70 Ω420 Ω → 430 Ω

Worked Examples

💡 Example 1 — Red LED on a 5V Arduino Pin
GivenVS = 5V  |  Red LED: VF = 2.0V  |  IF = 20 mA (0.020 A)
Step 1VR = VS − VF = 5.0 − 2.0 = 3.0 V
Step 2R = VR / IF = 3.0 / 0.020 = 150 Ω   (exact E24 match ✓)
Step 3PR = 3.0 × 0.020 = 60 mW → use ¼W (250 mW) resistor ✓
ResultR = 150 Ω, ¼W  |  PLED = 2.0 × 0.020 = 40 mW
🔵 Example 2 — Blue LED on a 12V Automotive Supply
GivenVS = 12V  |  Blue LED: VF = 3.2V  |  IF = 20 mA (0.020 A)
Step 1VR = 12.0 − 3.2 = 8.8 V
Step 2R = 8.8 / 0.020 = 440 Ω → round up to nearest E24 = 470 Ω
Step 3PR = 8.8 × 0.020 = 176 mW → use ½W (500 mW) resistor ✓ (2× margin)
ResultR = 470 Ω, ½W  |  At 12V always check wattage!
⚪ Example 3 — White LED on a 3.3V Microcontroller
GivenVS = 3.3V  |  White LED: VF = 3.0V  |  IF = 10 mA (0.010 A)
Step 1VR = 3.3 − 3.0 = 0.3 V   (very small margin — check VF carefully!)
Step 2R = 0.3 / 0.010 = 30 Ω → nearest E24 = 33 Ω
Step 3PR = 0.3 × 0.010 = 3 mW → ⅛W resistor is more than sufficient
ResultR = 33 Ω, ⅛W  |  ⚠️ Verify VF ≤ 3.0V — tight supply margin

Standard Resistor Power Ratings

RatingMax PowerPhysical SizeUse Case
⅛W125 mWVery smallLow-current LEDs (≤10 mA at 5V)
¼W250 mWStandard through-holeMost LED circuits at 5V–9V, 20mA
½W500 mWSlightly larger12V supplies or currents >20mA
1W1,000 mWMetal body, heatsinkHigh-power LEDs, 24V supplies
2W–5W2,000–5,000 mWLarge, needs heatsinkHigh-power LED modules

Always use a resistor rated at at least 2× the calculated dissipation. Running a resistor near its limit raises its temperature, shifts its resistance value, and shortens its life.

Multiple LEDs in Series — One Resistor

For LEDs wired in series (same current through all), subtract all VF values from VS and use one shared resistor:

R = (VS − VF1 − VF2 − … − VFn) / IF

Example: 3× red LEDs (VF = 2.0V each) in series on 12V at 20mA:
R = (12 − 2.0 − 2.0 − 2.0) / 0.020 = 6.0 / 0.020 = 300 Ω (use 330 Ω)

⚠️ Ensure VS > ΣVF — the supply must exceed the total forward voltage.

Multiple LEDs in Parallel — Individual Resistors

Never connect LEDs in parallel without individual resistors. Even LEDs of the same part number have slightly different VF values. The one with the lowest VF will hog all the current and fail. Always give each parallel LED its own resistor calculated from R = (VS − VF) / IF.

LED Resistor for Common Supply Voltages

SupplyRed (VF=2.0V)Green (VF=2.2V)Blue/White (VF=3.2V)UV (VF=3.6V)
3.3V65Ω→68Ω55Ω→56Ω5Ω→10Ω ⚠️Not recommended
5V150Ω ¼W140Ω ¼W90Ω→100Ω ¼W70Ω ¼W
9V350Ω→360Ω ¼W340Ω ¼W290Ω→300Ω ¼W270Ω ¼W
12V500Ω→510Ω ½W490Ω→510Ω ½W440Ω→470Ω ½W420Ω→430Ω ½W

Values shown are exact calculated → rounded to nearest E24 above. Power ratings assume IF = 20 mA. ⚠️ 3.3V + blue/white LED leaves very little headroom — verify VF from datasheet.

E24 Standard Resistor Series

Standard resistors are made in preferred E-series values. The E24 series (24 values per decade, ±5% tolerance) covers: 10, 11, 12, 13, 15, 16, 18, 20, 22, 24, 27, 30, 33, 36, 39, 43, 47, 51, 56, 62, 68, 75, 82, 91 Ω — then ×10, ×100, etc. This calculator automatically shows the nearest E24 values above and below your exact calculated resistance. Always pick the value equal to or above the calculated result.

LED Brightness and PWM Dimming

LED brightness is approximately proportional to forward current. The simplest dimming method is reducing IF by increasing the series resistance, but this also changes the LED's colour temperature slightly at low currents. The preferred method for smooth, colour-accurate dimming is PWM (Pulse-Width Modulation) — rapidly switching the LED on and off at full current. The eye perceives average brightness. PWM frequencies above 100 Hz appear flicker-free to most people.

Frequently Asked Questions

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

The LED draws uncontrolled current, overheats in milliseconds, and burns out permanently. An LED's forward voltage changes only a fraction of a volt between 1 mA and 100 mA — without a resistor, even a small excess supply voltage drives destructive current.

What resistor for a red LED at 5V?

R = (5 − 2.0) / 0.020 = 150 Ω, ¼W. This is an exact E24 value and the most common LED resistor in Arduino/Raspberry Pi projects.

What resistor for a white LED at 5V?

R = (5 − 3.2) / 0.020 = 90 Ω → use 100 Ω (nearest E24 above), ¼W.

What resistor for an LED at 12V?

For a red LED at 20mA: R = (12 − 2.0) / 0.020 = 500 Ω → use 510 Ω, ½W. For blue/white: R = (12 − 3.2) / 0.020 = 440 Ω → use 470 Ω, ½W. At 12V always use at least a ½W resistor.

Can I use the same resistor for different coloured LEDs?

Only if they have the same VF and IF. Red and green standard LEDs have slightly different VF (2.0V vs 2.2V) so a shared 150 Ω resistor will give slightly different brightness. For colour-critical applications, use individual resistors per colour.

Why round up to the nearest E24 value?

Rounding up gives a slightly higher resistance, which reduces the current slightly, keeping the LED within safe limits. Rounding down would push more current through the LED than intended, risking damage and shortened life.

Related Calculators