Skip to content
Back to Calculators

LED Resistor Calculator

Calculate the current limiting resistor for LED circuits.

V
V
mA

Typical: 10-20mA for standard, 350mA+ for high power

Circuit Diagram
R+VsGND
Recommended Resistor
Actual Current
20.0 mA
Power Dissipation
60 mW
Resistor Rating
0.125W min
Voltage Headroom
3.0V

Formula

R = (Vsupply - VLED) / ILED
For series LEDs: VLED = Vf × number of LEDs

Why LEDs Need Resistors

LEDs are current-driven devices. Without a current limiting resistor, they will draw excessive current and burn out almost instantly. The resistor drops the excess voltage and limits current to a safe level.

Key Parameters

  • Forward Voltage (Vf): Voltage drop across LED when lit
  • Forward Current (If): Operating current (typically 10-20mA)
  • Max Current: Don't exceed or LED will fail
  • Power Rating: Resistor must handle the heat

Series vs Parallel

  • Series: Same current through all LEDs, higher voltage needed
  • Parallel: Lower voltage, but unequal current distribution
  • Best Practice: Series with individual resistors per LED string

Typical LED Forward Voltages

LED ColorForward VoltageTypical CurrentNotes
Infrared1.2-1.6V20-100mANot visible
Red1.8-2.1V10-20mAMost efficient
Orange2.0-2.2V10-20mA-
Yellow2.0-2.2V10-20mA-
Green2.0-3.0V10-20mAWide range
Blue3.0-3.5V10-20mAHigher Vf
White3.0-3.5V10-20mABlue + phosphor
UV3.0-4.0V20mAEye hazard

Formula Source and Checked Examples

The calculator applies Ohm's law to the voltage left over after the LED: R = (Vsupply − VLED) / ILED. For LEDs in series, VLED is the forward voltage multiplied by the number of LEDs. The exact result is then rounded up to the next E24 (5%) standard value, so the real current is at or below the target, never above it. Resistor power is (Vsupply − VLED) × actual current, and the suggested rating is the first of 0.125 W, 0.25 W, 0.5 W or 1 W that is above that figure.

The forward voltage is treated as a fixed number. A real LED's forward voltage changes with current, temperature and production lot, so take Vf from the datasheet at your operating current. When the supply is only slightly above the LED voltage, small changes in either one move the current a lot. The parallel option models several LEDs sharing one resistor and assumes they share current equally, which matched parts rarely do. One resistor per LED is the safer circuit.

The rows below were entered in the live calculator (local production build) and checked by hand calculation. Last run: November 20, 2026.

Inputs (supply, Vf, target current, LEDs)Recommended resistorExact valueActual currentResistor power
5 V, 2.0 V, 20 mA, 1150 Ω150.0 Ω20.0 mA60 mW
12 V, 3.3 V, 20 mA, 2 in series270 Ω270.0 Ω20.0 mA108 mW
5 V, 3.3 V, 15 mA, 1120 Ω113.3 Ω14.2 mA24 mW

Hand check for row 3: R = (5 − 3.3) / 0.015 = 113.3 Ω, next E24 value up is 120 Ω; I = 1.7 / 120 = 14.2 mA; P = 1.7 × 0.01417 = 24 mW. Found an error? Email hello@yourpcb.com.