An x-ray imaging apparatus and a method of controlling the x-ray imaging apparatus are provided. The x-ray imaging apparatus includes x-ray detectors, and a user interface configured to display sizes of the x-ray detectors, and display a modality in which an x-ray detector, among the x-ray detectors, is usable, while a size of the x-ray detector is displayed.