Skip to content

Choosing a Resistor for an LED

An LED needs a resistor in series. Without one, only the LED's small internal resistance limits the current, and the LED burns out quickly.

Schematic of the Choosing a Resistor for an LED circuit

Numbers from the simulation

Computed by the simulator from the part values in the schematic.

LED current
14 mA
LED forward voltage (Vf)
1.92 V
Voltage across R1
3.08 V

The circuit is copied into a new project in your workspace. If you are not signed in, you sign in with Google first.

Open in the simulator

How it works

A red LED drops about 1.8 to 2 V when lit. The rest of the supply voltage drops across the resistor.

The LED current is the resistor voltage divided by its value: I = (Vs − Vf) / R. To pick a resistor, turn it around: R = (Vs − Vf) / I.

A standard 5 mm LED is safe up to about 20 mA. With 220 Ω the current stays below that, and the LED is still bright.

Try changing

  1. Lower R1 to 100 Ω. The current goes past 20 mA, and the simulator warns you with a suggested resistor value.
  2. Raise R1 to 1 kΩ. The LED still lights, but dimmer, at only about 3 mA.
  3. Turn the LED around. No current flows, because an LED is a diode.

More examples