← All games

Ohm’s law in three minutes – and how to light an LED safely

An article behind the game Circuits · about 5 minutes

One short formula explains most of what happens in a simple circuit: why a lamp lights up, why an LED needs a resistor and why a short circuit is dangerous. It is called Ohm’s law, after the German physicist Georg Simon Ohm, who published it in 1827. Here is everything you need to use it – and to solve level 4 of our game Circuits on the first try.

Three quantities

A useful picture is water in a pipe: voltage is the pressure, current is how much water flows, and resistance is how narrow the pipe is. More pressure means more flow; a narrower pipe means less.

The formula

For a resistor, the three quantities are tied together like this:

U = I × R

The same rule can be turned around to find any one of them: I = U ÷ R (current) or R = U ÷ I (resistance). A 9 V battery across a 1000 Ω resistor drives a current of 9 ÷ 1000 = 0.009 A, which is 9 mA. Double the voltage and the current doubles; double the resistance and the current halves.

Ohm’s law holds very well for resistors and wires. Some parts, such as LEDs and transistors, do not follow it – their current is not proportional to the voltage – but the law still tells you what happens in the resistor next to them, and that is usually what you need.

Why an LED needs a resistor

An LED is a diode that gives off light. It lets current through in one direction only, and it needs a certain voltage before it starts to conduct: about 2 V for a red LED, about 3 V for blue and white ones. Above that voltage the current rises very quickly. A typical small LED is rated for about 20 mA of continuous current; much more than that overheats it, and it soon fails.

Connected straight to a 9 V battery, an LED would take far too much current – only the battery’s small internal resistance would limit it. So we add a resistor in series. A red LED takes about 2 V, and the resistor takes the rest: 9 V − 2 V = 7 V. Now Ohm’s law tells us the resistor we need. For a comfortable 15 mA:

R = 7 V ÷ 0.015 A ≈ 467 Ω

Resistors come in standard values, and the nearest one is 470 Ω. With it the LED gets about 14.9 mA – bright and safe. This is exactly the calculation behind level 4 of Circuits, where you choose between 100 Ω, 220 Ω, 470 Ω, 1 kΩ and 10 kΩ:

(The game also takes the LED’s own small resistance and the battery’s internal resistance into account, so its readings differ slightly from these round numbers.)

Power: why parts get warm

Every resistor turns electrical energy into heat. The power, in watts (W), is P = U × I. In our LED circuit the resistor takes 7 V at 0.015 A, which is about 0.1 W – a small resistor handles that easily. Combine it with Ohm’s law and you get two handy forms: P = I² × R and P = U² ÷ R.

The same formula explains why two lamps in series are so dim. Each gets half the voltage, so the current through them also halves, and each lamp receives only a quarter of its usual power (assuming each lamp’s resistance stays the same – real filament bulbs, running cooler, get a little more). In parallel, each lamp gets the full voltage and full brightness – level 3 of the game.

Short circuit

A short circuit is what happens when the resistance between the two terminals of a battery drops to almost zero – for example when a wire connects + directly to −. Ohm’s law shows the danger at once: with R close to zero, I = U ÷ R becomes huge. Only the battery’s internal resistance limits the current, the wire and the battery heat up, and with large batteries this can cause burns or fire. Never connect the terminals of a battery directly, and never experiment with mains electricity.

Try it

The quickest way to understand Ohm’s law is to watch it work. In Circuits you build small circuits on a sketched breadboard; the game calculates real currents and voltages and shows them as moving dots, glowing lamps and meter readings. Start with level 1 and see how far you get – the rules are on the How to play page.

→ All articles