Skip to content
LumenaryAcademy
Start 45 min

Circuits and Ohm's law

Why electricity needs a complete loop, what resistance is, and the simple rule that links voltage, current and resistance.

Code tested · 3AI-draftedAwaiting review by an electrical engineer

Your guides: Chloe · The Physicist, Margaret · The Bench Engineer, Gideon · The Design Reviewer

MotivationH

Why does a torch need a switch?

Pick up a torch (a flashlight) and look inside. You will find batteries, a bulb or an LED, a switch, and some strips of metal joining them. Press the switch and the light comes on; press it again and it goes off. The batteries are still there and still full of energy. So what has the switch actually done?

The answer is the most important idea in this whole course: electricity only flows round a complete loop. The switch simply opens and closes a gap in the loop. In this lesson you will learn to see every electrical gadget as a loop, to draw it the way engineers do, and to predict exactly how much current will flow, using a rule discovered by a German schoolteacher nearly two hundred years ago.

IntuitionH

The closed loop

In What is electricity? you saw that a battery pushes charge out of one terminal and takes it back in at the other. That only works if there is a path of conductors leading all the way round, from one terminal back to the other.

Definition— circuit

A circuit is a closed loop of conductors through which charge can flow, with a source of energy (such as a battery) to push it. A circuit with a gap anywhere in its loop is an open circuit: no current flows anywhere in it. A switch is a device that opens or closes such a gap on purpose.

Engineers draw circuits with simple symbols instead of pictures, so that anyone, anywhere, can read them.

wirecell+batteryswitch(open)lampresistorresistorLED
Some common circuit symbols. Resistors are drawn in two styles: the zigzag, common in North America and Japan, and the rectangle of the international (IEC) standard, common in Europe, India and many other countries. On a cell, the longer line is the positive terminal.

Here is the torch, drawn as a circuit diagram:

+battery, 3 Vswitchbulb
A torch as a circuit diagram: a battery of two cells, a switch and a bulb in one loop. With the switch open, as drawn, the loop is broken and no current flows anywhere. Closing the switch completes the loop.

A break anywhere stops the current everywhere. It doesn't matter whether the gap is next to the battery, next to the bulb, or in a wire that has come loose: the whole loop stops at once.

Analogy, not a formal construction

Think of a bicycle chain. When you push the pedals, every link of the chain moves at the same time and at the same speed, all the way round. Cut the chain at any one link and nothing moves at all. The free electrons in a circuit behave like the links: they all move together, and one gap stops them all.

DefinitionsH

Resistance

Connect a 1.5 V battery to a long, thin wire and then to a short, thick one, and you will find different currents. Some paths let charge through more easily than others.

Definition— resistance

The resistance of a component tells you how much it opposes the flow of current. It is measured in ohms (symbol Ω, the Greek capital letter omega). A component has a resistance of 1 Ω if a voltage of 1 V across it drives a current of 1 A through it. Large resistances are written with prefixes: 1 kΩ (kilo-ohm) is 1000 Ω and 1 MΩ (megohm) is 1 000 000 Ω.

As free electrons drift through a wire, they keep bumping into the vibrating atoms of the metal, which slows them down and turns some of their energy into heat. Four things decide a wire's resistance:

  • The material. Copper and silver have very low resistance. Nichrome, the alloy in the heating coils of toasters and hair dryers, has about 65 times the resistance of copper wire of the same size, which is why it gets hot.
  • The length. A wire twice as long has twice the resistance: the electrons have twice as far to struggle.
  • The thickness. A wire with twice the cross-section has half the resistance: there is twice as much room to flow. That is why thick cables carry big currents.
  • The temperature. Most metals resist more when they are hot, because their atoms vibrate harder.

Engineers make components on purpose to have a chosen resistance. These are called resistors, and they are in almost every electronic device: little cylinders with coloured bands painted on them to show their value. You will choose and use some in Building and measuring circuits safely.

Analogy, not a formal construction

In the water picture from the last lesson, resistance is a narrow section of pipe. The narrower and longer it is, the harder the pump has to push to get the same amount of water through each second.

Worked examplesH

Ohm's law

In 1827 Georg Simon Ohm, a German schoolteacher of mathematics and physics, published careful measurements of the currents that different voltages drove through different wires. He found a beautifully simple pattern: for a metal wire kept at the same temperature, doubling the voltage doubles the current. The current is proportional to the voltage, and the resistance is what connects them.

Definition— Ohm's law

For a resistor, the voltage VV across it, the current II through it and its resistance RR are linked by

V=I×R,V = I \times R,

with VV in volts, II in amperes and RR in ohms. The same rule, rearranged, gives I=V/RI = V / R and R=V/IR = V / I.

Which form you need depends on which two quantities you know. A trick many students use: cover the one you want in the triangle below, and the other two show you what to do.

VIR×
The Ohm's law triangle. Cover the quantity you want: covering V leaves I next to R (multiply them); covering I leaves V over R (divide); covering R leaves V over I (divide).

Example— Finding a current

Somchai in Bangkok connects a 9 V battery across a 450 Ω resistor. What current flows?

I=VR=9 V450 Ω=0.02 A=20 mA.I = \frac{V}{R} = \frac{9\ \text{V}}{450\ \Omega} = 0.02\ \text{A} = 20\ \text{mA}.

Example— Finding a resistance

A small lantern bulb runs from a 6 V battery and draws 0.5 A when it is lit. What is its resistance while it is glowing?

R=VI=6 V0.5 A=12 Ω.R = \frac{V}{I} = \frac{6\ \text{V}}{0.5\ \text{A}} = 12\ \Omega.

Example— Finding a voltage, with prefixes

A current of 2 mA flows through a 4.7 kΩ resistor. What is the voltage across it? First turn the prefixes into plain units: 2 mA = 0.002 A and 4.7 kΩ = 4700 Ω. Then

V=I×R=0.002 A×4700 Ω=9.4 V.V = I \times R = 0.002\ \text{A} \times 4700\ \Omega = 9.4\ \text{V}.

A handy shortcut: milliamperes times kilo-ohms gives volts directly, because the "thousandth" and the "thousand" cancel. Here 2×4.7=9.42 \times 4.7 = 9.4.

ComputationC

A table of currents

Ohm's law is easy to put into a program. This one works out the current for every combination of four batteries and five resistors. Press Run.

python
# Ohm's law, I = V / R, for several batteries and resistors
batteries = [1.5, 3.0, 4.5, 9.0]          # volts
resistors = [10, 47, 100, 470, 1000]      # ohms

print("Current in milliamperes (mA)")
print()
print("resistor".rjust(9) + "".join(f"{v:>8} V" for v in batteries))
for r in resistors:
    row = f"{r:>7} Ω"
    for v in batteries:
        current_mA = v / r * 1000         # amperes -> milliamperes
        row += f"{current_mA:>10.1f}"
    print(row)
Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.
Worked examplesH

Bulbs in series and in parallel

Now connect two bulbs to one battery. There are two basic ways to do it.

ABABseries: one loopparallel: two branches
Two bulbs, A and B, connected to a battery in series (left: one loop, one after the other) and in parallel (right: each on its own branch).

To keep the numbers simple, imagine two identical bulbs that each have a resistance of 12 Ω when lit, and a 6 V battery. On its own, one bulb would draw 6÷12=0.56 \div 12 = 0.5 A.

In series, the bulbs sit one after the other in a single loop. The current has to get through both, so the total resistance is 12+12=24 Ω12 + 12 = 24\ \Omega, and the current is 6÷24=0.256 \div 24 = 0.25 A, half as much. The battery's 6 V is shared: 3 V across each bulb. Each bulb gets half the voltage and half the current, so both glow much more dimly than one bulb alone. And because there is only one loop, if one bulb breaks, both go out. Old strings of fairy lights were wired like this, which is why one dead bulb could make you test every bulb on the string.

In parallel, each bulb has its own branch connected straight across the battery. Each bulb gets the full 6 V, so each draws 0.5 A and glows as brightly as it would alone. If one breaks, the other stays lit, because its own loop is still complete. The price: the battery now supplies 0.5+0.5=10.5 + 0.5 = 1 A in total, so it runs down twice as fast. The sockets and lights in your home are all connected in parallel, which is why switching off the kitchen light doesn't switch off the television.

LEDs in series and parallel

LEDs follow the same pattern, with one twist: an LED needs a certain minimum voltage before it lights at all, about 2 V for a red LED and about 3 V for a blue or white one. Two red LEDs in series need about 4 V between them, so a 3 V supply cannot light them. An LED also needs a resistor in its loop to limit its current, or it will be damaged; you will work out how big that resistor should be in Building and measuring circuits safely.

ExplanationH

Short circuits, and why they are dangerous

A short circuit is a path with almost no resistance between the two terminals of a source, for example a bare wire, a key or a coin touching both ends of a battery at once. Ohm's law tells us what happens: with almost no resistance, the current becomes huge.

Even a battery has a little resistance of its own inside. Suppose an AA cell has an internal resistance of 0.2 Ω and the shorting wire adds 0.05 Ω. Then the current is about 1.5÷0.25=61.5 \div 0.25 = 6 A, three hundred times what an LED uses. All the battery's energy pours into heating the wire and the battery itself. The wire can become hot enough to burn fingers, and the battery can leak, swell or burst. With a rechargeable lithium battery or a car battery, which can deliver even larger currents, a short circuit can start a fire.

That is why:

  • you should never connect a wire straight from one terminal of a battery to the other;
  • loose batteries should not be carried in a pocket or bag with coins or keys, and old batteries taken for recycling should have their ends covered with tape;
  • the wiring in buildings is protected by fuses and circuit breakers, which cut the current off within a fraction of a second if it ever becomes dangerously large.
Further reading

How engineers do it

Professional engineers draw their circuit diagrams, called schematics, with symbols set out in international standards, so that a diagram drawn in Seoul can be built in São Paulo. Before building anything, they usually simulate it: a computer program works out every voltage and current from the diagram, using Ohm's law and a few more rules you will meet in Kirchhoff's laws.

The most famous circuit simulator is SPICE, first written at the University of California, Berkeley, in the early 1970s. Its descendants are still used every day to design chips and circuit boards. Here is our series-and-parallel example written for ngspice, a free, open-source SPICE. Each line names a part, the two points (called nodes) it connects, and its value; node 0 is the shared return wire, and lines starting with * are comments. The .control block at the end tells ngspice what to work out and print. (SPICE counts the current through a battery as negative when the battery is supplying power, hence the minus signs.)

spice
* Two 12-ohm bulbs on a 6 V battery: in series, and in parallel
* Series: battery V1, then bulb A, then bulb B, back to the battery
V1 s1 0 6
RA s1 s2 12
RB s2 0 12
* Parallel: battery V2, with bulb C and bulb D side by side across it
V2 p1 0 6
RC p1 0 12
RD p1 0 12
.control
op
let series_current = -i(V1)
let parallel_current = -i(V2)
echo "Series: voltage across bulb B, and the battery's current"
print v(s2) series_current
echo "Parallel: voltage across each bulb, and the battery's current"
print v(p1) parallel_current
.endc
.end

ngspice prints exactly what we worked out by hand (2.500000e-01 means 0.25):

text
Series: voltage across bulb B, and the battery's current
v(s2) = 3.000000e+00
series_current = 2.500000e-01
Parallel: voltage across each bulb, and the battery's current
v(p1) = 6.000000e+00
parallel_current = 1.000000e+00

Ohm himself had a harder time. When he published his law in 1827, it was coolly received in Germany, and he struggled for years to find a university post. Fourteen years later, Britain's Royal Society gave him its highest honour, the Copley Medal, and today his name is on every resistor in the world.

Common misconceptionsH

Common misconceptions

Misconception

"The bulb uses up some of the current, so less flows back to the battery." In a single loop, the current is the same everywhere. The bulb takes energy from the charge, not the charge itself.

Misconception

"A battery always gives out the same current." A battery gives a fairly steady voltage. The current depends on what you connect: a large resistance draws a small current, a small resistance a large one, and a short circuit a dangerously large one.

Misconception

"More resistance means more current, because the resistor works harder." It's the other way round: for the same voltage, more resistance means less current. Resistance opposes the flow.

Misconception

"A switch can go anywhere except right next to the battery." A switch works anywhere in a single loop, because a gap anywhere stops the current everywhere.

Exercises

Exercises

Most of these exercises use Ohm's law. Write down which two quantities you know before you start, and convert milli- and kilo- prefixes to plain units (or use the mA × kΩ = V shortcut).

1. Circuits and Ohm's law

Warm-upHuman

Leila builds a circuit with a battery, a switch and a bulb. The switch is closed and the battery is new, but the bulb does not light. She notices that one wire has come loose from the bulb. Why does the bulb stay dark?

Choose one

2. Circuits and Ohm's law

Warm-upHuman

A 9 V battery is connected across a 300 Ω resistor. What current flows, in milliamperes (mA)?

3. Circuits and Ohm's law

CoreHuman

A bicycle lamp runs from a 12 V battery and draws 0.5 A when lit. What is its resistance, in ohms, while it is lit?

4. Circuits and Ohm's law

CoreHuman

A current of 3 mA flows through a 2 kΩ resistor. What is the voltage across the resistor, in volts?

5. Circuits and Ohm's law

CoreHuman

You have a copper wire. Which of these changes would increase its resistance? Choose all that apply.

Choose all that apply

6. Circuits and Ohm's law

CoreHuman

Two identical bulbs are connected to a battery. When you unscrew bulb A, bulb B stays lit, just as bright as before. How must the bulbs be connected?

Choose one

7. Circuits and Ohm's law

StretchHuman

Three identical bulbs are connected in parallel to a battery. Each bulb draws 0.3 A. What total current, in milliamperes, does the battery supply?

8. Circuits and Ohm's law

CoreComputational

Nadia connects a 4.5 V battery to a 150 Ω resistor. Replace each ... with a calculation:

  • current_A: the current in amperes, using Ohm's law with the variables voltage and resistance;
  • current_mA: the same current in milliamperes.

Press Run to check.

Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.

Further reading and resources