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.
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
Field along the axis
probe sweep, y = 0The 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 probe
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.
Understand
Experiment completion
Map all four sources, drag the probe to several distances, reverse the current, and pass the quiz.
Where to go next
- Magnetic Fields & Their Representation lesson
- Lorentz Force Lab — what a field does to a moving charge
- Magnetic Flux Lab — counting field lines through a loop