Magnetic Field of a Circular Loop and Particle Motion
This circular-loop calculator is useful when you want to connect 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. Instead of switching between a formula sheet, a sketch, and a separate integrator, you can change I, R, q, m, and Δt in one place and watch the readout respond. In this model, the current and radius mostly control the field strength, while charge and mass control how sharply the particle turns. The time step does not change the physics, but it does change how cleanly the Runge–Kutta update follows the motion. The canvas shades the absolute value of Bz on a grid, so darker areas mean a stronger field component in the plane of the loop. That makes it easier to see why the particle curves more strongly near some positions than others. The circular-loop setup here is the classic current-ring problem: find the field generated by a thin loop and see how a test charge responds when it moves through that field. Because the page draws both the loop and the particle, you can compare the equation, the field map, and the trajectory without leaving the page. If you care about the field at the center, the analytic loop formula gives a fast reference point. If you care about off-center behavior, the sampled Biot–Savart map shows how the field strength changes across the canvas, which is usually the part that makes the particle path bend or flatten. The result line updates as soon as the inputs settle, so there is no separate calculate step to remember. If you are comparing two loop setups, pause the motion, change one field, and let the new readout settle before judging the difference. If you want a record of the run, use the CSV download button to save the particle history and energy trace from the current loop setup. The circular-loop result only makes sense if the values match the physical setup you care about, so start with the units shown on the form and stay consistent. A mistake in amperes, meters, coulombs, kilograms, or seconds will change the field and the trajectory far more than a small tweak to the current itself. The defaults already in the form are only a baseline for the loop demo: they are handy for seeing the relationship between I, R, q, m, and Δt, but you should replace them with measurements from your own setup before treating the result as more than a reference. This page uses two layers of math for the circular-loop problem. First, it reports the center-field reference directly from the loop formula. Second, it samples the field on a grid and advances the charged particle with a numerical integrator so you can see how the path evolves away from the center. The canvas field map is built from 60 short wire segments using the Biot–Savart law. Each sample square gets a Bz magnitude, and the particle state is updated with a fourth-order Runge–Kutta step, which is why the motion changes smoothly when Δt is reasonable and becomes less reliable when Δt is too large. Because the shading uses |Bz|, the map shows field strength rather than direction. That is useful for spotting where the loop field gets strong, but it also means the sign of Bz is not encoded by color alone. A concrete way to read the circular-loop calculator is to start with the default values already on the form and see what they imply at the loop center. For that default loop, the center-field reference is Bcenter = μ0I / (2R), which works out to about 3.14×10-5 T. That number gives you a scale for the shading near the center of the canvas and a baseline for judging how much stronger or weaker the field becomes when you change I or R. The particle itself starts just outside the loop with an upward velocity, so the first curve you see is the result of the local field at that off-center position, not just the center reference. If you change only q, the field map does not change, but the particle path turns more or less sharply. If you change only the radius, the loop circle on the canvas changes size and the field at the center shifts in the opposite direction, which is a quick way to confirm that the geometry is being read correctly. The cleanest sensitivity check for a circular loop is to hold the radius fixed and vary the current, because the center field follows I linearly. The table below uses the same 0.1 m radius as the default setup and shows how the center reference moves with current. If the path changes much more than this table suggests, the difference is usually coming from q, m, or Δt rather than from the center-field formula itself. That is why it helps to change only one loop parameter at a time when you are testing sensitivity. The live readout pairs the center-field value with the relative energy drift from the particle integrator, so it is a quick check on both the physics and the numerics. For this loop model, look at three things: whether the field unit is tesla, whether the scale matches the current and radius you entered, and whether the drift bar stays small enough for the step size you chose. If you can answer “yes” to all three, you can treat the output as a useful estimate for the circular-loop setup you are exploring. The CSV file is useful when you want to compare two current-loop runs later or review the particle history frame by frame, because it captures time, position, velocity, and energy for the run you just made. No circular-loop simulator can capture every detail of a real wire loop. This page 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. If the result will guide an engineering or safety decision, treat it as a first-pass estimate and confirm it with a more complete magnetics analysis or measurement. That is the safest way to use a circular-loop calculator: let it show you how the current, radius, charge, mass, and time step interact, then verify the cases that matter most.
Editorial review by: JJ Ben-JosephIntroduction: why a current-loop magnetic field is worth checking
What magnetic-field question does this circular-loop calculator answer?
How to use this circular-loop field calculator
Inputs: how to choose current, radius, charge, mass, and time step for a loop-field run
Formulas: how the circular-loop field simulation turns inputs into a field and trajectory
Worked example: the default current loop and its center field
Comparison table: how the center field changes when loop current changes
Scenario Current I (A) Radius R (m) Center field Bcenter (T) Interpretation Conservative (-20%) 4 0.1 2.51×10-5 Lower current weakens the center field and makes the particle bend less strongly. Baseline 5 0.1 3.14×10-5 This is the default loop used as the reference case. Aggressive (+20%) 6 0.1 3.77×10-5 Higher current strengthens the center field and increases the magnetic deflection. How to interpret the circular-loop readout
Limitations and assumptions for the circular-loop field model
Adjust the loop inputs and press Play to animate the charged particle through the field.