ToolSlash LogoToolSlash
Tools →

LED Resistor Calculator

Guide

Calculate the Correct Current-Limiting Resistor for Any LED Circuit

Light Emitting Diodes (LEDs) are current-driven semiconductor devices with very low internal dynamic resistance. Connecting an LED directly across a constant voltage power supply without a current-limiting resistor causes thermal runaway and destroys the diode within milliseconds.

Ohm's Law LED Formula

To safely limit the current through an LED or series string of LEDs, use the fundamental Ohm's Law equation:

R = (Vs - (Vf × N)) / If
  • Vs: Supply Voltage provided by your battery or power supply.
  • Vf: Forward Voltage drop across a single LED (dependent on semiconductor dye chemistry).
  • N: Number of LEDs connected in series.
  • If: Desired forward current in amperes (e.g., 20mA = 0.02A).

Resistor Power Rating & Thermal Safety

In addition to resistance value, resistors dissipate excess voltage as heat according to Joule's law: P = V_resistor × If. Always select a resistor with a power rating at least double the calculated dissipation to prevent overheating (e.g., use a standard 1/4W [0.25W] or 1/2W [0.5W] carbon film or metal film resistor).