Many turns reinforce a shared field component
A current loop produces magnetic field along its axis. In a tightly wound solenoid, many loop contributions superpose. In the middle of a long air-core coil they reinforce a shared axial direction and vary little over small position changes, giving a simple approximation. At an end, loops on one side are missing; field decreases and becomes less uniform.[1][3]
- Prior knowledge: N counts turns; turn density is number per winding length. Winding length is not total wire length.
- The long air-core formula describes B in teslas, not H in amperes per metre.
- With a shared current orientation, interior field points along the axis. Use the right hand for direction.
How do you calculate the field inside a long air-core solenoid?
N turns are uniformly distributed over winding length ℓ; I is current magnitude here. The subscript denotes the ideally long model.[1]
The equation approximates the interior of a tightly wound solenoid without a ferromagnetic core whose length greatly exceeds its diameter. Uniform means that magnitude and direction change little within the selected measurement region. It does not mean a finite coil has the same field everywhere, especially at its ends or outside. Air permeability is treated as vacuum permeability at the precision used here.[1]
An integration path counts enclosed turns
a is the length of the interior integration segment, not necessarily the entire solenoid length. It encloses na turns.[2]
In the ideally long limit choose a rectangle: one long side is inside parallel to the field, the other outside in negligible field. Short sides are perpendicular to the field and contribute zero. The integral reduces to an interior segment with constant B. For a finite coil, external and edge contributions are not exactly zero; choosing a convenient rectangle cannot remove them. The assumed symmetry justifies the simplification. Maxwell’s equations in integral form place this steady-current Ampère model and the additional displacement current in context.[2][6]
When is a solenoid long enough and what changes at an end?
“Long” is not a fixed number of centimetres. Winding-length-to-radius ratio and observation location matter. The finite expression sums axial fields of many ideal thin circular turns with uniform turn density. The same coil gives different central and end values. This expression applies on the axis; off-axis points require a different spatial model.[1][3]
Thin cylindrical winding of radius R, uniform turn density and centre z=0; this expression describes the axis, not the full three-dimensional field.[1]
For length much greater than R, the centre approaches the long model while the axial end field approaches half that value.[1]
The finite-axis expression sums fields of thin current loops along the winding. Its centre form gives a controllable approximation error without claiming that every coil is one-dimensional. It is particularly useful for tightly wound single-layer models; thick windings need further integration over radius. The real external field closes the field lines and is not negligible everywhere around a finite coil.[3][1]
View diagram: Centre and ends of a short solenoid
Centre and ends of a short solenoid
Free with a Quanta account. Your download stays ready after registration.
Winding current fixes axial direction
Looking at an end, counterclockwise conventional current makes the axial field point out of that end towards you. Reversing current makes it point into the solenoid. The gripping rule assigns curled fingers to winding current and the thumb to interior field. Electron drift in the wire opposes conventional current and must not be substituted without reversing orientation.[3]
More turns alter field strength at fixed current. At fixed supply voltage, however, longer wire can increase resistance and change current. “Twice the turns gives twice the field” therefore requires the same actual current, winding length and valid geometry. A Helmholtz arrangement combines two coordinated loop fields and cannot be calculated solely using the long cylindrical-solenoid equation.[1][3]
Turn density, constant status and design
N is a dimensionless count. A design target for N ultimately needs an attainable integer number of turns.[1]
We use rounded calculation value μ0≈1.25663706·10−6 H/m. The CODATA 2022 table assigns measurement uncertainty to vacuum permeability; in the present SI it is no longer exactly fixed by the old ampere definition. This uncertainty is much smaller than winding and current deviations in our model examples. Convert centimetres to metres before calculating length; turns per centimetre correspond to one hundred times as many turns per metre.[4]
Calculate interior field and finite correction
Long model solenoid
- Given
- N=720, ℓ=0.360 m, I=1.20 A, radius 10 mm; air core, tightly wound, measured at centre. Use μ0=1.25663706·10−6 H/m.
- Find
- Calculate long-model interior field and check centre approximation error.
Approach: obtain turn density from winding length, then check using the finite centre expression.
Insert SI values without interchanging diameter and length.
Result: The long model gives 3.016 mT; the finite centre value is about 3.011 mT.
Check: The finite model is 0.154% below the long value, relative to that value. Doubling current doubles both while the linear air-core model holds.
Short solenoid: centre differs from end
- Given
- Thin air-core winding: N=300, ℓ=0.100 m, R=0.0400 m, I=0.800 A. Same calculation value of μ0.
- Find
- Calculate axial field at centre and at an end.
Approach: since length and diameter are comparable, use finite expressions and retain the long value only as comparison.
Calculate both correction factors separately.
Result: Centre≈2.355 mT, end≈1.400 mT. The long model noticeably overestimates the centre.
Check: Centre factor is 0.7809 and end factor 0.4642. Here the end value is not exactly half the actual centre value.
An accuracy requirement becomes a minimum length
- Given
- An ideal thin uniformly wound air-core solenoid has radius R=1.50 cm. The infinite approximation may overestimate central axial field by at most 1.00%, relative to the finite value. For a check use N=600, I=0.500 A and ℓ=22.0 cm.
- Find
- Find minimum length and check the chosen coil.
Approach: use the central finite-length factor and solve the relative overestimate for length.
Substitute δ=0.0100, then calculate the finite field of the 22 cm coil.
Result: Minimum length is about 21.16 cm. The chosen 22.0 cm length meets the requirement at the centre.
Check: The overestimate is about 0.9255% relative to finite central field. This does not establish 1% accuracy at the end, where a different spatial correction applies.
Five different checks of the solenoid model
Calculate · Foundation
A long air-core solenoid has N=450, ℓ=0.300 m and I=0.600 A. Use μ0=1.25663706·10−6 H/m. Find central interior field.
Show hint
Do not multiply only turn count by current.
Learning goal: Calculate turn density and field in SI.
Show solution and calculation
Model and approach: Central region of a long air-core coil, away from its ends.
Approach: N and ℓ give .
Field is 1.131 mT.
Check: doubling length at fixed turns halves field while the long model remains valid.
Rearrange · Application
In the long air-core model, N=800 and ℓ=0.400 m should produce 2.00 mT. What current is required? Same μ0 value.
Show hint
Convert millitesla to tesla first.
Learning goal: Design current for a specified field.
Show solution and calculation
Model and approach: Solve for current under the same long air-core assumptions.
Approach: rearrange the field equation for I.
I≈0.795775 A.
Check: turn density 2000 m−1 with this current reproduces 2.00 mT.
Interpret · Application
You look at the right end of an air-core solenoid. Conventional current is counterclockwise in this view. Does interior field point right towards you or left away? What changes on reversing current?
Show hint
Keep the stated end view fixed.
Learning goal: Connect winding-current arrows with field direction.
Show solution and calculation
Approach: apply the gripping rule to conventional winding current.
Field points right towards you; reversing current points it left.
Check: equal absolute current leaves field magnitude unchanged.
Error analysis · Application
For a thin air-core solenoid with a calculation claims centre field is exactly μ0nI because all turns look alike. Find the correct factor and relative overestimate measured against the finite value.
Show hint
Substitute into the centre expression.
Learning goal: Correct an invalid finite-coil field assumption.
Show solution and calculation
Approach: finite geometry gives factor .
Relative to the finite value, the long value is too large by .
Check: similar-looking loops do not establish infinite translational symmetry.
Transfer · Challenge
Two long air-core solenoids have the same length and radius. Coil B has twice as many turns and twice the wire length at equal wire cross-section; in this simplified model its resistance is doubled. Both reach steady state at the same constant voltage. Compare their fields.
Show hint
Equal voltage does not imply equal current here.
Learning goal: Account for assumptions when changing turns at fixed voltage.
Show solution and calculation
Approach: Ohm’s law gives half the current in B.
Twice the turn density times half the current gives the same interior field.
Check: this requires the stated resistance scaling and equal conditions; heating and extra layers are not automatically included.
Explore further: Real magnetic cores
A homogeneous linear magnetic material can be described by permeability under suitable geometric conditions. A real iron core has operating-point-dependent magnetization, often hysteresis, saturation and leakage flux. Simply multiplying an air-core result by an arbitrary large constant μᵣ therefore does not reliably predict an open electromagnet. Air gaps and the complete magnetic path may require a magnetic-circuit or field model.[5]
For changing current, the quasi-static field expression is appropriate only when propagation and displacement-current effects are small for the question. Resistive losses and acceptable wire temperature limit attainable current. A theoretical target value for B does not produce a ready-to-operate design. The long solenoid is a clear starting point for field measurements and particle deflection, not a replacement for checking actual construction. When current changes, self-induction describes the additional winding voltage in the appropriate inductance model.[2]
What to take away
- Long air-core field depends on turns per length and current. More turns alone do not guarantee stronger field at fixed supply voltage.
- Check length-to-radius ratio and observation location. Central field does not automatically apply at the end.
- An iron core needs a material model; its effect is not a universal constant multiplier.
Sources for this explanation
Quanta · Updated October 2, 2026
- OpenStax University Physics Volume 2 §12.6 Solenoids and Toroids
- OpenStax University Physics Volume 2 §12.5 Ampère’s Law
- OpenStax University Physics Volume 2 §12.4 Magnetic Field of a Current Loop
- NIST: 2022 CODATA complete constants listing
- OpenStax University Physics Volume 2 §12.7: Magnetism in Matter
- OpenStax University Physics Volume 2 §16.1 Maxwell’s Equations and Electromagnetic Waves
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 3 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Refined question headings and added scientifically relevant paragraph links; retained existing derivations, examples, diagrams, exercises and sources.
- Distinguished long air-core model from finite axial fields; wrote Ampère reasoning, two original examples, five exercises and material limits.
- Added an accessible entry and prerequisites, explained model steps, and added a complete example and quantitative diagram; retained existing examples, five exercises and sources.
Cite this reference page
Quanta. Magnetic Field of a Long Coil. Updated October 2, 2026. https://quanta-study.de/en/formula-sheet/magnetfeld-spule
When citing a specific scientific statement, also cite the specialist source linked to that statement.