Magnetic Field of a Straight Wire Calculator – B = μ₀I/(2πr)
Use this free Magnetic Field of a Straight Wire Calculator to find the field strength at a distance from a long straight wire carrying a current, using B = μ₀I ÷ (2πr).
Formula
B = μ₀ × I ÷ (2π × r) • B in tesla (T), I in amps (A), r in metres (m), and μ₀ = 4π × 10⁻⁷ H/m (the permeability of free space). A handy shortcut: B (in tesla) = 2 × 10⁻⁷ × I ÷ r.
How to use
- Enter the current flowing in the long straight wire.
- Enter how far from the wire you want the field (measure from the centre of the wire).
- Click "Calculate" to get the field in tesla and microtesla.
Worked example
A long straight wire carries 10 A. Find the field 0.05 m (5 cm) away.
B = μ₀I ÷ (2πr) = (4π × 10⁻⁷ × 10) ÷ (2π × 0.05) = 4 × 10⁻⁵ T = 40 µT.
That is about the same strength as the Earth's magnetic field — from an ordinary wire at just 5 cm.
FAQ
Which way does the field point?
The field forms circles around the wire. Use the right-hand grip rule: point your right thumb along the current and your fingers curl in the direction of the field.
How does the field change with distance?
It weakens as 1/r — double the distance and the field halves. This is slower than the 1/r² fall-off of a point charge's electric field, because the wire is a line, not a point.
What is μ₀?
μ₀ is the permeability of free space, 4π × 10⁻⁷ H/m. It measures how easily a magnetic field can form in empty space, and it appears in almost every formula for fields made by currents.