LED Resistor Calculator (Series and Parallel Arrays)
Find the series resistor for one LED or a string: exact ohms, the E24 value to buy, the real current, resistor wattage, efficiency and a headroom check.
LED Resistor Calculator
Background.
A red indicator LED rated at 2.1 V and 20 mA, run from a 5 V supply, needs (5 − 2.1) ÷ 0.02 = 145 Ω in series with it. Nobody sells 145 Ω, so you fit the next standard value up, 150 Ω, and the LED runs at 19.33 mA instead of 20: a shade under its rating, which is where you want it. What follows the arithmetic decides whether the circuit keeps working once it leaves the bench.
The resistor is there because an LED cannot limit its own current. A resistor's current rises in proportion to the voltage across it; a diode's rises exponentially. In an ideal diode at room temperature each extra 60 mV or so multiplies the current about tenfold, and real LEDs, though less steep, behave the same way in kind. Connected straight to a supply, an LED has nothing to stop the current climbing until something fails. With a resistor in series, the resistor takes up the difference between the supply and the LED's forward voltage, and Ohm's law fixes the current.
For one LED or a string of up to 100, you get the exact resistance, the E24 resistor to buy, the current it really delivers, the heat in each part, a power rating with margin, the share of the supply that reaches the LEDs, and a headroom verdict on whether the design will behave the same with the next batch of parts. Two wirings are offered: one series string behind a single resistor, or parallel LEDs each with a resistor of their own. Several parallel LEDs sharing one resistor is left out on purpose, because the LED with the lowest forward voltage takes most of the current.
The model is a DC indicator circuit on a steady supply at room temperature. Power LEDs drawing hundreds of milliamps belong on a constant-current driver, and currents above 5 A are refused for that reason.
What is led resistor calculator?
A current-limiting resistor is a resistor wired in series with an LED so that the resistor, not the diode, sets the current. The loop obeys Kirchhoff's voltage law: the supply voltage equals the LED's forward voltage plus the voltage across the resistor. Because the forward voltage changes only a little over the useful current range, the resistor's share is nearly fixed, and the current is that share divided by the resistance.
Forward voltage is the voltage an LED drops while conducting at a given current. It is set mostly by the semiconductor's band gap, the same property that sets the colour of the light, so red LEDs sit lower than green, blue and white ones. It also rises with current, falls as the die warms and varies between parts of the same type. Kingbright, for example, quote a ±0.1 V tolerance on the forward voltages in their datasheets and specify different values for the red, green and blue dice inside a single multi-colour lamp. That is why forward voltage is an input to read from your own part's datasheet, at the current you plan to use, rather than a number assumed for a colour.
How to use this calculator.
- Enter the Supply voltage the circuit really sees, at its highest. A car's 12 V system runs at around 14 V with the engine on, and a 9 V battery starts above 9 V and sags as it discharges.
- Enter the LED forward voltage (Vf) from the datasheet at your chosen current. If the datasheet gives typical and maximum figures, start with typical and re-run with the extremes.
- Enter Forward current you want in milliamps. 20 mA is the usual rating point for a 5 mm indicator, but the absolute maximum on your part is the ceiling, and modern high-efficiency indicators are often bright enough at a few milliamps.
- Set How many LEDs? and How are they wired?: in series, one string behind one resistor; in parallel, every LED with its own resistor.
- Fit the Stock resistor to use rather than the exact value, and check Current you actually get.
- Read the Design check and the power-rating line. Fix tight headroom before anything else, and remember that a parallel array needs one resistor of that rating per LED.
The formula.
Around a series loop the voltage drops add up to the supply. With n LEDs in one string the LEDs take n × V_f between them and the resistor takes the rest, so V_R = V_s − n·V_f and R = (V_s − n·V_f) ÷ I_f. In the parallel wiring each LED sits in its own loop with its own resistor, so n drops out: R = (V_s − V_f) ÷ I_f for each one. The LED drop must stay below the supply. As n·V_f approaches V_s the required resistance falls towards zero, and once they meet the string cannot light at all, so that case is reported as an error instead of producing a negative resistance.
The exact value is then rounded up to the next value in the IEC 60063 E24 series, the 24 preferred values per decade sold as ±5% parts: 10, 11, 12, 13, 15, 16, 18, 20, 22, 24, 27, 30, 33, 36, 39, 43, 47, 51, 56, 62, 68, 75, 82 and 91, times a power of ten. Rounding up, never to the nearest, keeps the current at or below your target. The real current is recomputed with the stock part as I = V_R ÷ R_stock.
Power follows from the same loop. Each resistor dissipates V_R × I. The LEDs together take n × V_f × I. The supply delivers V_s times the total current, which is I in series and n × I in parallel, and the resistor and LED figures add back to it exactly. The share reaching the LEDs reduces to n·V_f ÷ V_s in series and V_f ÷ V_s in parallel: the current cancels, so efficiency depends only on how much of the supply voltage the LEDs occupy. The suggested rating is the smallest common one — 1/16, 1/10, 1/8, 1/4 or 1/2 W, then 1, 2, 3, 5 or 10 W — that is at least twice the dissipation, assuming a room-temperature ambient.
The headroom verdict sorts the resistor's share of the supply, V_R ÷ V_s, into four bands: under 10% very tight, 10–20% tight, 20–50% comfortable, and 50% or more generous but wasteful. The bands reflect sensitivity. A shift ΔV_f in each LED changes the current by the fraction n·ΔV_f ÷ V_R, so the smaller the resistor's voltage, the more the LEDs rather than the resistor decide the current. The calculation holds V_f at the value you enter; in reality it creeps up with current and down with temperature, which is why margin matters.
A worked example.
Three red LEDs, each specified at 2.1 V and 20 mA, are wired in one string on a 12 V supply. Together they drop 3 × 2.1 = 6.3 V, leaving 12 − 6.3 = 5.7 V for the resistor, and 5.7 ÷ 0.020 = 285 Ω gives exactly 20 mA. 285 Ω is not an E24 value. The next one up is 300 Ω, which gives 5.7 ÷ 300 = 0.019 A, or 19 mA — 5% under target and indistinguishable to the eye. The nearest value below, 270 Ω, would have pushed 21.1 mA through LEDs rated at 20. The resistor dissipates 5.7 × 0.019 = 0.1083 W. Doubling that for margin gives 0.2166 W, so a 1/4 W part is the smallest common rating that covers it. The LEDs take 3 × 2.1 × 0.019 = 0.1197 W, and the supply delivers 12 × 0.019 = 0.228 W, the two added together. The share reaching the LEDs is 0.1197 ÷ 0.228 = 52.5%, the same as 6.3 ÷ 12. The resistor drops 5.7 ÷ 12 = 47.5% of the supply, inside the comfortable band. If every LED in the string came in 0.1 V above nominal, the string would drop 6.6 V, the resistor would see 5.4 V and the current would ease to 18 mA: a modest change, because the resistor rather than the LEDs is setting the current.
Frequently asked questions.
What resistor does a single LED need on a 5 V supply?
Can several LEDs share one resistor?
Should I wire my LEDs in series or in parallel?
How many LEDs can go in one string?
Why is a resistor a poor way to run a white LED from 3.3 V?
What voltage should I design for in a car?
What power rating does the resistor need, and why twice the dissipation?
Why is my LED dimmer than I expected?
Is a resistor good enough for a high-power LED?
How do I size the resistor for a PWM-dimmed LED or an AC supply?
References& sources.
- [1]Kingbright, "WP154A4SUREQBFZGW T-1 3/4 (5mm) Full Color LED Lamp" datasheet. Read directly from the PDF on 2026-07-29. Confirms the design decisions on this page: electrical and optical characteristics and absolute maximum ratings are both specified at TA = 25 °C; forward voltage carries a stated tolerance of ±0.1 V; a single package contains hyper red, green and blue dice with separately specified characteristics — which is why forward voltage is an input here rather than a constant; and the datasheet warns that "excess driving current and / or operating temperature higher than recommended conditions may result in severe light degradation or premature failure", the reason the stock resistor is always rounded up. Luminous intensity is quoted with a ±15 % spread.
- [2]OpenStax (Rice University), "University Physics Volume 2", §10.2 "Resistors in Series and Parallel". Equation 10.2 and the common-current constraint behind it are what make a series LED string tractable: every element carries the identical current and the voltage drops add, which is the Kirchhoff's-voltage-law statement this page's formula is derived from. Retrieved and read 2026-07-29.
- [3]IEC 60063:2015, "Preferred number series for resistors and capacitors", third edition, 27 March 2015. Defines the E24 series of twenty-four values per decade, the ±5 % set this page rounds up into when choosing a stock resistor. Retrieved 2026-07-29 via the reference summary of the series values and their standard tolerances.
- [4]Vishay Draloric / Beyschlag / BCcomponents, "Resistor Color Card", document VMN-MS6212-1501 (2015). Read directly from the PDF on 2026-07-29. Prints the E24 preferred-value table under the heading "According to IEC 60063"; the twenty-four mantissas used by this calculator's round-up were transcribed from it.
- [5]Vishay BCcomponents, "MRS16, MRS25 Professional Thin Film Leaded Resistors", document 28724, revision 07-Mar-16. Read directly from the PDF on 2026-07-29. Source of the caveat attached to the power-rating recommendation: rated dissipation is quoted as P70 — 0.4 W and 0.6 W at 70 °C ambient — with a peak permissible film temperature of 155 °C, and "the rated dissipation applies only if the permitted film temperature is not exceeded".
- [6]Vishay, "D/CRCW e3 Standard Thick Film Chip Resistors", document 20035, revision 14-Apr-2026. Read directly from the PDF on 2026-07-29. Confirms the same P70 rating convention and 155 °C film limit on surface-mount parts, and notes that the temperature rise depends on "the thermal resistance of the assembled resistor together with the printed circuit board" — which is why the rating on this page is qualified as a room-temperature figure.
How this page was produced
- Published by
- Quanta Calculator
- Overseen by
- Daniel, Quanta Calculator Researcher
- Primary sources
- 6 cited below
- Method
- series: R = (V_s − n·V_f)/I_f parallel: R = (V_s − V_f)/I_f, one per LED
- Published
- Last verified
Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 1560 calculators remain free
- No billing is enabled