A magnet is an object that produces a magnetic field, a region of influence that exerts forces on certain materials and on other magnets. The observable effects are attraction and repulsion between poles: opposite poles pull together and like poles push apart. These interactions are manifestations of magnetism, a fundamental electromagnetic phenomenon. Magnets are central to many tools and technologies because they concentrate and direct these forces in useful ways.

Characteristics and how magnets work

Magnets have two poles conventionally called north and south. The field lines emerge from the north pole and return to the south pole. At the microscopic level, magnetism in many materials arises from the alignment of atomic magnetic moments within regions called domains. When domains are aligned, the object behaves as a permanent magnet; when they are randomized, net magnetization is weak or absent. Heat, shock, or alternating magnetic fields can alter alignment and reduce magnetism.

Types of magnets

  • Permanent magnets — made from materials that keep a persistent magnetic field without a continuing external influence, such as many iron-based alloys.
  • Electromagnets — produced by electric current flowing through coils of wire; strength changes with current and coil design.
  • Temporary magnets — materials that behave like magnets only while exposed to a magnetic field.

Whether a material can be magnetized depends on its composition: iron, nickel, and cobalt are well known as magnetic materials, while others may be weakly affected or not at all.

History and natural examples

Natural magnetic rocks, often called lodestones, were observed in antiquity and used as early compasses. Understanding of magnetism developed over centuries alongside studies of electricity, eventually forming the modern theory of electromagnetism. The planet itself behaves like a giant magnet with a magnetic field that influences navigation and shields the atmosphere from charged particles.

Uses and importance

Magnets appear in many everyday and industrial contexts: compass needles for navigation, electric motors and generators that convert between electrical and mechanical energy, magnetic storage in data devices, sensors, loudspeakers, and medical imaging systems. Electromagnets enable controllable lifting magnets and particle-beam steering in research facilities. Because their strength and polarity can be designed, magnets are versatile components across scales.

Distinctions and notable facts

Not all magnetic behavior is the same. Terms such as ferromagnetic, paramagnetic, and diamagnetic describe different responses to applied fields. Magnetism and electricity are interrelated: changing magnetic fields induce electric currents and vice versa. Simple demonstrations—like stroking a piece of steel with a magnet to produce temporary magnetization—illustrate basic principles, while precise control of magnetic fields underlies advanced technology.