An X-ray imaging apparatus including: X-ray generation means that irradiates X-rays from the focus and that has a first portion changing so as to have a first change component and a second portion changing so as to have a second change component, which is different from the first change component focus position detection means that detects a focus position when the X-rays are irradiated focus position change amount estimation means that estimates the amount of change in the focus position at an arbitrary point of time with respect to the reference position of the focus using a first amount of change, which changes so as to have the first change component, and a second amount of change, which changes so as to have the second change component and correction means that corrects the positions of the irradiation region of the X-rays so as to cancel the amount of change in the focus position estimated by the focus position change amount estimation means.