LED Resistor Calculator

Calculate the exact resistor value needed to safely power your LED

Enter Your LED Specifications

Required Resistor —
Nearest Standard Value (E24) —
Power Dissipated —
Recommended Resistor Rating —

How It Works

An LED requires a current-limiting resistor to prevent excessive current from destroying it. The resistor value is calculated using Ohm's Law: R = (Vs − n×Vf) / If, where Vs is the supply voltage, n is the number of LEDs in series, Vf is the forward voltage of each LED, and If is the desired forward current. The calculator also determines the power dissipated by the resistor using P = V² / R and recommends an appropriate wattage rating to ensure reliable operation without overheating.

Frequently Asked Questions

What resistor do I need for an LED?
To calculate the resistor needed for an LED, use the formula R = (Vs - Vf) / If, where Vs is your supply voltage, Vf is the LED forward voltage, and If is the LED forward current. For example, with a 9V battery powering a red LED (2V forward voltage, 20mA current), you would need a 350Ω resistor. Always choose the next higher standard resistor value for safety.
Can I connect an LED directly to a battery without a resistor?
No, you should never connect an LED directly to a voltage source without a current-limiting resistor. LEDs have very low internal resistance and will draw excessive current, causing them to overheat and burn out almost instantly. A resistor is essential to limit the current to the LED's rated forward current and ensure safe, long-lasting operation.
How do I know the forward voltage of my LED?
The forward voltage of an LED depends on its color and type. Typical values are: Red (1.8-2.2V), Yellow (2.0-2.2V), Green (2.0-3.5V), Blue (3.0-3.5V), White (3.0-3.5V), and Infrared (1.2-1.5V). You can also find the forward voltage in the LED's datasheet. If unavailable, you can measure it using a multimeter in diode test mode.
Free tools by TUNA — energy supply from vetted manufacturers