The invention relates to an X-ray beam and sensor alignment system and method, which is a sensor of an x-ray device combined with a first angle detector to detect at least one X-axis angle signal, one Y-axis angle signal and one z-axis angle signal of the sensor relative to a gravity direction.The X-ray module of the x-ray device is combined with a second angle detector to detect at least one X-axis angle signal, one Y-axis angle signal and one z-axis angle signal of the X-ray module relative to the gravity direction.According to the error values of the x-axis angle signal, Y-axis angle signal and z-axis angle signal generated by the first angle detector and the second angle detector, the X-ray source module can be adjusted to correspond to the sensor at a vertical angle, so that the X-ray beam and the sensor always maintain a vertical angle relationship, so as to obtain the best signal reception and image effect.一種X光射束與感測器對位系統及方法,係在一X光設備的感測器結合一第一角度偵測器,用以偵測該感測器相對於一重力方向的至少一X軸向角度信號、一Y軸向角度信號、一Z軸向角度信號。而在X光設備的X光源模組則結合一第二角度偵測器,用以偵測X光源模組相對於重力方向的至少一X軸向角度信號、一Y軸向角度信號、一Z軸向角度信號。依據該第一角度偵測器與該第二角度偵測器所產生的X軸向角度信號、Y軸向角度信號、Z軸向角度信號誤差值即可據以調節X光源模組以一垂直角度對應於感測器,使X光射束與感測器始終維持垂直角度關係,以獲取最佳的信號接收及影像效果。