Currently, the use of digital technology for the protection and research of cultural heritages has become a trend in this field. These rockeries in Chinese classical gardens have become an important cultural heritage type because of unique shape, ingenious skills and rich connotations. The research difficulty lies in how to objectively describe, quantitatively analyze and evaluate such rockeries in an accurate way. Based on relevant historical information and 3D digital technology, this paper puts forward a quantitative analysis method on the scale, shape and quantity of rockeries in Chinese classical gardens, aiming at exploring the objective description and quantitative analysis path of rockeries at different levels, and taking Wanfang Anhe Rockery in the Old Summer Palace as an example for objective and comprehensive quantitative analysis and verification. Such method is based on quantitative analysis and fine management, and is carried out from four levels, i.e. overall, regional, hierarchical and individual. The above method is used to quantitatively analyze and verify Wanfang Anhe Rockery, wherein the overall scale of such rockery is determined based on the viewing position and viewing line of sight, the regional data show that the precipice area (B) and the drop area (D) are the main areas for rockery construction, Area D is divided into two hierarchies through slices and elevations and Area B is divided into three hierarchies at the hierarchical level, as well as at the individual level, there are 336 rocks in total in this rockery and 275 rocks in Area B, and all the viewing range, overall rockery height, material characteristics and stacking mode have a strong impact on the scale of individual rocks. This method is feasible and effective for quantitative analysis of the scale, shape and quantity of rockeries, which can help understand the basic background of stone rockeries and enhance a refined understanding of stone rockery construction, thereby providing data for preventive protection and informatization management of stone rockeries. The 3D rockery model database based on the overall, regional, hierarchical and individual quantitative analysis and numbering method brings a good application prospect for preventive protection and informatization management of the rockery.