The strength of magnetic field produced by a current-carrying solenoid depends on:
1. The strength of current in the solenoid: Larger the current passed through solenoid, stronger will be the magnetic field produced.
2. The number of turns in the solenoid: Larger the number of turns in the solenoid, greater will be the magnetic field produced.