AbraCalc

Arduino 5V Pin to Yellow LED — Resistor Calculator

Connecting a yellow LED (2.1V forward voltage) to an Arduino 5V digital output at 20mA requires a 145-ohm resistor.

Embed this tool on your site

How to use this tool

  1. Enter supply voltage (vs), led forward voltage (vf) and led current in the fields above.
  2. Results update instantly as you type — or click Calculate.
  3. Read your series resistance and the full breakdown beneath it.

Find the correct series resistor to wire a yellow LED safely to an Arduino digital output pin.

Frequently asked questions

What forward voltage should I use?
Red and yellow LEDs are typically 1.8–2.2 V. Green, blue, and white LEDs are usually 3.0–3.5 V. Check your LED's datasheet for the exact value.
What current should I use?
Standard 5 mm through-hole LEDs are rated for 20 mA maximum. A common value for a bright but conservative drive is 10–15 mA.
Should I round up or down to the nearest standard resistor value?
Round up to the next E12/E24 standard value to keep current at or below the rated maximum. Rounding down would exceed the LED's current rating.