When a thin layer of a slightly different lattice constant is grown coherently on a single crystal substrate, the lattice constant of the layer material cannot be measured directly, due to elastic strains. It can be calculated from quantities observed by X-ray double crystal diffractometry if the anisotropic elasticity is taken into account. The way of calculation is shown for arbitrary surface orientation, and the effect of misfit dislocations is indicated.