The buckling behavior of thin-walled steel structures under load is still imperfectly understood, in spite of much research over the past 50 years. In this paper, the buckling behaviors of H-section columns under compression have been simulated with ANSYS. In the analysis, contact pairs between column ends and end blocks have been introduced into the model, and the load carrying capacity of the columns with four kinds of end constraint conditions and various typical initial geometric imperfections has been calculated and discussed. The results indicate that the load carrying capacity is most sensitive to the flexural imperfection, and the constraint condition cannot change the imperfection sensitivity of a column under compression, but improving restrain condition can heighten the load carrying capacity. They are helpful to the use and the tolerance control in the manufacture process of thin-walled H-section steel structures.