Solenoid Magnetic Field
A long solenoid produces a nearly uniform field inside, set by its turn density and current — the workhorse electromagnet.
The field is B = μ_0·n·I. where μ_0 is the permeability of free space, n the turns per metre and I the current.
Apply the long-solenoid field formula.
Results
More turns per metre or more current strengthens the field. Inserting an iron core multiplies it by the core’s relative permeability.