LED Resistor Calculator
Type the supply voltage, the forward voltage of the LED and the current you want, in milliamps. The calculator gives the exact resistor, the next standard value up from the E24, E12 or E6 series, the real current with that value, the heat in the resistor and the power from the supply. Put in the number of LEDs if they are wired in series. Buttons give example forward voltages for red, yellow, blue and white. Everything runs in your browser.
The series resistor drops the part of the supply voltage that the LEDs do not use, at the current you want: R = (supply - number of LEDs x forward voltage) / current. Take the forward voltage and the safe current from the datasheet of your LED. The color buttons give example values inside the ranges that Wikipedia lists, such as 1.63 to 2.03 V for red and 2.7 to 3.5 V for white, and the real voltage varies between parts. The tool picks the next standard value up from the E24, E12 or E6 series, so the current is never above the one you chose, and it shows the heat in the resistor so you can pick a rating with room to spare. For LEDs in series, the supply must be higher than their forward voltages added together. Several LEDs in parallel need a resistor each. Everything runs in your browser.
Related Tools
[5 suggestions]Voltage Divider Calculator: Output Voltage and Resistor Values
Find the output of a resistor voltage divider, with the effect of a load, or find the second resistor for the output you want, with the closest standard value.
Student ToolsOhm's Law Calculator: Voltage, Current, Resistance and Power
Enter any two of voltage, current, resistance and power to get the other two with Ohm's law, and add resistors in series or in parallel.
Student ToolsResistor Color Code Calculator: 4, 5 and 6 Band Resistors
Read the value, tolerance and range of a 4, 5 or 6 band resistor from its colors, or type a resistance and see the color bands to look for.
Student ToolsElectricity Cost Calculator: What an Appliance Costs to Run
Calculate the kWh and the cost of running any appliance per hour, day, week, month and year from its watts, the hours of use and the price of a kWh.
Math & MoneyUnit Converter
Convert length, weight, volume, area, speed, data size and time between metric, US and UK units, with exact results and a table of every unit.
Format ConversionAbout the LED Resistor Calculator
An LED cannot be connected straight to a supply, because its current rises steeply with voltage. A resistor in series limits it. The resistor must drop the part of the supply that the LED does not use, at the current you want, so R equals the supply minus the forward voltage of the LED, divided by the current. For a 5 V supply, a red LED with a forward voltage of 2.0 V and a current of 20 mA, R is 3 V divided by 0.02 A, which is exactly 150 ohms, a value in the E24 series. The resistor then gets 0.02 times 0.02 times 150, which is 60 mW. On 9 V, a 2.1 V LED at 15 mA needs 460 ohms, which is not a standard value, so the next one up is 470 ohms and the real current is 14.68 mA. Rounding up keeps the current at or below the one you chose. On 3.3 V, a 2.0 V LED at 10 mA needs 130 ohms, which is in E24, while E12 and E6 round up to 150. With LEDs in series, add their forward voltages: three white LEDs of 3.2 V on 12 V leave 2.4 V, so at 20 mA the resistor is 120 ohms. The supply must be higher than the forward voltages added together. Wikipedia lists forward voltage ranges of 1.63 to 2.03 V for red and 2.7 to 3.5 V for white, and says indicator LEDs typically run from about 1 mA to above 20 mA, so take the real figures from the datasheet.
How do you calculate the resistor for an LED?▾
Subtract the LED forward voltage from the supply voltage and divide by the current in amps. For a 5 V supply, a 2.0 V LED and 20 mA, that is 3 divided by 0.02, which is 150 ohms.
What if the exact value is not a standard resistor?▾
Use the next standard value up. A calculated 460 ohms becomes 470 ohms, which gives 14.68 mA instead of 15 mA. A higher value lowers the current slightly, while a lower value would raise it above the target.
How do I wire several LEDs in series?▾
Add their forward voltages and subtract the total from the supply. Three 3.2 V LEDs on 12 V leave 2.4 V, so at 20 mA the resistor is 120 ohms. The supply must be higher than the total, or the LEDs will not light.
What forward voltage should I use?▾
Use the figure from the datasheet. As a guide, Wikipedia lists 1.63 to 2.03 V for red LEDs and 2.7 to 3.5 V for white ones. The color buttons give example values inside those ranges, and the real value varies between parts.
Is my data uploaded?▾
No. The calculation runs in your browser and nothing you enter is sent anywhere.