An X-ray high voltage generator according to an embodiment includes an inverter circuit, a power device, a Pulse Width Modulation (PWM) circuit, and processing circuitry. The inverter circuit is configured to control output voltage to be output to an X-ray tube configured to generate an X-ray. The power device is provided for the inverter circuit and is configured to perform a switching process to control the output voltage. The PWM circuit is configured to control the switching process performed by the power device on the basis of an ON time period, in accordance with the output voltage. The processing circuitry is configured to output information about a product life of the power device on the basis of the ON time period.