If you are wiring an LED for an Arduino project, breadboard circuit, indicator light, or DIY electronics build, one small component can determine whether the LED works safely or burns out. Knowing what resistor value to use with an LED comes down to three things: your supply voltage, the LED forward voltage, and the current you want to allow through it.
For many common 5V circuits, 220-ohm and 330-ohm resistors are popular starting points. However, I do not recommend choosing a resistor only because it came in an electronics kit. A quick Ohm’s Law calculation gives you a much safer and more accurate answer.
Table of Contents
ToggleHow Do I Calculate the Correct LED Resistor Value?
The standard LED resistor formula is:
R = (Vs – Vf) ÷ If
In this equation, Vs is the source voltage, Vf is the LED forward voltage, and If is the desired LED forward current in amps.
This last part matters. If an LED is rated for 20 milliamps, you must enter that as 0.02 A, not 20.
I also avoid assuming that every LED should actually run at its maximum current. Many modern indicator LEDs are bright enough at 5 to 10 mA, which reduces power use and provides an extra safety margin.
What Resistor Should I Use for a 9V Red LED?
A 9V battery and a red LED make a useful calculation example.
Assume the red LED has a forward voltage of about 2.0V and you want to operate it at 20mA.
First, calculate the voltage the resistor must drop:
9V – 2V = 7V
Then divide that voltage by the desired current:
7V ÷ 0.02A = 350 ohms
The calculated resistance is therefore 350 ohms.
Because 350 ohms is not one of the most common resistor values found in basic kits, I would select the next practical standard value above it. A 390-ohm resistor is a good choice and keeps current slightly below 20mA. A 470-ohm resistor provides an even more conservative operating current and will usually make the LED only slightly dimmer.
I would not describe 330 ohms as “rounding up” from 350 ohms because it is actually lower and would allow slightly more than 20mA.
What Resistor Value Should I Use for Different LED Colors?

LED forward voltage changes depending on semiconductor construction and color. That means a red LED and a blue LED connected to the same power supply may need different resistor values.
Typical values often fall around 1.8V to 2.0V for red LEDs, about 2.0V to 2.2V for many yellow and green LEDs, and approximately 3.0V to 3.3V for many blue and white LEDs.
These are only estimates. When accuracy matters, I always check the LED datasheet.
| LED Color | Typical Forward Voltage | Approx. Resistor at 5V, 20mA | Approx. Resistor at 9V, 20mA | Approx. Resistor at 12V, 20mA |
| Red | 1.8V-2.0V | 150-160Ω | 350-360Ω | 500-510Ω |
| Yellow/Green | 2.0V-2.2V | 140-150Ω | 340-350Ω | 490-500Ω |
| Blue/White | 3.0V-3.3V | 85-100Ω | 285-300Ω | 435-450Ω |
I use this type of table as a quick reference, not as a replacement for the actual LED specifications.
Should I Use a 220-Ohm or 330-Ohm Resistor With an LED?
Both values are common in 5V electronics.
Suppose I have a red LED with a 2V forward voltage.
With a 220-ohm resistor:
Current = (5V – 2V) ÷ 220Ω = about 13.6mA
With a 330-ohm resistor:
Current = (5V – 2V) ÷ 330Ω = about 9.1mA
Both currents are suitable for many standard indicator LEDs.
The 220-ohm resistor allows more current and may produce more brightness. The 330-ohm resistor reduces current and offers a larger safety margin. For a simple indicator LED, I often prefer the higher value because maximum brightness is rarely necessary.
What Resistor Should I Use for a 3.3V LED Circuit?
Many microcontrollers operate at 3.3V, so this calculation is increasingly common.
If I use a red LED with a 2V forward voltage and target 10mA:
R = (3.3V – 2V) ÷ 0.01A
That gives:
R = 130 ohms
A nearby 150-ohm standard resistor would work well.
However, a blue or white LED may have a forward voltage close to the 3.3V supply itself. In that situation, the calculation becomes much more dependent on the exact LED specifications and output voltage.
What Resistor Should I Use for a 5V LED?
For many typical indicator LEDs, values between 220 and 330 ohms work well on a 5V supply.
This is especially common in breadboard experiments and Arduino projects because those values keep LED current moderate while still producing plenty of visible light.
Still, if you want to know what resistor value to use with an LED accurately, calculate it from the LED forward voltage rather than relying on a universal recommendation.
What Resistor Should I Use for a 12V LED?

Higher supply voltages usually require larger resistor values.
For example, with a 2V red LED at 15mA:
R = (12V – 2V) ÷ 0.015A
That gives about:
667 ohms
A standard 680-ohm resistor would be a sensible choice.
At 12V, resistor wattage also becomes more important because the resistor must dissipate more excess voltage as heat.
How Do I Calculate LED Resistor Wattage?
Resistance alone does not tell you whether a resistor can safely handle the circuit.
You can calculate resistor power with:
P = V × I
Using the earlier 9V red LED example, the resistor drops 7V at 20mA:
7V × 0.02A = 0.14 watts
A common 1/4-watt resistor is rated for 0.25 watts, so it can handle that example with reasonable headroom.
You can also use:
P = I² × R
For small 3.3V and 5V LED indicator circuits, a 1/4-watt resistor is usually sufficient. I still calculate power whenever I use a higher supply voltage.
What Resistor Should I Use With an Arduino LED?
Arduino LED projects commonly use 220-ohm or 330-ohm resistors.
I generally prefer keeping indicator LED current around 5 to 10mA unless there is a specific reason to use more. That is usually bright enough while reducing the load on the microcontroller output pin.
The same LED resistor formula applies. Use the Arduino output voltage as the source voltage and check the LED’s forward voltage.
Do Multiple LEDs Need Separate Resistors?
It depends on how the LEDs are connected.
For LEDs wired in series, the same current flows through every LED, so one resistor can often control the entire string. Add the forward voltages together before calculating the resistor.
For example, three red LEDs with 2V forward voltage each create approximately 6V of total LED voltage drop.
For parallel LEDs, I prefer giving each LED branch its own current-limiting resistor. Small differences in forward voltage can otherwise cause one LED to draw more current than another.
What Are the Most Common LED Resistor Mistakes?

The mistake I see most often is connecting an LED directly to a power supply because its voltage rating looks close to the supply voltage. Another common mistake is using 20 instead of 0.02 when converting milliamps to amps.
People also sometimes assume all LED colors have the same forward voltage, ignore resistor wattage, or automatically select 220 ohms regardless of the supply voltage. These same calculations become especially useful when building a simple transistor switch circuit for beginners, where the LED and switching transistor both need appropriate current control.
The safer method is always the same: confirm the LED specifications, calculate the voltage across the resistor, divide by the desired current, and then choose a practical standard resistor value.
FAQs About LED Resistor Values
1. Can I use a 1k resistor with an LED?
Yes. A 1k resistor usually limits current more than a 220-ohm or 330-ohm resistor, so the LED will typically be dimmer. Modern LEDs can still be clearly visible at relatively low current.
2. Is a 330-ohm resistor safe for a 5V LED?
For many common indicator LEDs, yes. With a 2V LED on a 5V supply, a 330-ohm resistor allows roughly 9mA, which is suitable for many applications.
3. Does the resistor go before or after the LED?
Either position works in a simple series circuit. The same current flows through both components, so the resistor can sit before or after the LED.
4. Can I run an LED without a resistor?
You should not directly connect a standard LED to a voltage source unless the circuit already includes another form of reliable current regulation. LEDs require current limiting to prevent excessive current.
5. How do I know what resistor value to use with an LED?
To determine what resistor value to use with an LED, subtract the LED forward voltage from the supply voltage and divide the result by your desired LED current in amps. Then choose the nearest suitable standard resistor value, preferably slightly higher when you want a safer current limit.
Final Thoughts
Choosing an LED resistor becomes straightforward once you stop relying on a single “standard” value and use the actual circuit specifications instead.
A 220-ohm or 330-ohm resistor works well in many 5V projects, but 9V and 12V circuits often require significantly higher resistance. LED color, forward voltage, desired current, resistor wattage, and whether you are using one LED or several all affect the final choice.
For reliable DIY electronics, Arduino projects, and indicator circuits, I recommend calculating the resistance first and then selecting the closest safe standard resistor rather than guessing.



