The strength of the earth's magnetic field varies from place to place on the earth's surface; its value being of the order of \( 10^{-5} \, \text{T} \).
What causes the earth to have a magnetic field is not clear. Originally the magnetic field was thought of as arising from a giant bar magnet placed approximately along the axis of rotation of the earth and deep in the interior. However, this simplistic picture is certainly not correct. The magnetic field is now thought to arise due to electrical currents produced by convective motion of metallic fluids (consisting mostly of molten iron and nickel) in the outer core of the earth. This is known as the dynamo effect.
The magnetic field lines of the earth resemble that of a (hypothetical) magnetic dipole located at the centre of the earth. The axis of the dipole does not coincide with the axis of rotation of the earth but is presently tilted by approximately 11.3° with respect to the later. In this way of looking at it, the magnetic poles are located where the magnetic field lines due to the dipole enter or leave the earth. The location of the north magnetic pole is at a latitude of \( 79.74^\circ \, \text{N} \) and a longitude of \( 71.8^\circ \, \text{W} \), a place somewhere in north Canada. The magnetic south pole is at \( 79.74^\circ \, \text{S}, 108.22^\circ \, \text{E} \) in the Antarctica.