This paper presents an optimization study on the layout and length of anchor cables for stabilizing rock wedges from the perspective of their three-dimensional geological characteristics. On the basis of the generalized geometry model for rock wedges, the expression of driving force of slope at the arbitrary longitudinal section can be deduced by employing the hyperbolic model between driving force and scale factor of rock wedges. Due to the remarkable parabolic characteristics of the driving force expression of rock wedges, a corresponding non-uniform layout principle of anchor cables was proposed, with closer layout in the central part and sparse layout near the side boundaries. The rational length of anchor cables was quantified on the basis of specification and the three-dimensional spatial characteristics of rock wedges. Furthermore, the upper limit spacing of anchor cables was determined by the spacing threshold caused by the parabolic distributed driving force. The spacing distribution of the optimized anchor cables was verified as a parabolic distribution according to a case study on the Shuige rock wedge in Lishui City, China. Compared with the conventional uniform spacing and length design scheme, the adjusted optimal non-uniform scheme can reduce the anchor cables by 16.9 % and 18.9 % in number and in total length, respectively.