What is the magnetic field inside the solenoid?
B=μ0NIL,
Where, B is the magnetic field, μ0 is permeability constant, N is the number of turns,I is the applied electric current, and L is the length of the solenoid.