AbraCalc

Raspberry Pi GPIO LED Resistor (3.3V, Red LED)

A Raspberry Pi GPIO pin outputs 3.3V — calculate the series resistor for safely lighting a red LED at 10mA.

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.

Calculate the series resistor for connecting an LED to a Raspberry Pi GPIO pin running at 3.3 volts.

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.