Language
English English Vietnamese (Tiếng Việt) Vietnamese (Tiếng Việt) Chinese (简体中文) Chinese (简体中文) Portuguese (Brazil) (Português do Brasil) Portuguese (Brazil) (Português do Brasil) Spanish (Español) Spanish (Español) Indonesian (Bahasa Indonesia) Indonesian (Bahasa Indonesia)
LED Resistor Calculator

LED Resistor Calculator

Find the right current-limiting resistor for your LED circuit, with the nearest E24 value, color code, power rating, and a live diagram for single, series, or parallel LEDs.

LED Resistor Calculator

The LED resistor calculator finds the correct current-limiting resistor for your LED circuit, then rounds it to the nearest standard E24 value with its color code and power rating. It works for a single LED, multiple LEDs in series, or parallel branches — useful for anyone wiring an indicator, a project board, or an Arduino circuit.

Pick your supply voltage, choose the LED color (or enter a custom forward voltage), set the current, and the result updates instantly. You also get the resistor's power dissipation, a recommended wattage rating, the circuit efficiency, and a live schematic of your chosen layout.

Private by design: every calculation runs in your browser. Your voltage, current, and configuration values are never uploaded to a server.

How an LED Resistor Is Calculated

LEDs have a fixed forward voltage drop and very low resistance, so without a current-limiting resistor the current would spike and the LED would burn out almost instantly. The resistor holds the current at a safe level. The value comes from Ohm's law:

R = (Vs − Vf) / If

  • R — required resistance, in ohms
  • Vs — source (supply) voltage
  • Vf — LED forward voltage, which depends on the LED color
  • If — forward current, typically 20 mA for standard indicator LEDs

For LEDs in series the forward voltages add up, so the calculator uses the combined drop of all LEDs in the chain.

How to Use the LED Resistor Calculator

1

Set the source voltage

Type your supply voltage or tap a preset — 3.3V, 5V, 9V, 12V, or 24V. These cover common sources like USB, 9V batteries, and 12V adapters.

2

Choose your LED

Select an LED Color to auto-fill its typical forward voltage, or choose Custom to enter a Vf value straight from your LED's datasheet.

3

Set the forward current

The default Forward Current is 20 mA, standard for most indicator LEDs. High-brightness LEDs may need a different value — check the datasheet.

4

Choose the configuration

Pick Single for one LED, Series for a shared-resistor chain, or Parallel for branches that each get their own resistor. For series and parallel, set the number of LEDs.

5

Read the results

See the exact resistance, the recommended and alternative E24 values, the color code, the power dissipation with a wattage hint, the efficiency, and a live circuit diagram.

Features

Ohm's Law Resistor Value

Computes the exact resistance from R = (Vs − Vf) / If and updates instantly as you change any input.

LED Color Presets

One-tap forward voltages for Red, Orange, Yellow, Green, Blue, White, and IR LEDs, plus a Custom field for any Vf.

Quick Voltage Presets

3.3V, 5V, 9V, 12V, and 24V buttons for the most common supplies, or type any source voltage.

Single, Series & Parallel

Calculate for one LED, a series chain that shares a resistor, or parallel branches each with their own resistor.

Nearest E24 Values

Suggests the recommended (higher, safer) and alternative (lower) standard E24 resistors with the percentage deviation from exact.

Resistor Color Code

Renders a 4-band color code for the recommended value, with each band labeled (1st digit, 2nd digit, multiplier, tolerance).

Power & Wattage Rating

Shows resistor, LED, and total power, plus a recommended minimum wattage with a 2x safety margin.

Circuit Efficiency

Reports the share of power used by the LED versus wasted as heat in the resistor, color-coded for at-a-glance quality.

Live Circuit Diagram

An SVG schematic redraws for single, series, or parallel — showing the battery, resistor(s), LED(s), and labeled values.

Smart Warnings

Flags when the source voltage is too low for the LED (or series chain) and when the forward current looks unusually high.

LED Reference Table

An expandable table of typical forward voltages and currents for common LED colors when no datasheet is at hand.

Frequently Asked Questions

How do I calculate the resistor for an LED?

Use Ohm's law: R = (Vs − Vf) / If, where Vs is your supply voltage, Vf is the LED's forward voltage, and If is the forward current (usually 20 mA). Enter those three values here and the calculator does the math, then rounds to the nearest standard resistor.

What resistor do I need for a 12V or 5V LED?

It depends on the LED's forward voltage and current. For a typical red LED (2.0V, 20 mA) on a 5V supply you need about 150 Ω, and on 12V about 500 Ω (510 Ω E24). Tap the 5V or 12V preset, pick your LED color, and read the recommended value.

How does the LED color change the resistor value?

Each color has a different forward voltage drop — red is around 2.0V while blue and white are around 3.3V. A higher Vf leaves less voltage across the resistor, so it needs a smaller resistance for the same current. Selecting a color auto-fills its typical Vf for you.

Series or parallel — one resistor or one per LED?

In Series, LEDs share a single resistor and their forward voltages add up, so the supply must exceed the total drop. In Parallel, give each LED its own resistor — LEDs vary slightly in Vf, so one resistor across all of them would let some draw more current and fail early. This calculator follows that one-resistor-per-branch practice.

Why pick the higher (recommended) E24 value?

The higher standard value lets slightly less current through the LED, which is safer and protects against overcurrent that shortens LED life. The LED stays bright enough in almost every case. The lower alternative is offered for when you want the current closer to the maximum.

What wattage resistor should I use?

The calculator applies a 2x safety margin to the dissipated power and shows the minimum recommended rating next to the resistor power. For most 20 mA indicator circuits a standard 1/4W (0.25W) resistor is plenty.

What happens if I connect an LED with no resistor?

Without a current-limiting resistor the current is set only by the LED's tiny internal resistance, so it spikes far past the rated value and the LED overheats and burns out — often within moments. A resistor (or a constant-current driver) is essential.

Why is the efficiency low for some setups?

Efficiency depends on how close the supply voltage is to the LED's forward voltage. A 24V supply driving a 2V LED wastes most of its power as heat in the resistor. To improve it, use a supply nearer the forward voltage or wire several LEDs in series to raise the total drop.

V
V
mA
Required Resistor
150 Ω
Nearest Standard (E24)
Alternative 130 Ω
Resistor Color Code
Resistor Power 0.06 W
LED Power 0.04 W
Total Power 0.10 W
Efficiency 40%
Circuit Diagram
LED Reference Table
Color Typical Vf Typical If
Red1.8 - 2.2V20 mA
Orange2.0 - 2.2V20 mA
Yellow2.0 - 2.2V20 mA
Green2.0 - 3.5V20 mA
Blue2.5 - 4.0V20 mA
White3.0 - 3.6V20 mA
IR1.2 - 1.7V20 - 100 mA
UV3.0 - 4.0V20 mA
Select an LED Color to auto-fill the forward voltage, or choose Custom to enter it manually
Use the voltage presets (3.3V, 5V, 9V, 12V, 24V) for common power supplies
The Recommended E24 value (higher) is safer — it lets slightly less current through the LED
For parallel LEDs, give each LED its own resistor for even current distribution
Check the wattage hint to make sure your resistor can handle the power
All calculations run locally in your browser — nothing is uploaded
Want to learn more? Read documentation →
1/7
Start typing to search...
Searching...
No results found
Try searching with different keywords