LED Resistor Calculator
Find the correct resistor value and wattage to safely drive an LED from any supply voltage.
LED Resistor Calculator tool
Example
Input: 12 V supply, 1 white LED (3.2 V forward voltage), 20 mA
Result: Exact 440.00 Ω, standard E24 470.00 Ω (actual 18.72 mA), 500 mW (1/2 W) rating recommended
R = (12 - 3.2) / 0.020 = 440 ohms; the next standard value, 470 ohms, gives 8.8 / 470 = 18.72 mA and dissipates 164.77 mW.
LED Resistor Values at 20 mA
| LED color (Vf) | 5 V supply | 9 V supply | 12 V supply |
|---|---|---|---|
| Red (2.0 V) | 150 Ω | 360 Ω | 510 Ω |
| Orange (2.0 V) | 150 Ω | 360 Ω | 510 Ω |
| Yellow (2.1 V) | 150 Ω | 360 Ω | 510 Ω |
| Green (2.2 V) | 150 Ω | 360 Ω | 510 Ω |
| Blue (3.2 V) | 91 Ω | 300 Ω | 470 Ω |
| White (3.2 V) | 91 Ω | 300 Ω | 470 Ω |
| UV (3.3 V) | 91 Ω | 300 Ω | 470 Ω |
Next higher E24 value for one LED, using the calculator presets.
- Select the LED color from the presets (red, green, blue, white, etc.) or enter a custom forward voltage.
- Enter your power supply voltage in the Vsupply field.
- Set the desired LED current (typically 20 mA for standard LEDs).
- Enter the number of LEDs wired in series (leave it at 1 for a single LED).
- View the exact resistor value, the next higher standard E24 resistor, the actual current, and the recommended wattage rating.
- If the tool reports that the supply voltage is too low, reduce the number of series LEDs or use a higher supply voltage.
Choosing a Current-Limiting Resistor for an LED
An LED needs a resistor in series to limit its current. The value is R = (supply voltage - LED forward voltage) / current. For a white LED (3.2 V) on a 12 V supply at 20 mA, that is (12 - 3.2) / 0.020 = 440 ohms. The next standard size up is 470 ohms.
Forward voltage is the voltage an LED drops when it is lit. It depends mostly on color, so the tool has presets: red and orange 2.0 V, yellow 2.1 V, green 2.2 V, blue and white 3.2 V, and UV 3.3 V. For a specific part, choose Custom and type the value from its datasheet. The current starts at 20 mA, a common rating for small 5 mm LEDs. Many modern LEDs are bright at 5 to 10 mA.
The result shows the exact resistance and the next higher value from the E24 series, the standard set of resistor sizes sold in stores. Rounding up keeps the current at or below your target. You also see the real current with that resistor and the power it uses. A suggested wattage rating gives at least twice that power as a safety margin.
For several LEDs in series, up to 20, the tool adds up their forward voltages. It warns you if the supply is too low to light them. For LEDs in parallel, give each branch its own resistor. LEDs sharing one resistor split the current unevenly, and one can burn out. To check the resistor you have on hand, use the Resistor Color Code Calculator.
Formula / How It Works
Frequently Asked Questions
Related Tools
Ohm's Law Calculator
Calculate voltage, current, and resistance using Ohm's law. Enter any two values to find the third instantly.
Electrical and EngineeringResistor Color Code Calculator
Decode 4, 5, and 6-band resistor color codes to find the resistance, tolerance, and min/max value.
Electrical and EngineeringVoltage Divider Calculator
Calculate output voltage, divider current, and resistor power dissipation for a two-resistor voltage divider.
Electrical and EngineeringPower Consumption Calculator
Calculate electricity usage in watts, kilowatt-hours, and estimated cost for any appliance or device.
Electrical and Engineering