4.000000e-5
T
0.04
mT
4.000000e-1
G
31.830989
A/m
4.000000e-5
T
0.04
mT
4.000000e-1
G
31.830989
A/m
The Magnetic Field Calculator computes the magnetic field strength produced by a long straight current-carrying conductor at a given perpendicular distance. Based on the Biot-Savart law and Ampère's law, this tool applies the fundamental relationship $$B = \frac{\mu_0 I}{2\pi r}$$ where $$\mu_0 = 4\pi \times 10^{-7}\,\text{T·m/A}$$ is the permeability of free space.
Understanding the magnetic field around conductors is essential in electrical engineering, electromagnet design, power transmission safety, and physics research. The field decreases inversely with distance from the wire, forming concentric circular field lines whose direction follows the right-hand rule.
When electric current flows through a straight conductor, it generates a magnetic field in the surrounding space. The magnitude of this field at a perpendicular distance r from an infinitely long straight wire carrying current I is given by:
$$B = \frac{\mu_0 I}{2\pi r}$$
This result comes from applying Ampère's circuital law along a circular Amperian loop of radius r centered on the wire. The enclosed current is I, and by symmetry the field has constant magnitude along the loop, giving $$\oint \vec{B} \cdot d\vec{l} = B(2\pi r) = \mu_0 I$$.
The direction of the field follows the right-hand rule: if the thumb of your right hand points in the direction of current flow, your fingers curl in the direction of the magnetic field lines. The field lines form closed circles around the wire, and the field magnitude falls off as 1/r.
Key properties of this field:
Common unit conversions: 1 T = 10,000 G (gauss), 1 T = 1,000 mT. Earth's magnetic field is roughly 25–65 μT (0.25–0.65 G).
The calculated magnetic field B represents the field strength at the specified distance from the wire. Compare your result with common reference values: Earth's field is about 50 μT, a refrigerator magnet produces ~5 mT, and an MRI machine operates at 1.5–3 T. If the field exceeds safety thresholds for nearby electronics or biological exposure, consider increasing the distance or reducing the current.
Inputs
Results
A 15 A household current at 10 cm produces about 30 μT — comparable to Earth's magnetic field.
Inputs
Results
An industrial 500 A bus bar at 2 cm distance generates 5 mT — significant for nearby sensitive equipment.
The magnetic field at perpendicular distance r from a long straight wire carrying current I is $$B = \frac{\mu_0 I}{2\pi r}$$, where $$\mu_0 = 4\pi \times 10^{-7}\,\text{T·m/A}$$. This is derived from Ampère's law.
Point the thumb of your right hand in the direction of conventional current (positive to negative). Your fingers curl in the direction of the magnetic field lines. For a wire pointing upward, the field circles counterclockwise when viewed from above.
The field is inversely proportional to distance: $$B \propto 1/r$$. Doubling the distance halves the field. At 10× the distance, the field is only 1/10 as strong. This inverse relationship means the field drops quickly away from the wire.
Both are units of magnetic field strength. 1 tesla (T) = 10,000 gauss (G). Tesla is the SI unit; gauss is the CGS unit still commonly used. Earth's field is about 0.5 G or 50 μT.
This formula assumes an infinitely long wire. For a finite wire of length L, the Biot-Savart law gives a modified result involving the angles subtended by the wire ends. The infinite-wire formula is a good approximation when the measurement point is much closer to the wire than the wire's length.
The permeability of free space (vacuum permeability) is $$\mu_0 = 4\pi \times 10^{-7}\,\text{T·m/A} \approx 1.2566 \times 10^{-6}\,\text{T·m/A}$$. It relates magnetic field strength to the current producing it and is a fundamental constant in electromagnetism.
Roboculator Team
The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.
How helpful was this calculator?
Be the first to rate!
Magnetic Force Calculator
Magnetism Calculators
Magnetic Force Between Wires Calculator
Magnetism Calculators
Magnetic Flux Calculator
Magnetism Calculators
Magnetic Moment Calculator
Magnetism Calculators
Solenoid Magnetic Field Calculator
Magnetism Calculators
Solenoid Inductance Calculator
Magnetism Calculators