1. Home
  2. Calculators
  3. LED Resistor Calculator

LED Resistor Calculator

For breadboards and kits: pick the LED colour, the supply and the current, and get a standard resistor that keeps the LED safe.

Free, no sign-up. Runs in your browser: nothing is uploaded.

Free workspace included. Docs, spreadsheets, notes and tasks that save on your device. No sign-up.Take a look

How to use LED Resistor Calculator

  1. Enter your numbers, or press a sample to see an example.
  2. Read the results and the table under them.
  3. Copy the results or download the table as a CSV file.

Features

  • Typical forward voltages for 8 LED colours, or your own
  • Several LEDs in series or in parallel
  • Rounded up to the E12, E24 or E96 series
  • Actual current and the resistor power rating
  • A warning when the headroom is too small

Supported formats

Input

  • Typed numbers with SI prefixes (4.7k, 100n, 20m)

You get

  • On-screen results
  • Copyable text
  • CSV table

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the LED Resistor Calculator is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • The forward voltages are typical values; check the data sheet of your LED and keep the current below its maximum rating.
  • It sizes a resistor for a steady DC supply, not for a pulsed or PWM drive.

Guide

Choosing the series resistor for an LED: forward voltage, current and standard values

An LED is not a resistor: once it starts conducting, a small rise in voltage produces a large rise in current, and the current is what destroys it. The usual fix is a series resistor that drops the extra voltage and sets the current. The calculation is Ohm’s law, but with several moving parts: supply, LED colour, target current, the number of LEDs and the wiring. This page does it and then rounds to a real part.

The formula

For one LED, the resistor drops whatever the supply voltage has left after the LED’s forward voltage Vf, and the current through both is the same, so R = (Vs − Vf) / I. For several LEDs in series the forward voltages add: R = (Vs − n × Vf) / I. If the LEDs are in parallel, each branch needs its own resistor, R = (Vs − Vf) / I, and the supply must provide n times the current. The calculator checks that the supply exceeds the total forward voltage and tells you how far short you are if it does not.

Forward voltage and current

Pick a colour to use a typical forward voltage, or choose Custom and type the figure from your data sheet. The presets are red 2.0 V, orange 2.0 V, yellow 2.1 V, green 2.2 V, blue 3.2 V, white 3.2 V, infrared 1.2 V and ultraviolet 3.4 V; real parts differ by several tenths of a volt, especially greens. The current field accepts 20m for 20 mA. Standard indicator LEDs are commonly run at 10 to 20 mA, but the maximum rating on the data sheet is the limit that matters.

Rounding to a standard resistor

You can choose the series E12, E24 or E96. The tool takes the smallest standard value that is not below the exact result, recalculates the real current with that part and reports the resistor’s power. The page also lists the E12, E24 and E96 choices side by side. Rounding up gives a slightly lower current and a slightly dimmer LED, which is almost always acceptable, whereas rounding down overdrives it.

Worked examples

A red LED on a 9 V battery at 20 mA: (9 − 2.0) / 0.02 = 350 Ω. The next E24 value up is 360 Ω, so the current is 7 / 360 = 19.4 mA and the resistor dissipates 136 mW, and the 2× margin in the results suggests a 1/2 W part. Three white LEDs in series on 12 V at 20 mA: (12 − 9.6) / 0.02 = 120 Ω, a standard value, with 48 mW dissipated. A blue LED on 5 V at 10 mA needs exactly 180 Ω.

Power and the supply

The resistor’s power is I² × R, and a margin of two is suggested for the rating. The supply current is the LED current for a series string or n times it for parallel branches, and the supply power is that current times the voltage. Notice how inefficient the series resistor is: in the red LED example most of the power from the battery heats the resistor instead of lighting the LED, which is why constant-current drivers are used for high-power LEDs.

Limits

The forward voltages are typical figures, not guarantees, so measure or read the data sheet for demanding work. The calculation is for a steady DC supply. Pulsed or PWM drive, constant-current drivers, LED strips with built-in resistors and mains-powered lamps need different design methods.

Checked against the current version of the LED Resistor Calculator on .

Frequently asked questions

Why is rounding to the nearest standard value not good enough?

The nearest standard value can be lower than the exact one, and a lower resistance means more current through the LED than you planned. If the exact value were 340 Ω, the nearest E24 part is 330 Ω, which would push about 3% more current than the target. The tool always takes the next value up, so the current never exceeds the target.

What if the supply is only slightly above the LED voltage?

Then almost nothing is left across the resistor, and the current becomes very sensitive. A 0.2 V change in the supply or in Vf can double the current. The tool warns when less than 1 V remains across the resistor; use a higher supply, fewer LEDs in series or a constant-current driver in that case.

Why does it round up and not to the nearest value?

A lower resistor than calculated would push more current than your target through the LED. Rounding up keeps it at or below the target.

Can I run LEDs in parallel with one shared resistor?

It is not recommended. Small differences in forward voltage make one LED take most of the current. Give each LED its own resistor.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.