InputTestHub

LED Resistor Calculator

Works out the series resistor an LED needs, rounds it to a real E24 value and shows the current you actually get.

Calculators Nothing uploaded No sign-up Free, unlimited
Calculators tool
About 2 V red, 2.1 V yellow, 3.2 V blue/green/white
Enter your figures and press Calculate.
In short An LED needs a series resistor because it is a diode, not a resistor. Past its forward voltage the current rises almost vertically for a tiny increase in voltage, so without something to limit it the current is decided by whatever the supply and the wiring happen to allow — and the LED destroys itself. The resistor is what makes the current predictable. The arithmetic is one subtraction and one division: take the LED's forward voltage off the supply, then divide what is left by the current you want. A 2 V red LED at 20 mA on a 5 V supply leaves 3 V across the resistor, and 3 ÷ 0.02 is 150 Ω — which happens to be a real E24 value, so no rounding is needed. When the exact figure is not a stock value, round UP: a larger resistor means slightly less current and a slightly dimmer LED, while a smaller one means more current than the part is rated for. Two rules follow from the same physics. Never put several LEDs in parallel behind one resistor — their forward voltages differ even between parts from the same reel, so the lowest takes most of the current, gets hotter, drops further and takes more still. And LEDs in series all share one current, so one resistor is correct for the string, provided the supply exceeds the sum of their forward voltages.

How to use the LED Resistor Calculator

  1. Enter the supply voltage and the LED's forward voltage.
  2. Enter the current you want, usually 20 mA or less.
  3. Read the E24 resistor to use and the current it will actually give.

About the LED Resistor Calculator

The series resistor an LED needs, rounded to a real E24 part, with the current that actually results.

What people use it for

  • Choosing a resistor for an indicator LED.
  • Driving a string of LEDs from one supply.
  • Checking whether a supply is high enough for a series string.

Details

The formulaR = (supply − forward voltage) ÷ current
5 V, 2 V LED, 20 mA150 Ω — and that is a real E24 value
Round upa bigger resistor is dimmer; a smaller one is dangerous
Never parallel on one resistorthe lowest forward voltage hogs the current
Typical forward voltages~2 V red, ~2.1 V yellow, ~3.2 V blue, green and white
PrivacyEverything runs in your browser. Nothing you enter is sent anywhere
Both the exact resistor and the nearest E24 value are shown, along with the current that value will actually produce, because those differ and the difference is what matters.

Where this tool stops

These are ideal-component calculations. Real resistors drift with temperature and age, real capacitors lose capacitance with applied voltage, and every semiconductor changes with temperature — so treat the figures as a starting point and check anything critical against the datasheet. Nothing here covers mains voltages: the site's installation tools are separate, and mains wiring is a job for a qualified electrician.

Frequently asked questions

What resistor do I need for an LED on 5 V?
For a typical red LED at 2 V forward and 20 mA, 150 Ω. For a blue or white LED at about 3.2 V, around 100 Ω. Enter your own figures above — forward voltage varies by colour and by part.
Why does an LED need a resistor at all?
Because it is a diode. Above its forward voltage the current rises almost vertically for a tiny rise in voltage, so nothing in the LED limits the current. The resistor does, which is why it is called a current-limiting resistor.
Can I run several LEDs from one resistor?
In series, yes — they share the same current. In parallel, no. Their forward voltages differ slightly, so the one with the lowest takes most of the current, heats up, drops further and takes even more. Give each parallel LED its own resistor.
What if the exact value does not exist?
Round up to the next standard value. A slightly larger resistor gives slightly less current and a marginally dimmer LED, which is harmless; a smaller one pushes the LED past its rating.
Can I run an LED with no resistor?
Only if something else limits the current — a constant-current driver, or a microcontroller pin with a built-in limit. Straight across a supply, an LED lasts moments.
Is the LED Resistor Calculator free, or is there a paid tier?
Free, unlimited, and no email address required. You can use it a hundred times a day and nothing changes.
Is the LED Resistor Calculator safe to use with private information?
No. The LED Resistor Calculator runs entirely in your browser using JavaScript. Because the work happens locally, the utility also keeps working if your connection drops, and closing the tab is all it takes to discard everything.
What do people use the LED Resistor Calculator for most?
The jobs it is built for: choosing a resistor for an indicator LED. Driving a string of LEDs from one supply. Checking whether a supply is high enough for a series string. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
Where does the LED Resistor Calculator stop being reliable?
These are ideal-component calculations. Real resistors drift with temperature and age, real capacitors lose capacitance with applied voltage, and every semiconductor changes with temperature — so treat the figures as a starting point and check anything critical against the datasheet. Nothing here covers mains voltages: the site's installation tools are separate, and mains wiring is a job for a qualified electrician. Knowing where a tool stops being trustworthy matters more than the cases where it works.
What are the key numbers for the LED Resistor Calculator?
The formula is R = (supply − forward voltage) ÷ current. 5 V, 2 V LED, 20 mA is 150 Ω — and that is a real E24 value. Round up is a bigger resistor is dimmer; a smaller one is dangerous. These are printed on the page itself, so you do not have to take them on trust.
Can I rely on this for exact work?
The calculation runs in double precision and the result is shown to ten significant figures, so converting a value and converting it back returns the original. What is displayed is rounded for readability; what is copied is not.

Related calculators tools

All 382
01

Loan Calculator

Works out the monthly payment, total interest and full repayment schedule for any loan from…

02

EMI Calculator

Calculates your Equated Monthly Instalment with a full principal-versus-interest breakdown and…

03

Mortgage Calculator

Estimates a full monthly housing payment including principal, interest, property tax…

04

Car Loan Calculator

Calculates a car finance payment from the price, deposit, trade-in, interest rate and term…

05

Personal Loan Calculator

Works out instalments and total cost for an unsecured personal loan, including any processing…

09

SIP Calculator

Projects the maturity value of a monthly Systematic Investment Plan, showing invested amount…