Theory of the surface photovoltage effect was generalized with respect to thickness of the samples. It allowed evaluation of minority carriers in thin Si and CdTe wafers and study the effect of nitride protective layers on properties of silicon solar cells.