An analytical technique to determine residual stress in eqitaxial thin film by asymmetric X-ray diffraction (XRD) was studied. The residual stresses of PbTiO3 films were determied by XRD technique and displace measurement technique. Measurement results by these techniques were compared with each other to consider the respective advantages of each technique. The stresses measured by XRD technique were not consistent with those by displacement measurement technique, because the latter technique involves errors which origined from the shape and the size of the substrate. The stress in a polycrystalline film measured by modified sin2ψ method was in good agreement with that measured by normal sin2ψ method. This result suggests that modified sin2ψ method can be applied to stress measurement not only in epitaxial thin films, but also in polycrystalline thin films. We further discuss the precision of the stress determination technique. Residual stress of epitaxial PbTiO3 film on (100)SrTiO3 substrate measured by modified sin2ψ method was comparable to the theoretical stress estimated from the difference in thermal expansion coefficients between the film and the substrate. Stress values measured by modified sin2ψ method may thus have the precision required for actual application.