An x-ray recording system is for differential phase contrast imaging of an examination object via phase stepping. In an embodiment, the x-ray recording system includes at least one x-ray emitter for generating quasi coherent x-ray radiation an x-ray image detector with pixels arranged in a matrix a defraction or phase grating arranged between the examination object and the x-ray image detector and an analyzer grating assigned to the phase grating, wherein x-ray emitter, x-ray image detector, phase grating and analyzer grating for the phase contrast imaging form components in an arrangement. According to an embodiment, at least one measuring apparatus for determining deviations in the geometric ratios of the components relative to one another from the geometry target, an analysis unit for evaluating the measured deviations, a computing unit for determining correction values and at least one correction device for setting the geometric ratios of the components are included.