A method of determination of concentration of Mn and P atoms in Ga1-xMnxAs1-yPy based on comparison of simulated and measured diffraction curves is presented. For computation of simulated curve the structure factor is used, which is affected by element concentrations.