Skip to content
FiftyCalc Free calculators for all 50 states

Solenoid Magnetic Field Calculator

Test cases replayed : 2 of 2 match · Methodology · Sources

Enter the turns, coil length, current and core permeability to get the field inside the coil.

Result

Sample figures

Field B (mT)—

Turns per meter n —

  • Field B (T)—
  • Field B (gauss)—

Estimate for planning only, not tax, legal, financial or medical advice. Check important figures with the official source listed on this page.

Solenoid Magnetic Field Calculator

Number of turns N: enter 0 or more. Prefilled example: 1,000.

Coil length, in cm: enter 0 or more. Prefilled example: 20.

Current I, in A: enter 0 or more. Prefilled example: 2.

Relative permeability of the core μr (1 = air): enter 0 or more. Prefilled example: 1.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Number of turns N: enter 0 or more.
  2. Coil length, in cm: enter 0 or more.
  3. Current I, in A: enter 0 or more.
  4. Relative permeability of the core μr (1 = air): enter 0 or more.
  5. Read the result: Field B (mT); the panel also shows Turns per meter n, Field B (T) and Field B (gauss).

Sources

How this calculator works

B = μ₀ × μr × N × I ÷ l (Ampère's law applied to a long solenoid), with μ₀ = 1.25663706127 × 10⁻⁶ N/A² (NIST CODATA 2022 values, read on physics.nist.gov/cuu on 2026-10-27). 1 gauss = 10⁻⁴ T (NIST SP 811, Appendix B.9 conversion factors, read on nist.gov on 2026-10-27).

The formula gives the uniform field near the center of a long coil; the field at the ends is about half.

The formula

  1. Tpm=nlen÷100
  2. B=0.00000125663706127×mur×Tpm×i
  3. Mt=B×1,000
Symbols used in the formula
SymbolMeaningUnit
nNumber of turns N
lenCoil lengthcm
iCurrent IA
murRelative permeability of the core μr (1 = air)
TpmTurns per meter n
BField BT
MtField BmT

Worked example

Number of turns N1,000
Coil length20 cm
Current I2 A
Relative permeability of the core μr (1 = air)1
Turns per meter n5,000
Field B (T)0.0126
Field B (gauss)125.6637
  1. Tpm=1,00020÷100=5,000
  2. B=0.00000125663706127×1×5,000×2=0.0125664
  3. Mt=0.0125664×1,000=12.5664

Field B (mT) 12.5664

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

What is the field of 1,000 turns over 20 cm with 2 A?

About 12.5664 mT (125.66 gauss) with an air core.

Does the coil diameter matter?

Not for a long solenoid: only turns per unit length and current set the inner field.

Related calculators