Magnetics Calculators29 instruments

Finite Solenoid Field

Axial field profile, end fall-off and uniform zone of real solenoids.

B≈μ0nIB\approx\mu_0 nI
Fig. 1 Finite solenoid with a heat-map of axial field strength below
NSB(z) on axis: ends receive ≈ half the centre fieldn = 2,000 turns/m
Fig. 2 Axial flux density profile
-150-100-50050100150012345μ₀nIendendz (mm)B (mT)
B(z)
hover / touch plot to probe
Inputs drag, tap ± or type (SI suffixes ok: 4k7 → 4.7k)
A
mm
mm
Results
BB at centre
4.815 mT
BB at the ends
2.485 mT51.6 % of centre
Infinite-solenoid μ0nI\mu_0 nI
5.027 mT
HH at centre
3.83 kA/m
±1 % uniform zone
±13.2 mm26.4 % of length
Ampere-turns
400 A·t

§ How it works

A solenoid is a stack of loops. Integrating the single-loop axial field over a uniform winding density n=N/ℓn = N/\ell gives the closed form

Bz(z)=μ0nI2[z+ℓ/2(z+ℓ/2)2+R2−z−ℓ/2(z−ℓ/2)2+R2]B_z(z) = \frac{\mu_0 n I}{2}\left[\frac{z+\ell/2}{\sqrt{(z+\ell/2)^2+R^2}} - \frac{z-\ell/2}{\sqrt{(z-\ell/2)^2+R^2}}\right]

The two bracket terms are cos⁡θ1+cos⁡θ2\cos\theta_1 + \cos\theta_2, the cosines of the angles subtended by each end. For a long coil both approach 1 and the familiar B=μ0nIB = \mu_0 n I results. At an end, one angle is 90°, so the field drops to about half, visible as the shoulders in the plot.

The "uniform zone" reports where the field stays within 1 % of the centre value; useful for designing test coils, magnetisers and sensor calibration fixtures.