LED resistor calculator
Find the resistor that keeps an LED at a safe current, with the nearest standard value and the power it must handle.
LED series resistor
The resistor sets the LED current. Pick the LED colour for a typical forward voltage, or type your LED’s value from its datasheet.
R = (V_supply − n × V_f) / I
How it works
- The resistor takes the voltage the LEDs do not: Vsupply − n × Vf.
- Ohm’s law then gives R = that voltage ÷ the current you want.
- Round up to the next standard (E12) value so the current stays at or below your target.
Worked example
5 V supply, one blue LED (Vf ≈ 3.1 V), 10 mA: R = (5 − 3.1) ÷ 0.01 = 190 Ω. The next standard value is 220 Ω, giving about 8.6 mA.
Common questions
How much current should an LED get?
Most small 5 mm LEDs are bright enough at 5–10 mA and rated for 20 mA maximum. Less current means longer life and less heat.
Can I use one resistor for several LEDs in parallel?
Not reliably: LEDs share current unevenly. Give each LED (or each series string) its own resistor.
More calculators
- Resistor colour codePick the four colour bands and get the resistance, tolerance and the range the real part can fall in.
- Ohm's law and powerEnter any two of voltage, current, resistance and power.
- Voltage dividerTwo resistors in series split the input voltage.
- RC filter cut-offGet the cut-off frequency and time constant of a first-order RC filter, low-pass or high-pass.
- RL filter cut-offGet the cut-off frequency and time constant of a first-order RL filter.
- 555 timer (astable)Get the frequency, high and low times and duty cycle of a 555 timer running in astable mode.
- Op-amp gainGet the gain of an inverting or non-inverting op-amp amplifier, in times and in dB, and the output for a given input.
- Number base converterConvert between decimal, binary, hexadecimal and octal.
- Decibel converterConvert a power or voltage ratio to decibels, or decibels back to a ratio.
- SGPA calculatorEnter each subject’s credits and grade to get your semester grade point average.
- Digital logic toolsTruth tables, K-maps, simplifier and gates.