In commutative and homological algebra, depth is an important invariant of rings and modules. Although depth can be defined more generally, the most common case considered is the case of modules over a commutative Noetherian local ring. In this case, the depth of a module is related with its projective dimension by the Auslander–Buchsbaum formula. A more elementary property of depth is the inequality

where dim M denotes the Krull dimension of the module M. Depth is used to define classes of rings and modules with good properties, for example, Cohen-Macaulay rings and modules, for which the equality holds.

where dim M denotes the Krull dimension of the module M. Depth is used to define classes of rings and modules with good properties, for example, Cohen-Macaulay rings and modules, for which the equality holds.