PurposeThe strength and stiffness of steel deteriorate rapidly at elevated temperatures. Thus, the characteristics of steel structures exposed to fire have been concerned in recent years. Most studies on the fire response of steel structures were conducted at uniformly distributed temperatures. This study aims to evaluate the buckling capacity of steel H-beams subjected to different loading conditions under non-uniform heating.Design/methodology/approachA numerical investigation was conducted employing finite element analysis software, ABAQUS. A comparison between the numerical analysis results and the experimental data from previous studies was conducted to verify the beam model. Simply supported beams were loaded with several loading conditions including one end moment, end equal moments, uniformly distributed load and concentrated load at midspan. The effects of initial imperfections were considered. The buckling capacities of steel beams under fire using the existing fire design code and the previous study were also generated and compared.FindingsThe results showed that the length-to-height ratio and loading conditions have a great effect on the buckling resistance of steel beams under fire. The capacity of steel beams under non-uniform temperature distribution using the existing fire design code and the previous study can give unconservative values or too conservative values depending on loading conditions. The maximum differences of unconservative and conservative values are −44.5 and 129.2% for beams subjected to end equal moments and one end moment, respectively.Originality/valueThis study provides the buckling characteristics of steel beams under non-uniform temperature considering the influences of initial imperfections, length-to-height ratios, and loading conditions. This study will be beneficial for structural engineers in properly evaluating structures under non-uniform heating conditions.