The force action on the compass needle is directly proportional to the horizontal

component of the Earth’s field (H) and inversely proportional to the vertical component of the Earth’s field (Z).