Considering the hysteresis of water's retention curve,proposing a new formula of the effective stress in unsaturated soils based on the analysis that the effect of suction is different by the form of void water,providing a method to calculate the parameters in this formula. The formula can explain the collapse behavior and swelling behvior of unsaturated soils and can degenerate to the effective stress formula in saturated soils when the soil is saturated.