An LED resistor is a series resistor that limits current through an LED. LEDs have almost no internal resistance once lit — without one, current spikes instantly and destroys the LED. The resistor drops the excess voltage and sets current to a safe value: R = (Vs − Vf) / If.
What You'll Learn
By the end of this guide, you'll be able to:
Calculate the correct LED resistor value for any circuit
Choose the right series/parallel configuration for multiple LEDs
Select a resistor with the right power rating to avoid overheating
Decide when to use a resistor vs a constant-current LED driver
What You'll Need
Supply voltage (Vs) — the voltage rail powering your LED (e.g., 3.3V, 5V, 12V)
LED forward voltage (Vf) — from the datasheet; typically 2.0V (red), 3.2V (white/blue), 3.6V (UV)
Target forward current (If) — from the datasheet; typically 10–30mA for standard LEDs, 350mA–1A for high-power
Number of LEDs — total count if wiring an array
Preferred configuration — series, parallel, or series-parallel
Step-by-Step Guide
1
Find Your LED's Forward Voltage (Vf)
Look up Vf in your LED's datasheet at the operating current you intend to use. If you don't have a datasheet, use these typical values as a starting point:
Red: 2.0V | Yellow: 2.1V | Green: 2.2V
Blue: 3.3V | White: 3.2V | UV: 3.6V
Infrared: 1.4V | High-power (1W+): 3.0–3.5V
In the LED Array Calculator, select your LED type from the quick-selector to auto-fill Vf and If defaults.
2
Set Your Target Forward Current (If)
Your datasheet lists a maximum current (If_max) and a recommended operating current. Always run LEDs at 70–80% of maximum for longer life and lower temperature.
Standard 5mm through-hole LEDs: 20mA max, run at 15–18mA
High-power 1W emitters: 350mA max, run at 300–330mA
High-power 3W emitters: 700mA max, run at 500–600mA
Enter your target If (in mA) into the calculator's Forward Current field.
3
Choose Series, Parallel, or Series-Parallel
Single LED: Use one resistor per LED — simplest circuit
Series string: Chain LEDs end-to-end with one resistor — best for matching brightness (all LEDs carry same current)
Parallel: LEDs side by side — use a resistor per LED (never share one resistor across paralleled LEDs)
Series-Parallel: Multiple series strings in parallel — best for arrays of 4+ LEDs
Rule of thumb: series strings should not exceed 75% of your supply voltage in LED voltage drop (leave headroom for the resistor). If you have more LEDs than will fit in one string, add a second string in parallel.
Mode: Single, Series, Parallel, or Series-Parallel
Supply Voltage (Vs): your rail voltage
Forward Voltage (Vf): from Step 1
Forward Current (If): from Step 2
Number in Series / Parallel strings: from Step 3
For arrays: enter Total LEDs and let the calculator suggest the optimal configuration, or specify nSeries and mParallel yourself.
5
Read the Calculated Resistor Value
The calculator outputs:
Exact resistor value (R = (Vs − n×Vf) / If)
Nearest standard value (E12 or E24 series)
Resistor power rating (P = (Vs − n×Vf) × If)
Total current draw from supply
Efficiency (LED power vs total power)
Always use the nearest standard value that is equal to or higher than the calculated value — rounding down increases current above your target.
6
Verify the Resistor Power Rating
The power dissipated in the resistor as heat = (Vs − n×Vf) × If. Choose a resistor with a continuous power rating at least 2× this value:
Under 100mW → 1/8W or 1/4W carbon film
100–500mW → 1/2W or 1W metal film
500mW–2W → 2W wirewound or ceramic
Over 2W → mount on heatsink or switch to a constant-current driver
The calculator flags resistors that exceed recommended thermal limits.
7
For High-Power LEDs: Check Junction Temperature
Standard resistor circuits are inefficient above 350mA — switch to a constant-current LED driver (buck-mode or linear). Use the Thermal Analysis mode in the LED Array Calculator:
Enter ambient temperature (°C)
Enter thermal resistance junction-to-ambient (Rth_JA from datasheet)
Enter max junction temperature (Tj_max, typically 100–150°C)
Result: Calculator tells you if the LED exceeds safe temperature and recommends a derating factor. If junction temperature exceeds 80% of Tj_max, add a heatsink or reduce current.
Ready to Calculate?
Calculate your LED resistor value instantly — free LED Array Calculator
Step 1 — Choose configuration:
3 LEDs in series = 3 × 3.2V = 9.6V. Two strings of 3 in parallel (3S2P) draws 2 × 20mA = 40mA total.
Resistor voltage = 12V − 9.6V = 2.4V per string.
Step 2 — Calculate resistor:
R = 2.4V / 0.020A = 120Ω. Nearest E12 standard value: 120Ω (exact match).
Step 3 — Check power:
P = 2.4V × 0.020A = 48mW per resistor. A 1/4W resistor has plenty of margin.
Step 4 — Verify in calculator:
Enter into LED Array Calculator: Vs = 12V, Vf = 3.2V, If = 20mA, nSeries = 3, mParallel = 2.
Confirm: 120Ω resistors, 48mW per resistor, total supply current = 40mA, LED efficiency ≈ 80%.
Sanity Check Your Result
Resistor voltage (Vs − n×Vf) should be 10–30% of supply voltage — if it's less than 5%, the circuit is unstable (small Vf variation causes large current swings); if more than 40%, efficiency is poor
Resistor power should be well below the component's rated wattage — at least 50% margin (2× headroom)
Total current draw (n_strings × If) should be within your power supply's current rating
Red flags:
Calculated R < 10Ω → reconsider wiring; add a series LED or reduce Vs
Resistor runs warm to touch → it's under-rated; use next higher wattage
LEDs flash or flicker → supply is overloaded or resistor value is too low
When to Use a Driver Instead of a Resistor
Resistors waste energy as heat. For high-current or battery-powered applications, use a constant-current LED driver:
Use a Resistor When...
Use a Driver When...
Supply voltage is stable (USB, regulated rail)
Supply voltage varies (battery, unregulated adapter)
If < 100mA per LED
If > 100mA (high-power LEDs)
Efficiency doesn't matter (indicator LEDs)
Battery life matters — efficiency is critical
Simple indicator or status LED
LED strip, grow light, flashlight, or automotive lamp
One-off prototype
Production design (driver cost amortises quickly)
For PWM dimming, pair a constant-current driver with the PWM Duty Cycle Calculator to set timer registers on your microcontroller.
Ready to Calculate?
Configure PWM dimming — calculate timer registers for your microcontroller
Why it happens: Datasheets list Vf at the test current (often 20mA or 350mA). At lower currents, Vf is lower; at higher currents, Vf is higher.
How to avoid: Use the Vf at your actual If from the datasheet's I-V curve. The LED Array Calculator uses typical values — verify against your specific part.
Sharing One Resistor Across Paralleled LEDs
Why it happens: Looks simpler — one resistor, multiple LEDs in parallel off it.
How to avoid: Never do this. Slight Vf differences between LEDs cause unequal current sharing — the LED with the lowest Vf hogs all the current and burns out. Always use one resistor per parallel branch.
Rounding the Resistor Value Down
Why it happens: 94Ω is calculated; the nearest E12 value is 82Ω (lower) or 100Ω (higher). Choosing 82Ω feels closer.
How to avoid: Always round up to the next standard value. A lower resistance means higher-than-intended current, shortening LED life. The LED Array Calculator always recommends the next higher E12/E24 standard value.
Using a Resistor for High-Power LEDs
Why it happens: Resistor circuits are learned first and feel universal.
How to avoid: Above 100mA per LED, resistor losses become significant. At 350mA with a 2.4V drop, the resistor dissipates 0.84W — requiring a bulky 2W component and generating heat. Use a buck-mode constant-current driver instead. See How to Pick a Buck Converter vs a Linear Regulator.
Ignoring Supply Voltage Variation
Why it happens: Resistor calculation is done at nominal supply voltage only.
How to avoid: Run the LED Array Calculator at both minimum and maximum expected supply voltage. At maximum Vs, current will be higher — verify it stays below If_max. Battery voltage can swing from 4.2V (fully charged Li-ion) to 3.0V (discharged), changing LED current by 40% or more.
Omitting a Resistor Entirely
Why it happens: "The forward voltage matches my supply — I don't need a resistor."
How to avoid: Even if Vf ≈ Vs, always use a resistor. Without current limiting, tiny supply variations or LED-to-LED Vf spread cause runaway current that destroys LEDs in seconds.
FAQ
What is the formula for an LED resistor?
R = (Vs − Vf) / If, where Vs is supply voltage, Vf is LED forward voltage, and If is target forward current (in amps). For a series string of n LEDs: R = (Vs − n×Vf) / If. The LED Array Calculator applies this formula automatically for any configuration.
How do I find my LED's forward voltage without a datasheet?
Measure it with a multimeter on diode-test mode — the reading in millivolts is approximately Vf in volts (e.g., 3.2V white LED reads ~3200 on diode test). Alternatively use typical values: red ≈ 2.0V, green ≈ 2.2V, blue/white ≈ 3.2V. For critical designs, always get the datasheet.
Can I use any resistor wattage as long as the resistance is right?
No. The resistor must handle the power dissipated as heat without burning out. Power = (Vs − n×Vf) × If. For example, 48mW requires at least a 1/8W (0.125W) resistor — but use 1/4W for thermal margin. Always choose a rated power at least 2× the calculated dissipation.
What happens if my resistor gets hot?
It means the power dissipation is close to or exceeding the resistor's rating. Check: (1) your calculated power vs the resistor's wattage rating, (2) whether you should use a higher-wattage resistor, and (3) whether a constant-current driver would be more efficient for your current level. A resistor running too hot will fail open — turning off your LEDs — or cause a fire risk.
How many LEDs can I put in series?
The rule is: n × Vf must be less than Vs, with at least 1–2V remaining for the resistor (Vdrop = Vs − n×Vf ≥ 1V). For a 12V supply with 3.2V white LEDs: max n = floor((12 − 1) / 3.2) = 3 LEDs in series. The LED Array Calculator calculates the optimal configuration automatically.
Should I use series or parallel wiring for multiple LEDs?
Series is preferred for uniform brightness — all LEDs carry identical current. Parallel requires matched LEDs and individual resistors per branch. Use series-parallel (multiple series strings in parallel) when you have more LEDs than can fit in one series string. The calculator's Series-Parallel mode finds the best balance automatically.
When should I switch from a resistor to a constant-current driver?
Switch to a driver when: (1) load current exceeds 100mA, (2) supply voltage varies (battery-powered designs), (3) you need precise brightness control or PWM dimming, or (4) you're designing for production where efficiency affects battery life or heat management. Drivers cost more but deliver consistent brightness regardless of supply fluctuation.
How do I dim an LED without changing brightness inconsistently?
Use PWM dimming — switch the LED on and off rapidly at a fixed frequency. The ratio of on-time to period (duty cycle) controls perceived brightness. This keeps colour temperature constant because the LED always runs at full rated current when on. Use the PWM Duty Cycle Calculator to calculate timer register values for your microcontroller. Avoid resistor dimming (reducing current) — it shifts colour temperature and is less efficient.
Summary
Key Takeaway
You've learned how to size an LED resistor or driver in 7 steps:
Read Vf from your LED's datasheet at your target If
Set If to 70–80% of the maximum rated current
Choose series (best for uniform brightness) or series-parallel for arrays