# Magnetic Field Inside a Straight Coil

In this section, we use the magnetostatic integral form of Ampere’s Circuital Law (ACL) (Section 7.4) to determine the magnetic field inside a straight coil of the type shown in Figure 7.6.1 in response to a steady (i.e., DC) current. The result has a number of applications, including the analysis and design of inductors, solenoids (coils that are used as magnets, typically as part of an actuator), and as a building block and source of insight for more complex problems.

The present problem is illustrated in Figure 7.6.2. The coil is circular with radius

and length

, and consists of

turns (“windings”) of wire wound with uniform winding density. Since the coil forms a cylinder, the problem is easiest to work in cylindrical coordinates with the axis of the coil aligned along the

axis.

To begin, let’s take stock of what we already know about the answer, which is actually quite a bit. The magnetic field deep inside the coil is generally aligned with axis of the coil as shown in Figure 7.6.3. This can be explained using the result for the magnetic field due to a straight line current (Section 7.5), in which we found that the magnetic field follows a “right-hand rule.” The magnetic field points in the direction of the fingers of the right hand when the thumb of the right hand is aligned in the direction of current flow. The wire comprising the coil is obviously not straight, but we can consider just one short segment of one turn and then sum the results for all such segments. When we consider this for a single turn of the coil, the situation is as shown in Figure 7.6.4. Summing the results for many loops, we see that the direction of the magnetic field inside the coil must be generally in the

direction when the current

is applied as shown in Figures 7.6.2 and 7.6.3. However, there is one caveat. The windings must be sufficiently closely-spaced that the magnetic field lines can only pass through the openings at the end of the coil and do not take any “shortcuts” between individual windings.

Figure 7.6.3 also indicates that the magnetic field lines near the ends of the coil diverge from the axis of the coil. This is understandable since magnetic field lines form closed loops. The relatively complex structure of the magnetic fields near the ends of the coil (the “fringing field”) and outside of the coil make them relatively difficult to analyze. Therefore, here we shall restrict our attention to the magnetic field deep inside the coil. This restriction turns out to be of little consequence as long as

.

Also, it is apparent from the radial symmetry of the coil that the magnitude of the magnetic field cannot depend on ϕϕ. Putting these findings together, we find that the most general form for the magnetic field intensity deep inside the coil is ** **

. That is, the direction of ** **

is

and the magnitude of ** **

depends, at most, on

. In fact, we will soon find with the assistance of ACL that the magnitude of ** **

doesn’t depend on

either.

Here’s the relevant form of ACL:

where

is the current enclosed by the closed path

. ACL works for *any* closed path that encloses the current of interest. Also, for simplicity, we prefer a path that lies on a constant-coordinate surface. The selected path is shown in Figure 7.6.5. The benefits of this particular path will soon become apparent. However, note for now that this particular choice is consistent with the right-hand rule relating the direction of

to the direction of positive

. That is, when

is positive, the current in the turns of the coil pass through the surface bounded by

in the same direction as the fingers of the right hand when the thumb is aligned in the indicated direction of

.

Let’s define

to be the number of windings in the coil. Then, the winding density of the coil is

(turns/m). Let the path length in the

direction be

, as indicated in Figure 7.6.5. Then the enclosed current is

That is, the number of turns per unit length times length gives number of turns, and this quantity times the current through the wire is the total amount of current crossing the surface bounded by

.

For the choice of

made above, and taking our approximation for the form of ** **

as exact, Equation 7.6.1 becomes

The integral consists of segments

,

,

, and

, as shown in Figure 7.6.5. Let us consider the result for each of these segments individually:

- The integral over segments and is zero because for these segments, and so for these segments.
- It is also possible to make the contribution from Segment go to zero simply by letting . The argument is as follows. The magnitude of

With

, only Segment

contributes significantly to the integral over

and Equation 7.6.3 becomes:

Note

is simply

. Also, we have found that the result is independent of

, as anticipated earlier. Summarizing:

Let’s take a moment to consider the implications of this remarkably simple result.

- Note that it is dimensionally correct; that is, current divided by length gives units of A/m, which are the units of
- We have found that the magnetic field is simply winding density () times current. To increase the magnetic field, you can either use more turns per unit length or increase the current.
- We have found that the magnetic field is uniform inside the coil; that is, the magnetic field along the axis is equal to the magnetic field close to the cylinder wall formed by the coil. However, this does not apply close to ends of the coil, since we have neglected the fringing field.

These findings have useful applications in more complicated and practical problems, so it is worthwhile taking note of these now. Summarizing:

The magnetic field deep inside an ideal straight coil (Equation 7.6.5) is uniform and proportional to winding density and current.

## Additional Reading

- “Electromagnetic Coil” on Wikipedia.
- “Solenoid” on Wikipedia.

Ellingson, Steven W. (2018) Electromagnetics, Vol. 1. Blacksburg, VA: VT Publishing. https://doi.org/10.21061/electromagnetics-vol-1 CC BY-SA 4.0

## Explore CircuitBread

## Friends of CircuitBread

Get the latest tools and tutorials, fresh from the toaster.