How to Size an LED Current Limiting Resistor — And Why Getting It Wrong Costs You
Calculate the correct LED current limiting resistor for any supply voltage and LED color. Includes worked examples, E24 selection, and power dissipation.
Contents
The One Resistor You Can't Afford to Skip
Every engineer has done it at least once: connected an LED directly to a supply rail and watched it flash brilliantly — for about half a second — before going dark forever. LEDs are current-driven devices with an exponential V-I characteristic, which means even a small overvoltage drives a destructive amount of current through the junction. A series current limiting resistor is the simplest, cheapest, and most reliable way to set the operating point.
This sounds trivial, and the math *is* simple. But in practice, choosing the right value means thinking about standard resistor series, actual current deviation, and power dissipation in the resistor itself — especially when you're placing dozens of LEDs on a panel indicator board or driving high-brightness LEDs from a 24 V industrial supply.
The Fundamental Equation
The resistor drops the difference between the supply voltage and the LED forward voltage , and sets the current :
That's it. But the nuance is in the details:
- varies with LED color and manufacturer. A red LED typically drops 1.8–2.0 V, while a white or blue LED drops 3.0–3.4 V. Always check the datasheet, but those ranges cover the vast majority of through-hole and SMD indicator LEDs.
- depends on your application. 20 mA is the classic "standard brightness" value for 5 mm through-hole LEDs, but modern high-efficiency LEDs are perfectly visible at 1–5 mA, which matters when you're running on battery or have 50 status LEDs sharing a microcontroller's total I/O budget.
- The exact resistance almost never lands on a standard value. You'll need to pick the nearest value from the E24 series (or E96 if you're using 1% resistors), and that shifts the actual operating current.
Worked Example: White LED on a 5 V Supply
Let's say you're driving a white indicator LED from a 5 V USB supply at a standard 20 mA. The datasheet lists typical.
Step 1 — Calculate the exact resistance:90 Ω isn't in the E24 series. The nearest standard values are 82 Ω and 91 Ω. You almost always round up to limit current, so pick .
Step 3 — Calculate the actual current with the E24 resistor:That's within 1% of the target — perfectly acceptable.
Step 4 — Check power dissipation in the resistor:With the exact resistance:
With the E24 value:
A standard 0603 SMD resistor rated for 100 mW handles this easily. No concerns here.
When Power Dissipation Actually Matters
Now change the scenario: you're driving the same white LED from a 24 V industrial supply at 20 mA.
Nearest E24: or . Let's pick (rounding down slightly — acceptable if the LED's absolute max is well above 20 mA).
Now the power in the resistor:
That's nearly half a watt — far too much for an 0603 (100 mW) or even an 0805 (125 mW). You'd need at least a 2512 package or a through-hole ¼ W resistor won't cut it either. A ½ W resistor is the safe choice. This is exactly the kind of detail that's easy to overlook when you're copying a "standard" LED circuit from a 5 V design into a 24 V system.
The takeaway: most of the supply-to-LED voltage difference is being burned as heat in the resistor. At higher supply voltages, consider a constant-current driver IC or a switching LED driver instead.
Quick Reference: Common Combinations
| Supply | LED Color () | Target | Exact | E24 | (E24) |
|---|---|---|---|---|---|
| 3.3 V | Red (2.0 V) | 20 mA | 65 Ω | 68 Ω | 25 mW |
| 5 V | Yellow (2.1 V) | 20 mA | 145 Ω | 150 Ω | 56 mW |
| 5 V | Blue (3.2 V) | 10 mA | 180 Ω | 180 Ω | 18 mW |
| 12 V | Red (2.0 V) | 20 mA | 500 Ω | 510 Ω | 196 mW |
| 24 V | IR (1.3 V) | 50 mA | 454 Ω | 470 Ω | 1.09 W |
Practical Tips
- Always round resistance up unless you've confirmed the LED can tolerate the higher current with margin. Rounding down by one E24 step typically increases current by 5–10%.
- Use the LED datasheet at your operating current, not the maximum rating. Forward voltage varies with current, and the typical value at 20 mA is what you want.
- For battery-powered designs, consider running indicator LEDs at 1–2 mA. Modern high-efficiency LEDs are clearly visible at these levels, and you save significant standby power.
- When is small (e.g., 3.3 V supply with a blue LED at 3.2 V), the resistor value becomes very small and current becomes extremely sensitive to tolerance. In these cases, a constant-current source is a better choice.
Try It
Don't do this math by hand every time — open the LED Current Limiting Resistor Calculator and plug in your supply voltage, LED color, and desired current. The tool instantly gives you the exact resistance, the nearest E24 standard value, the actual operating current, and power dissipation for both — so you can pick the right resistor and the right package on the first try.
Related Articles
How to Size Solar Panels, Batteries, and Charge Controllers for Off-Grid Systems
Learn how to size solar panels, batteries, and charge controllers for off-grid systems. Worked example with real numbers using our Solar Panel Sizing Calculator.
Mar 3, 2026
Power ElectronicsMagnetics Optimizer: Finding the Pareto-Optimal Transformer Design With NSGA-II
Designing a flyback transformer by hand means picking one core from hundreds and hoping your intuition about the efficiency-versus-size trade-off is close. The Magnetics Optimizer runs NSGA-II across a 113-core vendor database, evaluates every candidate at 10 operating points, and hands you the Pareto front — the complete set of designs where you cannot improve efficiency without growing the core, and vice versa.
Mar 1, 2026
Power ElectronicsSMPS Control Loop Stability: Tuning a Buck Converter With Monte Carlo Analysis
A step-by-step walkthrough of using the SMPS Control Loop Stability Analyzer to verify phase margin, gain margin, and crossover frequency for a 12V→5V buck converter — then running Monte Carlo to catch a capacitor tolerance problem before it reaches production.
Mar 1, 2026