Let

be a set of

points in the Euclidean plane. The convex layers of

are the convex polygons obtained by iterating on the following procedure: compute the convex hull of

and remove its vertices from

. This process of peeling a planar point set is central in the study of robust estimators in statistics. It also provides valuable information on the morphology of a set of sites and has proven to be an efficient preconditioning for range search problems. An optimal algorithm is described for computing the convex layers of S. The algorithm runs in

time and requires

space. Also addressed is the problem of determining the depth of a query point within the convex layers of

, i.e., the number of layers that enclose the query point. This is essentially a planar point location problem, for which optimal solutions are therefore known. Taking advantage of structural properties of the problem, however, a much simpler optimal solution is derived.