Method for analyzing the structure of a sample of ground coffee, and in particular for determining the grain size curve, by means of computed X-ray tomography, the method comprising: acquiring a plurality of two-dimensional radiographic images while the sample is in rotation, processing the plurality of two-dimensional radiographic images performing a tomographic reconstruction to generate a reconstructed image of volume, processing the reconstructed volume image to identify a plurality of coffee particles of the sample of ground coffee separated from one another and determining at least one dimensional magnitude for each particle of ground coffee of the plurality.