Electromagnet
An electromagnet is a coil of wire that becomes a magnet when current flows through it. Putting an iron core inside the coil makes the core a magnet too, so the electromagnet gets much stronger. It is a magnet only while current flows; when you switch off the current, it loses almost all its magnetism.
Formulas
When to use it
Use it for questions about how to make an electromagnet stronger, where the N and S poles are for a given current direction, or devices that use electromagnets.
Worked example
You build two electromagnets with the same battery and iron core, one with 20 turns of wire and one with 40 turns. With everything else the same, the 40-turn electromagnet is stronger and picks up more paper clips. Adding a second battery in series to increase the current also makes it stronger.
Common mistake
A common mistake is to think changing the amount of current flips the poles. The amount of current only changes the strength; the N and S poles switch only when you reverse the battery to change the direction of the current.