Magnetic Field Calculator

Calculate the magnetic field of a long straight wire, inside a solenoid or at the centre of a circular coil, in tesla, microtesla and gauss, compared with the Earth's field.

Built by Sabki SolutionsRules: μ0 = 4π × 10⁻⁷ T·m/ALast updated
A
0.000A10,00,000.000A
m
0.0001m10,000.0000m

Magnetic Field

40 µT

Compared with Earth (50 µT)

0.8 ×

In Tesla

0.00004 T

In Gauss

0.4 G

Force per Metre (two such wires)

0.0004 N/m

Magnetic Field from Electric Currents

Choose the conductor shape and enter the current and geometry. The calculator gives the magnetic flux density in several units and compares it with the Earth's natural field.

Formulas

  • Straight wire B = μ0I/(2πr)
  • Solenoid B = μ0nI
  • Coil centre B = μ0NI/(2R)
  • Parallel wires F/L = μ0I²/(2πr)

Typical magnetic fields

SourceField
Earth's field25 to 65 µT
Household wiring at 30 cm0.1 to 1 µT
Fridge magnet5 mT
Neodymium magnet surface0.5 to 1.3 T
MRI scanner1.5 to 3 T

Worked examples

1. 10 A wire at 5 cm (the defaults).40 µT (0.8 × Earth's field).

2. Solenoid with 1,000 turns/m carrying 2 A.2.51 mT.

3. 100-turn coil of 10 cm radius at 1 A.628 µT.

4. 100 A cable at 1 m.20 µT.

These formulas are for air (non-magnetic surroundings); iron cores and nearby steel change the field.

Related tools

Frequently Asked Questions

What is the magnetic field around a straight wire?

B = μ0 I ÷ (2π r). 10 A at 5 cm gives 40 µT, similar to the Earth's field.

What is the field inside a solenoid?

B = μ0 n I, uniform along a long solenoid, where n is turns per metre. 1,000 turns/m with 2 A gives 2.5 mT.

What is the field at the centre of a coil?

B = μ0 N I ÷ (2R) for N turns of radius R.

What is μ0?

The permeability of free space, 4π × 10⁻⁷ T·m/A (1.2566 × 10⁻⁶).

How do tesla and gauss compare?

1 T = 10,000 gauss; 1 gauss = 100 µT. The Earth's field is 25 to 65 µT (0.25 to 0.65 gauss); in India about 40 to 50 µT.

What is the force between parallel wires?

F/L = μ0 I1 I2 ÷ (2π r) per metre: attractive for currents in the same direction. Two wires 5 cm apart carrying 10 A feel 0.4 mN/m.

How does an iron core change this?

It multiplies the field by the relative permeability (hundreds to thousands) until the iron saturates (about 1.5 to 2 T).

How strong is the field near power lines?

A line carrying 100 A gives 20 µT at 1 m, falling inversely with distance; at ground level under high-voltage lines it is typically a few µT.

How do I find the direction of the field?

Right-hand rule: thumb along the current, fingers curl in the direction of the field.

What fields do MRI and magnets have?

Fridge magnet about 5 mT; neodymium magnet surface up to 1 T; MRI scanners 1.5 to 3 T.

Related Calculators

More in Physics · Engineering calculators · All calculators A–Z