In algebra, the nilradical of a commutative ring is the ideal consisting of the nilpotent elements of the ring.

In the non-commutative ring case the same definition does not always work. This has resulted in several radicals generalizing the commutative case in distinct ways. See the article "radical of a ring" for more of this.

The nilradical of a Lie algebra is similarly defined for Lie algebras.

## Commutative rings

The nilradical of a commutative ring is the set of all nilpotent elements in the ring, or equivalently the radical of the zero ideal. This is an ideal because the sum of any two nilpotent elements is nilpotent (by the binomial formula), and the product of any element with a nilpotent element (by commutativity) is nilpotent. It can also be characterized as the intersection of all the prime ideals of the ring. (In fact, it is the intersection of all minimal prime ideals.)

A ring is called reduced if it has no nonzero nilpotent. Thus, a ring is reduced if and only if its nilradical is zero. If R is an arbitrary commutative ring, then the quotient of it by the nilradical is a reduced ring and is denoted by ${\displaystyle R_{\text{red}}}$.

Since every maximal ideal is a prime ideal, the Jacobson radical — which is the intersection of maximal ideals — must contain the nilradical. A ring is called a Jacobson ring if the nilradical of R/P coincides with the Jacobson radical of R/P for every prime ideal P of R. An Artinian ring is Jacobson, and its nilradical is the maximal nilpotent ideal of the ring. In general, if the nilradical is finitely generated (e.g., the ring is Noetherian), then it is nilpotent.

## Noncommutative rings

Further information: Radical of a ring

For noncommutative rings, there are several analogues of the nilradical. The lower nilradical (or Baer–McCoy radical, or prime radical) is the analogue of the radical of the zero ideal and is defined as the intersection of the prime ideals of the ring. The analogue of the set of all nilpotent elements is the upper nilradical and is defined as the ideal generated by all nil ideals of the ring, which is itself a nil ideal. The set of all nilpotent elements itself need not be an ideal (or even a subgroup), so the upper nilradical can be much smaller than this set. The Levitzki radical is in between and is defined as the largest locally nilpotent ideal. As in the commutative case, when the ring is artinian, the Levitzki radical is nilpotent and so is the unique largest nilpotent ideal. Indeed, if the ring is merely noetherian, then the lower, upper, and Levitzki radical are nilpotent and coincide, allowing the nilradical of any noetherian ring to be defined as the unique largest (left, right, or two-sided) nilpotent ideal of the ring.