Magnetic Field of a Circular Loop and Particle Motion

JJ Ben-Joseph headshot JJ Ben-Joseph

Introduction to a circular current loop’s magnetic field

This circular-loop calculator connects the current in a wire ring to the magnetic field it produces and to the path of a charged test particle moving through that field. Rather than switching between a formula sheet, a sketch, and a separate numerical integrator, you can change I, R, q, m, and Δt in one place and watch the field reference and particle readout respond.

In this model, current and radius chiefly control field strength, while charge and mass control how sharply the particle turns. The time step does not change the underlying physics, but it does affect how faithfully the numerical Runge–Kutta update follows the motion. The simulation is intended as a compact teaching and exploratory tool, not as a replacement for a complete laboratory or engineering magnetics model.

The canvas shades the absolute value of Bz on a grid, so darker areas mean a stronger magnetic-field component perpendicular to the plane of the loop. This makes it easier to see why a particle may curve more strongly near some positions than others.

What magnetic-field question does this circular-loop calculator answer?

The circular-loop setup is the classic current-ring problem: determine the field generated by a thin loop and observe how a test charge responds while moving through it. Because this page draws the loop, a sampled field map, and the particle together, you can compare the equation, field strength, and trajectory without leaving the calculator.

If you only need the field at the center, the analytic loop formula gives a fast reference point. If you need off-center behavior, the sampled Biot–Savart map shows how field strength changes across the canvas. That spatial change is usually what makes a simulated particle path bend, tighten, or flatten as it travels.

How to use the circular-loop field calculator

Start by entering values in the units printed beside each field. Set the loop current and radius, then enter the test particle’s charge and mass. Finally choose a time step and press Play. The result line updates after the inputs settle, so there is no separate calculation button to remember.

  1. Enter Current I (A) for the steady current in the circular wire loop.
  2. Enter Radius R (m) for the radius of that loop.
  3. Enter Charge q (C) and Mass m (kg) for the test particle.
  4. Enter Time step Δt (s), then press Play to animate the particle.

When comparing two loop arrangements, pause the motion, change one value, and allow the readout to settle before interpreting the difference. The Download CSV button saves the time history of position, velocity, and kinetic energy from the run currently held in memory.

Inputs for a circular-loop field and particle-motion run

The circular-loop result is meaningful only when the entered quantities describe the same physical setup. Keep the displayed SI units consistent: an error in amperes, meters, coulombs, kilograms, or seconds can alter the field or trajectory far more than a modest change in current.

The default values are a baseline for this demonstration. Replace them with measurements or a clearly stated hypothetical setup before treating the output as more than a useful reference.

Formulas behind the circular-loop field simulation

This page uses two layers of mathematics for the circular-loop problem. First, it reports the center-field reference directly from the thin-loop formula. Second, it samples the field on a grid and advances the charged particle numerically so you can inspect behavior away from the center.

Bcenter=μ0I2R

Here μ₀ is the permeability of free space, I is loop current, and R is loop radius. The center-field relation shows the main scaling immediately: more current raises Bcenter, while a larger radius lowers it. The canvas field map is built from 60 short wire segments using the Biot–Savart law. Each sample square receives a Bz magnitude, and the particle state is advanced with a fourth-order Runge–Kutta step.

Because the shading uses |Bz|, the map shows field strength rather than direction. This is helpful for locating strong-field regions, but the sign of Bz is not represented by color alone. The particle’s force direction still comes from the signed field and the signed charge in the numerical calculation.

Worked example: the default current loop and center field

A practical way to read the circular-loop calculator is to begin with its default values: I = 5 A, R = 0.1 m, q = 1e-6 C, m = 1e-6 kg, and Δt = 0.001 s. These values describe a simple illustrative loop and test charge rather than a particular device.

For that loop, the center-field reference is Bcenter = μ0I / (2R), or approximately 3.14×10-5 T. That number gives a scale for the darker shading near the middle of the canvas and a baseline for judging changes in I or R. The particle begins just outside the loop with upward velocity, so its first curve reflects the local off-center field rather than only the center reference.

Changing only q does not change the field map, but it changes how strongly and in which direction the particle bends. Changing only the radius changes both the drawn loop size and the center field in the opposite direction. These one-variable experiments are a clear way to verify the relationship between geometry, field strength, and motion.

Comparison table: how loop current changes the center field

The cleanest circular-loop sensitivity check holds the radius fixed and varies current, because the center field is linear in I. The table uses the same 0.1 m radius as the default setup.

ScenarioCurrent I (A)Radius R (m)Center field Bcenter (T)Interpretation
Conservative (−20%)40.12.51×10-5Lower current weakens the center field and reduces magnetic deflection.
Baseline50.13.14×10-5This is the default loop used as the reference case.
Aggressive (+20%)60.13.77×10-5Higher current strengthens the center field and increases deflection.

If a trajectory changes much more than this table suggests, the cause is often q, m, or Δt rather than the center-field formula itself. Change one parameter at a time when testing sensitivity so that the result remains interpretable.

How to interpret the circular-loop readout

The live readout pairs the center-field value with the relative kinetic-energy drift from the numerical integrator. For this loop model, first check that the field is reported in tesla and that its scale matches the current and radius entered. Then use the drift bar as a numerical-health check: a small drift supports confidence that the chosen step is resolving the displayed path reasonably well.

The CSV file is useful for comparing two loop runs later or reviewing a trajectory frame by frame. It records time, position, velocity, and energy, allowing you to make your own plot or examine whether a large Δt is introducing unacceptable numerical error.

Limitations and assumptions for the circular-loop field model

This circular-loop simulator intentionally omits details that may matter in a real apparatus. It treats the current as steady, the loop as a thin ideal ring, and the particle as a test charge that does not feed back on the source field.

If a result will guide an engineering, laboratory, or safety decision, use this page as a first-pass estimate and confirm important cases with measurement or a more complete magnetics analysis. Its value is in showing how current, radius, charge, mass, and time step interact in the ideal circular-loop model.

Flux Tune mini-game: match the circular loop’s field

Take a quick break with a field-tuning challenge based on the same relationship used above. A glowing probe approaches resonance gates around a current loop. Move across the canvas, tap the lower current rail, or use the left and right arrow keys to tune coil current until your field strength B matches each gate’s target. The loop radius changes during the run, so the same current does not always produce the same field.

Score0 Time75 Streak0 Coil current0.70 A Stability●●●

Magnetic resonance mission

Hold the field on target

Tune the current rail so your loop field matches each gate when the orbiting probe arrives. Match gates to build a streak; miss three and the field collapses. Survive the 75-second run.

Pointer or tap: tune current. Keyboard: ← and →. The radius shifts at mid-run, so watch B ∝ I/R.

Best score: 0

Mission ready: tune current to match the next resonance gate.

Field takeaway: At a fixed radius, raising current raises the loop’s magnetic field. When the loop radius expands, you must raise current to keep the same B target.

Results update here as the circular-loop inputs change.
Adjust the loop inputs and press Play to animate the charged particle through the field.

Adjust the loop inputs and press Play to animate the charged particle through the field.