LED series resistor calculator
Current-limiting resistor for an LED, with the next standard value. Enter your values and see the formula, your numbers plugged in and every step of the working. Free, no sign-up, SI and imperial units.
Formula
R = (V_s − V_f) / I_f P = I_f² · R
Inputs
- Supply voltage (V_s), in V or other units
- LED forward voltage (V_f), in V or other units
- LED current (I_f), in mA or other units
Worked example: Red LED (2 V, 20 mA) on 5 V
- Supply voltage V_s = 5 V
- LED forward voltage V_f = 2 V
- LED current I_f = 20 mA
- Convert inputs to SI units: I_f = 20 mA = 0.02 A
- R = (5 − 2) V ÷ 0.02 A = 150 Ω
- Next E12 value up: 150 Ω, giving I = 3 ÷ 150 = 20 mA
- P = 0.02² × 150 = 0.06 W
Answer: Exact resistance R = 150 Ω; Next standard (E12) value R_E12 = 150 Ω; Resistor power P = 0.06 W; Actual current with standard value I = 20 mA
More electronics design calculators
- RC filter cut-off: Cut-off frequency and time constant of a first-order RC filter.
- 555 timer (astable): Frequency and duty cycle of a 555 timer in astable mode.
- Op-amp gain: Gain and output voltage of inverting and non-inverting amplifiers.
- Voltage divider: Output voltage of a two-resistor divider, with and without a load.
- PCB trace width (IPC-2221): Minimum copper trace width for a current and allowed temperature rise.
- SMD resistor code: Decode the number printed on a surface-mount resistor (3-digit, 4-digit, R-notation or EIA-96).
Electronics Design formula sheet · All calculators · Practice problems