How does the magnetic field of an electromagnet depend on the current and number of coils?

I think that the more coils and the greater amount of current, the bigger the magnetic field and the greater distance it can reach, but I am not sure so don't take my word for it.