LED Resistor Calculator

Calculate the correct series resistor value for an LED circuit given supply voltage, LED forward voltage, and desired current.

Circuit Parameters

V

Common values: 3.3 V, 5 V, 9 V, 12 V

V
Quick:
mA

Typical range: 5–30 mA. Check your LED datasheet.

Results

Fill in the values above and click Calculate.

Formula Used

R = (Vs − Vf) ÷ If

P = If2 × R

Where R is resistance in ohms, P is power in watts, If in amps.

Summary

Calculate the correct series resistor value for an LED circuit given supply voltage, LED forward voltage, and desired current.

How it works

  1. Enter the supply voltage of your circuit (e.g., 5 V for USB, 12 V for automotive).
  2. Enter the LED forward voltage — found on your LED's datasheet (typically 1.8–3.5 V).
  3. Enter the desired LED current in milliamps (common values: 10–20 mA for standard LEDs).
  4. The calculator applies Ohm's Law: R = (Vs - Vf) / If.
  5. It then recommends the nearest standard E24 resistor value and minimum power rating.

Use cases

Frequently Asked Questions

Related tools

Last updated: 2026-05-23 · Reviewed by Nham Vu