LED Resistor Calculator (Series and Parallel Arrays)
Size the current-limiting resistor for one LED or an array. Returns the E24 part to buy, the real current, the power split and a headroom check.
LED Resistor Calculator
Background.
An LED is not a resistor. Push a little more voltage across it and the current does not rise a little — it rises steeply, because the current through a diode is an exponential function of the voltage across it. That single fact is why an LED needs something to limit its current, and why connecting one directly across a supply destroys it. The cheapest limiter is a resistor in series, and sizing that resistor is what this page does.
The arithmetic is short. The LED drops its forward voltage, whatever is left over appears across the resistor, and the resistor's value is that leftover voltage divided by the current you want. For one 2.1 V LED at 20 mA on a 5 V rail: 5 minus 2.1 is 2.9 V, and 2.9 divided by 0.02 is 145 Ω. What this calculator adds is everything that happens next — which resistor you can actually buy, what current you really get with it, how much power each part has to dissipate, what rating to buy, and whether the design has enough voltage headroom to work reliably rather than just once on your bench.
Start with the forward voltage, because it is where most bad LED calculations begin. It is not a constant, and no honest calculator can supply it for you. It depends on the semiconductor the die is made from, so it varies with colour — a red LED and a blue one made in the same package have different forward voltages at the same current. It rises with current and falls as the die warms up. And it varies from part to part within a single production bin: Kingbright quote a ±0.1 V tolerance on the forward voltages in their datasheets. So this page asks you for it, with a note to read it from the datasheet of the part in your hand, at the current you intend to run. A calculator that assumes 2 V for every red LED is guessing on your behalf and hiding it.
The stock-resistor result is always rounded up, never to the nearest value. A larger resistor passes less current, and that is the safe direction: an LED run a little under its rating lives longer and looks essentially identical, while one run over it degrades. Kingbright put the consequence plainly — excess driving current or operating temperature above the recommended conditions may cause severe light degradation or premature failure. The calculator therefore takes the next IEC 60063 E24 value at or above the exact figure and tells you what current that gives, so you can see the trade rather than discover it.
The headroom check is the part experienced designers care about most. If the resistor drops only a small fraction of the supply, the LED current is being set by the difference between two similar numbers, and a small change in either — a warmer LED, a part from the other end of its Vf tolerance, a battery halfway through its life — moves the current a long way. Six white LEDs at 3.2 V each on a 24 V rail leave 4.8 V across the resistor, a fifth of the supply, which is fine; add a seventh and the string takes 22.4 V, the resistor is left with 1.6 V, and the same circuit will pass wildly different currents from board to board. The calculator sorts your headroom into four bands and says which one you are in.
Finally the wiring. Series puts every LED in one string behind one resistor: they all carry the identical current, so they match in brightness, and the design is efficient because more of the supply goes into light. Parallel gives every LED its own resistor. What this page deliberately will not do is put several LEDs across a single shared resistor, because that circuit does not work: LEDs have a steep, part-to-part-varying V-I curve, so the one with the lowest forward voltage takes most of the current, glows brightest, warms up, drops its forward voltage further and takes more still. The result is uneven brightness at best and one dead LED at worst. It is such a common beginner circuit that leaving it out is the more useful choice.
Two scope limits, stated here rather than lower down. This is a DC model of an indicator LED driven from a fixed supply, and it assumes a stiff source. High-power emitters — anything much above a few hundred milliamps — should be driven from a constant-current driver rather than a resistor, because the wasted power becomes significant and the thermal feedback becomes dangerous. And the resistor rating here assumes a room-temperature ambient; ratings are quoted at a stated temperature and fall away above it, which the resistor wattage page handles properly.
What is led resistor calculator?
A current-limiting resistor is a resistor placed in series with an LED so that the resistor, not the diode, sets the current. It works because their electrical behaviour is completely different. A resistor's current is proportional to the voltage across it. A diode's current is exponential in the voltage across it, so a 60 mV change can multiply the current by ten. Put them in series and the resistor dominates: it converts the loosely-defined voltage headroom into a well-defined current.
The circuit is a series loop, so Kirchhoff's voltage law applies directly — the supply voltage equals the sum of the drops around it. With one LED, Vsupply = Vf + Vresistor, so Vresistor = Vsupply − Vf, and Ohm's law gives R = (Vsupply − Vf) / If. With n LEDs in one string, every one of them carries the same current and every one drops its own forward voltage, so R = (Vsupply − n·Vf) / If.
Forward voltage is the voltage at which a diode begins to conduct appreciably, and for an LED it is set by the band gap of the semiconductor — which is also what sets the colour, because the same energy gap determines the wavelength of the emitted photon. That is why forward voltage tracks colour: longer-wavelength (red) LEDs have a lower forward voltage than shorter-wavelength (blue and white) ones. It is a property of a specific part at a specific current and temperature, not a universal constant, and manufacturers publish it per part number with a tolerance attached.
The resistor's cost is efficiency. Every volt it drops at the operating current is power turned into heat rather than light, so a single 2 V LED on a 12 V rail wastes over 80 % of the input in the resistor. Putting more LEDs in one series string recovers that: the same current now lights several LEDs instead of one, and the fraction of the supply reaching them rises in direct proportion to the number of them.
How to use this calculator.
- Enter the supply voltage the LED circuit will actually see. Use the real figure, not the nominal one — a fresh nine-volt battery is nearer 9.5 V and a flat one is under 7 V, and the LED current follows it.
- Look up the forward voltage on your LED's datasheet, at the current you plan to run, and enter it. Do not use a remembered figure for 'a red LED'; the number varies by colour, by current, by temperature and from part to part.
- Enter the forward current you want. Twenty milliamps is the usual rating point for a 5 mm indicator, but check your part's absolute maximum — running over it degrades the light output permanently rather than just making it brighter.
- Set the LED count and the wiring. Series means one string sharing one resistor; parallel means each LED gets its own. There is no option for several LEDs on one shared resistor, because that circuit shares current unevenly.
- Read the exact resistor value, then the stock value beside it. The stock value is always rounded up, so the current comes out slightly under your target — check the actual current is still where you want it.
- Read the design check. If it says the headroom is tight or very tight, fix that before anything else: too little headroom means the LED current is hostage to forward-voltage tolerance, and the circuit will behave differently from board to board.
- Check the resistor power rating, especially in a parallel array where you need one resistor per LED. If the answer is more than a fraction of a watt, consider a longer series string instead — it moves that power into the LEDs.
- Look at the efficiency figure if the design runs on batteries. On a 12 V rail, one 2 V LED puts 83 % of the energy into the resistor; five of them in series puts 83 % into the LEDs instead.
The formula.
The circuit is a single series loop, so Kirchhoff's voltage law says the supply equals the sum of the drops around it. With n LEDs in one string, the LEDs take n x Vf between them and the resistor takes whatever is left: Vresistor = Vsupply − n x Vf. Ohm's law then converts that into a resistance at the current you want: R = (Vsupply − n x Vf) / If. In the parallel wiring each LED has its own resistor and its own loop, so n drops out of the expression entirely and R = (Vsupply − Vf) / If for every one of them.
The requirement that n x Vf stays strictly below the supply is not a modelling convenience — it is the condition for the string to light at all. As n x Vf approaches the supply the required resistance falls towards zero, and past it the algebra returns a negative resistance, which is why this calculator refuses that case with an explanation rather than printing a number.
The stock resistor is the smallest IEC 60063 E24 value greater than or equal to the exact figure. Rounding up rather than to the nearest is a deliberate asymmetry: with a fixed voltage across it, a larger resistor passes proportionally less current, and under-running an LED costs a barely perceptible amount of brightness while over-running it degrades the die. The real current is then recomputed from the stock value, Iactual = Vresistor / Rstock, so the figure on the page is what the built circuit will do rather than what you asked for.
The power split follows from the same loop. Each resistor dissipates Vresistor x Iactual. The LEDs together dissipate n x Vf x Iactual. The supply delivers Vsupply x Itotal, where the total current is Iactual in series and n x Iactual in parallel. Those three add up exactly, which is worth checking on the page: resistor power plus LED power equals total power, every time.
The efficiency figure simplifies to something memorable. In series it is n x Vf / Vsupply — the current cancels completely, so how much of your energy reaches the LEDs depends only on how much of the supply voltage they occupy. In parallel it is Vf / Vsupply regardless of how many LEDs there are, because each one carries its own resistor's losses with it. This is the whole argument for long series strings on a high rail rather than many parallel LEDs on a low one.
The headroom verdict classifies Vresistor / Vsupply into four bands: under 10 % very tight, 10 to 20 % tight, 20 to 50 % comfortable, and 50 % or more generous but wasteful. The classification is made on the unrounded ratio. The reasoning behind the bands is sensitivity: the LED current is (Vsupply − n x Vf) / R, so the fractional error in the current caused by an error in Vf is amplified by the ratio of n x Vf to the resistor's share of the voltage. When the resistor drops only 5 % of the supply, a 0.1 V forward-voltage tolerance — the figure Kingbright quote — swings the current by tens of percent.
All arithmetic is exact decimal at forty significant digits, rounded once at the return boundary to ten decimal places.
A worked example.
Three red LEDs in one string on a 12 V rail, each specified at 2.1 V forward voltage at 20 mA. The three LEDs take 3 x 2.1 = 6.3 V between them, leaving 12 − 6.3 = 5.7 V for the resistor. At the target 20 mA that needs 5.7 / 0.02 = 285 Ω exactly. Nobody sells a 285 Ω resistor. The next E24 preferred value at or above it is 300 Ω, and with that fitted the real current becomes 5.7 / 300 = 19 mA — 5 % under target, which is invisible to the eye and safely on the right side of the LEDs' rating. Rounding down to 270 Ω instead would have given 21.1 mA, over the 20 mA rating point, and this calculator will not do that. The power divides cleanly. The resistor dissipates 5.7 x 0.019 = 0.1083 W, so with the 2x sizing convention it needs 0.217 W of rating and a quarter-watt part is the smallest that covers it. The three LEDs take 3 x 2.1 x 0.019 = 0.1197 W between them. The supply delivers 12 x 0.019 = 0.228 W, and the two figures add back to exactly that. So 52.5 % of the energy reaches the LEDs, which is simply 6.3 / 12 — in a series string, efficiency is nothing but the fraction of the supply voltage the LEDs occupy. One LED alone on the same rail would put only 17.5 % into the light and burn the rest in the resistor; five in series would reach 87.5 %. The headroom check is comfortable: the resistor drops 5.7 / 12 = 47.5 % of the supply, so the current is set by the resistor rather than by the LEDs' forward-voltage tolerance. A part 0.1 V off nominal — Kingbright's quoted tolerance — moves the string's total drop by 0.3 V at worst, which changes the resistor's share from 5.7 V to 5.4 V and the current from 19 mA to 18 mA. Compare that with a four-LED string on the same rail, where the LEDs take 8.4 V, the resistor gets 3.6 V, and the same 0.4 V of accumulated tolerance moves the current by more than 11 %.
Frequently asked questions.
What resistor do I need for an LED?
Why can't the calculator just assume a forward voltage for my LED colour?
Can I run several LEDs from one resistor?
Is it better to wire LEDs in series or in parallel?
How many LEDs can I put in one string?
Why does the calculator always round the resistor up?
What power rating does the resistor need?
My LED is dimmer than I expected. Did I get the resistor wrong?
Can I use a resistor with a high-power LED?
Does this work for AC or for a PWM-dimmed LED?
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.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 977 calculators remain free
- No billing is enabled