Shop by category
Shop all componentsOhm’s law & basics
R = (Vs − n × Vf) ÷ IP = I² × RA red LED (2.0 V) at 20 mA on 5 V: R = (5 − 2) ÷ 0.02 = 150 Ω. Power = 0.02² × 150 = 60 mW, so a ¼ W resistor is fine.
An LED needs something to limit its current, or it draws as much as the supply can give and burns out. The usual answer is one resistor in series. The resistor drops the voltage left over after the LED’s forward voltage.
Most 5 mm indicator LEDs are happy at 10–20 mA, and many modern LEDs are bright enough at 2–5 mA, which saves battery. When the result falls between standard values, this calculator rounds up so the current stays at or below your target. For high-power LEDs (1 W and up), use a constant-current driver instead of a resistor.
Only in series. LEDs in parallel on one resistor share current unevenly, so give each parallel LED its own resistor.
For a red LED at 10 mA: (3.3 − 2.0) ÷ 0.01 = 130 Ω, use 150 Ω. Blue and white LEDs (3.0 V+) barely light on 3.3 V.
The LED draws far more current than it is rated for and burns out, sometimes within seconds. Always limit the current with a resistor or a constant-current driver.
R = (Vs − n × Vf) ÷ I; P = I² × R. Here Vs is supply voltage, Vf is LED forward voltage, n is LEDs in series and I is LED current in amps.
A red LED (2.0 V) at 20 mA on 5 V: R = (5 − 2) ÷ 0.02 = 150 Ω. Power = 0.02² × 150 = 60 mW, so a ¼ W resistor is fine.
Geekobot builds that use it include Alternator charging check light, Darlington touch switch, Letterbox flap notifier and Battery gauge with an OLED. Each has the full parts list, wiring and code.
Results are estimates for design and learning. Check critical designs against the component datasheet. Made by the Geekobot Learning Team. How we write our calculators