Magnetic field due to solenoid
B=μnI;n=NL=numberofturnslength
The field lines inside the solenoid are in the form of parallel straight lines. Which indicates that the magnetic field is the same at all points inside the solenoid. i.e. the field is uniform inside the solenoid. The magnetic field of a current carrying solenoid is used in making electromagnets.