By Andrew Hazleton – Updated March 24, 2022
Hemera Technologies/Photos.com/Getty Images
Light‑Emitting Diodes (LEDs) are the compact, energy‑efficient lighting components that power everything from displays to indicator lights. Each LED emits light at a single wavelength, and its brightness scales with the current flowing through it. Because the forward voltage drop (Vf) and maximum forward current (If) vary between colors and packages, a proper series resistor is essential to keep the LED within safe operating limits.
Before wiring, locate the LED’s datasheet. Note the typical forward voltage (Vf) and the maximum forward current (If). These values form the foundation of your resistor calculation.
Subtract the LED’s forward voltage from your supply voltage:
VR = 12 V – Vf
If you’re wiring multiple LEDs in series, sum all Vf values and subtract the total from 12 V.
For reliable performance and longevity, set the circuit current to roughly 60 % of the LED’s If rating. This margin protects against voltage spikes and tolerates variations in LED characteristics.
Use Ohm’s Law to find the series resistor:
Rseries = VR / (0.60 × If)
Example – A red LED with If = 20 mA and Vf = 2 V:
VR = 12 V – 2 V = 10 V Rseries = 10 V / (0.60 × 20 mA) ≈ 833 Ω
Resistors are sold in standard series (E24). Choose the next higher standard value to stay safely below the calculated resistance. For the example above, the next value is 910 Ω.
1. Connect the positive terminal of the 12 V DC supply to one side of the resistor.
2. Attach the other side of the resistor to the LED’s anode (the longer lead or the lead opposite the flat side).
3. Connect the LED’s cathode (shorter lead) to the negative terminal of the supply.
LED forward voltage and current limits vary widely by color, size, and package. Always consult the specific datasheet before wiring.