Magnetic Field of a Straight Wire Calculator

B = µ0 · I / (2π · r)

Quick answer: This calculator solves B = µ₀ × I / (2π × r) for Flux Density. With Current 2 A, Distance 10 mm, the result is 0.4 G. It solves in 3 directions, so you can enter the values you have and get the one you need.

Calculator

Loading calculator…

Formula

B = µ₀ × I / (2π × r)

Description

A long straight wire carrying current produces a magnetic field that circles the wire and falls off inversely with distance. The field lines form concentric circles whose direction follows the right-hand rule. This is the starting point for analysing the fields of coils, the coupling between adjacent traces, and magnetic interference from current-carrying conductors.

Variables

SymbolMeaning
BMagnetic flux density (T)
ICurrent in the wire (A)
rRadial distance from the wire (m)
µ₀ = 4π×10⁻⁷ H/m

Practical Notes

At 1 cm from a 1 A wire, B ≈ 20 µT—comparable to Earth’s field. This circulating field is why current loops should enclose minimal area to limit radiated emissions.

Symbols and units

SymbolDefault unitAccepted units
Flux DensityTG, mT, T
CurrentApA, nA, µA, mA, A, kA
Distancemmmm, cm, m, km

Worked examples

GivenResult
Minimum rangeCurrent 2 mA, Distance 0.1 mmFlux Density = 0.04 G
Low rangeCurrent 20 mA, Distance 1 mmFlux Density = 0.04 G
TypicalCurrent 2 A, Distance 10 mmFlux Density = 0.4 G
High rangeCurrent 100 A, Distance 10 cmFlux Density = 2 G
Maximum rangeCurrent 1 kA, Distance 1 mFlux Density = 2 G

Solving for each variable

Solve for GivenResult
Flux DensityCurrent 2 mA, Distance 0.1 mm0.04 G
CurrentFlux Density 10 G, Distance 0.1 mm0.5 A
DistanceFlux Density 10 G, Current 2 mA4 × 10⁻⁴ mm

How Flux Density changes with Current

Current (input)Flux Density (result)
0.2 A0.04 G
0.5 A0.1 G
1 A0.2 G
1.5 A0.3 G
2 A0.4 G
3 A0.6 G
4 A0.8 G
8 A1.6 G
14 A2.8 G
20 A4 G

The same result in other units

UnitValue
G0.4
mT0.04

Embed this calculator

Paste this into any page. It keeps working when this page updates, and credits the source.

Frequently asked questions

How do you calculate Magnetic Field of a Straight Wire?

Use B = µ₀ × I / (2π × r). With Current 2 A, Distance 10 mm, Flux Density works out to 0.4 G.

What is the formula for Magnetic Field of a Straight Wire?

The formula is B = µ₀ × I / (2π × r). A long straight wire carrying current produces a magnetic field that circles the wire and falls off inversely with distance.

How do you find Current when you know the other values?

Rearrange for Current: with Flux Density 10 G, Distance 0.1 mm, Current is 0.5 A.

How do you find Distance when you know the other values?

Rearrange for Distance: with Flux Density 10 G, Current 2 mA, Distance is 4 × 10⁻⁴ mm.

What units does Magnetic Field of a Straight Wire use?

Flux Density is shown in G, mT. Values are held in SI base units internally, so you can mix prefixes without converting by hand.

What does B mean in the Magnetic Field of a Straight Wire formula?

B is Magnetic flux density (T).

What should I watch out for when using Magnetic Field of a Straight Wire?

At 1 cm from a 1 A wire, B ≈ 20 µT—comparable to Earth’s field. This circulating field is why current loops should enclose minimal area to limit radiated emissions.