LED Resistor Calculator

Calculation Mode

Basic calculation with LED preset and target current

Supply Voltage

LED Parameters

Target Current

Typical: 3-20 mA for indicator LEDs

Adjust parameters to see results

LED Resistor Sizing

Calculate the current-limiting resistor for a single LED with three calculation modes:

Simple Mode

Basic calculation with LED preset and target current. No tolerances, E12/E24 series only.

Advanced Mode

Full control with voltage/Vf tolerances, E-series selection, power margin, PWM.

Reverse Mode

Calculate LED current for given resistor. Useful for checking existing circuits.

Basic Calculation (Forward)

The nominal resistance is calculated from Ohm's law:

Rnom = (Vsup − Vf) / ILED

Worst-Case Analysis

For each candidate resistor (or reverse calculation), LED current is computed across all corners:

Imin = (Vsup,min − Vf,max) / R

Ityp = (Vsup,typ − Vf,typ) / R

Imax = (Vsup,max − Vf,min) / R

Power Rating

Resistor power dissipation with safety margin (default 1.5×):

Pmax = Imax² × R

Prating = Pmax × margin

Where:

VsupV_{sup}= Supply voltageV
VfV_f= LED forward voltageV
ILEDI_{LED}= LED currentmA
RR= Current-limiting resistanceΩ
PP= Power dissipationW

📘 Usage Notes

  • Simple mode: Quick calculation for typical use cases (5V supply, standard LED)
  • Advanced mode: Full worst-case analysis with tolerances and E-series selection
  • Reverse mode: Check existing circuit — enter resistor value to see actual LED current
  • • LED presets are typical for indicator LEDs at 3 mA; always verify with datasheet
  • • For power LEDs (>100 mA), use Custom preset and consult manufacturer specs
  • • Results update automatically as you type (500ms debounce)
  • • Package recommendations: 0402 (1/16W) to 2512 (1W) for SMD resistors