An X-ray imaging apparatus includes an X-ray generator configured to generate X-rays a detector configured to detect X-rays that have penetrated an object a stand on which the detector is mounted and a control panel mounted on the stand, and configured to operate the detector to rotate or move up or down along an extension direction of the stand.