///The relationship between the undrained shear strength and the initial over consolidation ratio (OCR) can be expressed by the formulation of undrained shear strength under triaxial compression condition. Firstly, the relationship between OCR of soil and depth is obtained by using the test data of undrained shear strength according to the formulation. Then the relationship between OCR and depth is introduced to the finite element program of UH model, so the OCR changes with depth can be considered. Finally, the numerical analyses of undrained soil foundation considering OCR changes with depth and normally consolidated soil are performed respectively by using the finite element program of UH model. The results show that the finite element program of UH model considering OCR changes with depth can give the actual OCR of foundation soil reasonably, and it is necessary to be used in the finite element analysis of non-homogenous undrained soil foundation.