An X-ray apparatus includes an X-ray radiation unit configured to radiate X-rays to an object; and a main control unit configured to acquire orientation information of the X-ray radiation unit and orientation information of an X-ray detector and select the X-ray detector based on the orientation information of the X-ray radiation unit and the orientation information of the X-ray detector.