Magnet
A magnet is a material or object that produces a magnetic field. This field is invisible, but it creates the magnet's most noticeable property: it pulls on ferromagnetic materials such as iron, steel, nickel, and cobalt, and it attracts or repels other magnets. For a description of magnetic materials, see Magnetism. For other uses, see Magnet (disambiguation).
A permanent magnet is an object made from a material that is magnetized and creates its own lasting magnetic field. A refrigerator magnet, used to hold notes on a refrigerator door, is an everyday example. Materials that can be magnetized and are strongly attracted to a magnet are called ferromagnetic (or ferrimagnetic). These include iron, nickel, cobalt, their alloys, some alloys of rare-earth metals, and some natural minerals such as lodestone. Most other substances respond only weakly to a magnetic field.
Ferromagnetic materials can be "soft" or "hard." Soft materials, like annealed iron, can be magnetized but do not tend to stay magnetized. Hard materials do stay magnetized, and permanent magnets are made from them, such as alnico and ferrite. These materials are processed in a strong magnetic field during manufacture to line up their microcrystalline structure, which makes them very hard to demagnetize. How hard a material is to demagnetize depends on its coercivity. The overall strength of a magnet is measured by its magnetic moment or the total magnetic flux it produces, while the local strength of magnetism in a material is measured by its magnetization.
An electromagnet is made from a coil of wire that acts as a magnet when an electric current passes through it, and stops being a magnet when the current stops. The coil is often wrapped around a core of soft ferromagnetic material, such as mild steel, which greatly strengthens the magnetic field.
Discovery and development
Main article: History of electromagnetic theory
See also: Magnetism history
Ancient people learned about magnetism from lodestones (or magnetite), which are naturally magnetized pieces of iron ore. The word magnet came into Middle English from Latin magnetum, meaning "lodestone." That Latin word came from a Greek phrase meaning "stone from Magnesia," a place in Anatolia (today Manisa in modern-day Turkey) where lodestones were found. Lodestones that were hung so they could turn were the first magnetic compasses. The earliest known descriptions of magnets come from Anatolia, India, and China, about 2,500 years ago. Pliny the Elder wrote about lodestones and their attraction to iron in his encyclopedia Naturalis Historia in the 1st century AD.
In 11th century China, people discovered that cooling red hot iron that was lined up with the Earth's magnetic field left the iron permanently magnetized. This led to the navigational compass, and by the 12th and 13th centuries AD, magnetic compasses were used for navigation in China, Europe, the Arabian Peninsula, and elsewhere. Later, the horseshoe magnet was invented by Daniel Bernoulli in 1743 to stop a straight iron magnet from weakening itself. In 1820, Hans Christian Ørsted found that a nearby electric current could move a compass needle, and William Sturgeon built an iron-cored electromagnet in 1824. Joseph Henry later turned the electromagnet into a product that people could buy, giving them access to strong magnetic fields for the first time.
Physics
The magnetic flux density, also called the magnetic B field or just magnetic field, is a vector field. At any point in space it has a direction, which lines up with a compass needle, and a strength, which shows how strongly the needle turns in that direction. In SI units, the strength is measured in teslas. A magnet's magnetic moment describes its overall magnetic properties. For a bar magnet, it points from the south pole to the north pole, and its size depends on how strong and how far apart the poles are. A magnet makes its own magnetic field and also reacts to fields from other sources, feeling a torque that turns it to line up with the field. The magnetization describes how much magnetic moment is packed into a small space, and iron can be magnetized very strongly.
See also: Two definitions of moment
Scientists use two models for magnets: magnetic poles and atomic currents. The poles are a way of talking about the two ends of a magnet. A magnet does not really have separate north and south particles, and if a bar magnet is broken in two, each piece has both a north and a south pole. The north pole is the end that points toward the Earth's North Magnetic Pole when the magnet hangs freely. Since opposite poles attract, that spot is really the south pole of Earth's magnetic field. Materials also differ in how they respond to magnets. Ferromagnetic and ferrimagnetic materials, like iron, are the ones normally thought of as magnetic, and they can become magnets themselves. The demagnetizing field inside a magnet works to weaken it, and the magnet's shape changes how strong this effect is. For example, a sphere and a long cylinder behave differently.
Common uses
Magnets are used in many everyday things. VHS tapes hold a reel of magnetic tape, and audio cassettes also use magnetic tape. In computers, floppy disks and hard disks store data on a thin magnetic coating. Credit, debit, and automatic teller machine cards have a magnetic strip that holds information to connect with a person's bank account. Older televisions and large computer monitors with a cathode-ray tube use an electromagnet to guide electrons to the screen. Permanent magnets are useful in sensors that detect motion and position. In speakers, a coil wrapped around a bobbin attached to a cone moves when the signal passes through it, and this movement creates sound by pushing on the air around it, with the voice coil moving in response to a magnetic force. Microphones work in reverse, so that when sound makes a membrane move, a voltage is induced across a coil. Electric guitars use magnetic pickups to sense the vibrations of the strings, and the Hammond organ used a similar idea with tonewheels. Electric motors and generators also use magnets. In medicine, hospitals use magnetic resonance imaging to look at a patient's organs without surgery-free methods, and chemists use nuclear magnetic resonance to study compounds. In metalworking, chucks use magnets to hold objects, and magnets are also used in the magnetic base, the magnetic clamp, and the refrigerator magnet. A compass is a magnetized pointer that lines up with Earth's magnetic field. In art, vinyl magnet sheets can be attached to paintings and photographs. Many science projects are also based on magnets.
Magnets are also found in many other places. They are often used in toys, such as the Magnet Space Wheel and the Levitron, because they can counteract the force of gravity at close range. Refrigerator magnets decorate kitchens, act as a souvenir, or hold a note or photo to the refrigerator door. Magnets can also be used to make jewelry, such as necklaces and bracelets with magnetic clasps. They can pick up small or hard-to-reach magnetic items, such as nails, staples, and paper clips. In scrap and salvage work, magnets separate magnetic metals from non-magnetic metals. Magnets are also found in food factories, where they remove metal pieces from materials. Magnetic levitation transport, or maglev, uses electromagnetic force to suspend, guide, and propel vehicles, especially trains. Eliminating rolling resistance increases efficiency. The maximum recorded speed of a maglev train is 581 kilometers per hour (361 mph). Magnets can also serve as a fail-safe device for some cable connections, such as the magnetic power cords of some laptops. The MagSafe power connection to the Apple MacBook is one such example.
Medical issues and safety
Further information: Electromagnetic radiation and health
Human tissues are only slightly affected by static magnetic fields, so there is little mainstream scientific evidence that these fields harm health. Dynamic magnetic fields may be different. Some links between electromagnetic radiation and cancer rates have been suggested based on population patterns. If a piece of ferromagnetic metal is inside the body, an outside magnetic field can be a serious safety risk.
A pacemaker is a device placed in a patient's chest to monitor and regulate the heart so it keeps a steady electrical beat. Care must be taken to keep it away from magnetic fields, which is why a patient with one cannot be scanned by an MRI machine. Children sometimes swallow small magnets from toys. Swallowing two or more can be dangerous because the magnets can pinch or puncture tissues inside the body. MRI machines create very strong magnetic fields, so rooms that hold them keep out metals containing iron. Objects such as oxygen canisters could be thrown around by these fields and create a serious safety risk.
Magnetizing ferromagnets
See also: Remanence
Ferromagnetic materials can be magnetized in several ways. One of the most effective is to heat the object above its Curie temperature, let it cool in a magnetic field, and hit it with a hammer as it cools. This method is similar to the industrial processes used to make permanent magnets. Placing an item in an outside magnetic field can also leave it with some magnetism after it is removed, and vibration has been shown to make this effect stronger. Striking a steel nail held in the fingers with a hammer, lined up from north to south, will also make the nail temporarily magnetic.
Magnets can also be made by moving an existing magnet along an object, either from one end to the other in the same direction, or by moving two magnets outward from the middle of a third. Passing an electric current through a coil can also line up domains in a material. Once all the domains are lined up, a stronger current does not make the magnetism any stronger.
Demagnetizing ferromagnets
Magnetized ferromagnetic materials can be demagnetized, or degaussed, in several ways. Heating a magnet past its Curie temperature destroys the alignment of the magnetic domains, which completely removes its magnetism. Placing the magnet in an alternating magnetic field stronger than the material's coercivity, then slowly pulling the magnet out or slowly lowering the field to zero, also works. This method is used by machines that demagnetize tools, erase credit cards, and clear hard disks. Hitting or shaking a magnet can also reduce its magnetism, but this may damage it.
Types of permanent magnet
Many materials have tiny spins that do not line up with each other. Most of these materials are paramagnetic. When the spins line up on their own, the material is called ferromagnetic, which is often what people mean by "magnetic." Some metals are ferromagnetic in their natural form, as ores. These include iron ore (magnetite or lodestone), cobalt and nickel, and the rare earth metals gadolinium and dysprosium when they are very cold. Natural magnets like these were used in the first experiments with magnetism. Today, people make many magnets from human-made materials, but these are still based on naturally magnetic elements.
Ceramic, or ferrite, magnets are made from a sintered composite of powdered iron oxide and barium/strontium carbonate ceramic. They are cheap and can be mass-produced, but they are brittle and must be handled like other ceramics. Alnico magnets are made by casting or sintering aluminium, nickel and cobalt with iron. They resist corrosion, and they are more forgiving than ferrite. Injection-molded magnets are a composite of resin and magnetic powders, so they can be shaped into complex parts, but they are weaker and feel like plastics. Flexible magnets are made from a coercivity ferromagnetic compound, usually ferric oxide, mixed with a resin binder. For magnetic compounds such as Nd2Fe14B, which are vulnerable to grain boundary corrosion, this gives extra protection. Some nano-structured materials show energy waves, called magnons, that gather into a common state like a Bose–Einstein condensate.
Rare earth (lanthanoid) elements have a partly filled electron shell, so their spins can be aligned to make very strong magnets. Their higher price is less of a concern in compact magnets. The most common types are samarium–cobalt and neodymium–iron–boron (NIB) magnets. Because of supply limits, scientists want rare-earth-free options. The US Advanced Research Projects Agency-Energy (ARPA-E), part of the United States Department of Energy, has supported work on these alternatives, and the UK government has funded research into rare-earth-free technologies for vehicles. In 2026, researchers announced boride magnets made from transition metals and boron instead of rare-earth elements, with a tetragonal symmetry crystal structure.
Main article: Rare-earth magnet
In the 1990s, scientists found that certain molecules with paramagnetic metal ions can store a magnetic moment at very low temperatures. This is different from conventional magnets, which store information in magnetic domains. The most common of these molecules, called single-molecule magnets, often contain manganese. Some chain systems can also keep their magnetization for a long time at higher temperatures. These are called single-chain magnets.
Main article: Single-molecule magnet
The cheapest permanent magnets are flexible and ceramic magnets, but they are also among the weakest. Ferrite magnets are low-cost because they are made from cheap raw materials. Neodymium–iron–boron (NIB) magnets are among the strongest. They cost more per kilogram, but their strong field means they are smaller and cheaper in many uses. When a magnet is heated to its Curie point, it loses all of its magnetism, though it can often be magnetized again. Some magnets are brittle and can crack at high temperatures.
Electromagnets
Main article: Electromagnet
An electromagnet is, in its simplest form, a wire coiled into one or more loops, called a solenoid. When electric current flows through the wire, a magnetic field is created. The field is strongest near the coil and especially inside it, and its field lines look very similar to those of a magnet. The direction of this magnet is set by the right hand rule. The strength of an electromagnet depends on the number of loops of wire, the size of each loop, and the amount of current passing through the wire.
If the wire is wrapped around something with no special magnetic properties, such as cardboard, the field is very weak. However, if it is wrapped around a soft magnetic material, such as an iron nail, the field can become several hundred to a thousand times stronger.
Electromagnets are used in particle accelerators, electric motors, junkyard cranes, and magnetic resonance imaging machines. Some uses need more complicated arrangements than a simple magnet. For example, quadrupole and sextupole magnets are used to focus particle beams.
Formulation
Main article: Force between magnets
Scientists measure magnets using units such as SI, which is the most common, and sometimes Gaussian or CGS-EMU. The magnetic field is measured in teslas, and magnetization is the magnetic moment per unit volume. Far from a magnet, its field acts like a simple dipole field, and it gets weaker as you move farther away. Closer to the magnet, the field becomes more complicated and depends on the magnet's shape. The strength of a magnet can be described by its pull force, which is its ability to pull ferromagnetic objects such as iron. Magnets can also be described by hysteresis loops, which show how their behavior depends on their history.
Formulas can be used to calculate how strongly magnets pull on objects and on each other. The force between two magnets changes with the distance between them. Some situations are too complicated for a simple formula, so numerical methods are needed to solve them.

Quiz time!
5 questions about Magnet
What happens to an electromagnet when the electric current stops flowing?
Pictures
Keep exploring
This article is a child-friendly adaptation of the Wikipedia article on Magnet, available under CC BY-SA 4.0.
Images from Wikimedia Commons. Tap any image to view credits and license.