The inductance of a solenoid is given by

where

is the magnetic permittivity
N is the number of turns of the solenoid
l is its lenght
A is its cross-sectional area
By re-arranging the formula and replacing the numbers, we get the number of turns of the solenoid:
