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