Toolstia / LED resistor calculator

LED resistor calculator

Enter the supply voltage, the LED colour (or its forward voltage) and the current you want. You get the exact resistor, the next standard E12 and E24 values, the real current with that value and the power rating you need.

The resistor is the supply voltage minus the LED voltage, divided by the current you want. The tool rounds up to the next standard value so the LED never gets more current than planned. Typical LEDs run at 10 to 20 mA. Forward voltages are typical values, so check the datasheet for yours.

How it works

  1. Enter the supply voltage.
  2. Pick the LED colour and set the current in milliamps.
  3. Use the suggested standard resistor.

The formula

Resistor = (supply voltage minus total LED voltage) divided by current. A 5 V supply, a red LED at 2 V and 20 mA gives 150 ohms.

Standard values

Resistors come in preferred series. The tool rounds up so the current is never higher than you asked for.

LEDs in series

Enter how many LEDs share one resistor. Their voltages add up, and the supply must be higher than the total.

Power rating

The resistor turns the extra voltage into heat. The tool recommends a rating of at least double the actual power.

Questions

Why round up?

A slightly larger resistor gives slightly less current, which is safe for the LED. Everything happens in your browser, and nothing you enter is sent anywhere.

Are the forward voltages exact?

They are typical values. Check the datasheet of your LED.

What current should I use?

Most indicator LEDs are fine at 10 to 20 mA. Lower currents are dimmer but last longer.