Home/Laboratories/Magnetic Field Lab
Interactive experiment — complete Chapter 10 · Electromagnetism

Magnetic Field Lab

Scatter compasses around wires, loops, solenoids and magnets — then read B = μ₀I/2πr off the probe.

Learn the physics first

A magnetic field is a region of space where a compass needle feels a twist. The needle does something wonderfully honest: its coral (north-seeking) end points along the local field vector B, whose strength is measured in tesla (T). Scatter enough compasses and the needles stitch together the field lines that map the field — the same picture iron filings show. Lines leave a magnet's N pole (coral) and enter the S pole (blue); they never cross, and their density signals the field's strength. Currents also make fields: a long straight wire carries B = μ₀I/2πr, which circulates around the wire in the direction your right-hand fingers curl when your thumb points along the current.

Bend the wire into a loop and every element of current contributes a bit of field along the axis, adding to B = μ₀I/2R at the centre. Stack many loops into a solenoid and the contributions reinforce in the middle while cancelling outside: the field at the centre becomes B = μ₀nI, where n is the number of turns per metre, and it is nearly uniform along the axis. This is why solenoids are the workhorse source of steady fields in the laboratory. A bar magnet makes a similar dipole pattern without any current at all — its field is sketched here with the pole model, a standard simplification that treats the ends as magnetic charges.

Long straight wire (r = distance from the wire)B = μ₀I / 2πr
Centre of a circular loop (R = radius)B = μ₀I / 2R
Centre of a long solenoid (n = turns per metre)B = μ₀nI
Permeability of free spaceμ₀ = 4π × 10⁻⁷ T·m/A

Model assumptions. The wire is infinitely long and thin; the loop and solenoid fields are exact Biot–Savart superpositions of current elements (the solenoid is summed over stacked loops, so its end effects are real); the bar magnet uses the Coulomb pole model — a sketching tool, not a fundamental law. Compass needles are drawn responding instantly in direction only; they do not model the needle's inertia. Fields of realistic lab currents are tens of microtesla, similar to Earth's field.

Experiment

Ready

Field along the axis

probe sweep, y = 0

The graph samples |B| along the horizontal axis through the source. Drag the probe and watch its marker move along the curve — the wire shows the 1/r fall-off, the solenoid a flat plateau inside the coil.

Source

Field source

Field probe

|B| at probe
—
Direction of B
—
Probe distance r
—
Formula check
—
Centre value
—

Drag the probe (or click anywhere on the canvas) to move it. Coral compass ends point along B; mint arrow = B at the probe; coral dot/cross = current out of/into the page.

Try this. With the wire at I = 10 A, drag the probe from r = 5 cm to r = 10 cm: B halves from 4×10⁻⁵ T to 2×10⁻⁵ T (1/r). Then switch to the solenoid, set n = 1000 turns/m and I = 2 A: the centre reads B = μ₀nI = 2.51×10⁻³ T, a thousand times bigger — and nearly the same at every point inside the coil.

Predict before you check

Select the straight wire with I = 10 A and park the probe at r = 5 cm (the default position). Work out B = μ₀I/2πr and predict the reading.

µT

Understand

Experiment completion

Map all four sources, drag the probe to several distances, reverse the current, and pass the quiz.

Where to go next