This figure shows a model of the Earth's magnetic field being generated within the Earth.
Click on image for full size
Gary A Glatzmaier (Los Alamos National Laboratory) and Paul H Roberts (University of California, Los Angeles).
Generating a Magnetic Field
Scientists believe there are two essential ingredients for generating a magnetic field. Those two ingredients are
A bar of iron can be made into a magnet by wrapping it with wires and running a current through the wires.
It is thought a planet, or a star, can generate a magnetic field if it has both of the two ingredients above. It must have enough magnetic material, and it must have currents moving inside the magnetic material. If a planet does not have enough of either of these two ingredients, it will not have a magnetic field. Planets which do not have magnetic fields include Venus (moves very slowly), and Mars (most the iron is on the surface, and not molten).
You might also be interested in:
The force of magnetism causes material to point along the direction the magnetic force points. Here's another picture of how this works. This picture shows where the magnetic poles of the Earth are to
...more Unlike the Earth, which has a protective shield around it called the magnetosphere, the surface of the moon is not protected from the solar wind. This picture shows the magnetosphere surrounding the Earth,
...moreEarth has a magnetic field. If you imagine a gigantic bar magnet inside of Earth, you'll have a pretty good idea what Earth's magnetic field is shaped like. Of course, Earth DOESN'T have a giant bar magnet
...moreUranus has a strange magnetic field. The magnetic poles of Uranus are not at all close to the geographic poles of Uranus. The main magnetic field of Uranus is tilted 59° away from the planet's spin axis.
...moreMercury has a magnetic field. Its field is weak. Earth's magnetic field is tilted. So is Mercury's. That means Mercury's magnetic poles are not in the same place as its geographic poles. Mercury has a
...moreThe Earth has a dipole magnetic field. This is when magnetic field lines point in a direction out of the South Pole and into the North Pole. Planets can also have quadrupoles (4 poles) and octupoles (8-poles).
...moreA magnetometer is an instrument for measuring magnetic fields. Many spacecraft carry magnetometers to measure the magnetic fields around planets. When a spacecraft makes those measurements, what do the
...more