LED Circuit Calculator
Resistor value from LED specs and supply voltage.
About this calculator
This calculator solves the single most common beginner electronics problem: sizing the current-limiting resistor an LED needs so it doesn't burn out. LEDs have a roughly fixed forward voltage drop (2V is typical for red, ~3.2V for blue or white) and need a specific forward current to shine at their rated brightness without overheating — since an LED's resistance drops sharply as it heats up, connecting one directly to a voltage source with no resistor in line lets current run away uncontrolled. The calculator applies Ohm's law in the form R = (Vs − Vf) / If, first totaling the forward voltage drop across however many LEDs are wired in series, subtracting that from the supply voltage to get the voltage the resistor must absorb, then dividing by the desired forward current (converted from mA to amps) to get the ideal resistance.
Since resistors only come in standard values, it then rounds up to the nearest E24-series value (the industry-standard set of preferred resistor values) — rounding up rather than down is deliberate, since a slightly larger resistor slightly under-drives the LED (dimmer, safer) while a smaller one risks overdriving it. From the actual standard resistor chosen, it recalculates the real resulting current, the power the resistor will dissipate (P = I²R), and a recommended minimum wattage rating with headroom built in, plus total circuit and LED power draw. This covers single-color LEDs in series on a DC supply; it does not account for LED tolerance variation, temperature-dependent forward voltage drift, or parallel LED strings, which need a resistor per branch rather than one shared value.
Inputs
Results
Exact Resistor (Ω)
150
Nearest E24 Resistor (Ω)
150
How to Use This Calculator
- Enter your supply voltage (V) and the LED forward voltage (V) from the datasheet.
- Set the desired LED forward current (mA) and the number of LEDs wired in series.
- Review the calculated resistor value (Ω), nearest E24 standard resistor, and actual resulting current.
- Check resistor power dissipation (mW) and minimum wattage rating to ensure safe operation.
How the result changes with Supply Voltage (V)
| Supply Voltage (V) | Exact Resistor (Ω) | Nearest E24 Resistor (Ω) |
|---|---|---|
| 2.5 | 25 | 27 |
| 3.75 | 87.5 | 91 |
| 7.5 | 275 | 300 |
| 13 | 550 | 560 |
What each input means
- Supply Voltage (V)
- DC supply voltage powering the circuit.
- LED Forward Voltage (V)
- Forward voltage drop across the LED (check datasheet; typical red ~2V, blue/white ~3.2V).
- LED Forward Current (mA)
- Desired operating current through the LED in milliamps (typical 5mm LED: 20mA).
- LEDs in Series
- Number of LEDs connected in series.
What each result means
- Exact Resistor (Ω)
- Calculated resistor value using R = (Vs - Vf) / If.
- Nearest E24 Resistor (Ω)
- Nearest standard E24 series resistor value (rounded up to protect LED).
- Actual Current (mA)
- Actual current with the nearest standard resistor.
- Resistor Power (mW)
- Power dissipated in the resistor.
- Min Resistor Rating (W)
- Minimum wattage rating for the resistor (use at least 2x for safety margin).
- LED Power (mW)
- Power consumed by the LED(s).
- Total Circuit Power (mW)
- Total power drawn from the supply.
- Resistor Voltage Drop (V)
- Voltage dropped across the current-limiting resistor.
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersSupply Voltage (V) = 5, LED Forward Voltage (V) = 2, LED Forward Current (mA) = 20, LEDs in Series = 1 = 4 input(s) provided
- Calculate Exact Resistor150 = 150
- Calculate Nearest E24 ResistorNearest E24 Resistor150 = 150
- Calculate Actual CurrentActual Current = nearestResistor > 020 = 20
- Calculate Resistor PowerResistor Power = resistorOhms > 060 = 60
Engine last updated . Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
Why is Actual Current different from the LED Forward Current I entered?
LED Forward Current is your target — the current you want the LED to run at — but resistors only exist in standard E24 values, so the calculator rounds the ideal resistance up to the nearest available value and then recalculates what the current will actually be with that real resistor in place. Because it rounds up (not to the nearest value in either direction), Actual Current will typically be slightly lower than your entered Forward Current, which is deliberate since a slightly dimmer LED is safer than an overdriven one.
What happens if I add more LEDs in series until Resistor Voltage Drop goes negative?
Each additional series LED adds its forward voltage to the total, so if enough LEDs are chained that their combined forward voltage exceeds your supply voltage, there's no voltage left for the resistor to drop and the circuit can't work — the calculator returns a resistor value of 0 in that case rather than a negative resistance, since a negative resistor isn't physically meaningful. You'd need either a higher supply voltage or fewer LEDs in the series string.
Why does the recommended resistor wattage matter if the resistor value itself is already correct?
The Ω value only sets how much current flows — it says nothing about how much heat the resistor itself must survive. Min Resistor Rating is calculated from P = I²R using the actual current through the chosen standard resistor, then mapped up to the next common wattage rating (1/8W, 1/4W, 1/2W, 1W, or 2W); using an underrated resistor can cause it to overheat, discolor, or fail open even though its resistance value is exactly right for the LED.
Can I use this calculator for LEDs wired in parallel instead of series?
Not directly — this calculator's series-string model assumes one shared resistor drops the leftover voltage across a single current path, but parallel LED branches each need their own individual resistor sized to that branch's own current, since even LEDs of the same type can have slightly different forward voltages and would otherwise hog an uneven share of current. Run the calculator once per parallel branch with ledCount set to however many LEDs are in series within that specific branch.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Ohm's Law Calculator
Calculate voltage, current, resistance, or power using Ohm's Law (V = I × R). Enter any two values to find the others.
Hobby ElectronicsWire Gauge Calculator
Wire AWG from current capacity and voltage drop.
Hobby ElectronicsBattery Life Calculator
Runtime from battery capacity and circuit current draw.
Hobby ElectronicsRaspberry Pi Power Calculator
Power supply sizing from Pi model and peripherals.
Grain MarketingForward Contract Calculator
Forward pricing from futures, basis, and delivery period.
More in Technology & Computing.