The strength of magnetic field inside a long current-carrying straight solenoid is:
(3)
The magnetic field inside a solenoid is proportional to both the applied current and the number of turns per unit length. There is no dependence on the diameter of the solenoid, and the field strength does not depend on the position inside the solenoid, i.e., the field inside is constant.
The magnetic field is nearly uniform field in the center, i.e., inside of a long solenoid and the field outside is weak and divergent.