Ohm’s Law and LED Resistors Explained for Beginners
How voltage, current and resistance relate, and how to pick the right resistor so an LED does not burn out.
Every beginner burns out an LED at least once. The cause is almost always the same: no resistor, or the wrong one. Ohm's law explains why.
The law in one line
Voltage equals current times resistance (V = I × R). If you know any two, you can find the third. The Ohm's law calculator handles all three combinations, and also gives you the power in watts.
Why an LED needs a resistor
An LED does not limit its own current. Connect it straight to a battery and it will draw far more than it can handle, then fail. A resistor in series limits the current to a safe value, typically 10 to 20 milliamps.
Picking the value
Subtract the LED's forward voltage from the supply voltage, then divide by the current you want. A red LED (about 2 V) on a 5 V supply at 15 mA needs (5 − 2) ÷ 0.015 = 200 ohms. Round up to the next standard value, 220 ohms. The LED resistor calculator does this and also tells you the resistor's power rating.
Series and parallel
If you do not have the exact resistor, combine two. In series, resistances add. In parallel, the total is lower than the smallest one. The series calculator and the parallel calculator help you get the value you need from the parts you have.
Dividing a voltage
Two resistors in series make a voltage divider, handy for reading a sensor with a microcontroller. The voltage divider calculator gives the output for any pair.
Always check the power rating. A resistor that gets hot is telling you to use a bigger one.