Axial field of a finite, straight, thin shell solenoid

This formula uses the formula for the field due to a current loop, integrated over a range off axial displacements to obtain the magnetic field at any point on the axis of a finite, thin shell solenoid.

Solenoid in cross section view.

General Case:
B is the magnetic field, in teslas, at any point on the axis of the solenoid. The direction of the field is parallel to the solenoid axis.

is the permeability constant (1.26x10-6 H/m)

i is the current in the wire, in amperes.

N is the total number of turns of wire in the solenoid.

l is the length of the solenoid, in meters.

r is the radius of the solenoid, in meters.

x1 and x2 are the distances, on axis, from the ends of the solenoid to the magnetic field measurement point, in meters.

Special Case: x1=(-x2)

The magnetic field measurement point is at the center of the solenoid.
 Magnet Formulas web site, © 2005 by Eric Dennison. I am developing an updated and expanded version of the magnet web site and encourage you to visit this work in progress and comment on what you see. As a self-employed software engineer trying to balance time between work and magnets, your encouragement in building this site is always welcome! Please consider clicking the PayPal link and making a contribution to support the maintenance and development of this site. Thank you for visiting!