An X-ray imaging apparatus is configured so that an height-position composition element 15 sends a directive to an angle driving element 44 in an imaging element 4, and the height-position compensation element 15 corrects the height-position of the X-ray tube 42 by driving of the up-and-down driving element 44 in conjunction with the imaging region that the imaging region data recognition element 14 of the console element 1, the angle of the X-ray tube 42 is corrected so that the X-ray irradiation angle of the X-ray from the X-ray tube 42 faces downward; and when the height-position compensation element 15 corrects the height-position of the X-ray tube 42 downward, the angle of the X-ray tube 42 is corrected so that the X-ray irradiation angle of the X-ray from the X-ray tube 42 faces upward.