Charged Particle in a Magnetic Field

A magnetic field never speeds a charge up or slows it down — the force F = q·v×B pushes only sideways, so it bends the path into circles and helices. Launch a charge into a uniform field and watch it trace a perfect cyclotron circle whose gyroradius you can read off; add an electric field for the classic E×B drift. Then flip to dipole mode — an approximate slice of Earth's magnetic field — and see solar-wind particles spiral along the field lines and funnel to the poles, the physics behind the aurora. It's the same force-driven trajectory idea as our gravity simulator, with magnetism in place of gravity.

You are in the Physics lab.

Blue = velocity · Red = magnetic force F = qv×B (perpendicular). Fire particles, switch field mode, flip the charge sign.
Gyroradius r = mv/qB150 px
Cyclotron period T6.28
Chargepositive (+)
Field modeUniform field
Drift / mirrorno drift (E = 0)
r = m·v / (q·B) — the gyroradius falls as the field strengthens; the dot marks your current setting.
A magnetic field does no work — it can only steer. Because the magnetic force is always perpendicular to the velocity, it never changes a particle's speed; it just bends the trajectory into a circle of radius r = m·v/(|q|·B), or a helix when there is motion along the field. That single fact is why the field can't heat the solar wind but can cage it: Earth's dipole traps charged particles, bounces them between the poles by the magnetic-mirror effect, and funnels them into the upper atmosphere near the poles to paint the aurora.

Reading the simulation

What the arrows, the readouts and the gyroradius–field graph are telling you.

1

The force is perpendicular to the velocity

On the circling particle the blue arrow is the velocity v and the red arrow is the magnetic force F = qv×B. They sit at a right angle to each other the whole way round: the force never speeds the particle up or slows it down, it only keeps swinging the velocity sideways. A constant-size push always at 90° to the motion is exactly what bends a straight path into a closed circle — the field marker ⊙ shows B pointing out of the page.

2

The gyroradius grows with speed, shrinks with B

The dashed circle drawn through the particle is its cyclotron orbit, and the labeled radius line is the gyroradius r = m·v/(|q|·B). Slide the speed up and the circle widens; turn up the field strength B and it tightens. The companion graph plots that 1/B curve with your operating point marked, and the readouts confirm it — the cyclotron period T = 2π/B depends only on the field, not the speed, so a faster particle simply traces a bigger circle in the same time.

3

Add E for drift, or switch to the dipole aurora

In uniform mode, turning up the electric field E shears the circle into a cycloid whose guiding center drifts sideways at speed E/B — the same for either charge sign. Switch to dipole mode and the electric slider hides: particles now spiral along the curved field lines and, where the field crowds together near a pole, the magnetic mirror reflects them so they bounce pole-to-pole and funnel inward — the mechanism that lights the aurora.

How It Works

One force law — F = q(E + v×B) — pushed forward with a stable Boris integrator.

1

The Lorentz force

Every frame the particle feels F = q(E + v×B). The electric term acts along E; the magnetic term q·v×B acts at right angles to the velocity, so it turns the path without adding energy. We advance it with a Boris pusher, the standard scheme that rotates the velocity by the exact gyro-angle each step, so the speed |v| is conserved and circles stay closed instead of spiralling out.

2

Cyclotron circles and E×B drift

In uniform-field mode B points out of the screen (the ⊙ markers). A charge loops in a circle whose gyroradius r = m·v/(|q|·B) matches the readout and the drawn radius line, turning the other way when you flip the charge sign. The period T = 2π·m/(|q|·B) is set by the field alone. Turn up the electric field and the loop shears into a cycloid, drifting at velocity E/B perpendicular to both fields.

3

The dipole and the aurora

Switch to dipole mode for an approximate slice of a planet's magnetic field. Particles spiral along the curved field lines and, as the field strengthens toward a pole, the magnetic mirror reflects them — so they bounce between the poles and funnel inward, lighting an aurora glow just as the solar wind does at Earth. For the full picture, with a whole stream of solar wind, the radiation belts and the real aurora colours, open the Aurora Simulator.

What is the Lorentz force?
The Lorentz force is the force a charged particle feels in electric and magnetic fields: F = q(E + v×B). The electric part qE pushes along the electric field, speeding the particle up or slowing it down. The magnetic part q·v×B always acts at right angles to the particle's velocity, so it turns the path without changing the speed. Together they govern every trajectory in this simulator.
Why does a charged particle move in a circle in a magnetic field, and what is the gyroradius?
Because the magnetic force q·v×B is always perpendicular to the velocity, it does no work and cannot change the particle's speed — it only bends the path. A constant-magnitude force at right angles to a constant-speed motion is exactly what produces a circle. The radius of that circle is the gyroradius r = m·v/(|q|·B): faster particles trace wider circles, stronger fields tighter ones, and the sense of rotation flips when the charge changes sign. The cyclotron period T = 2π·m/(|q|·B) is independent of the speed.
What is E×B drift?
When a uniform electric field is added at right angles to the magnetic field, the particle no longer traces a closed circle. Its guiding centre drifts sideways at a steady velocity of magnitude E/B, perpendicular to both fields, so the path becomes a cycloid. Remarkably the drift velocity is the same for positive and negative charges, because reversing the charge reverses both the electric push and the sense of gyration, and the two cancel.
How does this cause the aurora, and what is the magnetic mirror?
Earth's magnetic field is shaped roughly like a dipole, with field lines that crowd closer together toward the poles. A charged particle from the solar wind spirals along a field line; as it moves into the stronger field near a pole the spiral tightens and its forward motion is reflected — the magnetic-mirror effect — so it bounces back and forth between the poles. Where these trapped particles finally spill into the upper atmosphere near the poles they collide with air molecules and make them glow, which is the aurora. See the live aurora forecast for tonight's real conditions.

Teaching or blogging about physics? You can embed this on your own site free — one line of code, no sign-up.

Classroom activity

A ready-to-assign lab using the simulation above. Free to use — nothing to install or sign up for, and no student data leaves the browser.

High school, College10–20 minInteractive simulation

Learning objectives

  • Describe the magnetic force on a moving charge.
  • Relate the circular path radius to speed, mass, charge, and field.
  • Predict the direction of the force.

Variables to change

  • Charge sign
  • Speed
  • Magnetic field strength
  • Entry angle

Procedure

  1. Send a charge into the field perpendicular to it and observe the circular path.
  2. Increase the speed and observe the radius.
  3. Increase the field strength and observe the radius.
  4. Flip the charge’s sign and note the direction of curving.

Observations

Record how the path radius changes with speed and field strength, and how sign affects direction.

Questions

  1. Write the magnetic force on a moving charge.
  2. Why does the charge move in a circle (v perpendicular to B)?
  3. Write the radius of the circular path.
  4. What happens to the radius if you double the field?
  5. What path results if the charge enters at an angle to the field?

Explanation

A magnetic field exerts F = qv×B, always perpendicular to the velocity, so a charge moving across the field circles with radius r = mv/(qB). Faster charges circle wider, stronger fields tighten the circle, and an angled entry gives a helix.

Answer key (for instructors)
  • 1. F = qv×B — magnitude qvB when v is perpendicular to B.
  • 2. The force is always perpendicular to the velocity, so it changes direction but not speed — centripetal motion.
  • 3. r = mv/(qB).
  • 4. It halves — radius is inversely proportional to B.
  • 5. A helix — circular motion perpendicular to B plus constant drift along B.

Educators: link or embed this simulation freely in your LMS or course guide.

Add This Charged Particle in a Magnetic Field to Your Website

Put the Charged Particle in a Magnetic Field on your own page — free, no sign-up, no watermark. It runs entirely in your visitors' browsers. Copy the snippet and paste it into your page's HTML.

The credit line under the widget links back to LK Forge — please keep it so others can find it too.