BlueGraysArduino · ESP32 · Pico
ProjectsComponentsToolsBlogForumFeatures & FAQ
Log InSign Up
ProjectsComponentsToolsBlogForumFeatures & FAQ
Log InSign Up

English

BlueGrays

Arduino Projects

Explore Arduino projects, manage components, and track your electronics journey.

Quick Links

  • Home
  • Projects
  • Components
  • Tools
  • Blog
  • Forum
  • User Guide
  • Features & FAQ
  • Contact

Tools

  • Color code
  • LED resistor
  • Ohm's law
  • SMD code
  • Capacitor code
  • LED voltages

Mobile App

Download on the
App Store
Get it on
Google Play

© 2026 BlueGrays. All rights reserved.

Privacy PolicyCookie PolicySubscription Terms
  1. Home
  2. Tools
  3. LED resistor

LED Resistor Calculator (Arduino, 5 V, 12 V)

Calculate the resistor a LED needs from its color, supply and current, with the nearest standard value, actual current and resistor power.

How it works

A LED does not limit its own current and fails without a series resistor. The resistor is R = (Supply − LED voltage) / Current. The calculator uses the typical forward voltage for the color, rounds up to the next standard value and also shows the current at the LED’s maximum forward voltage.

More tools

All tools
  • Ohm's lawVoltage, current, power
  • Voltage dividerSuggests R1/R2 for a target
  • 555 timerFrequency, duty cycle
  • Battery lifeIncluding sleep current
  • Op-amp gainInverting, non-inverting
  • Color code3–6 bands, both ways

LED color

Supply
Current
LEDs in series
Resistor to use
220 Ω
Calculated 210 Ω · next standard value up
Actual current
14.3 mA
Resistor power
45.1 mW
Recommended
1/8 W

R = (5 V − 1.85 V) / 15 mA = 210 Ω. If the LED voltage is at its maximum, the current is 11.4 mA. 10–15 mA is enough for an Arduino pin.

LED voltages

3 mm · 5 mm · SMD
ColorVf typ / maxMax current
Red1.85 / 2.5 V30 mA
Orange1.95 / 2.3 V25 mA
Yellow1.95 / 2.4 V30 mA
Green (classic)2.2 / 2.5 V25 mA
Green (pure)3.2 / 4 V30 mA
Blue3.3 / 4 V30 mA
White3.3 / 4 V30 mA
UV 395 nm3.2 / — V30 mA
IR 940 nm1.2 / 1.6 V50 mA

Typical values from Kingbright datasheets. Green comes in two kinds: older yellowish (GaP) about 2.2 V, pure green (InGaN) about 3.2 V. The package (3 mm, 5 mm, SMD) doesn't change the voltage.