Solenoid Magnetic Field Calculator

Solenoid Magnetic Field

Calculate the magnetic flux density (B) inside a solenoid based on its turns, length, current, and core material.

Last updated: March 2026 | By ForgeCalc Engineering

Magnetic Field (B)
1.257
Millitesla (mT)
In Gauss
12.57 G

What is a Solenoid Magnetic Field?

A solenoid is a long coil of wire that produces a uniform magnetic field inside its core when an electric current passes through it. The field is strongest and most uniform in the center of the solenoid.

The strength of the magnetic field (B) is directly proportional to the current (I) and the number of turns per unit length (n = N/l). Like inductance, the magnetic field can be greatly enhanced by using a core material with high magnetic permeability.

The Formula

B = (μ₀ × μ_r × N × I) / l

Where:
B is the magnetic flux density (T)
μ₀ is the permeability of free space (4π × 10⁻⁷ T·m/A)
μ_r is the relative permeability of the core
N is the total number of turns
I is the current (A)
l is the length of the solenoid (m)

Frequently Asked Questions

What is the unit 'Tesla'?

One Tesla (T) is a very large unit of magnetic flux density. For context, the Earth's magnetic field is about 0.00005 T (50 μT), while a strong refrigerator magnet is about 0.005 T (5 mT).

Why is the field uniform?

Inside a long solenoid, the magnetic field lines are parallel and evenly spaced, creating a uniform field. Outside the solenoid, the field is very weak and quickly drops to zero.

How does a core increase the field?

Ferromagnetic materials like iron align their internal magnetic domains with the solenoid's field, effectively 'multiplying' the field strength by their relative permeability (μ_r).

What is an Electromagnet?

An electromagnet is essentially a solenoid with a ferromagnetic core. It can be turned on and off by controlling the electric current, making it useful for lifting scrap metal, relays, and MRI machines.

Related Tools