Calculate the correct current-limiting resistor value for LEDs. Determine resistor requirements, power dissipation, and select standard component values.
Last updated: April 2026 | Electronics & LED Design Tool
Voltage from power supply (5V, 12V, etc.)
Red: 2.0V, Green: 3.0V, Blue: 3.5V, White: 3.5V
Standard: 10-20 mA (check datasheet)
LEDs are current-driven devices, not voltage-driven. Each LED requires a specific forward current (typically 10–20 mA) to operate safely and produce light efficiently. Without current limiting, an LED will draw excessive current and burn out almost instantly when connected to a voltage source. A series resistor limits current flow to safe levels by dropping the excess voltage across itself.
Ohm's Law Application: The resistor value is calculated using Ohm's Law: R = (Vsupply − Vf) / Iforward. The voltage drop across the resistor equals the supply voltage minus the LED's forward voltage drop. This difference is divided by the desired current to find the required resistance. For example, with a 12V supply, 2V LED forward voltage, and 20 mA desired current: R = (12−2) / 0.02 = 500 Ω.
Power Dissipation: The resistor also dissipates power as heat: P = I² × R or P = V × I. Always select a resistor with a power rating at least 2× the calculated dissipation to ensure reliability and longevity. Using standard resistor values (E12 or E24 series) from the nearest value above calculated ensures safe current limiting.
Look up your LED's forward voltage (Vf) and maximum forward current (If) from the datasheet. Typical red LEDs: 2.0V @ 20mA. Green/Yellow: 2.1V @ 20mA. Blue/White: 3.3-3.5V @ 20mA.
Know your power source voltage: battery (1.5V to 24V), logic circuit (3.3V or 5V), or external supply (12V, 24V). Verify the supply can safely handle the current drawn by the LED(s).
Use this calculator or the formula R = (Vsupply − Vf) / ILED. The result is the minimum resistance needed. Always round UP to the next standard resistor value to ensure current doesn't exceed the LED's rating.
Calculate power dissipation: P = (Vsupply − Vf) × ILED. Choose a resistor rated for at least 2× the calculated power dissipation (typical: 1/2 W or higher for standard LEDs). This 2× safety margin ensures thermal reliability and component longevity.
Connect the resistor in series with the LED before the positive supply. Verify the LED illuminates at expected brightness. If too dim, the resistor value might be too high. If very bright (unsafe), value is too low—replace with a higher value.
Connect a red LED (2.0V @ 20mA) to a 12V power supply:
The LED will draw excessive current limited only by its internal resistance and the supply source resistance. Most LEDs will burn out almost instantly—the semiconductor junction overheats and fails permanently. Always use a current-limiting resistor.
While smaller resistors allow more current and slightly brighter light initially, they also shorten the LED's lifespan dramatically. Most LEDs are rated for 10–20 mA optimal brightness. Exceeding 30 mA typically damages the LED within hours or minutes.
Use the next higher standard E12 or E24 value. For example, if calculated is 500 Ω, use 560 Ω or 680 Ω (both safe). Never use a lower value. The E12 series (10, 12, 15, 18, 22, 27, 33, 39, 47, 56, 68, 82) covers most common applications.
Series: one resistor for all LEDs. Parallel: one resistor per LED branch (critical to prevent one bright LED stealing current from others). Series-parallel: multiple strings in parallel, each with its own resistor. Calculate based on total voltage drop and desired current.
Power dissipation creates heat. A 1/4W resistor rated for typical LED circuits (0.05–0.3W) should stay cool. If hot, the resistor value is too low or the supply voltage too high. Replace with a higher resistance value or a resistor with higher power rating (1/2W).
1/4W resistors handle up to 0.25W continuously; 1/2W handle 0.5W. For safety, always choose a resistor with power rating 2× your calculated dissipation. Use 1/2W for high-power LEDs or when operating near rated limits.
Yes! A potentiometer (variable resistor) allows adjustment of current and brightness. Connect it in series like a fixed resistor. However, setting it too low will burn out the LED, so understand the safe current range before adjusting.
Exact values often don't exist as standard components. Standard resistor series (E12, E24, E96) provide practical values. Rounding up to the next standard value adds safety margin and ensures the LED operates within safe limits with slight brightness reduction.
Related Tools
Decode resistor bands.
Calculate series resistance.
Calculate power dissipation.
Calculate thermal noise.
Calculate capacitor values.
Calculate capacitance.