There is disclosed an X-ray detector that includes a detection section, an addition rate determination section, an addition section, and a position information storage section in order to enhance the accuracy of interpolation of an output signal from a defective element and suppress artifacts with ease without increasing, for example, the length of processing time, the number of processing circuits, and the amount of interpolation data. The detection section includes a plurality of arrays of detection element groups that are each formed of a plurality of detection elements in correspondence with one pixel. The addition rate determination section determines addition rates for output signals of the detection elements. The addition section calculates the signal value of each pixel of a projection image by adding the output signals of the detection elements belonging to the detection element groups in accordance with the addition rates. The position information storage section stores pixel position information and defective element position information. The pixel position information indicates the positional relationship between the pixel and the detection elements. The defective element position information indicates the position of a defective element. Based on the pixel position information and the defective element position information, the addition rate determination section determines the addition rate for the output signal of the defective element and the addition rate for the output signal of a diagonal detection element positioned symmetrically with respect to the defective element in such a manner that the addition rates are equal and lower than the addition rates for the other detection elements and that the addition rates for the other detection elements are substantially equal.