Sumivo · Electrical
LED Series Resistor Calculator
Calculate series resistance and resistor power for a single LED.
01 / INPUTS
02 / RESULT
Resistance
150 Ω
- Resistance
- 150 Ω
- Resistor power
- 0.06 W
Calculation trace
- 20 mA ÷ 1000 = 0.02 A0.02 AConvert LED current
- (5 V − 2 V) ÷ 0.02 A = 150 Ω150 ΩSeries resistance
- (5 V − 2 V) × 0.02 A = 0.06 W0.06 WResistor power
Maintained by Jack Shi
How it works
The tool converts LED current from milliamperes to amperes, then computes the resistor voltage drop as Vs − Vf and resistance as R = (Vs − Vf) / I. Resistor dissipation is P = (Vs − Vf)·I.
Assumptions & limits
- Uses a fixed entered LED forward voltage and an ideal DC supply; actual forward voltage varies with current and temperature.
- Supply voltage must exceed forward voltage, and all three inputs must be positive finite numbers.
Verified runs
Synthetic examples executed at build revision be2e0e4 on . Cards round decimal results to 6 significant figures; matching uses full precision and the tolerance below. Matches cover the displayed fields, not every possible input or clinical or engineering validation.
Inputs: Supply voltage: 5 V; LED forward voltage: 2 V; LED current: 20 mA
Result: Resistance: 150 Ω (expected Resistance: 150 Ω) ✓
Inputs: Supply voltage: 2.0001 V; LED forward voltage: 2 V; LED current: 1 mA
Result: Resistance: 0.1 Ω (expected Resistance: 0.1 Ω) ✓
Inputs: Supply voltage: 12 V; LED forward voltage: 3.2 V; LED current: 30 mA
Result: Resistance: 293.333 Ω (expected Resistance: 293.333 Ω) ✓
How these runs were checked
Method: led-resistor@1.0.0. Expectations come from the listed test fixtures or hand arithmetic; they are not copied from these executions. Omitted optional inputs use the method defaults. Run dates record execution, not expert review or fresh measurements.
Download all verified runs (JSON) — full inputs, returned values, expectations, timestamps and buildRevision.
- normal: . Absolute tolerance: 1e-10. Text and booleans match exactly. Full-precision result: Resistance: 150 Ω. Expected: Resistance: 150 Ω. Expectation: packages/calculator-core/tests/led-resistor.test.ts
- boundary: . Absolute tolerance: 1e-10. Text and booleans match exactly. Full-precision result: Resistance: 0.10000000000021103 Ω. Expected: Resistance: 0.1 Ω. Expectation: packages/calculator-core/tests/led-resistor.test.ts
- sensitivity: . Absolute tolerance: 0.0005. Text and booleans match exactly. Full-precision result: Resistance: 293.33333333333337 Ω. Expected: Resistance: 293.333 Ω. Expectation: packages/calculator-core/tests/led-resistor.test.ts
Reproduce from the source checkout with pnpm --filter @sumivo/web gen:verified-runs. A rebuild changes execution times; the revision identifies its Git starting point, including any uncommitted changes made for that build.
FAQ
- Why must the supply voltage exceed the LED forward voltage?
- The series resistor needs a positive voltage drop, Vs − Vf, to set a positive current with R = (Vs − Vf) / I.
Related calculators
SOURCES
- International Electrotechnical Commission (IEC)IEC 60050 — International Electrotechnical Vocabulary (Electropedia) ↗
Ohm’s law applied to the series resistor: R = (Vsupply − Vforward) / I
Accessed 2026-08-19
- Bureau International des Poids et Mesures (BIPM)The International System of Units (SI), 9th edition ↗
SI derived units: volt, ampere, ohm
Accessed 2026-08-19