Using the Houska method based on X-ray diffractionline pro®le analysis, new mathematical treatments are proposed to compute directly the concentration depth pro®le of thin ®lms obtained by diffusion. As an example, concentration depth pro®les of a brass layer have been studied during the thermal diffusion process. This nondestructive method is fast (a few minutes) and allows the sample to be used for complementary analysis if necessary.