Calculate the correct resistor value for LEDs based on supply voltage and LED specifications. Supports single LEDs, series, and parallel configurations. Essential for Arduino, Raspberry Pi, ESP32, and electronics projects. Includes power dissipation warnings and standard E24 resistor suggestions.
Common: 3.3V (ESP32), 5V (Arduino/USB), 9V (battery), 12V (automotive)
Series: LEDs share current, voltages add up. One resistor needed.
💡 Using a slightly higher resistance is safer for LED longevity
R = R = Resistor value in Ohms (Ω)
Vs = Vs = Supply voltage
Vf = Vf = LED forward voltage (sum for series LEDs)
If = If = Desired LED forward current in Amps
| LED Type | Forward Voltage | Typical Current | Wavelength |
|---|---|---|---|
Red | 1.8 - 2.2V | 20mA | 620-645nm |
Orange | 2.0 - 2.2V | 20mA | 590-610nm |
Yellow | 2.0 - 2.2V | 20mA | 570-590nm |
Green | 2.0 - 3.2V | 20mA | 520-550nm |
Blue | 3.0 - 3.5V | 20mA | 460-490nm |
White | 3.0 - 3.5V | 20mA | ledCalculator.broadSpectrum |
UV (395nm) | 3.2 - 4.0V | 20mA | 380-410nm |
Infrared | 1.2 - 1.6V | 20mA | 850-950nm |
LEDs (Light Emitting Diodes) have a very low internal resistance once they start conducting. Without a current-limiting resistor, the LED would draw excessive current from the power supply, leading to overheating and immediate failure.
The resistor acts as a current regulator, dropping the excess voltage and limiting the current to a safe level for the LED. The LED's brightness is directly proportional to the current flowing through it—more current means brighter light, but also more heat and shorter lifespan.
Pro tip: When in doubt, choose a slightly higher resistance value. Your LED will be slightly dimmer but will last much longer. The difference in brightness between 15mA and 20mA is often imperceptible to the human eye.
Supply: 5V, LED: Red (2.0V, 20mA). Result: ~150Ω resistor. Use 150Ω or 180Ω standard value.
Supply: 12V, 3x Red LEDs (2.0V each = 6V total, 20mA). Result: ~300Ω resistor. Perfect for automotive lighting projects.
Supply: 3.3V, LED: Blue (3.3V, 20mA). Result: Very small resistor needed (~0Ω). Consider using a current-limiting circuit or lower current.
Without a resistor, the LED will draw excessive current and burn out immediately. The resistor limits current to a safe level.
Yes! Using a slightly higher resistor is safer and will make the LED last longer. The brightness difference is usually imperceptible.
For series: Connect LEDs end-to-end with one resistor. For parallel: Each LED branch needs its own resistor for proper current limiting.
Series: LEDs share current, voltages add up. Parallel: Each LED gets full voltage, but each branch needs its own resistor.
If the resistor power dissipation exceeds typical 1/4W rating, it may overheat. Consider using a 1/2W or 1W resistor.