The invention discloses a detection algorithm of a cement concrete pavement slab staggering quantity. The detection algorithm specifically comprises the following steps of: inputting a three-dimensional image data matrix, and filtering the data; orderly taking each line of the three-dimensional image data matrix O'' after filtering, and solving the slab staggering quantity corresponding to each line in a line-by-line manner, namely solving the slab staggering quantity of the line after finding out all inflection points of the line; taking the inflection points, of which the difference of the horizontal ordinates is M, from an inflection point matrix G, and solving the difference between each two inflection points so as to obtain a height difference matrix after all the lines are processed, wherein the maximum of the height difference matrix is the slab staggering quantity corresponding to the line; solving the slab staggering quantities h1, h2,... and hm in a line-by-line manner, averaging the m slab staggering quantities, and thereby obtaining the pavement faulting quantity of the image acquisition area. The detection algorithm of the cement concrete pavement slab staggering quantity is simple in computation and short in run time, and does not need manual work. By using the surface measurement, the pavement faulting quantity can be detected by only inputting the acquired three-dimensional image data of the cement concrete pavement; and therefore, the detection algorithm is high in efficiency and accurate in detection.