Pain at back of head
is pain from the occipital nerve
which is felt along the back of the head, sometimes radiating to the top of the head and sometimes to the forehead- usually on just one side of the head.
The occipital nerve is most likely irritated as it passes through the muscles at the back of the head, at the base of the skull. Less commonly, the nerve can be pinched in the upper neck (c2).