An X-ray imaging apparatus for obtaining information on a phase shift of an X-ray caused by an object comprises: an splitting element for splitting spatially an X-ray emitted from an X-ray generator unit into X-ray beams; an attenuator unit having an arrangement of attenuating elements for receiving the X-ray beams split by the splitting element; and an intensity detector unit for detecting intensities of X-ray beams attenuated by the attenuator unit; and the attenuating element changing continuously the transmission amount of the X-ray depending on the X-ray incident position on the element.