AP Syllabus focus: 'A magnetic dipole, such as a compass, tends to align with a magnetic field; Earth’s magnetic field may be approximated as a dipole.'
Magnetic alignment explains why compasses point in predictable directions and why Earth can guide navigation. The key idea is that a magnetic dipole rotates until it matches the direction of the magnetic field around it.
Magnetic Dipoles in External Fields
The central object in this topic is the magnetic dipole.
A magnetic dipole is a system with a north and south magnetic polarity that can interact with an external magnetic field.
A compass needle is a small magnetic dipole mounted so it can rotate freely. Because it can rotate, it responds mainly by turning when placed in a magnetic field. The field exerts a turning effect that rotates the dipole until it reaches a preferred orientation.
What alignment means
When a dipole aligns, its axis becomes parallel to the magnetic field at its location. The north end of a compass points in the direction of the local magnetic field. If the needle is disturbed and released, it swings back toward that direction.
Alignment is about the local field, not about an object choosing a global destination. A compass does not detect a map direction by itself. It simply responds to the magnetic field where it is located.
A common misconception is that a compass points directly at a magnetic source. More accurately, it points along the magnetic field direction at its own position.

Compasses placed at different locations around a bar magnet rotate to align with the local magnetic field direction at each point. The diagram also shows how connecting these local directions produces continuous field lines, emphasizing that “alignment” is determined by the field at the compass’s position, not by pointing straight at the source. Source
Because that direction can vary from place to place, two compasses near the same source can point in different directions.
Only one orientation is stable: with the dipole lined up with the field. The opposite orientation is unstable, so a small disturbance makes the needle turn away from it. This is why a freely moving compass settles into a definite direction instead of remaining random.
Why Distance Matters
A compass aligns with the net magnetic field around it. If more than one magnetic source is present, the needle responds to their combined effect. This makes distance important.
A nearby magnetic source usually affects a compass more strongly than a distant one. Even if Earth provides the background field, a magnet close to the compass can change the needle’s direction because its field at the compass may be larger there. When the source is moved farther away, its influence becomes weaker.
Comparing nearby and faraway sources
Close source: stronger influence on the compass, so the needle may rotate toward that source’s field direction.
Far source: weaker influence, so the compass is more likely to follow the surrounding background field instead.
Changing distance: as a magnetic source moves closer or farther away, the compass direction can change because the balance of the fields changes.
This idea explains everyday observations. A compass in an open area usually follows Earth’s field. The same compass placed beside a strong magnet may point in a very different direction. Moving the magnet away reduces its influence, and the needle returns to the direction set mainly by Earth.
Distance matters because the field from a dipole becomes weaker as you move away from it. In AP Physics 2 Algebra, the essential point is qualitative: farther from the source means less effect on alignment. This is why keeping a compass away from nearby magnetic objects helps it respond mainly to Earth.
Earth’s Magnetic Field as a Dipole
For many situations, Earth’s magnetic field can be treated as though it comes from a large magnetic dipole.

Schematic cross-section of Earth showing the geographic (rotation) axis and the tilted dipole (geomagnetic) axis, along with representative magnetic field lines. This supports the dipole approximation by illustrating how a large-scale dipole-like field provides a local direction for compasses to align with, even though the geographic and magnetic axes do not perfectly coincide. Source
This is an approximation, meaning a simplified model that captures the main behavior without including every detail of the real planet.
The dipole model is useful because it explains why compasses are helpful. At most locations, Earth provides a local magnetic field direction, and a compass needle turns to align with it. As long as stronger nearby magnetic sources are absent, the compass gives consistent directional information.
Over a small region around the compass, Earth’s field can often be treated as having nearly one direction. That is enough for a small needle to settle into a steady orientation instead of continually changing direction.
What the dipole approximation tells us
Earth has two broad magnetic polar regions, similar to the two ends of a dipole.
The field has a preferred direction at each location, so a compass can align with it.
The field is not equally strong everywhere, but it is strong enough in many places to control a freely moving compass.
Treating Earth as a dipole also connects local observations to a larger picture. A compass does not need to sense the entire planet. It samples the field right where it is, and that local field is part of Earth’s larger dipole-like pattern.
Why the model is called an approximation
Real Earth is not a perfect dipole. Its internal field is more complex than an ideal dipole, and the field can vary somewhat from place to place. Still, the dipole approximation works well for many AP Physics 2 situations because it captures the main effect: a magnetic dipole placed in Earth’s field tends to turn and line up with that field.
This model is especially useful when thinking about orientation and simple navigation. It lets physicists describe Earth’s magnetic influence using the same idea used for smaller dipoles, such as compass needles. The same rule applies in both cases: a dipole turns until it points along the magnetic field at its position.
FAQ
A compass aligns with magnetic north, not geographic north. The angle between those directions at a location is called magnetic declination.
Because declination varies from place to place, maps and navigation systems sometimes include a correction. Over large distances, ignoring declination can lead to noticeable navigation errors.
Near the poles, the horizontal part of Earth’s magnetic field becomes small. A typical compass uses horizontal rotation, so its steering effect is weaker there.
As a result, the needle may become sluggish, unstable, or more sensitive to small nearby magnetic disturbances. Specialized compasses are often used in polar regions.
Earth’s magnetic field is not always parallel to the ground. In many places it has an upward or downward tilt relative to the horizontal. That tilt is called magnetic inclination, or dip.
If a needle is not carefully balanced, the field can pull one end downward. Some compasses are designed to reduce this effect so the needle can still rotate smoothly.
Earth’s field is generated by moving electrically conducting material in the liquid outer core. Because that motion changes, the magnetic field also changes.
These slow changes are called secular variation. Over longer times, the field can shift significantly, and in geologic history Earth’s magnetic poles have even reversed.
A smartphone compass usually uses electronic sensors rather than a balanced magnetic needle. Its reading can be affected by calibration errors, nearby electronics, metal cases, or magnets in accessories.
Many phones also combine magnetic data with GPS and motion sensors. If one of those inputs is inaccurate, the displayed direction may differ from a standalone magnetic compass.
Practice Questions
A freely suspended compass is placed in a uniform magnetic field that points east. Describe the final orientation of the compass needle.
1 mark: The needle rotates until it is parallel to the magnetic field.
1 mark: The north end of the needle points east.
A student holds a compass outdoors, far from other magnetic objects, and observes a steady needle direction. The student then slowly brings a strong magnet toward the compass.
a) Explain why the compass has a steady direction before the magnet is brought near. (2 marks)
b) Explain why the direction changes as the magnet gets closer. (2 marks)
c) State what happens when the magnet is moved far away again. (1 mark)
a)
1 mark: Earth’s magnetic field may be approximated as a dipole field.
1 mark: The compass is a magnetic dipole that aligns with Earth’s local magnetic field.
b)
1 mark: The compass responds to the net magnetic field at its position.
1 mark: A closer magnet has a stronger effect on the needle, so the needle turns toward the new local field direction.
c)
1 mark: When the magnet is far away, its influence becomes small and the compass returns to aligning mainly with Earth’s field.
