R = (Vs − n·Vf) / I for LEDs in series. 5 V, 2 V, 20 mA → 150 Ω. Nearest E24 shown. Not a constant-current driver.
A single LED on a voltage rail needs a resistor so the current is set by Ohm’s law, not by the LED’s steep I–V curve. The drop across the resistor is the leftover voltage after the LED (or the string) takes its forward voltage:
R = (Vs − n × Vf) / I
I is in amperes. If you type milliamps, the page divides by 1000. Dissipation in the resistor is P = (Vs − n·Vf) × I, shown next to the ohms.
Worked example: 5 V, one LED, Vf = 2 V, 20 mA → (5 − 2) / 0.020 = 150 Ω, 60 mW. E24 already lists 150 Ω, so the “nearest E24” line matches. A ¼ W part is plenty.
If n × Vf is already above Vs, no series resistor will light the string. Raise the rail or reduce n. The page says so instead of inventing a negative resistance.
Constant-current LED drivers, PWM dimmers, RGB strips with their own ICs, and AC mains droppers. It also does not pick a colour code for you — send the ohms to ohms → colour when you need bands. Forward voltage depends on current and temperature; treat the result as a starting value and confirm with a meter if the LED is expensive or the rail is stiff.
Not with this formula. Vf mismatch dumps current into the lower-Vf diode. Give each LED its own R, or put them in series on a high enough rail.
Indicator LEDs are not 0.1% parts. E24 (or E12) is what you actually buy for a limiter. You can still open the E-series page if you need another grid.
Only if 3 × Vf is well under 12 V. At Vf ≈ 3 V, leftover is 3 V, R = 150 Ω again. If Vf is 3.2 V, leftover shrinks — type the datasheet number, do not reuse 150 Ω by habit.
Colour → ohms · Ohms → colour · SMD marks · LED limiter · Ohm’s law · All tools