Ohm Law · 220 Ω

LED Resistor Calculator

Prevent burnt LEDs and overloaded Arduino pins. Pick your supply voltage and LED color to get the exact Ohm Law resistance, nearest safe E24 value, actual current, and 4-band color stripes.

Supply Voltage (V)

LED Color Preset

Safe E24 Resistor

200 Ω

Exact Calculation

200 Ω

Actual Current

15.0 mA

Resistor Power

45.0 mW

Use at least 1/4W (0.25W)

4-Band Color Code (5% Gold)

RedBlackBrownGold

How LED Resistor Math Works (Ohm Law)

Subtract total LED forward voltage from supply voltage and divide by current in amps. For a 5V Arduino Uno pin and a 2.0V Red LED at ~14 mA, R = (5.0 - 2.0) / 0.014 = 214 Ohm, so a 220 Ohm 1/4W resistor is the classic safe choice.

How LED Resistor Math Works (Ohm Law)

R = (Vs - n * Vf) / I

Subtract total LED forward voltage from supply voltage and divide by current in amps. For a 5V Arduino Uno pin and a 2.0V Red LED at ~14 mA, R = (5.0 - 2.0) / 0.014 = 214 Ohm, so a 220 Ohm 1/4W resistor is the classic safe choice.

Frequently Asked Questions

Why is 220 Ohm the most common resistor for Arduino LEDs?

On a 5V Arduino Uno pin, a 220 Ohm resistor limits a 2.0V red LED to about 13.6 mA, giving bright light while staying safely below the 20 mA pin limit.

What resistor should I use on a 3.3V ESP32 or STM32?

With 3.3V logic and a 2.0V red LED at 10-12 mA, (3.3 - 2.0) / 0.012 = 108 Ohm, so a 120 Ohm or 220 Ohm resistor is safe.

Can I plug an LED straight into Arduino 5V without a resistor?

No. Without a current-limiting resistor, current spikes immediately and can burn out the LED or damage the microcontroller pin.

Explore all hardware & embedded dev tools

Compare IDEs

Lesson #2: Arduino Breadboard & External LED (Ohm Law 220 Ohm)

Watch the Matching Video Lesson

Watch on YouTube

Chrome USB WebSerial + 300 Free Credits

Test Your Circuit & Flash Real Hardware Free in Chrome

Open Gokino in Chrome, let AI generate interactive /wiring circuit diagrams, fix C++ bugs in 1 click, and upload directly to Arduino, ESP32, or STM32 with zero installation.

Launch Gokino IDE Free