Use this LED resistor calculator to find the correct series resistor for one or more LEDs. Enter your supply voltage, LED forward voltage, desired LED current and how many LEDs are in series. The calculator will output the resistor value and minimum power rating.
LEDs need a series resistor to limit current and prevent damage. This calculator uses the classic formula:
R = (Vsupply − N × Vf) / I
The power dissipated in the resistor is calculated as P = VR × I, where VR is the voltage drop across the resistor. In practice, you should choose a resistor with a power rating at least 2× the calculated value for safety.
Typical example: 12 V supply, one red LED (2.0 V), 20 mA. R ≈ (12 − 2) / 0.02 = 500 Ω, so you would choose the nearest standard value (e.g. 470 Ω or 510 Ω) and an appropriate power rating.
More electronics tools available at Calculators.social.