LED Resistor Calculator
Calculate the series resistor for one LED or a string of LEDs: exact value, next standard resistor, actual current and the power rating to use.
Use Resistor (standard)
150 Ω, 1/8 W
Exact Resistance
150 Ω
Actual LED Current
20 mA
Power in Resistor
60 mW
Total LED Voltage
2 V
LED Resistor Calculation
An LED must have its current limited, usually by a resistor in series. The resistor drops the voltage the LEDs do not use and sets the current. The calculator gives the exact value, the next standard (E24) resistor above it, the resulting current and the resistor wattage.
Formula
- R = (Vsupply − n × Vf) ÷ I
- Actual current = (Vsupply − n × Vf) ÷ Rstandard
- Power = I² × R; choose a rating of at least twice this
Typical forward voltages
| LED colour | Forward voltage | Typical current |
|---|---|---|
| Red | 1.8 to 2.2 V | 20 mA |
| Yellow / orange | 2.0 to 2.2 V | 20 mA |
| Green (old type) | 2.0 to 2.4 V | 20 mA |
| Blue, white, true green | 2.8 to 3.4 V | 20 mA |
| Infrared | 1.2 to 1.5 V | 20 to 50 mA |
Worked examples
1. Red LED on 5 V (the defaults). (5 − 2) ÷ 0.02 = 150 Ω, 60 mW: a ⅛ W resistor.
2. Three white LEDs in series on 12 V. (12 − 9.6) ÷ 0.02 = 120 Ω, 48 mW.
3. Red LED on a 9 V battery at 10 mA. 700 Ω exactly; next standard value 750 Ω gives 9.3 mA, 65 mW: use ¼ W.
4. 1 W white LED at 300 mA on 12 V. 29.3 Ω → 30 Ω dissipates about 2.6 W. A resistor wastes most of the power here: use a constant-current driver instead.
If the supply is only slightly above the forward voltage (for example 3.3 V for a 3 V LED), small supply changes cause large current changes; allow more headroom.
Related tools
- Identify resistor colours: Resistor Colour Code Calculator.
- General circuit maths: Ohm's Law Calculator. Battery-powered LEDs: Battery Life Calculator.
Frequently Asked Questions
How do I calculate the resistor for an LED?
R = (supply voltage − LED forward voltage) ÷ LED current. For a red LED (2 V, 20 mA) on 5 V: (5 − 2) ÷ 0.020 = 150 Ω.
What resistor do I need for an LED on 12 V?
For one white LED (3.2 V, 20 mA): (12 − 3.2) ÷ 0.02 = 440 Ω, so use 470 Ω. For three white LEDs in series: (12 − 9.6) ÷ 0.02 = 120 Ω.
What is the forward voltage of an LED?
It depends on colour: about 1.8 to 2.2 V for red and yellow, 2.0 to 2.4 V for green (older types), and 2.8 to 3.4 V for blue, white and true green. Check the datasheet.
Should I round the resistor up or down?
Up to the next standard value, so the current stays at or below the target. Rounding down raises the current and shortens LED life.
What wattage resistor do I need?
P = I² × R. Choose a resistor rated at least twice that. A 150 Ω resistor at 20 mA dissipates 60 mW, so a ⅛ W or ¼ W resistor is fine.
Can I connect LEDs in parallel with one resistor?
Not recommended: small differences in forward voltage make one LED take most of the current. Give each LED (or each series string) its own resistor.
How many LEDs can I put in series?
As many as the supply allows with some headroom: the total forward voltage must be below the supply, with at least 1 to 2 V left for the resistor to regulate current.
What current should I use?
About 20 mA for standard 5 mm LEDs (many are bright at 5 to 10 mA). High-power LEDs (350 mA and above) should use a constant-current driver, not a resistor.
Why does my LED flicker or burn out?
Too much current (resistor too small or missing), reverse voltage, or overheating. Never connect an LED directly to a supply without current limiting.
Can I use the LED on AC mains?
Not with a simple resistor. Mains LED lamps use dedicated driver circuits with isolation for safety.
Related Calculators
Resistor Color Code Calculator
Decode 4-band resistor color codes to find resistance value, tolerance, and min/max range.
Ohm's Law Calculator
Calculate voltage, current, resistance, and power using Ohm's Law (V = IR). Enter any two values to find the remaining quantities.
Voltage Divider Calculator
Calculate output voltage of a resistive voltage divider circuit. Enter input voltage and resistor values to find output voltage, current, and power dissipation.
Battery Life Calculator
Calculate how long a battery will last based on capacity, load current, and efficiency factor.
Power Consumption Calculator
Calculate power consumption in watts and kW, and energy usage in kWh per day, month, and year.
Capacitor Calculator
Calculate charge, stored energy, capacitive reactance, and AC current for a capacitor given capacitance, voltage, and frequency.
More in Electrical · Engineering calculators · All calculators A–Z