Moving a magnet into or out of a coil of wire induces a current in the wire due to electromagnetic induction. A changing magnetic field induces a voltage in any wire cutting through it, causing a current. The induced voltage and current can be increased by moving the magnet or wire faster, using a stronger magnet, adding more turns to the coil, or using a larger coil area. Generators produce electricity through electromagnetic induction by rotating a coil in a magnetic field. Transformers change the voltage of alternating current by using two coils - a changing magnetic field in one coil induces a voltage in the other.