Home · Science · Electricity & Circuits · Solenoid Magnetic Field Calculator

Solenoid Magnetic Field Calculator

Calculate the field inside a long solenoid from its turn density and current, assuming a uniform interior field.

Your figures

Example result — edit the figures to make it yours

0.005027 T

Field inside solenoid

Computed from the inputs on this page with the formula below — change any figure and every result updates.

Turn density n2,000.00 turns/m
Field strength H = n·I4,000.00 A/m

What this calculator does

Calculate the field inside a long solenoid from its turn density and current, assuming a uniform interior field. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.

The formula and method

B = mu0·n·I, n = N / length

Long air-core solenoid; end effects are ignored.

Field outside an ideal solenoid is taken as zero.

Worked example

With the example inputs this page opens with (number of turns 1000, solenoid length (m) 0.5, current (a) 2), the result is 0.005027 T — field inside solenoid. Computed from the inputs on this page with the formula below — change any figure and every result updates.

Quick reference

Quick reference — varying number of turns
Number of turnsField inside solenoid
5000.002513 T
8000.004021 T
10000.005027 T
12500.006283 T
15000.007540 T
20000.010053 T

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

Does the field depend on the solenoid's diameter?

Not in the ideal long-solenoid formula — only turn density and current matter.

How can the field be strengthened?

Add turns per metre, raise the current, or insert a high-μr core.

How does the Solenoid Magnetic Field Calculator work?

Calculate the field inside a long solenoid from its turn density and current, assuming a uniform interior field. Turns · Length · Current → Field B. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Solenoid Magnetic Field Calculator need?

Turns · Length · Current → Field B. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.