Logo

MonoCalc

/

Magnetic Field of a Straight Wire Calculator

Physics

The conductor

One current and one field point feed every panel, so the field magnitude, the finite-length correction, the superposition map and the wire-to-wire force all describe the same conductor.

Give any two of B, I and r; the third is computed.

Ampère's law for a wire far longer than the distance to the field point. The field circles the wire and falls off as 1/r.

40.0000 µT

Computed from the other two.
Air is diamagnetic to about four parts per million, so µᵣ = 1 is exact for any practical purpose.

1.0000

Computed from the other two.
0 to 10.
Reports the aligned, opposed and perpendicular sums.

B = µ₀ · µᵣ · I / (2 · π · r)

B = µ₀ · µᵣ · I / (2 · π · r)
Comparison, not a compliance verdict

The result is 20.00 % of the ICNIRP 2010 general-public reference level for 50/60 Hz fields (200 µT) and 0.800 × the Earth's ~50 µT field. Reference levels apply to time-varying fields and to whole-body exposure; this is context, not an assessment.

Magnetic flux density B

40.0000 µT

Infinite straight wire0.4000 G0.8000× Earth's field20.0000 % of the ICNIRP reference

Counter-clockwise circles around the wire when the current flows towards you (right-hand rule: thumb along the current, fingers along B).

Flux density B40.0000 µT
B in gauss0.4000 G
Field strength H31.8310 A/m
H in oersted0.4000 Oe
Current10.0000 A
Distance5.0000 cm
Relative permeability1.0000
µ₀1.256637e-6 T·m/A

Right-hand rule

r = 5.0000 cmP40.0000 µTCurrent out of the page — field runs counter-clockwise

Point your right thumb along the conventional current and your fingers curl the way B points. The circle through P is highlighted; every point on it sees the same magnitude.

B against distance (log–log)

0.1 × r10 × rmaxmindistance from the wire axis

On log–log axes the 1/r law is a straight line of slope −1, so halving the distance always doubles the field.

Where this sits

Brain magnetoencephalographyUrban background noiseEarth's fieldICNIRP public reference (50/60 Hz)Fridge magnetNeodymium magnet faceMRI scanneryour result

Earth's field is about 50 µT and the ICNIRP 2010 public reference level for 50/60 Hz fields is 200 µT. Both are shown for context only.

Step by step

Ampère's lawB = µ₀ · µᵣ · I / (2 · π · r) = 1.25664e-6 × 1 × 10 / (2π × 0.05) = 4.00000e-5 T
Auxiliary fieldH = B / (µ₀ · µᵣ) = 4.00000e-5 / (1.25664e-6 × 1) = 31.831 A/m

Assumptions: a steady direct current, a straight conductor, and a linear medium with the stated µᵣ. AC currents, nearby steel and return conductors all change the answer.

About This Tool

Magnetic Field of a Straight Wire – Ampère's Law in Practice

Every current-carrying conductor is wrapped in a magnetic field, and for a long straight wire that field takes the simplest form in all of electromagnetism: B = µ₀ · µᵣ · I / (2 · π · r). The field lines are concentric circles centred on the wire, their direction given by the right-hand rule — thumb along the conventional current, fingers curling the way B points. Because µ₀/(2π) is 2 × 10⁻⁷ T·m/A, the arithmetic is friendlier than it looks: 10 A at 5 cm gives exactly 40 µT, or 0.400 gauss. This magnetic field of a straight wire calculatorevaluates that law in every direction, so it also answers “what current would produce this field?” and “how far away does the stray field drop to 1 µT?” — for a 200 A building riser, the answer to the second is 40 m.

Why the field falls as 1/r, not 1/r²

A point charge's field obeys an inverse-square law, so the wire's gentler 1/r decay surprises people. The reason is geometric. Each short element of current does contribute an inverse-square field, but as you retreat from a long wire, more of that wire comes into view at a shallow angle. Integrating the Biot–Savart law along an infinite line leaves exactly one power of r surviving. Practically, doubling your distance from a cable only halves the field, which is why stray-field surveys need real distance rather than a small step back.

Finite wires are always weaker

Real conductors end. Over a segment of length L the integral gives B = µ₀ µᵣ I /(4πr) · [a/√(a²+r²) + b/√(b²+r²)], where a and b are the along-wire distances to each end — equivalently (cos θ₁ − cos θ₂) in the angle form. The bracket approaches 2 but never reaches it, so a finite wire always undershoots the idealisation. Probe 5 A from 2 cm opposite the mid-point of a 10 cm segment and you get 46.424 µT against the 50 µT the infinite-wire formula predicts — 92.85 % of it, so the textbook shortcut is 7.15 % optimistic. Stretch the geometry to a 50 cm segment probed from 5 cm and about 98 % is recovered. The useful rule is that a wire behaves as infinite once it is roughly twenty times the distance to the field point, and the calculator reports the exact percentage for whatever length you enter rather than assuming it.

Inside a thick conductor

Ampère's law counts only the current enclosed by the loop, so inside a solid rod of radius R carrying a uniform current density the field rises linearly: B = µ₀ µᵣ I r / (2πR²). A 100 A conductor of 5 mm radius reaches 1.6 mT two millimetres in and peaks at 4.0 mT at the surface, then decays as 1/r outside. At high frequency the skin effect drives the current to the surface and the interior field collapses towards zero.

Many wires, and the force between them

Fields superpose as vectors. A “go and return” pair carrying 10 A spaced 10 cm apart produces 80 µTmidway between them, because both contributions point the same way there — and almost nothing a metre away, where they cancel. Each wire also sits in the other's field and feels F/ℓ = µ₀ µᵣ I₁ I₂ / (2πd): two 1000 A busbars 5 cm apart push on each other at 4.0 N/m, so a 2 m run sees 8.0 N. Parallel currents attract, opposed currents repel, and this is the effect that defined the ampere until 2019.

Reading the result

Alongside B the tool reports the gauss equivalent, the auxiliary field H = B/(µ₀µᵣ)31.831 A/mfor that opening 40 µT — and two comparisons: the result as a multiple of Earth's ~50 µT field (0.80 ×) and as a percentage of the ICNIRP 2010 public reference level of 200 µT (20 %).

A single wire is an upper bound

Real installations carry return currents that cancel most of the field within a few conductor diameters, and steel conduit redistributes what is left. Treat a single-wire figure as a worst case for screening, and the reference-level comparison as context rather than a compliance verdict.

Frequently Asked Questions

Is the Magnetic Field of a Straight Wire Calculator free?

Yes, Magnetic Field of a Straight Wire Calculator is totally free :)

Can I use the Magnetic Field of a Straight Wire Calculator offline?

Yes, you can install the webapp as PWA.

Is it safe to use Magnetic Field of a Straight Wire Calculator?

Yes, any data related to Magnetic Field of a Straight Wire Calculator only stored in your browser (if storage required). You can simply clear browser cache to clear all the stored data. We do not store any data on server.

How does this magnetic field of a straight wire calculator work?

Enter the current and the perpendicular distance in whatever units you have them in — kiloamperes down to microamperes, kilometres down to micrometres — and everything is normalised to amperes and metres before Ampère's law B = µ₀µᵣI/(2πr) is evaluated. Because µ₀/(2π) is exactly 2 × 10⁻⁷ T·m/A, 10 A at 5 cm comes out as exactly 40 µT. The same unrounded figure then drives the gauss equivalent, the auxiliary field H, the Earth's-field ratio and the 1/r chart, so nothing is ever rebuilt from a rounded intermediate.

Why does the field fall off as 1/r and not 1/r²?

Because a wire is a line of current, not a point. Each short element of the wire does contribute an inverse-square field, but as you move away from a long wire more of it comes into view at a shallow angle, and the extra length very nearly compensates for the extra distance. Integrating the Biot–Savart law over an infinite line leaves exactly one power of r in the denominator. That is also why doubling your distance from a power cable only halves the field, whereas doubling your distance from a point-like source quarters it.

How much weaker is a short wire than the infinite-wire formula predicts?

It depends entirely on the length-to-distance ratio, which is why the tool computes it rather than quoting a figure. A 10 cm segment probed 2 cm from its mid-point with 5 A reaches 46.424 µT against the 50 µT the infinite-wire law predicts — 92.85 %, so the idealisation is 7.15 % optimistic. Stretch the same probe distance to a 50 cm segment and you recover about 98 %. The rule of thumb is that a segment behaves as infinite once it is roughly twenty times the distance to the field point.

What happens to the field inside a thick conductor?

It falls, not rises. Ampère's law only counts the current enclosed by the loop, and inside a uniformly loaded conductor of radius R the enclosed fraction is (r/R)², so B = µ₀µᵣIr/(2πR²) climbs linearly from zero on the axis to a maximum at the surface and then decays as 1/r outside. A 100 A rod of 5 mm radius reaches 4.0 mT at its surface but only 1.6 mT two millimetres in. At high frequency the skin effect pushes the current to the surface, and the interior field collapses to essentially zero — the tool offers that limit as a separate option.

Do two parallel wires attract or repel?

Currents flowing the same way attract; opposed currents repel. The force per unit length is F/ℓ = µ₀µᵣI₁I₂/(2πd), which for two 1000 A busbars 5 cm apart is 4.0 N/m — 8.0 N over a 2 m run, and the reason fault-current bracing is sized the way it is. This is the effect that defined the ampere until the 2019 SI revision. Note that the formula assumes long, thin, parallel conductors: if the run is shorter than about ten times the spacing, end effects make the real force smaller than calculated.

How accurate is this for a real installation?

The arithmetic is exact for the values you type, but real conductors are not ideal filaments. Return currents in a cable cancel most of the field a few diameters away, three-phase groupings cancel further still, steel conduit and building steel redistribute flux, and AC currents drive eddy currents in nearby metal. Treat a single-wire result as an upper bound for screening purposes, and treat the ICNIRP comparison as context rather than a compliance verdict — reference levels apply to time-varying fields and whole-body exposure, which a single-point calculation cannot establish.