The strain compensation characteristics of Si1-x-yGexCy ternary alloys made by solid phase epitaxial recrystallization were studied. Because of the difference in both the projected range and the straggle of ions for Ge and C, the ratio of Ge/C is not a constant at different depth, and it leads to the difference in strain compensation effects. Gauss formula was used to analyze the strain compensation at different position in the alloy layers. The ratio of the peak densities of Ge and C ions should be within a limit when there was a full strain compensated area in the epitaxial layers. A series of samples with different C composition were prepared and the strain compensation characteristics detected. The experimental results are in good agreement with the prediction values.