A simple X-ray powder diffractometric method was developed for the qualitative and quantitative assay of the two crystalline modifications of ranitidine-HCl. The main purpose of the present work was to investigate if artificial neural networks (ANNs) could be applied in quantitative X-ray diffractometric analyses. The ANN approach was compared with a conventional mixture design method. The results obtained by the ANN had a smaller standard deviation and relative error and a better precision at lower concentrations. ANNs provide a simple alternative to conventional statistical modelling methods to identify the non-linear relationship without complex equations.