LED Resistor Calculator
Calculate the series resistor needed to run one or more LEDs at a safe current, then pick the next standard E12 value and a suitable power rating.
| Exact resistance | 200.0 Ω |
|---|---|
| Next standard E12 value | 220 Ω |
| Current with E12 resistor | 13.64 mA |
| Resistor power (E12 value) | 0.041 W |
| Suggested resistor rating | 1/8 W or higher |
Link to this calculation – copied!
Formula
P = If2 × R
| Symbol | Meaning |
|---|---|
| Vs | Supply voltage |
| Vf | LED forward voltage (from the datasheet) |
| n | Number of LEDs connected in series |
| If | Desired LED current, in amperes |
| P | Power dissipated in the resistor |
How to Use This Calculator
- Enter the Supply voltage (V).
- Enter the LED forward voltage (V). Red ≈ 1.8–2.2 V, green/blue/white ≈ 2.8–3.4 V.
- Enter the LED current (mA). Standard 5 mm LEDs are usually rated for 20 mA maximum.
- Enter the LEDs in series.
- Press Calculate. Results also update automatically as you type.
Worked Example
Using the values pre-filled in the calculator above:
| Supply voltage | 5 V |
|---|---|
| LED forward voltage | 2 V |
| LED current | 15 mA |
| LEDs in series | 1 |
| Exact resistance | 200.0 Ω |
|---|---|
| Next standard E12 value | 220 Ω |
| Current with E12 resistor | 13.64 mA |
| Resistor power (E12 value) | 0.041 W |
| Suggested resistor rating | 1/8 W or higher |
About This Calculation
An LED is a diode, not a resistor: once the voltage across it reaches its forward voltage, current rises very steeply with only a small further increase in voltage. Connected straight to a battery, it would draw far more than its rating and burn out. A series resistor absorbs the difference between the supply voltage and the LED's forward voltage and so sets the current according to Ohm's law.
Take the forward voltage and recommended current from the LED's datasheet. Typical values are about 2 V for red, yellow and orange LEDs and about 3 V for blue, white and most green ones. Many indicator LEDs are bright enough at 5–10 mA, well below the usual 20 mA maximum, which also extends their life and saves battery.
Resistors are sold in standard series. This calculator rounds up to the next value in the E12 series (1.0, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8, 8.2 and their multiples of ten), so the actual current is slightly below your target, which is the safe direction. Choose a resistor rated for at least twice the dissipated power so it runs cool. When chaining several LEDs in series, leave a volt or more across the resistor; if the supply is only just above the total forward voltage, small variations make the current unpredictable.
Frequently Asked Questions
- What resistor do I need for an LED on 5 V?
- For a red LED (about 2 V) at 15 mA: (5 − 2) ÷ 0.015 = 200 Ω, so use the next standard value, 220 Ω. For a white LED (about 3.2 V) at 15 mA you need 120 Ω.
- Can several LEDs in parallel share one resistor?
- It is not recommended. Small differences in forward voltage make one LED hog the current. Give each parallel LED its own resistor, or wire them in series.
- Why round up rather than to the nearest value?
- A higher resistance gives slightly less current, which keeps the LED within its rating. The brightness difference is usually unnoticeable. You can explore values with the Ohm's law calculator.