Based on the Padé approximation method, in this paper we determine the coefficients [Formula: see text] and [Formula: see text] such that [Formula: see text] where [Formula: see text] is any given integer. Based on the obtained result, we establish a more accurate formula for approximating π, which refines some known results.