How to Select a Resistor for an LED (2024)

By: Kyle Meier 2019-11-07

Light Emitting Diodes (LEDs) are an inevitable stepping stone when diving into electronics. Whether you’re using them for indication, communication, lighting, or just for some added cool factor to a project, all LEDs have one thing in common: they are unable to regulate current. Without a limited current flow, LEDs will eventually fail. Sometimes catastrophically. For most cases, this is solved by simply adding a resistor (of appropriate size) in series with the LED. In high power applications you may see current-limiting power supplies or current limiting ICs. Let’s explore how resistors can be used to save the day!

If you’re not already familiar with Ohm’s law, let me introduce you now. This law defines the relationship between voltage, amperage, and resistance with the formula V = I * R. If you have any two of the elements, this formula can be rearranged to find the missing element. In the following example we’ll start with a supply voltage of 9 V, a resistor with unknown values, and an LED with a forward voltage of 2.4 V and 20 mA rated current.

How to Select a Resistor for an LED (1)

When components are connected in series, each component will have the same amount of current pass through. So, if the LED is drawing 20 mA, the resistor will as well. Another law applied to components connected in series is that the voltage drop across each component will add up to the source voltage value. The source voltage in this circuit is 9 V, the LED’s forward voltage is 2.4 V; so we’ll need 9 minus 2.4 volts to drop across the resistor, which equals 6.6 V. Now Ohm’s law comes into play. We don’t yet know the resistance required for the resistor, but we know the voltage drop across the resistor is 6.6 V and amperage is 0.02 A (20 mA). Let’s put these values into the Ohm’s law equation: 6.6 V = 0.02 A * R

With some rearrangement we get: R = 6.6 V / 0.02 A

Solve for R: 330 Ω = 6.6 V / 0.02 A

Now that we’ve solved for resistance, there’s one more step. Not just any 330 Ω resistor will work for us, we need the resistor to meet or exceed the resulting power dissipation. Note: A resistor’s power is rated in watts. The formula for electrical power is P (Watts) = I (Amperage) * V (Volts)

We’ll use our resistor’s values of 0.02 A and 6.6 V to calculate wattage: P = 0.02 A * 6.6 V

0.132 W (132 mW) will be the power dissipated by the resistor.

A common value for resistors is ¼ or 0.25 W which will work perfectly. Using resistors with higher wattage than this is okay as well, they just typically cost more. If you’d like to simplify this process, DigiKey has a calculatorthat will provide you with both the resistance and wattage for these resistors.

Happy blinking!

About this author

How to Select a Resistor for an LED (2)

Kyle Meier is an Applications Engineering Technician that has been with DigiKey since 2013. He holds a Bachelor’s degree in Business Administration from Bemidji State University and an Associate of Applied Science degree in Electronics Technology & Automated Systems from Northland Community & Technical College. Kyle’s current role is assisting in the creation of unique technical projects, documenting the process and ultimately participating in the production of video media coverage for the projects. Prior to joining DigiKey, he was an electronics lab instructor at BSU for 4 years. In his spare time, Kyle enjoys woodworking, automotive writing projects and avoiding Minnesota’s cold weather.

How to Select a Resistor for an LED (2024)
Top Articles
Latest Posts
Article information

Author: Nathanial Hackett

Last Updated:

Views: 5802

Rating: 4.1 / 5 (52 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Nathanial Hackett

Birthday: 1997-10-09

Address: Apt. 935 264 Abshire Canyon, South Nerissachester, NM 01800

Phone: +9752624861224

Job: Forward Technology Assistant

Hobby: Listening to music, Shopping, Vacation, Baton twirling, Flower arranging, Blacksmithing, Do it yourself

Introduction: My name is Nathanial Hackett, I am a lovely, curious, smiling, lively, thoughtful, courageous, lively person who loves writing and wants to share my knowledge and understanding with you.