The self-inductance \( L \) of a solenoid is given by the formula:
\[
L = \frac{\mu_0 \mu_r N^2 A}{l}
\]
Where \( \mu_0 \) is the permeability of free space, \( \mu_r \) is the relative permeability, \( N \) is the number of turns, \( A \) is the cross-sectional area, and \( l \) is the length of the solenoid.