Phosphate slurries obtained from Moroccan mines are studied using the XRF technique and the effect of the particle sizes and the water content parameters are analyzed and reported for the first time. Samples of the phosphate slurry with different particle sizes (425 µm, 300 µm, 250 µm, 200 µm, 160 µm and 106 µm) and different water content (30%, 40%, 50%, 60%) were analyzed with an energy dispersive x-ray spectrometer (EDXRF). The results show that the relative error of measurement varies with the particle size of the analyzed sample, the water content and the element measured. The relative error increases with the increase of the particle size for the compounds P2O5, Al2O3, K2O, Cr2O3, Fe2O3 and Sr. The ratio between the relative errors obtained from the maximum and the minimum grain size was 1.50 for P2O5, 4.01 for Al2O3, 15.58 for K2O, 1.22 for Cr2O3, 1.51 for Fe2O3 and 1.11 for Sr. On the other hand, an opposite evolution has been observed in the case of compounds CaO and SiO2. The relative error increases with increasing water content for all compounds existing in the slurry. Depending on the measured compound, the relative error increases by a factor that varies between 1.39 and 2.39. The results obtained for P2O5 do not show a clear correlation between the measurement error and the water content. We will evaluate the impact of particle size and water content on XRF measurements in the case of phosphate slurry, aiming to develop an online XRF analyzer system for phosphate slurry