The present invention relates to an X-ray imaging apparatus including an X-ray source, a grating that divides diverging X-rays irradiated from the X-ray source, and a detector that detects X-rays which are divided by the grating and pass through a sample. The grating includes a plurality of transparent objects which pass the diverging X-rays and a plurality of opaque objects that shield the diverging X-rays. A focused position at which a plurality of extended lines intersect each other and the X-ray source are arranged in different position. The extended lines are formed by extending center lines which connect a center of the X-ray source side of each of the plurality of opaque objects facing the X-ray source with a center of the detector side of each of the plurality of opaque objects facing the detector.