LED Resistor Calculator
Enter your supply voltage, LED color, and forward current. The calculator returns the exact resistance, the nearest E24 standard resistor to buy, and the minimum wattage rating — all computed client-side, instantly.
Why does an LED need a current-limiting resistor?
LEDs are not resistive devices — unlike a light bulb, their internal resistance drops sharply as they heat up. Without an external resistor to limit current, a small voltage increase triggers an exponentially larger current surge, which generates more heat, which drops resistance further: a self-reinforcing thermal runaway loop that destroys the junction within seconds. A series resistor acts as a fixed "current ceiling," keeping the forward current at or below the LED's rated value regardless of small supply fluctuations. The resistor dissipates the excess voltage as heat — which is why choosing the correct wattage rating matters: an under-rated resistor will overheat and fail too. For circuits where you need to verify total power draw, use our kW to Amps calculator to size your supply correctly.
Formulas Used
Where R is resistance in ohms, Vs is supply voltage (V), Vf is LED forward voltage (V), and If is forward current in amps (divide mA by 1,000). Derived directly from Ohm's Law: V = I × R.
N is the number of LEDs in series. Each LED drops Vf volts; the resistor must absorb the remainder. If N × Vf ≥ Vs, the circuit cannot conduct and the calculator shows a warning.
Power in watts the resistor must dissipate continuously. Select the next standard rating above this value: 1/8 W (0.125 W), 1/4 W (0.25 W), 1/2 W (0.5 W), or 1 W. For high-brightness LEDs at 350 mA or more, a 2 W or 5 W resistor may be needed.
E24 Standard Resistor Rounding
The E24 series contains 24 preferred values per decade, spaced approximately 10% apart. After computing the exact resistance, this calculator searches the E24 sequence for the smallest value that is greater than or equal to the exact result — ensuring the actual forward current never exceeds the LED's rated value. The sequence multipliers within one decade are: 1.0, 1.1, 1.2, 1.3, 1.5, 1.6, 1.8, 2.0, 2.2, 2.4, 2.7, 3.0, 3.3, 3.6, 3.9, 4.3, 4.7, 5.1, 5.6, 6.2, 6.8, 7.5, 8.2, 9.1 — repeated at ×10, ×100, ×1 k, ×10 k, etc.
Rounding down is intentionally never done: a lower resistance allows more current than designed, risking premature LED failure.
LED Forward Voltage Reference Table
| LED Color | Typical Vf Range | Wavelength | Common Application |
|---|---|---|---|
| Red | 1.8 – 2.2 V | 620 – 750 nm | Indicators, automotive, laser pointers |
| Yellow | 2.0 – 2.2 V | 570 – 590 nm | Status indicators, signage |
| Green | 2.0 – 2.2 V | 520 – 560 nm | Power indicators, traffic signals |
| Blue | 3.0 – 3.2 V | 450 – 495 nm | Displays, backlighting, RGB strips |
| White | 3.2 – 3.5 V | Broadband | Lighting, flashlights, panels |
| IR (Infrared) | 1.2 – 1.4 V | > 750 nm | Remote controls, proximity sensors |
| UV (Ultraviolet) | 3.2 – 3.8 V | < 400 nm | Curing, sterilization, fluorescence |
Note: forward voltage varies by manufacturer and junction temperature. Always check the datasheet Vf at your target If. Values above are mid-range estimates for standard indicator LEDs.
Frequently Asked Questions
For a standard red LED (Vf ≈ 2.0 V) at 20 mA on a 12 V supply: R = (12 − 2.0) / 0.020 = 500 Ω. The nearest E24 standard resistor is 510 Ω. Power dissipation is 10 V × 0.020 A = 0.20 W, so a 1/4 W resistor is the minimum safe rating (though 1/2 W gives useful thermal margin). For a blue or white LED at 12 V the calculation changes substantially — use the calculator above with Vf set to 3.1 V or 3.35 V. Resistor power is also related to supply voltage: you can cross-check total circuit power with our Watts to Volts calculator.
Add the forward voltages of all LEDs, subtract from supply voltage, then divide by forward current: R = (Vs − N × Vf) / If. Three blue LEDs (Vf = 3.1 V) on 12 V at 20 mA: R = (12 − 9.3) / 0.020 = 135 Ω. Round up to 150 Ω (E24). Toggle the "LEDs in Series" switch above and enter the LED count — the tool handles the arithmetic automatically. Important: ensure Vs > N × Vf or the chain cannot forward-bias. The future LED Series Calculator will add more advanced multi-strand analysis.
Yes — it is a safety requirement, not a suggestion. A resistor dissipates P = (Vs − N × Vf) × If watts continuously. A resistor operating above its rated wattage runs dangerously hot: the resistance drifts, the body discolors, the leads oxidize, and at worst the component ignites nearby materials. Always select the next standard power rating above the calculated dissipation. Many engineers pick one rating higher still for thermal headroom — a 1/2 W resistor in a 0.20 W circuit stays cool and lasts longer. Use our Watts to Volts page to sanity-check supply requirements for the full circuit.
No. LEDs follow an exponential V-I relationship (Shockley diode equation). A small increase in current above the rated value produces a disproportionate rise in junction temperature. Exceeding rated If by even 20% can halve the LED's operational life; exceeding it by 50%+ often causes immediate or rapid failure. This is precisely why this calculator rounds up to the nearest E24 value and never down — the small reduction in actual forward current (vs. the exact calculation) keeps the LED safely within datasheet limits. Thinking about efficiency across the full system? See our Lumens to Watts page (coming soon) for LED efficacy comparisons.
Methodology & Rounding Logic
This calculator applies the following steps in order, all client-side in JavaScript with no server calls:
- Step 1 — Voltage headroom: Compute Vdrop = Vs − (N × Vf). If ≤ 0, halt and display insufficient-voltage warning.
- Step 2 — Exact resistance: Rexact = Vdrop / If(A). Forward current is converted from mA to A by dividing by 1,000.
- Step 3 — E24 lookup: The 24 base multipliers are searched in order. The first value M × 10n satisfying M × 10n ≥ Rexact is selected as RE24.
- Step 4 — Power dissipation: P = Vdrop × If(A). Note: power is calculated against the exact drop, not the rounded resistor value, as the LED's Vf adjusts slightly with actual current.
- Step 5 — Wattage rating: P is compared to thresholds 0.125 W, 0.25 W, 0.5 W, and 1.0 W. The lowest threshold that exceeds P is the recommended rating. Values above 1 W are reported as "1 W+" with a note to verify.
- Step 6 — Actual current note: Iactual = Vdrop / RE24 is reported so the user can see the small reduction in forward current that results from rounding up.
All arithmetic uses IEEE 754 double-precision floating point native to JavaScript. Results are displayed to 3 significant figures for the exact value and as a standard part number for E24.