A unit in a unital ring is an element with a two-sided multiplicative inverse :The ring is part of the condition. In the only units are and , whereas every nonzero rational number is a unit in . Modulo six, is a unit because , while is a nonunit.
In a nonzero ring, zero is never a unit, since . Every unit has multiplicative cancellation, but a cancellable element need not be a unit: can be cancelled in the integers, yet its reciprocal is not an integer. The units form the unit group of the ring.
New to topics? Read the docs here!