The force on a charge
F = q(E + v × B). The first part depends only on where the charge is. The second depends on how it moves. Together they are the complete electromagnetic force.
Charge, Fields & Light Lab · Magnetism
A wire carries a steady current and has no net charge. A charge sitting next to it feels nothing at all. Set the same charge moving, and a force appears.Set the speed to zero, then raise it and turn the direction.
Computed from the modelThe wire runs left to right; dots and crosses show the magnetic field pointing out of or into the screen. The dotted line is where the charge would go next. Force arrows share one scale.
Magnetic force on the charge
Start here: compare the charge at rest with the charge in motion
In amperes. Positive is to the right.
In millions of metres per second.
0° is along the wire to the right, 90° straight away from it.
In nanocoulombs per metre. Zero for an ordinary wire. A charged wire adds an electric force, which acts even on a charge at rest.
Speed is the switch. The magnetic part of the force is q v × B: no motion, no force. It is always at right angles to the motion, so it bends the path and never changes the speed. Only the electric part can do work on the charge.
One force, two parts
How the force divides into an electric and a magnetic part depends on who is watching.
F = q(E + v × B). The first part depends only on where the charge is. The second depends on how it moves. Together they are the complete electromagnetic force.
Because the magnetic force is always sideways to the motion, it cannot speed a charge up or slow it down. In the experiment the predicted path curves, and the speed at the end is the same as at the start.
For a charge moving along the wire, change to the frame where the charge is at rest. There it cannot feel a magnetic force. But in that frame the wire is no longer neutral, and the charge is pushed by an ordinary electric force of just the right size.
The reasoning, in the open
At distance r from a long straight wire with current I and charge per length λ:
B = μ₀ I / (2π r), E = λ / (2π ε₀ r), F = q (E + v × B)
The path is followed with the Boris method, which keeps the speed exactly constant under a purely magnetic force.
Frame check for motion along the wire at speed v: in the charge's frame the wire has λ′ = γ(λ − vI/c²). The electric force there is γ times the total force in the laboratory, as relativity requires.
An infinitely long, thin, straight wire with a steady current, in vacuum. The moving charge is a test charge: it does not disturb the wire, and it does not radiate. Motion is in the plane of the picture and is treated without relativity, which is good at the speeds offered (up to 7 % of the speed of light). The frame comparison is exact for motion along the wire. Magnetic forces can do no work on a point charge; the work done by motors comes from electric forces inside the conductors.
Use Tab to reach each control, arrow keys for sliders, and Enter or Space for buttons. Nothing on this page moves by itself. Results are written as text. The page runs entirely in your browser with no accounts, trackers or external code. See the privacy notice.