Required Resistor (R)
Nearest Standard (E24)
Resistor Power (PR)
LED Power (PLED)
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.
| LED Color | VF Typical | VF Range | Typical IF | Wavelength | R @ 5V, 20mA |
|---|---|---|---|---|---|
| Infrared (IR) | 1.3V | 1.2–1.6V | 20–100 mA | 850–950 nm | 185 Ω |
| Red | 2.0V | 1.8–2.2V | 10–30 mA | 620–750 nm | 150 Ω |
| Orange | 2.1V | 2.0–2.2V | 10–20 mA | 590–620 nm | 145 Ω |
| Yellow | 2.2V | 2.0–2.4V | 10–20 mA | 570–590 nm | 140 Ω |
| Green (standard) | 2.2V | 2.0–2.5V | 10–20 mA | 520–560 nm | 140 Ω |
| Green (bright) | 3.3V | 3.0–3.5V | 20–30 mA | 515–525 nm | 85 Ω |
| Blue | 3.2V | 3.0–3.5V | 20–30 mA | 460–500 nm | 90 Ω |
| White | 3.2V | 3.0–3.6V | 20–30 mA | Broadband | 90 Ω |
| UV / Violet | 3.6V | 3.4–4.0V | 10–20 mA | 380–420 nm | 70 Ω |
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
| Quantity | Formula | Unit |
|---|---|---|
| Series Resistor | R = (VS − VF) / IF | Ω (ohms) |
| Voltage across R | VR = VS − VF | V (volts) |
| Resistor Power | PR = VR × IF = IF² × R | W (watts) |
| LED Power | PLED = VF × IF | W (watts) |
| Total Power | Ptotal = VS × IF | W (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.
• 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 Colour | VF Typical | VF Range | Typical IF | Wavelength | R at 5V, 20mA | R at 12V, 20mA |
|---|---|---|---|---|---|---|
| 🟣 Infrared (IR) | 1.3 V | 1.2–1.6 V | 20–100 mA | 850–950 nm | 185 Ω → 180 Ω | 535 Ω → 560 Ω |
| 🔴 Red | 2.0 V | 1.8–2.2 V | 10–30 mA | 620–750 nm | 150 Ω | 500 Ω → 510 Ω |
| 🟠 Orange | 2.1 V | 2.0–2.2 V | 10–20 mA | 590–620 nm | 145 Ω → 150 Ω | 495 Ω → 510 Ω |
| 🟡 Yellow | 2.2 V | 2.0–2.4 V | 10–20 mA | 570–590 nm | 140 Ω | 490 Ω → 510 Ω |
| 🟢 Green (standard) | 2.2 V | 2.0–2.5 V | 10–20 mA | 520–560 nm | 140 Ω | 490 Ω → 510 Ω |
| 🟢 Green (bright) | 3.3 V | 3.0–3.5 V | 20–30 mA | 515–525 nm | 85 Ω | 435 Ω → 470 Ω |
| 🔵 Blue | 3.2 V | 3.0–3.5 V | 20–30 mA | 460–500 nm | 90 Ω | 440 Ω → 470 Ω |
| ⚪ White | 3.2 V | 3.0–3.6 V | 20–30 mA | Broadband | 90 Ω | 440 Ω → 470 Ω |
| 🟣 UV / Violet | 3.6 V | 3.4–4.0 V | 10–20 mA | 380–420 nm | 70 Ω | 420 Ω → 430 Ω |
Worked Examples
Standard Resistor Power Ratings
| Rating | Max Power | Physical Size | Use Case |
|---|---|---|---|
| ⅛W | 125 mW | Very small | Low-current LEDs (≤10 mA at 5V) |
| ¼W | 250 mW | Standard through-hole | Most LED circuits at 5V–9V, 20mA |
| ½W | 500 mW | Slightly larger | 12V supplies or currents >20mA |
| 1W | 1,000 mW | Metal body, heatsink | High-power LEDs, 24V supplies |
| 2W–5W | 2,000–5,000 mW | Large, needs heatsink | High-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:
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
| Supply | Red (VF=2.0V) | Green (VF=2.2V) | Blue/White (VF=3.2V) | UV (VF=3.6V) |
|---|---|---|---|---|
| 3.3V | 65Ω→68Ω | 55Ω→56Ω | 5Ω→10Ω ⚠️ | Not recommended |
| 5V | 150Ω ¼W | 140Ω ¼W | 90Ω→100Ω ¼W | 70Ω ¼W |
| 9V | 350Ω→360Ω ¼W | 340Ω ¼W | 290Ω→300Ω ¼W | 270Ω ¼W |
| 12V | 500Ω→510Ω ½W | 490Ω→510Ω ½W | 440Ω→470Ω ½W | 420Ω→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
- Ohm's Law Calculator — V = I × R fundamentals
- Resistor Color Code Calculator — decode your resistor's value
- Resistor Wattage Calculator — power dissipation and rating
- DC Power Calculator — P = V × I
- Series Resistor Calculator