An X-ray imaging apparatus and an X-ray imaging method can alleviate the influence of scattered X-rays relative to the obtained image. A differential phase contrast image or a phase contrast image of a detection object is computed by using a splitting element and an exposure control unit that synchronizes the X-ray scanning speed and the image acquisition speed of a detecting unit.