The crystal structure of ractopamine hydrochloride has been solved and refined using synchrotron X-ray powder diffraction data, and optimized using density functional theory techniques. Ractopamine hydrochloride crystallizes in space group Pbca (#61) with a = 38.5871(49), b = 10.7691(3), c = 8.4003(2) Å, V = 3490.75(41) Å3, and Z = 8. The ractopamine cation contains two chiral centers, and the sample consists of a mixture of the S,S/R,R/S,R and R,S forms. Models for the two diastereomers S,S and S,R were refined, and yielded equivalent residuals, but the S,R form is significantly lower in energy. The crystal structure consists of layers of molecules parallel to the bc-plane. In each structure one of the H atoms on the protonated N atom acts as a donor in a strong discrete N–H⋯Cl hydrogen bond. Hydroxyl groups act as donors in O–H⋯Cl and O–H⋯O hydrogen bonds. Both the classical and C–H⋯Cl and C–H⋯O hydrogen bonds differ between the forms, helping to explain the large microstrain observed for the sample. The powder pattern has been submitted to ICDD® for inclusion in the Powder Diffraction File™ (PDF®).