PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

Related simulators

Continue with similar topics in this category — or all 65 in Electricity & Magnetism.

View category →
School

Magnetic Field

Launch Simulator

Bar magnets and current-carrying wires with field line visualization.

NewSchool

Eddy Current Tube

Launch Simulator

Magnet fall: dv/dt = g in air vs g − k v in copper pipe (toy drag model).

School

Electromagnetic Induction

Launch Simulator

Move magnet through coil. Faraday's law visualized.

FeaturedSchool

Electric Field Visualizer

Launch Simulator

Place charges and watch the E arrow grid, streamlines, and equipotentials update in real time.

NewSchool

Electric Dipole Field (2D)

Launch Simulator

±q on axis: V heatmap, equipotentials, E field lines; formulas.

FeaturedSchool

Circuit Builder

Launch Simulator

Drag and drop components: battery, resistor, bulb, switch. See current flow.

PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Electricity & Magnetism/Biot–Savart Law

Biot–Savart Law

Infinite wire B ∝ 1/r; ring via segment sum; heatmap + probe.

Biot–Savart

1 (rel.)
28
0.12
0.08

Wire uses the textbook infinite-wire formula in the plane perpendicular to the current. The ring integrates the Biot–Savart law over short segments (CCW current when viewed from +z); in-plane streamlines are only drawn for the wire (B lies in the x–y plane).

Shortcuts

  • •Move probe sliders to sample B at a point
  • •Ring mode sums many short current elements

Measured values

|B| at probe6.93375 (sim)
B_x-3.84615
B_y5.76923

About this model

The infinite straight wire uses the analytic azimuthal field B ∝ 1/r in the plane perpendicular to the current, with circular streamlines integrated along B. The circular loop sums many short current-element contributions to the z-component of B in the plane of the loop using the Biot–Savart cross-product rule; simulation constants absorb μ₀/(2π) and μ₀/(4π) into unity for relative plots.

Who it's for: Introductory magnetostatics after the generic magnetic-field sandbox; emphasizes explicit Biot–Savart summation for a loop.

Key terms

  • Biot–Savart law
  • magnetic field
  • steady current
  • straight wire
  • current loop

How it works

The Biot–Savart law builds B from steady currents: an infinite straight wire has circular field lines in the perpendicular plane with magnitude B ∝ 1/r; a flat circular loop is modeled by summing many short current elements so you see how B_z varies in the plane of the loop (including the sign flip across the ring).

Key equations

dB = (μ₀/4π) I dl × r̂ / r²
Long wire: B = μ₀ I / (2π r) (tangential)
Sim units: μ₀/(2π) and μ₀/(4π) set to 1

Frequently asked questions

Why are there no field-line curves in ring mode?
In the plane of a flat loop, the modeled B field from the loop currents is perpendicular to that plane (only a z-component in this 2D slice), so there is no in-plane vector field to trace as streamlines; the heatmap shows |B_z| instead.
How does this relate to the Magnetic Field visualizer?
That page uses idealized dipole and wire models for interaction. Here the wire and loop are fixed geometries tied to textbook Biot–Savart formulas and discrete segmentation.