Solenoid Magnetic Field Calculator

B = µ0 · N · I / l

Quick answer: This calculator solves B = µ₀ × N × I / l (= µ₀ × n × I) for Flux Density. With Number of Turns 0.5, Current 2 A, Solenoid Length 10 cm, the result is 0.1257 G. It solves in 4 directions, so you can enter the values you have and get the one you need.

Calculator

Loading calculator…

Formula

B = µ₀ × N × I / l (= µ₀ × n × I)

Description

Inside a long air-core solenoid the magnetic field is nearly uniform and equals the permeability times the number of turns per unit length times the current. Adding a ferromagnetic core multiplies the field by the relative permeability. This is the design equation for electromagnets, relays, inductors, and solenoid actuators.

Variables

SymbolMeaning
BAxial flux density inside the solenoid (T)
NTotal number of turns
ICurrent (A)
lLength of the solenoid (m)
µ₀ = 4π×10⁻⁷ H/m

Practical Notes

With a high-permeability core, replace µ₀ by µ₀·µr—the field can rise by thousands of times until the core saturates. The field outside an ideal long solenoid is essentially zero.

Symbols and units

SymbolDefault unitAccepted units
Flux DensityTG, mT, T
Number of Turns
CurrentApA, nA, µA, mA, A, kA
Solenoid Lengthcmmm, cm, m, km

Worked examples

GivenResult
Minimum rangeNumber of Turns 0.025, Current 2 mA, Solenoid Length 1 mmFlux Density = 6.28 × 10⁻⁴ G
Low rangeNumber of Turns 0.25, Current 20 mA, Solenoid Length 10 mmFlux Density = 0.006283 G
TypicalNumber of Turns 0.5, Current 2 A, Solenoid Length 10 cmFlux Density = 0.1257 G
High rangeNumber of Turns 0.8, Current 100 A, Solenoid Length 1 mFlux Density = 1.005 G
Maximum rangeNumber of Turns 8, Current 1 kA, Solenoid Length 10 mFlux Density = 10.05 G

Solving for each variable

Solve for GivenResult
Flux DensityNumber of Turns 0.025, Current 2 mA, Solenoid Length 1 mm6.28 × 10⁻⁴ G
Number of TurnsFlux Density 10 G, Current 2 mA, Solenoid Length 1 mm397.9
CurrentFlux Density 10 G, Number of Turns 0.025, Solenoid Length 1 mm31.83 A
Solenoid LengthFlux Density 10 G, Number of Turns 0.025, Current 2 mA6.28 × 10⁻⁵ mm

How Flux Density changes with Number of Turns

Number of Turns (input)Flux Density (result)
0.050.01257 G
0.1250.03142 G
0.250.06283 G
0.3750.09425 G
0.50.1257 G
0.750.1885 G
10.2513 G
20.5027 G
3.50.8796 G
51.257 G

The same result in other units

UnitValue
G0.1257
mT0.01257

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 Solenoid Magnetic Field?

Use B = µ₀ × N × I / l (= µ₀ × n × I). With Number of Turns 0.5, Current 2 A, Solenoid Length 10 cm, Flux Density works out to 0.1257 G.

What is the formula for Solenoid Magnetic Field?

The formula is B = µ₀ × N × I / l (= µ₀ × n × I). Inside a long air-core solenoid the magnetic field is nearly uniform and equals the permeability times the number of turns per unit length times the current.

How do you find Number of Turns when you know the other values?

Rearrange for Number of Turns: with Flux Density 10 G, Current 2 mA, Solenoid Length 1 mm, Number of Turns is 397.9.

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

Rearrange for Current: with Flux Density 10 G, Number of Turns 0.025, Solenoid Length 1 mm, Current is 31.83 A.

What units does Solenoid Magnetic Field 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 Solenoid Magnetic Field formula?

B is Axial flux density inside the solenoid (T).

What should I watch out for when using Solenoid Magnetic Field?

With a high-permeability core, replace µ₀ by µ₀·µr—the field can rise by thousands of times until the core saturates. The field outside an ideal long solenoid is essentially zero.