Magnetic Field Simulator

Vector Fields around Magnets & Current-Carrying Wires (B = μ₀I / 2πr)

Interaction Tools

Source Properties

50%
20 A

Visualization Mode

Drag sources to move, or grab magnet poles to rotate.

Sensor Probe

Switch to Move / Probe tool and hover over the canvas to measure the magnetic field.

Field Strength |B|: 0.0 μT
Bx Component: 0.0
By Component: 0.0
Field Angle (θ): 0.0°

Electromagnetism

Straight Wire (Biot-Savart)

B = (μ₀ · I) / (2π · r)

Current passing through a wire creates a magnetic field circulating around it. The direction is given by the Right-Hand Grip Rule.

Magnetic Dipole

A bar magnet acts as a dipole. Magnetic field lines always emerge from the North pole and enter the South pole, forming continuous closed loops around the magnet.