LED Resistor Calculator

Required Resistance

Resistor Power Rating

Nearest Standard Value

How LED Resistor Calculation Works

An LED (Light Emitting Diode) is a semiconductor device that emits light when current flows through it. Unlike incandescent bulbs, LEDs have very low internal resistance, which means connecting one directly to a power supply without a current-limiting resistor allows excessive current to flow, destroying the LED almost instantly. According to Electronics Tutorials, the resistor limits current to the LED's rated operating level, typically 20 mA for standard 5mm through-hole LEDs.

The calculation applies Ohm's Law to the voltage drop across the resistor. The supply voltage minus the LED's forward voltage drop gives the voltage across the resistor, and dividing by the desired current yields the resistance value. This principle is foundational in circuit design and is taught in introductory electronics courses worldwide. The global LED market was valued at $75.8 billion in 2024 according to Grand View Research, reflecting the widespread use of LEDs in lighting, displays, and indicators.

The LED Resistor Formula

The formula derives directly from Ohm's Law (V = IR) applied to the resistor in series with the LED:

R = (V_supply - V_forward) / I_LED

Where R = resistance in ohms, V_supply = source voltage, V_forward = LED forward voltage drop, and I_LED = desired LED current in amps.

Power dissipation: P = (V_supply - V_forward) × I_LED. The resistor's wattage rating must exceed this value.

Worked example: A red LED (V_forward = 2.0V) powered by a 5V supply at 20mA. R = (5 - 2) / 0.020 = 150Ω. Power = 3V × 0.020A = 60mW. A standard 1/8W (125mW) resistor is adequate. The nearest standard E24 resistor value is 150Ω.

Key Terms You Should Know

LED Forward Voltage by Color

Forward voltage varies by the semiconductor material used in each LED color. These typical values come from manufacturer datasheets across major brands like Cree, Osram, and Nichia. Always verify with the specific LED's datasheet for precision work.

LED ColorV_forward (typical)Resistor for 5V @ 20mANearest Standard
Red1.8 - 2.2V140 - 160Ω150Ω
Yellow2.0 - 2.2V140 - 150Ω150Ω
Green2.0 - 3.5V75 - 150Ω100Ω
Blue3.0 - 3.5V75 - 100Ω82Ω
White3.0 - 3.5V75 - 100Ω82Ω
Infrared1.2 - 1.6V170 - 190Ω180Ω

Practical Examples

Example 1 -- Arduino LED: Driving a blue LED from an Arduino digital pin (5V output). V_forward = 3.2V, I = 20mA. R = (5 - 3.2) / 0.020 = 90Ω. Nearest standard: 100Ω. Power: 1.8V × 0.020A = 36mW. A 1/8W resistor works.

Example 2 -- Series LEDs from 12V: Three red LEDs in series from a 12V car battery. Total V_forward = 3 × 2.0V = 6.0V. R = (12 - 6) / 0.020 = 300Ω. Power = 6V × 0.020A = 120mW. Use a 1/4W 330Ω resistor for safety margin.

Example 3 -- Reduced brightness: Running a white LED at 10mA instead of 20mA for dimmer indicator light from 3.3V. R = (3.3 - 3.0) / 0.010 = 30Ω. Nearest standard: 33Ω. Power = 0.3V × 0.010A = 3mW. A tiny 1/8W resistor is more than sufficient. Using our capacitor calculator can help with more complex LED driver circuits.

Tips for LED Circuit Design

Frequently Asked Questions

What happens if you connect an LED without a resistor?

Without a current-limiting resistor, the LED's internal resistance is very low (typically under 10 ohms once forward-biased), causing current to spike to hundreds of milliamps or more. This exceeds the LED's maximum rated current of 20-30mA for standard LEDs, generating excessive heat that destroys the semiconductor junction within milliseconds. The power supply may also be damaged if it cannot handle the sudden current draw. Even a brief connection can permanently damage the LED by degrading its crystal structure.

Can I use one resistor for multiple LEDs in series?

Yes, LEDs in series share the same current, so one resistor works. The formula becomes R = (V_supply - V_LED1 - V_LED2 - ...) / I. The supply voltage must exceed the sum of all forward voltages, or the LEDs will not light. For example, three red LEDs (2.0V each) from 12V: R = (12 - 6) / 0.020 = 300 ohms. The advantage of series circuits is efficiency -- all current passes through every LED. The disadvantage is that if one LED fails open, all LEDs go dark.

What forward voltage should I use for my LED?

Always use the value from your LED's datasheet. Typical ranges by color: red 1.8-2.2V, orange 2.0-2.2V, yellow 2.0-2.2V, green 2.0-3.5V (varies widely depending on technology), blue 3.0-3.5V, white 3.0-3.5V, infrared 1.2-1.6V. When no datasheet is available, use the midpoint of the typical range. Using a slightly higher forward voltage in your calculation produces a slightly higher resistance value, which is safer for the LED since it reduces current below maximum.

Should I use the exact calculated resistance or a standard value?

Always use the nearest standard resistor value that is equal to or higher than the calculated value. Standard resistors come in the E24 series (24 values per decade: 10, 11, 12, 13, 15, 16, 18, 20, 22, 24, 27, 30, etc.) or E12 series (12 values). A slightly higher resistance is always safer because it reduces current below maximum. For example, if you calculate 143 ohms, use 150 ohms. The LED will be slightly dimmer but will last longer. A 5% tolerance resistor can vary by that amount anyway.

How do I choose the right resistor power rating?

Calculate power dissipation using P = (V_supply - V_forward) x I_LED, then choose a resistor rated at least 50% higher. For a 5V supply with a red LED at 20mA: P = 3V x 0.020A = 60mW. A 1/8W (125mW) resistor handles this with margin. For 12V circuits with multiple LEDs, power can exceed 100mW, requiring 1/4W (250mW) resistors. In enclosed or high-temperature environments, double the safety margin. Most hobbyist LED projects use 1/4W resistors as a universal safe choice that costs under $0.02 each.

Related Calculators