Tools

LED Resistor Calculator

Use this LED Resistor Calculator to calculate the correct series resistor required to safely connect an LED to a power supply. Enter the supply voltage, LED forward voltage, and desired LED current to calculate the required resistance and resistor power rating.The calculator also helps you select a suitable standard resistor value and shows the actual current that will flow through the LED, making it useful for designing LED circuits with common supply voltages such as 3.3 V, 5 V, 9 V, and 12 V

Voltage in volts (V).

Fills in a typical forward voltage.

From the LED datasheet, in volts (V).

Desired current in milliamps (mA).

How it works

An LED drops a roughly fixed forward voltage (Vf) when it conducts. The series resistor drops the remaining voltage and sets the current. Without a resistor (or another current limit) the current rises until the LED is destroyed.

LED Resistor Formula

R = (Vsupply − Vf) / I

P = I² × R

Example: 5 V supply, red LED (2 V), 20 mA: R = (5 − 2) / 0.02 = 150 Ω, P = 0.02² × 150 = 60 mW.

Safety information

  • Always check the LED datasheet for its forward voltage and maximum continuous current.
  • Never connect an LED directly to a voltage source without a current-limiting resistor or driver.
  • Choose a resistor with a power rating at least twice the calculated dissipation.
  • When LEDs are wired in parallel, give each LED its own resistor.
  • High-power LEDs (350 mA and above) should be driven by a constant-current driver and need a heatsink.
  • Do not build LED circuits powered directly from mains voltage unless you are qualified to do so.

Admin

About Author

Leave a comment

Your email address will not be published. Required fields are marked *

You may also like

Tools

Resistor Colour Code Calculator

Calculate resistor values from 4-band and 5-band colour codes, or find the colour bands for a known resistance value.
Tools

555 Timer Calculator

  • September 25, 2026
Calculate 555 timer frequency, period, ON time, OFF time, duty cycle, and pulse width in astable and monostable modes.