What This Calculator Does
This tool calculates the magnetic field (B) produced around a long, straight, current-carrying wire. Whenever electric current flows through a wire, it generates a circular magnetic field that wraps around the conductor. The strength of that field depends on how much current is flowing and how far away from the wire you measure. This is a fundamental result in classical electromagnetism (physics, applicable universally — not country-specific).
The Inputs You Enter
- Current (A) – the electric current flowing through the wire, in amperes. Larger currents create stronger fields.
- Radius (m) – the perpendicular distance from the centre of the wire to the point where you want to know B, in metres. The field weakens as you move further away.
The Formula Explained
The calculator uses Ampère's law for an infinitely long straight wire:
$$B = \frac{\mu_0 \cdot I}{2\pi \cdot r} = \frac{2 \times 10^{-7} \cdot I}{r}$$
Here \(\mu_0\) is the permeability of free space, equal to \(4\pi \times 10^{-7}\ \text{T}\cdot\text{m/A}\). Plugging that constant in simplifies the expression to \(2 \times 10^{-7}\) multiplied by the current divided by the radius. The result B comes out in tesla (T). Notice the field is directly proportional to current and inversely proportional to distance — double the current and B doubles; double the distance and B halves.
Worked Example
Suppose a wire carries a current of 10 A, and you want the field at a distance of 0.05 m (5 cm).
- $$B = \frac{4\pi \times 10^{-7} \times 10}{2\pi \times 0.05}$$
- $$B = \frac{2 \times 10^{-7} \times 10}{0.05}$$
- $$B = \frac{2 \times 10^{-6}}{0.05} = 4 \times 10^{-5}\ \text{T}$$
So the magnetic field is about 0.00004 tesla, or 40 microtesla — roughly the same order as the Earth's natural field.
Magnetic Field at Different Currents and Distances
For a long straight wire, \(B = \frac{\mu_0 I}{2\pi r} = 2\times10^{-7}\,\frac{I}{r}\) (B in tesla, I in amperes, r in metres). The table shows B for several combinations.
| Current I (A) | Distance r (m) | B (T) | B (µT) |
|---|---|---|---|
| 1 | 0.01 | 2×10-5 | 20 |
| 1 | 0.05 | 4×10-6 | 4 |
| 1 | 0.1 | 2×10-6 | 2 |
| 1 | 1 | 2×10-7 | 0.2 |
| 10 | 0.01 | 2×10-4 | 200 |
| 10 | 0.05 | 4×10-5 | 40 |
| 10 | 0.1 | 2×10-5 | 20 |
| 10 | 1 | 2×10-6 | 2 |
| 100 | 0.01 | 2×10-3 | 2000 |
| 100 | 0.05 | 4×10-4 | 400 |
| 100 | 0.1 | 2×10-4 | 200 |
| 100 | 1 | 2×10-5 | 20 |
Doubling the current doubles B (B is proportional to I), while doubling the distance halves B (B is proportional to 1/r).
Interpreting Your Result
To judge whether a result is large or small, compare it with familiar magnetic fields:
- Earth's field: roughly 25–65 µT at the surface, about 50 µT typical depending on location.
- Refrigerator magnet: about 5 mT (5000 µT) near its surface.
- Household wiring: fields from ordinary currents of a few amperes at distances of centimetres to metres are on the order of microtesla or less. In a real cable the outgoing and return conductors lie close together and their fields largely cancel, so the net field is usually much smaller than a single-wire calculation suggests.
For example, 10 A at 0.05 m gives 40 µT, which is comparable to Earth's field, while 1 A at 1 m gives only 0.2 µT.
Assumptions and limits: the formula assumes an infinitely long, straight conductor carrying steady current. It is a good approximation when r is much smaller than the wire's length and when the point lies outside the wire (r greater than the wire radius). Inside a thick conductor the field follows a different relation, and near wire ends, bends or loops the result changes. Nearby magnetic materials and other currents add their own fields. Alternating current gives a field that oscillates, and the calculation then applies to the instantaneous or RMS current.
Direction: use the right-hand rule. Point your right thumb along the conventional current, and your fingers curl in the direction of the circular field lines around the wire. The field is tangent to circles centred on the wire.
Frequently Asked Questions
Why does the field decrease with distance, not distance squared? For a long straight wire, B falls off as \(1/r\) (inverse, linear in distance), unlike a point charge or magnetic dipole which follow inverse-square or cube laws.
What units should I use? Enter current in amperes and radius in metres. The answer is in tesla. To convert to microtesla, multiply by 1,000,000; to gauss, multiply by 10,000.
Does this work for short wires or coils? No. This formula assumes an effectively infinite, straight wire. Coils, loops and solenoids require different equations because of their geometry.