Saved

Press the star next to a tool's name to save it.

All my tools

Solenoid Inductance Calculator

Use this solenoid inductance calculator to find the self-inductance of a long coil from its turns, length and diameter, plus the magnetic field inside from the current.

Restored your last values ·

A

Choose US or metric units. Enter the number of turns, the length and the diameter of the coil. Add a current to get the magnetic field inside, and a relative permeability if the coil has a core.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Enter the turns, the length and the diameter, then press Calculate.

See full result

A solenoid inductance calculator gives the self-inductance of a long coil of wire from its number of turns, its length and its diameter. Add a current and it also gives the magnetic field inside the coil, so one page covers the solenoid magnetic field calculator as well. Both formulas come from the long-solenoid model.

How to use the solenoid inductance calculator

  1. Choose US or metric units.
  2. Enter the turns, the length and the diameter of the coil.
  3. Optionally add the current and the relative permeability of a core.
  4. Press Calculate.

The inductance formula

A solenoid is a long, tightly wound coil, and its inductance is L = µ₀ N² A ÷ l, where N is the number of turns, A the cross-sectional area, l the length and µ₀ = 1.25664 × 10⁻⁶ T·m/A the permeability of vacuum or air [1]. Wikipedia's article on inductance gives the same result and says that, for an air-core coil, the inductance is a function of the coil geometry and the number of turns [2]. The calculator takes a circular cross-section, so A = π d² ÷ 4.

A worked example

Take 1,500 turns, a diameter of 8 centimetres and a length of 1.5 metres. The area is about 50.27 square centimetres, and L = 1.25664 × 10⁻⁶ × 1,500² × 0.005027 ÷ 1.5, which is about 9,475 microhenries, or 9.5 millihenries. Enter 1,500 turns, 150 centimetres and 8 centimetres in metric mode and the calculator returns 9,474.8 µH.

The magnetic field inside

The field inside a long solenoid is B = µ₀ N I ÷ l, where I is the current. It is uniform along the middle of the coil and tends to a constant value far from the ends [1]. For 100 turns, 0.1 metres and 0.1 amperes, B = 1.25664 × 10⁻⁴ tesla, which is 125.66 microtesla. The calculator shows the field in millitesla, microtesla and tesla.

Adding a core

With a core, Wikipedia says to replace µ₀ by µ, or by µ₀ µr, where µr is the relative permeability of the core material [1]. That is what the optional µr box does: it multiplies the inductance and the field. The substitution only holds when the core fills the path of the field, and Wikipedia makes it conditional on the coil being much longer than the product of µr and the diameter [1]. For an iron or ferrite core the real value changes with current, so treat the result as a first estimate only.

How long is long enough

Both formulas assume a long solenoid, one for which fringe effects at the ends can be ignored [1]. Wikipedia gives no numerical limit for the plain coil. As our own rule of thumb, the calculator calls a coil long when its length is at least ten times the product of µr and the diameter, and it prints a warning when it is not. A short, fat coil has a lower inductance and a weaker field near its ends than the ideal formula gives, so the true value is smaller than the result shown.

Turns per length

Many datasheets give turns per centimetre rather than total turns, for example 10 turns per centimetre over 150 centimetres, which makes 1,500 turns. Multiply the density by the length to get N before you use the calculator. The result line also states the turns per metre, N ÷ l, so you can see the winding density that drives the field. The field B = µ₀ n I depends only on that density and the current, not on the diameter.

Why the square of N

The inductance grows with N² because more turns both create more flux for a given current and link that flux more times. Doubling the turns at a fixed size therefore quadruples the inductance, while the field only doubles. Doubling the diameter quadruples the area and so the inductance, but the field does not change. Doubling the length halves both. These scaling rules are quick checks on any result.

Units

In US mode the length and the diameter are in inches and in metric mode they are in centimetres. The inductance is given in microhenries, millihenries and henries, and the field in millitesla, microtesla and tesla. The current is in amperes. The constant µ₀ is held at 1.25664 × 10⁻⁶ T·m/A, so very small differences from a value with more digits are to be expected.

What the calculator leaves out

It does not model the resistance of the wire, the capacitance between turns, the skin effect at high frequency, the spacing of the winding or the saturation of a core. A single-layer coil that is not tightly wound will differ from the ideal figure. For power inductors, use the maker's rated value and measure the part with an LCR meter.

Designing a coil for a target inductance

You can turn the inductance formula around to find the turns you need. From L = µ₀ N² A ÷ l, the turns are N = √(L l ÷ (µ₀ A)) [1]. This rearrangement is our own working.

As an example, suppose you want 10 millihenries on an air-core coil that is 0.1 metre long and 2 centimetres across. The area is π × 0.02² ÷ 4, or 3.1416 × 10⁻⁴ square metres. Then N = √(0.01 × 0.1 ÷ (1.25664 × 10⁻⁶ × 3.1416 × 10⁻⁴)), which is about 1,592 turns.

Enter 1,592 turns, 10 centimetres and 2 centimetres in the calculator to confirm that it returns about 10 millihenries. Remember to check the wire length and the winding space, since 1,592 turns must fit in 10 centimetres. Also check that the coil is long enough for the formula to hold.

Common mistakes

  • Entering the diameter as the radius. The box asks for the diameter.
  • Mixing inches and centimetres. Check the units option.
  • Using a core without checking the length. The coil must be much longer than the core's µr times its diameter.
  • Expecting a short coil to match the formula. End effects lower both L and B.

What next

Use this often? Add Solenoid Ind to your Home screen.

Frequently asked questions

What is a solenoid inductance calculator?

A tool that finds the self-inductance of a long coil from its turns, length and cross-section.

What is the formula for the inductance of a solenoid?

L = µ₀ N² A ÷ l, where N is the number of turns, A the area and l the length.

How do I find the magnetic field inside a solenoid?

Use B = µ₀ N I ÷ l, which needs the turns, the current and the length. Enter a current in the calculator.

How do I include an iron core?

Enter its relative permeability µr, which multiplies µ₀. This only holds when the core fills the field path and the coil is long.

Does the diameter change the magnetic field?

No. In the long-solenoid formula the field depends on the turns per length and the current only.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Physics & Science Tools