Led Resistor Calculator
Choose LED color, count, and connection type, then calculate the series resistor from supply voltage and target current. Great for LED projects.
Led Resistor Calculator
Result will appear here...
What the LED resistor calculator does
An LED needs a resistor in series to limit its current, and choosing the right one keeps it bright without burning it out. This calculator finds that resistor from the supply voltage, the LED's forward voltage drop, and the target current, for LEDs wired in series or in parallel, and reports the power each part dissipates.
Below is what a current-limiting resistor is, the equation behind it, why an LED needs one, and a worked example.
How to use it
- Choose the connection type and enter the number of LEDs.
- Enter the supply voltage, the target current, and the LED's forward voltage drop for its colour.
- Press Calculate for the resistor value and the power dissipated, or Reset to clear them.
What a current-limiting resistor is
An LED, or light-emitting diode, is a component that produces light when current flows through it, but unlike a simple bulb it cannot safely control its own current. Connected straight to a supply, an LED would draw a runaway current and destroy itself almost instantly. The solution is a current-limiting resistor placed in series with the LED, a plain resistor whose job is to soak up the extra voltage and hold the current to a safe level. It is the single most important part of almost every LED circuit.
The resistor works by dropping the difference between the supply voltage and the LED's own voltage. An LED maintains a roughly fixed voltage across itself when lit, called its forward voltage, and whatever the supply provides above that has to be absorbed by the resistor. By choosing a resistor of the right value, you set how much current flows, which controls the brightness and, crucially, keeps the LED within its safe limit. This calculator works out that resistor value from the supply voltage, the LED's forward voltage, and the current you want.
The equation it uses
For a single LED, the resistor value comes from Ohm's law applied to the voltage the resistor must drop:
R = (Vsupply − VLED) ÷ I
Here Vsupply is the supply voltage, VLED is the LED's forward voltage drop, and I is the target current. The numerator is the voltage left over for the resistor once the LED has taken its share, and dividing by the desired current gives the resistance that produces exactly that current. For LEDs wired in series, the forward voltages add up and all subtract from the supply; for LEDs in parallel, the resistor must carry the combined current of all of them. The calculator applies the right form for the connection you choose.
Why an LED needs a resistor
The reason an LED cannot run without a resistor lies in how diodes behave. Once the voltage across an LED reaches its forward voltage, the current it passes rises extremely steeply with any further increase in voltage. A tiny bit too much voltage causes a huge surge in current, far more than the LED can handle, and it overheats and fails in a flash. The LED has no built-in way to hold itself back, so left to its own devices it destroys itself.
The resistor tames this by introducing a controlled, predictable relationship between voltage and current that the LED lacks. As the current tries to rise, the voltage dropped across the resistor rises with it, leaving less for the LED and naturally pulling the current back to the intended level. This gentle, self-correcting behaviour is exactly what the LED is missing. Sizing the resistor correctly is therefore not optional but essential, and getting it wrong means either a dim LED, if the resistor is too large, or a dead one, if it is too small. The calculator removes the guesswork.
Forward voltage by colour
The forward voltage of an LED, the voltage it holds across itself when lit, depends mainly on its colour, because colour is tied to the energy of the light and so to the voltage needed to produce it. This is why the calculator asks for the forward voltage: it differs from one LED to another, and using the right value is what makes the resistor calculation accurate. Lower-energy colours need less voltage, and higher-energy colours need more.
As a rough guide, red and infrared LEDs have the lowest forward voltages, often around 1.8 to 2.2 volts, with infrared lower still. Yellow and amber sit a little higher, while green varies more widely. Blue and white LEDs have the highest forward voltages, typically around 3.0 to 3.4 volts, because they produce higher-energy light. These are only typical ranges, and the exact figure for a given LED comes from its datasheet, so for precise work you should enter the manufacturer's value. The calculator uses whatever forward voltage you provide, letting you match it to the specific LED in your circuit.
Wiring LEDs in series or parallel
When you have more than one LED, there are two basic ways to wire them, and they call for different resistor calculations. In a series connection, the LEDs are strung one after another so the same current flows through all of them, and their forward voltages add together. This means the supply must be high enough to exceed the combined forward voltage of the whole chain, and the resistor drops whatever is left. Series wiring is efficient because a single resistor and a single current serve every LED.
In a parallel connection, the LEDs sit side by side across the same voltage, each drawing its own current, so the resistor feeding them must carry the total of all those currents. Here the supply only needs to exceed one LED's forward voltage, but the resistor handles the combined current and dissipates correspondingly more power. The calculator reports the power dissipated in each LED, in all of them, and in the resistor, which matters for choosing a resistor with an adequate power rating. Selecting series or parallel changes both the resistor value and the power figures, and the calculator handles each case.
Units and precision
The calculator takes the supply voltage and the LED forward voltage in volts or millivolts, the target current in milliamperes or amperes, and the number of LEDs, for a series or parallel connection. It returns the required resistor value in ohms along with the power dissipated in a single LED, in all the LEDs, and in the resistor. It applies Ohm's law exactly and checks that the supply voltage is high enough for the LEDs you have specified. The power figures help you pick a resistor whose rating comfortably exceeds what it must dissipate.
A worked example
Suppose you are driving a single red LED from a 5-volt supply, with a forward voltage of 2 volts and a target current of 20 milliamperes.
The resistor must drop the leftover voltage, 5 − 2 = 3 volts, at 20 milliamperes, so R = (Vsupply − VLED) ÷ I = 3 ÷ 0.02 = 150 ohms. The resistor dissipates about 0.06 watts, well within a standard quarter-watt resistor. If instead you wired three of these LEDs in parallel, the resistor would carry three times the current, and its value would drop to 50 ohms while dissipating more power.
Questions people ask
How do you calculate an LED resistor?
Use R = (Vsupply − VLED) ÷ I. Subtract the LED's forward voltage from the supply and divide by the target current to get the resistance.
Why does an LED need a resistor?
Because an LED cannot limit its own current. Above its forward voltage, current surges steeply and destroys it. A series resistor holds the current to a safe, chosen level.
What is forward voltage?
The voltage an LED holds across itself when lit, set mainly by its colour. Red is around 1.8 to 2.2 volts; blue and white are higher, around 3.0 to 3.4 volts.
How do series and parallel differ for LEDs?
In series, the same current flows through all and their forward voltages add. In parallel, each draws its own current, so the resistor carries their combined current.
References
A quick note on where this comes from. The current-limiting resistor and LED forward voltage rest on Ohm's law and diode behaviour, standard in OpenStax's University Physics and in Georgia State University's HyperPhysics. The exact forward voltage for any LED comes from its manufacturer datasheet. The HyperPhysics link is worth a quick click to confirm it lands where you expect.
- OpenStax, University Physics Volume 2, Section 9.4, Ohm's Law. https://openstax.org/books/university-physics-volume-2/pages/9-4-ohms-law
- HyperPhysics, Light Emitting Diodes and the Diode Equation. http://hyperphysics.phy-astr.gsu.edu/hbase/Electronic/led.html
- National Institute of Standards and Technology (NIST), SP 811, Guide for the Use of the International System of Units. https://www.nist.gov/pml/special-publication-811
Bibek Lal Karna is a PhD student and graduate teaching assistant at the University of Mississippi, with deep interests in theoretical and gravitational physics. He is also the founder of NRCC and is strongly engaged in scientific teaching and communication. At Eon Tools, he reviews physics tools.
Other Tools
- 555 Timer Calculator
- Breaker Size Calculator
- Capacitance Calculator
- Capacitive Reactance Calculator
- Capacitor Energy Calculator
- Capacitors In Series Calculator
- Coulomb's Law Calculator
- Cutoff Frequency Calculator
- Db Calculator
- Db Gain Calculator
- Delta To Wye Conversion
- Electric Field Calculator
- Electrical Power Calculator
- Free Space Path Loss Calculator
- High Pass Filter Calculator
- Inductive Reactance Calculator
- Kva Calculator
- Low Pass Filter Calculator
- Ohm's Law Calculator
- Parallel Capacitor Calculator
- Parallel Resistor Calculator
- Power Factor Calculator
- Resistor Color Code Calculator
- Resistor Noise Calculator
- Skin Depth Calculator
- Watt Calculator
- Watt Hour Calculator
- Watts To Amps Calculator