How do permanent magnets work?

All permanent magnets work because of their unique atomic structure. Unlike all other objects, the atoms within magnets are all spinning in the same direction. This atomic flow inside of each permanent magnet creates an invisible magnetic force or field around the magnet that can attract or repel other magnets – and attract other metal objects.

In addition, all permanent magnets have a north and south pole on opposite sides of the magnet. The north pole of a magnet points roughly toward earth's north pole and vice-versa.

In terms of functionality, the common saying is: like poles repel, unlike poles attract.