The invention discloses a machine for detecting the inclination angle of a rear axle of a car. The machine comprises a PLC and further comprises a positioning clamping mechanism, a centering positioning mechanism and an angle detecting mechanism which are connected with the PLC and fixed to a rack. The positioning clamping mechanism comprises a rear axle clamping air cylinder, a clamping arm, a rear axle compressing block, a rear axle plug pin positioning air cylinder, a positioning pin, a guiding sleeve, a positioning supporting block and a clamping base. The output end of the rear axle clamping air cylinder is connected with the rear axle compressing block through the clamping arm, and the bottom of the rear axle compressing block corresponds to the positioning supporting block. The positioning pin is arranged below the positioning supporting block and sleeved with the guiding sleeve. The centering positioning mechanism comprises a rear axle workpiece positioning block, a centering mechanism driving air cylinder, a connecting hinge, a connecting rod, an expanding sleeve driving air cylinder, a centering linear guide rail, a platform connecting support, a fixing supporting seat, an expanding sleeve driving rod and an expanding sleeve. Automatic feeding and discharging are conducted through a robot, the problem of the positioning precision is solved, the product quality is ensured, the labor intensity of operators is lowered, and the production efficiency is improved.