A steady current I creates a magnetic field with induction B around a conductor.
The direction of the field lines follows the right-hand (screw) rule, and the magnitude follows the Biot–Savart law:
for an infinite wire B = μ₀I / (2πr), inside a long solenoid B = μ₀nI.
The scale is real: one grid division of the scene is 5 cm, the current goes up to 10 A. For a straight wire the formula is exact; for a loop and a solenoid the field is calculated from the Biot–Savart law (exactly, via elliptic integrals).
Three conductors — a straight wire, a circular loop and a solenoid — and one field around them. Turn the current up, reverse it, drag the yellow dot with a mouse or a finger and watch the compass needle turn along the B lines while the readout is recalculated from exact formulas. Not sure about the hand rule? Switch on “Check yourself” or “Mystery current”.
Near any wire carrying a current a compass needle turns — Ørsted noticed this in 1820. No magnet is needed: moving charges create the magnetic field themselves. No current — no field; more current — a stronger field.
Field lines are closed. Around a straight wire they are rings: point the thumb of your right hand along the current and the curled fingers show how the lines curl (a screw is driven in the same way). For a loop it is the other way round: the fingers follow the current in the turns and the thumb shows B inside. Reverse the current and everything turns around.
Near a straight wire the field falls as 1/r: twice as far, half as strong. A loop gathers the field at its centre, and in a solenoid the turns add their fields, so inside there is an almost uniform field B ≈ μ₀nI — like a bar magnet. Outside the solenoid the field is weak.
An infinite wire: B falls off as 1/r and wraps into rings around the current; μ₀ = 4π·10⁻⁷ H/m
The field is strongest at the centre of the loop and falls off along the axis; off the axis it comes from the Biot–Savart law
Almost uniform inside, weak outside — the lines close outside through the ends
Every element of the wire contributes; the direction follows the cross product dl × r
The circulation of B around a closed loop equals μ₀I: the directions of the field and the current are tied by the right-hand rule
A current-carrying wire is the simplest source of a magnetic field. The electrons in it move in an ordered way, and that ordered motion is the current. Around a straight wire the induction lines B close into rings; inside a long solenoid they are almost straight and equally dense, while outside the field is many times weaker: the lines leave one end, sweep around the coil and enter the other — just like a permanent magnet. A magnetic field cannot be touched, so the simulator lets you “see” it in four ways at once: lights running along the B lines (they go the way the field points), “iron filings” lined up along the lines, a glowing map of the field strength, and the compass needle at the yellow dot.
The magnitude of the induction follows from the Biot–Savart law: the field at a point is the sum of the contributions of all small elements of the wire. For an infinite straight wire it gives the exact formula B = μ₀I / (2πr): the field is inversely proportional to the distance — move twice as close and it is twice as strong. At the centre of a circular loop of radius R the induction is B = μ₀I / (2R), and on the loop axis at a distance z from the centre it is B = μ₀IR² / (2(R² + z²)³ᐟ²). Inside a long solenoid with n = N / L turns per unit length the field is uniform and equals B = μ₀nI, so inside it behaves like a permanent magnet. The simulator does not approximate: it computes the field of the loop and the solenoid exactly (through complete elliptic integrals), so subtleties that school formulas miss are visible: in a short solenoid the centre is weaker than the “ideal” μ₀nI (by 9 % in our case), and outside the loop and the coil the lines come back, so B points the opposite way.
The direction is explained by the screw rule: drive a screw along the current and its handle turns the way the B lines go. For a straight wire this is the familiar right-hand rule: thumb along the current, bent fingers show how the field rings wrap around. For a loop and a solenoid it is the other way round: the fingers follow the current in the turns and the thumb shows B inside. Tick “Screw and right-hand rules” and watch the green arrow, the orange arc and the screw: when you reverse the current everything turns around together with the field.
Drag the yellow dot — the compass needle there turns along B, a glowing thread shows the field line through that point, and the readout and the “Measurements” panel recalculate the induction with a µT or mT prefix and compare it with the Earth’s magnetic field. The scale under the scene shows where your field stands against a fridge magnet and an MRI scanner. “Check yourself” hides the lines and the needle and asks for the direction of B — including a trick question at a point outside the coil. “Mystery current” hides the current: measure B and find I from the formula — this is how a physicist measures a current by its magnetic field.
First come simulators and problems from this very chapter, then closely related topics of the section.
Same topic
Same topic
Same topic
Same topic
Same topic
Electricity · Electrostatics