LED Resistor Calculator
Find the right resistor value and wattage for any LED circuit.
What is an LED resistor calculator?
Every LED needs a current-limiting resistor to prevent it from drawing too much current and burning out. This calculator determines the correct resistor value based on your supply voltage, LED forward voltage, and desired LED current. Without the resistor, the LED would try to draw unlimited current and destroy itself almost instantly.
The formula is simple: R = (Vsupply - Vforward) / Iled. For a typical red LED (2.0V forward voltage) on a 5V supply at 20mA: R = (5 - 2) / 0.020 = 150 ohms. The calculator also shows the power dissipated in the resistor so you can choose the correct wattage rating.
LED forward voltages by color
- Red: 1.8โ2.2V typical. The lowest forward voltage of common LEDs.
- Yellow/Orange: 2.0โ2.2V. Similar to red LEDs.
- Green: 2.0โ3.5V. Varies widely depending on the specific LED chemistry.
- Blue: 3.0โ3.5V. Higher voltage due to the wider bandgap semiconductor.
- White: 3.0โ3.5V. White LEDs are actually blue LEDs with a phosphor coating.
How to use this tool
Enter your supply voltage, the LED forward voltage (check the datasheet or use the typical values above), and the desired LED current (typically 10โ20mA for standard LEDs). The calculator shows the required resistance and the nearest standard resistor values. It also displays power dissipation for both the resistor and the LED.
Multiple LEDs in series
You can drive multiple LEDs with one resistor by connecting them in series. Add the forward voltages together: three red LEDs at 2.0V each need (5V - 6.0V) / 0.020 = negative, which means 5V is not enough for three red LEDs in series. You need a supply voltage higher than the sum of all LED forward voltages.
Frequently asked questions
What happens if I use a resistor that is too large?
The LED will be dimmer than intended because less current flows through it. A slightly larger resistor is always safer than a smaller one โ a dim LED is better than a dead LED. Many circuits deliberately use a larger resistor to extend LED life or reduce power consumption.
Can I use an LED without a resistor on a 3V coin cell battery?
In practice, many hobbyists do this because coin cell batteries have high internal resistance that limits current naturally. However, this is not recommended for a reliable design โ the LED may be over-driven initially and the brightness will drop rapidly as the battery discharges. A small resistor (47โ100 ohms) is always a better practice.