Abstract: A position measuring device for detecting the relative position of a scanning unit and a scale. The position measuring device includes a scale and a scanning unit that is displaced with respect to the scale in a measuring direction. The scanning unit includes a scanning grating, a ridge prism and an optoelectronic detector element. The ridge prism having a ridge that is oriented parallel with the measuring direction, the ridge prism acts as a retro-reflector in a second direction which is aligned in a plane of the scale vertically with respect to the measuring direction.