Blue dots = current flowing through the coil. Green curves = magnetic field lines threading the coil. Increasing turns N, current I, or core μr makes the field lines denser and shows inductance L∝N²μr increasing.
Long-solenoid approximation ($K_n\to1$). $L$ is proportional to the square of the number of turns $N^2$ and the core relative permeability $\mu_r$, and inversely proportional to length $l$.
$$B = \mu_0\mu_r \frac{N I}{l},\qquad E = \tfrac{1}{2}L I^2,\qquad X_L = 2\pi f L$$$B$ = on-axis magnetic flux density, $E$ = stored energy, $X_L$ = inductive reactance.
Wheeler approximation (error ≤ 1% within its practical range):
$$L \approx \mu_0\mu_r\frac{\pi r^2 N^2}{l + 0.9r}$$$K_n$ is the finite-length correction factor (Hantaro Nagaoka, 1909), given exactly in terms of the elliptic integrals $K(k),E(k)$.