Series current limit
LED Resistor Calculator: R from Supply, Vf, and Current
This calculator sizes a series LED resistor from supply voltage, forward voltage (Vf), and target current using R = (Vsupply − Vf) / I. It returns exact ohms, the next E12 standard value, loop current with that E12 part, and resistor power with a shelf wattage hint. One LED on DC only; not for constant-current drivers or PWM.
By Jeff Beem
Updated
LED series resistor
An LED behaves like a diode with a nearly fixed forward voltage, while current sets brightness and heat. A series resistor limits that current. This tool computes that resistor from your supply voltage, estimated Vf, and the current you want through the loop.
What you're feeding it
Color sets a ballpark Vf. The reference card below adds typical max continuous current, which the shortcuts do not include. Prefer values from the datasheet when you have one; otherwise measure and adjust if the brightness or temperature is off.
- Voltage across resistor
- 3.00 V
- Exact resistor value
- 150.00 Ω
- Next E12 standard (≥ exact)
E12 is a common set of preferred resistor values available from most suppliers. This value is the next one in that set that is still at or above your exact ohms.
150.00 Ω
That rounding slightly lowers current versus the exact calculation, which is usually fine for indicator LEDs.
- Current with E12 resistor
- 20.00 mA
- Power in the resistor
- 60.00 mW Shelf-friendly rating: 1/8 W or higher
- Power at E12 value
- 60.00 mW
Work shown
V across resistor = 5.00 − 2.00 = 3.00 V. Then R = 3.00 V ÷ 0.02 A ≈ 150.00 Ω.
Typical indicator LED cheat sheet
Same color rows as the shortcuts, with an extra column for typical maximum continuous forward current from common small epoxy through-hole parts. High-power and specialized LEDs need their own datasheets; treat these figures as starting points.
| LED color | Typical Vf (V) | Typ. max IF continuous* |
|---|---|---|
| Red | 1.8–2.1 | 30 mA |
| Amber | 2–2.2 | 30 mA |
| Orange | 1.9–2.2 | 30 mA |
| Yellow | 1.9–2.2 | 30 mA |
| Green | 2–3.1 | 25–30 mA |
| Blue | 3–3.7 | 20–30 mA |
| White | 3–3.4 | 20–30 mA |
* Approximate absolute-maximum DC forward current for generic 5 mm epoxy indicators at room temperature; chemistries vary, which is why some rows show a range. Operating well below the maximum (often around 10–20 mA for indicators) usually improves lifetime. Confirm on the datasheet for your specific part.
How to use this calculator
Section 01: supply voltage, LED forward voltage (color preset or typed Vf), and target current (default 20 mA). The dark results card shows voltage across the resistor, exact Ω, next E12 ≥ exact, current with that E12 value, and power in mW plus a shelf wattage hint. Work shown lists R = (Vsupply − Vf) / I with your numbers. Use the cheat sheet table for typical max continuous current by color; confirm against your datasheet before you finalize current.
Reading your LED resistor result
The dark results card lists voltage across the resistor, exact ohms, next E12, current with that E12 value, and resistor power. Work shown repeats the algebra.
Example: 12 V, 2 V Vf, 20 mA
LED resistor calculator: series R from Vf and current
Size one series resistor from DC supply voltage, LED forward voltage, and target current. Exact ohms, next E12 value, resulting current, and resistor power. One LED on stiff DC only.
What this calculator does
- Resistor value:
- Power in the resistor:
- E12 pick:Smallest preferred value in the E12 series still ≥ calculated R (12 values per decade).
How the math works
- Worked example (not the default):9 V supply, red Vf ≈ 1.8 V, 20 mA target → VR = 7.2 V, exact R = 360 Ω, next E12 = 390 Ω, current with 390 Ω ≈ 18.5 mA, PR ≈ 133 mW.
Limits
FAQ
What resistor do the default inputs show?
What resistor do I need for an LED on 12 V?
How does this calculator compute resistance?
What is the next E12 standard row?
How should I pick LED forward voltage (Vf)?
What wattage resistor should I buy?
Can this size multiple LEDs in series?
Does this replace a constant-current driver?
Sources & citations
References used for the calculation method and definitions. Links open in a new tab when available.
LED behavior, typical forward voltage bands by construction, and diode I–V curves for operating-point margin.
Hobby-oriented overview of forward voltage, current, and why real parts need margin instead of a single V<sub>f</sub>.
Electronics Reference Note
Educational Use: These tools use standard electrical formulas (e.g., Ohm's Law, NEC voltage drop) for learning, hobby projects, and general reference, not for licensed electrical work or safety-critical installations.
Verification Recommended: Wire sizing, voltage drop, and circuit design depend on local codes, ambient conditions, and load profiles. For real installations, consult a qualified electrician or engineer.
Not Professional Advice: This site does not provide electrical or engineering advice. All calculations run locally in your browser; no data is stored or transmitted.