LED Resistor Calculator
A 2 V LED at 20 mA from 5 V needs a resistor of 150 Ω, dissipating 60 mW.
Red/yellow about 2 V, green 2.1–3.2 V, blue/white about 3 V.
150 Ω
- Next E24 value up
- 150 Ω
- Current with that resistor
- 20 mA
- Power in the resistor
- 60 mW
- Resistor rating
- 0.125 W is enough
Step-by-step solution
- R = (V_s − n V_f) ÷ I = (5 − 1 × 2) ÷ 0.02 A
- R = 3 ÷ 0.02 = 150 Ω
- P = (V_s − nV_f) × I = 60 mW
LED Resistor Formula
R = (V_s − n V_f) / I_f
n LEDs in series; resistor power P = (V_s − nV_f) I_f
Worked Example
One 2 V LED at 20 mA from a 5 V supply:
- R = (V_s − n V_f) ÷ I = (5 − 1 × 2) ÷ 0.02 A
- R = 3 ÷ 0.02 = 150 Ω
- P = (V_s − nV_f) × I = 60 mW
Current with that resistor: 20 mA · Power in the resistor: 60 mW · Resistor rating: 0.125 W is enough
GATE tip
Diode questions in GATE use the same idea: replace each conducting diode with its forward drop (0.7 V for silicon), then apply Ohm’s and Kirchhoff’s laws to what remains.
More Analog and Digital Electronics Calculators
-
Op-Amp Gain Calculator
Inverting −R_f/Rᵢₙ, non-inverting 1 + R_f/Rᵢₙ
difference (R_f/Rᵢₙ)(V₂ − V₁); in-amp 1 + 2R/R_G; summing −(R_f/Rᵢₙ)ΣV
Example: An inverting amplifier with Rᵢₙ = 10 kΩ, R_f = 100 kΩ and 0.2 V in: Voltage gain = -10.
-
ADC Resolution Calculator
LSB = Vref / 2ⁿ, SNR = 6.02n + 1.76 dB
code = floor(Vᵢₙ/LSB); ENOB = (SINAD − 1.76)/6.02
Example: A 12-bit ADC with a 3.3 V reference converting 1.65 V: Resolution (1 LSB) = 0.805664 mV.
-
555 Timer Calculator
f = 1/(ln 2 (R₁ + 2R₂)C) ≈ 1.44/((R₁ + 2R₂)C)
duty = (R₁ + R₂)/(R₁ + 2R₂); monostable T = ln 3 × RC ≈ 1.1RC
Example: An astable 555 with R₁ = 1 kΩ, R₂ = 10 kΩ and C = 10 µF: Frequency f = 6.86998 Hz.
-
Decibel Calculator
dB = 10 log₁₀(P₂/P₁) = 20 log₁₀(V₂/V₁)
dBm = 10 log₁₀(P / 1 mW)
Example: A power ratio of 100: Gain = 20 dB.
Frequently asked questions
Why choose the next value up?
A slightly larger resistor gives slightly less current, which is safe; a smaller one would overdrive the LED.
Can I put LEDs in parallel on one resistor?
Avoid it: small differences in V_f make one LED hog the current. Give each string its own resistor.
Sources
- The International System of Units (SI), 9th edition (SI Brochure), Bureau International des Poids et Mesures .
Last reviewed: . Factors are stored exactly and computed with 50-digit decimal arithmetic. See how we verify conversion factors.
Cite this page
APA
Scientific Converters. (2026, October 15). LED Resistor Calculator. Retrieved October 25, 2026, from https://scientificconverters.com/calculators/led-resistor-calculator/
IEEE
Scientific Converters, "LED Resistor Calculator," scientificconverters.com. Accessed: Oct. 25, 2026. [Online]. Available: https://scientificconverters.com/calculators/led-resistor-calculator/