Skip to content
PhysicsPhy
Start learning

Physics · Lesson 10.1

Magnetic Fields & Their Representation

Field lines from compasses to iron filings: B in tesla, the right-hand rules for wires and loops, and Earth’s field.

Core syllabus1 linked experiment
01

Learning objectives

By the end of this lesson, you should be able to:

  • Define magnetic flux density B and the tesla
  • Draw field patterns for a bar magnet, straight wire, loop and solenoid
  • Apply the right-hand rules for current-made fields
  • Compute B = μ₀I/2πr near a long straight wire
02

Lesson

In April 1820, preparing a lecture demonstration in Copenhagen, Hans Christian Oersted closed a switch and a compass needle lying beside the wire twitched — staying deflected while the current flowed. Magnetism, until then the private property of lodestones and the Earth itself, turned out to be a side effect of moving electric charge. The same discovery now hides in every earphone, motor and MRI scanner: wherever charge moves, it fills the space around it with a magnetic field that pushes on any other moving charge placed in it.

This topic builds the map language for that invisible influence: what the quantity B — magnetic flux density, measured in tesla — means, how to draw the field patterns of a bar magnet, straight wire, loop and solenoid, and how two right-hand rules predict the direction of a current-made field with no apparatus at all. Two formulas join the toolkit: the field of a long straight wire, B = μ₀I/2πr, and the field at the centre of a solenoid, B = μ₀nI. The Magnetic Field Lab below surrounds all four arrangements with compass needles and iron filings you can scatter yourself.

The field idea and the tesla

A magnetic field is a region of space in which a moving charge, or a current-carrying wire, feels a force that is not electric in origin. Like the electric field E, it is a vector at every point, written B and measured in tesla (T): one tesla is the field that pushes on a one-metre wire carrying one ampere perpendicular to it with a force of one newton, so 1 T = 1 N/(A·m). The name “flux density” anticipates Topic 10.5 — B measures how tightly field lines are packed.

Field lines are the map symbols: the direction of the line gives the direction of B, and their closeness indicates the strength — crowded lines mean a strong field. Two rules survive every test. Field lines never cross, because a compass needle cannot point two ways at once. And they always close on themselves, running north-to-south outside a magnet but continuing south-to-north inside it — cut a magnet in half and you get two smaller complete magnets, never an isolated pole. For scale: the Earth’s surface field is about 5 × 10−5 T, a refrigerator magnet some 5 × 10−3 T, an MRI scanner 1.5–3 T, and a neutron star’s field around 108 T.

Currents make fields: the right-hand grip rule

Oersted’s compass showed that a current surrounds itself with circular field lines centred on the wire, lying in planes perpendicular to it. The sense of the circles is given by the right-hand grip rule: grip the wire with your right hand, thumb along the conventional current, and your curled fingers give the direction of the circles. Reverse the current and every compass flips — the sense of the pattern, not its shape, depends on the current’s direction.

The strength of the circular field follows a clean law. For a long straight wire, B = μ₀I / (2πr), where I is the current in amperes, r the perpendicular distance in metres, and μ₀ = 4π × 10−7 T·m/A the permeability of free space. Since μ₀/2π = 2 × 10−7, a 10 A current at 5 cm gives B = (2 × 10−7 × 10)/0.05 = 4 × 10−5 T — comparable to the Earth’s own field, which is exactly why Oersted needed his wire placed right over the needle. The field falls off as 1/r: twice as far from the wire, half the field.

The solenoid: stacking loops into a dial-up magnet

Bend the wire into a loop and the circular fields of every element cooperate, reinforcing through the centre and partly cancelling outside. Stack many loops into a helix — a solenoid — and the interior field becomes strong and nearly uniform while the exterior resembles a bar magnet’s. A second right-hand rule gives the polarity: curl the fingers of your right hand around the coil in the sense of the current, and the thumb points along the interior field toward the north-pole end.

At the centre of a long solenoid the field is B = μ₀nI, where n is the number of turns per metre (not the total) and I the current. A coil wound with n = 1000 turns/m carrying 2 A produces B = 4π × 10−7 × 1000 × 2 ≈ 2.51 × 10−3 T — a few times a fridge magnet, reversible and switchable at will. That controllability is why electromagnets, not permanent magnets, run relays, cranes, loudspeakers and MRI machines. Slip a core of soft iron inside (Topic 10.9) and the field is amplified hundreds of times over.

Reading the patterns — and knowing their limits

Sprinkle iron filings on a card held over a magnet and each filing, magnetised by induction, chains end to end with its neighbours along the local field — the filings draw the map for you. A compass does the same job one point at a time, which is how the Earth’s field was charted centuries before its cause was guessed. Comparing the patterns of a bar magnet and a solenoid shows why the two are interchangeable: outside the coil they are indistinguishable.

Treat the two formulas as idealisations. B = μ₀I/2πr describes a wire that is long compared with the distance r and far from its return path; near bends, junctions or batteries the circles distort. B = μ₀nI holds at the centre of a solenoid whose length greatly exceeds its diameter; near the ends the field falls to roughly half its central value and the outside field fringes out in loops. Real geometries sit somewhere between the textbook patterns — the Magnetic Field Lab below lets you probe the ideals and their fringing edges.

03

Worked example

(a) A long straight wire carries a current of 10 A. Find the magnetic flux density at a point 5.0 cm perpendicular from the wire, and again at 10 cm. (b) A long solenoid of 1000 turns per metre carries 2.0 A. Find B at its centre, and compare it with the wire value at 5 cm.

Step 1 — given (a): I = 10 A, r₁ = 0.050 m, r₂ = 0.100 m, μ₀ = 4π × 10−7 T·m/A, so μ₀/2π = 2 × 10−7 T·m/A.

Step 2 — principle: field of a long straight wire, B = μ₀I/(2πr).

Step 3 — substitution: B₁ = (2 × 10−7 × 10)/0.050 = 4.0 × 10−5 T; B₂ = (2 × 10−7 × 10)/0.100 = 2.0 × 10−5 T.

Step 4 — given (b): n = 1000 m−1, I = 2.0 A; principle: B = μ₀nI.

Step 5 — substitution: B = 4π × 10−7 × 1000 × 2.0 = 2.51 × 10−3 T.

Answer: 4.0 × 10−5 T at 5 cm (rival to Earth’s ~5 × 10−5 T) and 2.0 × 10−5 T at 10 cm; the solenoid delivers 2.51 × 10−3 T, about 63 times the wire’s field at 5 cm (2.51 × 10−3 ÷ 4.0 × 10−5 ≈ 63). Reasonableness: doubling the distance halved the wire’s field, exactly as the 1/r law demands; stacking a thousand turns per metre buys the solenoid its decisive advantage.

04

Equations

Long wireB = μ₀ I / (2π r), μ₀ = 4π×10⁻⁷ T·m/A
Solenoid centreB = μ₀ n I (n = turns per metre)
05

Key points

  • B is magnetic flux density, unit tesla: 1 T = 1 N/(A·m); field-line density indicates strength.
  • Magnetic field lines are closed loops with no start or end — there are no magnetic monopoles; they never cross, and inside a magnet they run S to N.
  • Long straight wire: B = μ₀I/2πr with μ₀ = 4π × 10⁻⁷ T·m/A; the grip rule gives the sense of the circular field.
  • Solenoid centre: B = μ₀nI with n = turns per metre; curl fingers with the current and the thumb points to the north pole.
  • A 10 A wire at 5 cm gives 4 × 10⁻⁵ T — comparable to Earth’s ~5 × 10⁻⁵ T; a solenoid of n = 1000/m at 2 A gives 2.51 × 10⁻³ T.
  • Both formulas are idealisations: long wire measured far from ends and returns; long solenoid measured at its centre, not its ends.
06

Common misconceptions

Common mistake

Magnetic field lines start on the north pole and end on the south pole, like electric field lines on charges.

Correct understanding

They are closed loops. Outside a magnet they run N to S, but they continue through the magnet from S back to N. There is no magnetic pole for a line to begin or end on — break a magnet in half and you create two new complete magnets.

Common mistake

Iron filings show the field lines, so the field only exists along those lines.

Correct understanding

The filings are a sampling device: each chain marks the local direction, but the field is continuous, existing at every point with a definite strength and direction whether or not a filing sits there.

Common mistake

The field inside a solenoid is strongest at the ends, where the lines bunch together on their way out.

Correct understanding

The interior field is strongest and most uniform at the centre; at the ends it drops to about half the central value. The crowding of the external lines reflects flux leaking out of the coil, not a stronger field inside.

07

Check your understanding

1. A long vertical wire carries a current directed upward. Looking down on the wire from directly above, the magnetic field lines circle it

2. At 5.0 cm from a long straight wire the field is 4.0 × 10⁻⁵ T. At 10 cm from the same wire it is

3. In a solenoid, both the current and the turns per metre are doubled. The field at the centre

08

Frequently asked questions

Why does a compass needle line up with the field instead of pointing at the wire or magnet?

A compass needle is itself a small magnet, and the field exerts a torque — not a straight push — on it. The only orientation in which that twisting vanishes is with the needle along the local field line, so the needle swings until it points that way.

If a 10 A wire only makes a field as big as Earth’s, how do electromagnets ever get strong?

Stack the contributions. One wire gives ~10⁻⁵ T at hand distance, but a solenoid adds the effect of every turn (B = μ₀nI), and inserting an iron core multiplies the result by hundreds (Topic 10.9). MRI scanners reach 1.5–3 T with superconducting windings carrying hundreds of amperes.

Is the Earth just a giant bar magnet buried inside?

The field pattern outside the Earth does resemble a bar magnet’s, but the interior cannot be a permanent magnet: it is far too hot — well past iron’s Curie temperature (Topic 10.9). The field is generated dynamically by circulating currents of molten iron in the outer core, a self-sustaining dynamo that slowly drifts and occasionally reverses.

NERDLYY · FEEDBACK

Help shape Nerdlyy

Your feedback goes directly to the team. We read every submission.

No reply needed — you can send feedback without sharing contact details.