Free forever · Yksi is the free AI hardware studio for Mac, Windows, iPhone and Android
Yksi / Tools / LED Resistor Calculator

LED Resistor Calculator

Find the series resistor for one LED or a string of LEDs, rounded to a standard value, with the wattage to use. Free, and it runs in your browser.

Results
Resistor—
Nearest standard (E24, rounded up)—
Actual current—
Resistor power—
Use a resistor rated—
Power to the LEDs—

How the LED resistor is calculated

The resistor drops whatever voltage the LEDs don't use, at the current you want:

R = (Vsupply − n · Vf) / I

The calculator rounds up to the next standard E24 value, so the current ends up slightly lower than your target, never higher. The resistor dissipates I²·R, and we recommend a part rated for at least twice that, so it runs cool.

Check the forward voltage in your LED's datasheet: it varies with color, current and temperature. For high-power LEDs, or when the supply voltage is only a little above Vf, use a constant-current driver instead of a resistor.

Questions

What resistor do I need for an LED on 5 V?

For a red LED (about 2 V) at 10 mA, you need 300 Ω. The next standard value up is 300 Ω in E24, giving 10 mA. For a blue or white LED (about 3.1 V) at 10 mA, use 190 Ω, rounded up to 200 Ω.

What resistor for an LED on 3.3 V?

A red LED at 5 mA needs about 260 Ω (use 270 Ω). Blue and white LEDs need about 3 V, which leaves very little headroom on 3.3 V, so brightness will vary.

Can I share one resistor between LEDs in parallel?

It is not recommended. LEDs have slightly different forward voltages, so one hogs the current. Give each LED, or each series string, its own resistor.

How much current should an LED get?

Most small indicator LEDs are rated for 20 mA, but modern LEDs are bright at 1 to 5 mA. Lower current saves power and extends life.

Stop doing this by hand.

Yksi sizes traces, checks impedance and picks real parts as it designs the whole device: housing, PCB, firmware and simulation, in one model. Free.

Get early access

More free tools