What factors control the strength of an electromagnet?

The strength of an electromagnet is determined by the density of coils surrounding the magnet, and the rate of current passing through those coils.