The Core Formula: What Resistor to Use for LED on DC
If you are wiring a raw, low-voltage LED to a DC power supply, you must use a current-limiting resistor to prevent the diode from drawing infinite current and burning out. The direct answer relies on Ohm’s Law, specifically rearranged to solve for resistance based on the voltage drop required.
The formula to determine what resistor to use for LED applications is:
R = (Vs - Vf) / If
- Vs: Source voltage (e.g., 5V from an Arduino or USB).
- Vf: Forward voltage of the LED (typically 2.0V for red, 3.2V for white/blue).
- If: Desired forward current (usually 20mA, or 0.02A, for standard 5mm indicators).
Worked Example: You have a 5V source and a standard red LED (Vf = 2.0V, If = 20mA).
R = (5 - 2.0) / 0.02 = 3.0 / 0.02 = 150 Ω.
If 150 Ω is not in your E12 resistor kit, always round up to the next standard value (220 Ω) to keep the current safely below the 20mA maximum.
You must also verify the resistor's power rating using P = I² × R. For our 220 Ω resistor: P = (0.02)² × 220 = 0.088W. A standard 1/4W (0.25W) through-hole resistor is more than adequate.
Scaling Up: LED Drivers, Inrush, and Power Factor
When you move from 5V breadboards to 120V/240V AC mains lighting, you stop using simple resistors. Mains-powered LED fixtures use constant-current LED drivers that actively regulate current regardless of minor voltage fluctuations. However, these drivers introduce complex AC circuit behaviors that dictate breaker sizing and wire gauge.
Power Factor (PF) and Apparent Power
Cheap LED drivers often have poor Power Factor (PF), meaning the apparent power (VA) drawn from the grid is higher than the real power (Watts) consumed by the LEDs. If a 150W LED high-bay light has a PF of 0.7, the driver draws 214 VA. On a 120V circuit, that is 1.78A instead of the expected 1.25A. When sizing branch circuits, you must calculate using VA, not just Watts.
Inrush Current and Breaker Tripping
LED drivers contain large electrolytic input capacitors. When you flip the switch, these capacitors act as a dead short for the first few milliseconds, causing a massive inrush current. A 150W driver pulling 1.38A steady-state might experience an inrush spike of 80x to 100x its nominal current (over 100A).
If you daisy-chain ten of these fixtures on a single 15A C-curve breaker (which magnetically trips between 5x and 10x its rating, or 75A-150A), the simultaneous inrush spike will instantly trip the breaker, even though the steady-state load is only 13.8A. The fix is to stagger the switching via contactors, use B-curve breakers with higher magnetic thresholds, or limit the number of drivers per circuit based on the manufacturer's inrush specs.
Dimmer Compatibility and Fixture Count Limits
Dimming LEDs is fundamentally different from dimming incandescent bulbs. Incandescents are simple resistive loads; LEDs require specialized drivers that can interpret the chopped AC waveform from a dimmer.
Trailing Edge vs. Leading Edge
Older leading-edge (TRIAC) dimmers were designed for high-wattage resistive loads. Modern LED drivers require trailing-edge (ELV/electronic) dimmers. Trailing-edge dimmers use MOSFETs or IGBTs to chop the back half of the AC sine wave, resulting in smoother low-end dimming and eliminating the audible buzzing common in TRIAC dimmers.
The Minimum Load Trap
Every dimmer has a minimum load requirement to keep its internal circuitry powered. A Lutron Diva DVELV-300P trailing-edge dimmer is rated for up to 150W of LED load, but it has a minimum load requirement of 10W. If you install two 4W LED bulbs (8W total), the dimmer will fail to turn on, or the lights will strobe. Always verify the total fixture wattage exceeds the dimmer's minimum load threshold.
Calculating Maximum Fixture Count
To determine which dimmer or driver setup to use for a specific fixture count, use this framework:
- Max Load Limit: Dimmer Max LED Rating / Fixture Wattage (e.g., 150W / 10W = 15 fixtures max).
- Min Load Limit: Ensure (Fixture Count × Fixture Wattage) ≥ Dimmer Min Load (e.g., 2 fixtures × 4W = 8W. This is < 10W, so you must add a third fixture or install a dummy load resistor).
According to Lutron's LED dimming guidelines, always test a mock-up of the exact driver and dimmer combination before roughing in the wiring, as driver topology varies wildly between brands.
Lumens, Watts, and Thermal Enclosure Constraints
When selecting fixtures, wattage alone is a poor indicator of brightness. You must look at efficacy (lumens per watt) and understand how heat impacts the driver and LED junction.
| Fixture Type | Wattage (W) | Output (Lumens) | Efficacy (lm/W) | Typical Application |
|---|---|---|---|---|
| Standard A19 Bulb | 9W | 800 lm | 88 lm/W | Residential lamps (60W equiv) |
| High-Efficacy A19 | 8W | 1100 lm | 137 lm/W | Energy Star premium tier |
| 4-inch Recessed Can | 12W | 900 lm | 75 lm/W | Low-ceiling residential |
| Commercial High-Bay | 150W | 22,500 lm | 150 lm/W | Warehouses, gymnasiums |
| LED Tube (T8 4ft) | 15W | 2,100 lm | 140 lm/W | Office troffer retrofits |
As noted by the Department of Energy Solid-State Lighting program, efficacy is heavily dependent on thermal management. LEDs do not radiate heat forward like incandescents; they conduct it backward into the heat sink.
Heat and Enclosure Constraints
If the LED junction temperature (Tj) exceeds 85°C, lumen depreciation accelerates drastically, and the internal phosphor layer degrades. When installing high-wattage LEDs in enclosed fixtures (like sealed recessed cans or airtight troffers), you must use fixtures explicitly rated for 'Enclosed Spaces'. These fixtures feature integrated thermal pads or external finned heat sinks. Putting a standard 15W LED bulb into a sealed, unvented 4-inch can will cause the internal driver electrolytic capacitors to dry out and fail within 6 to 12 months.
Frequently Asked Questions
What resistor to use for LED on a 12V car battery?
Automotive systems are nominally 12V, but when the engine is running, the alternator pushes the system voltage to roughly 14.4V. You must calculate your resistor using 14.4V to prevent burnout at highway RPMs. If you are wiring three white LEDs in series (3 × 3.2V = 9.6V total Vf) at 20mA:
R = (14.4V - 9.6V) / 0.02A = 4.8 / 0.02 = 240 Ω.
The nearest standard E12 value is 270 Ω. Use a 1/2W resistor to handle the heat generated in a high-ambient-temperature engine bay or dashboard.
Why does my dimmable LED flicker and what is the fix?
Flickering in dimmable LEDs usually stems from three specific issues:
- Dimmer Mismatch: Using a leading-edge (TRIAC) dimmer on a driver that requires trailing-edge (ELV). Fix: Swap to an ELV dimmer.
- Minimum Load Failure: The total LED wattage is below the dimmer's minimum threshold, causing the dimmer's internal microcontroller to brownout and reset repeatedly. Fix: Add more fixtures to the circuit or install a parallel dummy load resistor (usually 5W-10W) at the first fixture.
- Ghosting/Glowing: If the LED glows faintly when turned off, it is often caused by an illuminated dimmer switch or a smart switch leaking a few milliamps of current through the circuit to power its own internal WiFi radio or neon indicator. Fix: Use a smart switch that requires a dedicated neutral wire, or install a bypass resistor across the load.
Do I need a resistor for a 5V LED module with a built-in driver?
No. If you are using addressable LED strips (like WS2812B / NeoPixels) or pre-assembled 5V LED modules, they already contain surface-mount constant-current ICs or integrated resistors on the PCB. Adding an external inline resistor will simply drop the voltage below the IC's operating threshold, causing data errors, color shifting, or total failure. Only use external resistors when wiring raw, 2-pin through-hole or surface-mount diode components directly to a voltage source.






