A best-fitting version of the X-ray diffraction method of Gehrke & Zachmann [Makromol. Chem. (1981). 182, 627-635] for crystallinity determination, which is a modification of the method developed byRuland [Acta Cryst. (1961 where /am is the experimental intensity of a completely amorphous sample (also corrected and normalized to e.u.), (f(s) z) is the mean square atomic scattering factor in the material, Xc is the degree of crystallinity and k is a factor which includes either thermal or lattice disorder, where s ---2(sin0)/A. The use of the scattering of the amorphous sample in this non-integral form of the Ruland equations overcomes the problem, encountered with other procedures, of locating the continuous (background) scattering with accuracy. The degree of crystallinity and the disorder factor are supplied directly by the optimization process. Furthermore, the line broadening analysis which allows the determination of crystallite size is automatically obtained as a by product. Samples of polyethylene terephthalate (PET) with different degrees of crystallinity are investigated. The results are compared with those obtained by other methods which do not use fitting techniques.