We have developed a simple method to determine simultaneously the shape and depth of a buried structure from residualized gravity data using filters of successive window lengths. The method is similar to Euler deconvolution, but it solves for shape and depth independently. The method involves using a relationship between the shape factor and the depth to the source and a combination of windowed observations. The relationship represents a parametric family of curves (window curves). For a fixed window length, the depth is determined for each shape factor. The computed depths are plotted against the shape factors, representing a continuous, monotonically increasing curve. The solution for the shape and depth of the buried structure is read at the common intersection of the window curves. This method can be applied to residuals as well as to the Bouguer gravity data of a short or long profile length. The method is applied to theoretical data with and without random errors and is tested on a known field example from the United States. In all cases, the shape and depth solutions obtained are in good agreement with the actual ones.