PurposeThis study aims to optimize the structural design of reinforced concrete columns with variable hollow circular sections.Design/methodology/approachThe columns were optimized according to the criteria of instability (buckling) and mechanical strength (compression and/or tensile strength). To perform the optimizations, routines are developed in Python using the penalty and sequential linearization programming (SLP) function methods to optimize the elements satisfying the buckling and stress criteria.FindingsAt the end of the optimization process, the optimal section is obtained for the example of a circular column with a variable section, this section has an average radius of 5% smaller than that initially defined.Originality/valueThe theoretical basis for column optimization and the structuring of an algorithm in Python language for the computational resolution of these problems are presented in a didactic way, as well as the comparative efficiency of the methods.