Biot-Savart Law Calculator

Stephanie Ben-Joseph headshot Stephanie Ben-Joseph

Enter a current and distance to compute magnetic field strength.

Understanding the Biot-Savart Law

The Biot-Savart law relates electric currents to the magnetic fields they produce. Discovered experimentally by Jean-Baptiste Biot and Félix Savart in 1820, it is fundamental to magnetostatics. The law states that each infinitesimal segment of a current-carrying wire contributes a small magnetic field at nearby points. Mathematically, the contribution from a tiny element of wire is dB=μ0 I}{4π}d×r^r2, where d is the vector length of the wire element, r^ is the unit vector from the element to the observation point, and r is the separation distance.

From Differential to Integral

To find the total field from a wire of finite size or shape, you integrate the differential form over the wire’s length. In many symmetric cases, the integral simplifies to familiar expressions. For an infinitely long straight wire, the magnetic field magnitude at a perpendicular distance r is B=μ0 I2πr. Our calculator uses this formula, which is an exact result obtained by integrating the Biot-Savart expression around the wire.

Units and Constants

The constant μ0, known as the permeability of free space, equals 4π×10−7 T·m/A. Because the formula divides by 2π, you will notice that conveniently cancels part of , leading to a concise coefficient. The resulting units are teslas if you enter current in amperes and distance in meters. For convenience, the calculator also displays the result in microteslas, a common unit for everyday magnetic fields.

How to Use This Tool

Simply enter the current flowing through your straight wire and the perpendicular distance from the wire to your measurement point. The script computes B=μ0 I2πr. If you halve the distance, the magnetic field doubles, illustrating the 1/r dependence characteristic of long wires. Currents in loops or coils require more elaborate integration, but this calculator provides a quick approximation whenever the wire is long compared to the measurement distance.

Practical Insights

The Biot-Savart law underlies everything from the magnetic fields around power lines to the operation of MRI machines. Engineers use it to design electromagnets, calculate forces between current-carrying conductors, and predict interference in sensitive circuits. In educational settings, the law demonstrates the deep connection between electricity and magnetism, paving the way toward Maxwell’s unified theory.

Historical Perspective

Biot and Savart established their law soon after Hans Christian Ørsted discovered that a compass needle deflects near a current. They meticulously measured how the deflection depended on current and geometry, showing that the field encircles the wire and diminishes with distance. Their work provided the quantitative foundation for Ampère’s later development of the full theory of magnetism produced by currents.

Limitations and Extensions

While convenient, the infinite-wire approximation breaks down if the wire is not much longer than the region of interest. In that case, you would integrate the Biot-Savart law along the actual wire shape, often requiring calculus or numerical methods. Moreover, time-varying currents produce changing magnetic fields that propagate as waves—a topic described by Maxwell’s equations and ultimately the theory of electromagnetism. Still, for many steady-state applications, this simple model provides excellent intuition.

Explore Further

You can extend this calculator by considering loops or solenoids, where the Biot-Savart law predicts fields useful for electric motors and magnetic sensors. Experiment with different currents and distances to grasp how magnetic influence falls off with separation. Understanding these relationships helps demystify everyday phenomena like transformer operation and the magnetic shielding used in electronics. Even the Earth’s magnetic field at the surface can be estimated by treating the core as a colossal current loop.

Magnetic Interactions in Technology

Current loops generate forces on each other that can be precisely predicted using the Biot-Savart law along with the Lorentz force. This principle enables electric motors, where interacting magnetic fields convert electrical energy into mechanical rotation. By knowing how strong the field is at various points, engineers design coils that produce just the right torque. Magnetic resonance imaging scanners also rely on carefully shaped fields to create uniform regions for imaging. Understanding how currents create fields is thus essential across electrical engineering.

Related Calculators

Magnetic Field of a Finite Wire Calculator

Compute the magnetic field near a straight finite wire or solve for current, distance, or endpoint angles.

finite wire magnetic field calculator biot savart law

Magnetic Field of a Long Straight Wire Calculator

Calculate the magnetic field strength produced by a current-carrying long straight wire using Ampère's law.

magnetic field calculator straight wire ampere law

Magnetic Force on a Current-Carrying Wire Calculator

Evaluate the force on a wire in a magnetic field or solve for current, field strength, length, or angle using F = I L B sin θ.

magnetic force wire calculator ILB sin theta magnetism physics