Home Construction & DIY Electrical LED Resistor Calculator
Configuration
V
V
mA
×
Results
150 Ω
Recommended Resistance
Exact: 150Ω
Ideal R 150Ω
Standard 150Ω
Power 60mW
Eff. 40%
R = (Vs − Vf) / If
✓ Use 1/8W resistor
BOM
• 1× 150Ω (1/8W)
• 1× Red LED

HOW TO USE

01
LED Selection Pick a preset color swatch or choose Custom to set a specific forward voltage and target current.
02
Power Supply Enter your source voltage with the quick presets or stepper, then choose series or parallel wiring.
03
Design Review Review resistance, wattage, the live formula, tolerance range, and export as a BOM or Arduino code.

FREQUENTLY ASKED QUESTIONS

How do I calculate the resistor for an LED?

Use Ohm's Law: R = (Vs − Vf) / If, where Vs is source voltage, Vf is LED forward voltage, and If is the target current in Amperes (20mA = 0.02A). For N LEDs in series: R = (Vs − N×Vf) / If.

Should I connect LEDs in series or parallel?

Series wiring is more efficient and ensures identical current through all LEDs, provided Vs > N×Vf. For parallel connections, use one resistor per LED branch — a single shared resistor causes uneven current and brightness variance.

What is LED Forward Voltage (Vf)?

Forward voltage is the voltage drop across the LED when it is conducting. It varies by chemistry: Red/Yellow/Orange ≈ 2.0V, Green ≈ 2.1V, Blue/White ≈ 3.3V, UV ≈ 3.5V, Infrared ≈ 1.3V. Always check your LED's datasheet.

How do I choose the right resistor wattage?

Calculate power dissipation: P = I² × R. Choose a resistor rated at least 2× that value for a safety margin. This calculator recommends the correct tier (1/8W, 1/4W, 1/2W, 1W, 2W) automatically.

What is the E96 resistor series?

E96 is a precision resistor series with 96 standard values per decade and ±1% tolerance. It gets you much closer to the ideal resistance than E24 (±5%), minimising actual current deviation from your target.

What happens if I don't use a resistor?

Without a current-limiting resistor, the LED will draw as much current as the source can deliver, causing rapid overheating and permanent damage (thermal runaway). Always use a resistor.

Can I use a higher wattage resistor?

Yes — a higher wattage rating is always safe. The resistor will run cooler and last longer. It will be physically larger but the resistance value does not change.

What resistor tolerance should I use?

5% (E24, gold band) is suitable for almost all LED projects. For precision color-matched LED arrays, use 1% (E96) resistors. The tolerance's impact on actual current is shown in the Results panel.

How do I read resistor color codes?

Color bands indicate digits, multipliers, and tolerance. Click "View Color Code →" in the Results card to open our Resistor Color Decoder with your calculated value pre-filled.

LED Resistor Formulas

Single LED

R = (Vs − Vf) ÷ If

Where Vs is the supply voltage, Vf is the LED forward voltage, and If is the LED forward current in amperes. This is the fundamental Ohm's Law derivation for a current-limiting resistor in a simple LED circuit.

Series LEDs

R = (Vs − (n × Vf)) ÷ If

Where n is the number of LEDs connected in series. Each LED drops its forward voltage, so the total LED voltage is subtracted from the supply. The supply must exceed the combined forward voltage of all LEDs.

Power Dissipation

P = If² × R   or   P = (Vs − Vf) × If

The resistor must be rated to safely handle the heat it dissipates. Always select a resistor with a wattage rating at least 2× the calculated power to ensure a safe operating margin and long component life.

Key Terms

Forward Voltage (Vf)
The voltage drop across an LED when current flows through it in the forward direction. Varies by LED color and chemistry, typically 1.3–3.5 V. Always refer to the manufacturer datasheet for the exact value.
Forward Current (If)
The operating current flowing through the LED, usually expressed in milliamps. Standard indicator LEDs are rated at 20 mA; high-power LEDs may draw 350 mA or more. Exceeding the maximum rating causes permanent damage.
Current Limiting Resistor
A resistor placed in series with an LED to restrict current to a safe operating level. Without it, the LED draws excessive current and burns out almost instantly due to thermal runaway.
E-Series Values
Standardised sets of preferred resistor values defined by the IEC. E12 has 12 values per decade (±10%), E24 has 24 (±5%), and E96 has 96 (±1%). Higher series provide finer granularity for precision designs.
Power Rating
The maximum continuous power a resistor can safely dissipate without overheating. Common ratings are 1/8 W, 1/4 W, 1/2 W, 1 W, and 2 W. Exceeding the rating risks resistor failure or fire.
Luminous Intensity
The brightness of an LED measured in millicandela (mcd). It depends on the LED type, forward current, viewing angle, and efficiency. Reducing current below the rated value dims the LED proportionally.

Worked Examples

Example 1: Single Red LED

Given: 5 V supply, Red LED (Vf = 2.0 V), target current 20 mA.

R = (5 − 2.0) ÷ 0.020 = 150 Ω

Result: 150 Ω — nearest E24 value is exactly 150 Ω. Power = 0.02² × 150 = 60 mW, so a 1/8 W resistor is sufficient.

Example 2: 3 Blue LEDs in Series

Given: 12 V supply, 3 Blue LEDs (Vf = 3.2 V each), target current 20 mA.

R = (12 − 3 × 3.2) ÷ 0.020 = (12 − 9.6) ÷ 0.020 = 120 Ω

Result: 120 Ω ideal. Nearest E24 value is 120 Ω. Power = 48 mW. A 1/8 W resistor works. Remaining headroom: 2.4 V.

Example 3: High-Power White LED

Given: 12 V supply, White LED (Vf = 3.3 V), target current 350 mA.

R = (12 − 3.3) ÷ 0.350 = 24.86 Ω. Nearest E96 value: 24.9 Ω.

Result: Power = 0.35² × 24.9 = 3.05 W. Use a 5 W wirewound resistor with adequate heat sinking. Consider a constant-current driver for better efficiency.

Common LED Specifications

LED ColorForward VoltageTypical CurrentWavelengthLuminous Intensity
Red1.8–2.2 V20 mA620–645 nm200–2000 mcd
Orange2.0–2.2 V20 mA590–620 nm300–1500 mcd
Yellow2.0–2.2 V20 mA570–590 nm200–1200 mcd
Green2.0–3.2 V20 mA520–570 nm500–5000 mcd
Blue3.0–3.4 V20 mA460–490 nm300–3000 mcd
White3.0–3.6 V20 mABroadband1000–8000 mcd
UV3.2–3.8 V20 mA380–420 nm50–300 mcd
Infrared1.2–1.6 V20–100 mA850–940 nmN/A (mW/sr)

Understanding LED Circuits: Resistor Selection and Design

Light-emitting diodes are among the most widely used electronic components in the world, appearing in everything from simple indicator lights and hobby projects to industrial signage and automotive lighting. Despite their ubiquity, one of the most common mistakes beginners make is powering an LED without an appropriate current-limiting resistor. Understanding why that resistor is essential and how to select the right value is fundamental to reliable circuit design.

Why LEDs Need Current Limiting

Unlike incandescent bulbs, LEDs have a highly nonlinear current-voltage relationship. Once forward voltage is exceeded, even a tiny increase in voltage causes a dramatic surge in current. Without a resistor to absorb the difference between the supply voltage and the LED's forward voltage, current rises uncontrollably in a process called thermal runaway. The LED heats up, its forward voltage drops further, which increases current even more, and the device fails within seconds. A properly sized resistor converts the excess voltage into a small amount of heat, keeping the current within safe operating limits.

Choosing Between Series and Parallel Wiring

When driving multiple LEDs, the choice between series and parallel configurations has significant implications. In a series circuit, the same current flows through every LED, guaranteeing uniform brightness without any matching effort. However, the supply voltage must exceed the sum of all forward voltages plus the resistor drop. For example, four white LEDs with a 3.3 volt forward drop require at least 13.2 volts just for the LEDs, making a 12 volt supply inadequate. In a parallel configuration, each LED branch receives the full supply voltage and needs its own resistor. This allows operation from lower voltage supplies but uses more components and draws more total current.

Selecting the Right Resistor Series

Standard resistors come in preferred value series defined by the IEC. The E12 series offers 12 values per decade with ten percent tolerance, suitable for rough prototyping. The E24 series provides 24 values at five percent tolerance and is the most commonly used for LED circuits. For precision applications such as matched LED arrays or calibrated indicator panels, the E96 series offers 96 values per decade with one percent tolerance, allowing the designer to land very close to the ideal resistance. This calculator supports all three series and shows the nearest standard value along with the resulting current deviation, so you can make an informed choice.

Power Rating and Thermal Considerations

Every resistor converts electrical energy into heat, and its power rating defines how much heat it can safely dissipate. The power formula is straightforward: multiply the square of the current by the resistance. For a standard 20 milliamp LED circuit, resistor power rarely exceeds 100 milliwatts, well within the capability of a common quarter-watt resistor. High-power LED designs at 350 milliamps or above can push resistor dissipation into the multi-watt range, requiring wirewound or ceramic resistors with proper thermal management. In such cases, a dedicated constant-current LED driver is often a more efficient and reliable solution than a passive resistor.

Practical Tips for Reliable LED Circuits

Always verify the forward voltage and maximum current from the LED datasheet rather than relying on generic color-based estimates. Derate the resistor wattage by at least fifty percent, meaning if the calculation yields 200 milliwatts, choose a half-watt resistor. For battery-powered designs, account for voltage sag as the battery discharges. A nine-volt alkaline battery drops to approximately 6.5 volts at end of life, which may not leave enough headroom for the resistor to regulate current properly. Finally, prototype your circuit at both the maximum and minimum expected supply voltages to confirm the LED operates within its safe current range under all conditions.

How to Use This Calculator

1

Enter Supply Voltage

Input the voltage of your power source, such as 5V for USB, 9V for a battery, or 12V for automotive systems.

2

Set LED Parameters

Enter the LED forward voltage (typically 1.8-3.3V depending on color) and forward current (usually 20mA for standard LEDs).

3

Read the Resistor Value

The calculator displays the required resistance in ohms, the nearest standard resistor value, and the power rating needed.

Formula & Methodology

Resistor Value

R = (V_supply − V_forward) / I_forward

Ohm's law applied to the voltage drop across the resistor. The resistor must absorb the difference between supply and LED voltage.

Power Dissipation

P = (V_supply − V_forward) × I_forward

The wattage the resistor must handle. Choose a resistor rated at least 2x this value for reliability.

Key Terms

Forward Voltage (Vf)
The voltage drop across an LED when current flows through it. Red LEDs are typically 1.8-2.2V, blue and white LEDs are 3.0-3.4V.
Forward Current (If)
The current that flows through the LED during normal operation, usually 20mA for standard 5mm LEDs and 350mA or more for high-power LEDs.
Current Limiting Resistor
A resistor placed in series with an LED to prevent excess current from destroying it. Without one, the LED will burn out almost instantly.
E-Series Values
Standardized resistor values (E12, E24, E96) that manufacturers produce. The calculator rounds to the nearest available standard value.
Power Rating
The maximum wattage a resistor can safely dissipate, commonly 1/8W, 1/4W, or 1/2W for through-hole resistors.

Real-World Examples

Example 1

Red LED on 5V Arduino

Supply: 5V, LED Vf: 2.0V, If: 20mA

Result: R = (5 − 2) / 0.020 = 150 ohms. Power = 0.06W, so a standard 1/4W resistor works. Use the nearest E24 value of 150 ohms.

Example 2

White LED on 12V Supply

Supply: 12V, LED Vf: 3.2V, If: 20mA

Result: R = (12 − 3.2) / 0.020 = 440 ohms. Nearest E24 value is 470 ohms. Power = 0.176W, so a 1/4W resistor is adequate.

LED Forward Voltage by Color

LED ColorForward VoltageWavelengthCommon Use
Red1.8 - 2.2V620-635 nmIndicators, brake lights
Green2.0 - 3.0V520-535 nmStatus indicators, signs
Blue3.0 - 3.4V465-475 nmBacklighting, decoration
White3.0 - 3.6VBroad spectrumIllumination, flashlights
Infrared1.1 - 1.5V850-940 nmRemote controls, sensors

Protecting LEDs with the Right Resistor

Why LEDs Need Resistors

Unlike incandescent bulbs, LEDs have very low internal resistance. Connected directly to a power supply, current surges through the LED far beyond its rating, causing immediate or premature failure. A series resistor limits current to the safe operating range specified in the LED datasheet.

Choosing the Right Power Rating

The resistor must dissipate the power difference between the supply and the LED. A resistor running at its maximum rating will get hot and may fail. The rule of thumb is to select a resistor rated at twice the calculated dissipation to keep it running cool and reliable over years of use.