Commutative Rings, Identity, and Units

Which elements of a ring can you "divide by"? In the integers, only 11 and −1-1 have multiplicative inverses. In the rational numbers, every nonzero element does. This single distinction — which elements are invertible — organizes an enormous amount of algebra. It applies to solving linear equations over a ring. It also applies to understanding when a quotient ring behaves like a field. The notion of a unit makes this precise. It depends crucially on two structural choices. First, whether a ring has a multiplicative identity at all. Second, whether multiplication is commutative. This matters because "invertibility" is the bridge between ring theory and the theory of groups. The units of any ring with identity form a group under multiplication. This is called the group of units, and it encodes deep arithmetic information. For Z\mathbb{Z} it is the two-element group {1,−1}\{1,-1\}. For Z/nZ\mathbb{Z}/n\mathbb{Z} it is the group of residues coprime to nn. Its size is given by Euler's totient function. For a field, it is everything except zero. Understanding units is the first step toward understanding integral domains and fields. A field is exactly a commutative ring with identity in which every nonzero element is a unit. The big picture is this: rings are built from an additive abelian group structure. They also have a multiplicative structure that need not be a group at all. This is because 00 typically has no inverse, and other elements may fail to have one too. Commutativity of multiplication and the presence of an identity element 11 are extra axioms. These are layered onto the bare definition of a ring. Together they let us define units cleanly. They let us prove the units form a group. And they let us start asking sharper questions: is the ring an integral domain, is it a field, does it have zero divisors. This article gives the precise definitions of commutative ring, ring with identity, and unit. It proves rigorously that the units of a ring with identity form a group under multiplication. It works through two substantial examples: units of Z/12Z\mathbb{Z}/12\mathbb{Z} and units of the Gaussian integers Z[i]\mathbb{Z}[i]. It shows exactly which hypothesis fails when a "ring" lacks identity. It closes by connecting units to the road ahead: Integral Domains and Fields.

Key takeaways
  • A ring with identity has a multiplicative identity 1≠01 \neq 0 satisfying 1⋅a=a⋅1=a1\cdot a = a \cdot 1 = a for all aa.
  • A ring is commutative if ab=baab = ba for all elements a,ba, b; this is an extra axiom, not automatic.
  • A unit in a ring with identity is an element with a two-sided multiplicative inverse.
  • The set R×R^\times of units of a ring with identity is a group under multiplication.
  • 00 is never a unit (assuming 1≠01 \neq 0), so R×⊆R∖{0}R^\times \subseteq R \setminus \{0\} always.
  • Key idea: invertibility under multiplication is the precise notion that turns a ring's multiplicative structure into a group, one element at a time.

Where this lives today

The group of units R×R^\times is far from a curiosity; it is a working tool across mathematics and beyond. In elementary number theory, (Z/nZ)×(\mathbb{Z}/n\mathbb{Z})^\times is the group underlying Euler's theorem and Fermat's little theorem, and its structure (cyclic when nn is 1,2,4,pk,2pk1,2,4,p^k,2p^k for odd prime pp, and a direct product otherwise) is the engine behind primality tests and discrete-logarithm-based cryptography such as Diffie–Hellman key exchange and RSA, where the security relies on the difficulty of certain computations inside (Z/nZ)×(\mathbb{Z}/n\mathbb{Z})^\times. In algebraic number theory, units of rings of integers in number fields (generalizing Z[i]×={±1,±i}\mathbb{Z}[i]^\times = \{\pm 1, \pm i\}) are governed by Dirichlet's unit theorem, which computes the rank of the unit group from the field's embeddings into R\mathbb{R} and C\mathbb{C}. In linear algebra and representation theory, the units of the ring of n×nn \times n matrices over a field form the general linear group GLnGL_n, a non-abelian example showing the theorem's proof deliberately avoided assuming commutativity. In commutative algebra and algebraic geometry, whether a local ring's maximal ideal consists exactly of the non-units is a defining structural fact used constantly when studying local behavior of schemes. In computer algebra systems, detecting units is the first step in implementing division algorithms, since an element is "safely invertible" for computation exactly when it lies in R×R^\times. Even in coding theory, unit groups of finite rings such as Z/nZ\mathbb{Z}/n\mathbb{Z} or polynomial quotient rings determine which linear codes admit certain symmetries.

:::quiz[What is the group of units Z[i]×\mathbb{Z}[i]^\times of the Gaussian integers, and what is its order?]

  • {1,−1}\{1,-1\}, order 2
  • {1,−1,i,−i}\{1,-1,i,-i\}, order 4 ✓
  • All nonzero Gaussian integers, infinite order
  • {1}\{1\}, order 1

Ask the tutor: How does the structure of (Z/nZ)×(\mathbb{Z}/n\mathbb{Z})^\times change as nn ranges over primes, prime powers, and products of distinct primes?

DefinitionCommutative ring with identity, and units

Let (R,+,⋅)(R, +, \cdot) be a ring, meaning (R,+)(R,+) is an abelian group, ⋅\cdot is associative, and the distributive laws

a(b+c)=ab+ac,(a+b)c=ac+bca(b+c) = ab + ac, \qquad (a+b)c = ac + bc

hold for all a,b,c∈Ra,b,c \in R.

Commutative. RR is a commutative ring if ab=baab = ba for all a,b∈Ra, b \in R.

Identity. RR is a ring with identity (or unital ring) if there exists an element 1∈R1 \in R, called the multiplicative identity, such that

1⋅a=a⋅1=afor all a∈R.1 \cdot a = a \cdot 1 = a \quad \text{for all } a \in R.

We additionally require 1≠01 \neq 0 to avoid the degenerate zero ring being treated as having a nontrivial identity structure (in the zero ring R={0}R = \{0\}, one has 1=01 = 0 trivially, and we exclude it from this discussion when we say "ring with identity" is meant to be nontrivial; when the zero ring does arise, it is handled as a special degenerate case).

Unit. Let RR be a ring with identity 11. An element u∈Ru \in R is a unit if there exists v∈Rv \in R such that

uv=vu=1.uv = vu = 1.

Such a vv, if it exists, is called a (multiplicative) inverse of uu, and we will show below it is unique; we denote it u−1u^{-1}.

Group of units. The set of all units of RR is denoted

R×={u∈R:u is a unit},R^\times = \{ u \in R : u \text{ is a unit} \},

sometimes also written U(R)U(R).

Intuition

Think of a ring as having two layers of structure stacked on the same underlying set: an addition layer, which is always a full abelian group (every element has an additive inverse, subtraction always works), and a multiplication layer, which is usually not a group. Multiplication is only required to be associative and to distribute over addition — there is no promise that you can "divide." The unit condition isolates exactly the elements for which division by that element makes sense. A useful mental picture is a two-lane number line for Z\mathbb{Z}: every integer has an additive inverse (its negative), so additively the whole line is symmetric and complete as a group. But multiplicatively, only 11 and −1-1 "reach back" to 11 when multiplied by another integer; every other integer's reciprocal (1/2,1/3,…1/2, 1/3, \dots) escapes the ring entirely. The units are the tiny surviving island of multiplicative invertibility inside a much larger ring. For Z/nZ\mathbb{Z}/n\mathbb{Z}, the picture changes: invertibility becomes a question about the greatest common divisor with nn. An element aˉ\bar a is a unit exactly when gcd⁡(a,n)=1\gcd(a,n) = 1, because Bézout's identity produces integers x,yx, y with ax+ny=1ax + ny = 1, and reducing mod nn gives aˉxˉ=1ˉ\bar a \bar x = \bar 1. This is why (Z/nZ)×(\mathbb{Z}/n\mathbb{Z})^\times has exactly φ(n)\varphi(n) elements, where φ\varphi is Euler's totient function.

Figure
Units of Z/12Z\mathbb{Z}/12\mathbb{Z} highlighted on a clock-like residue diagram
Elements of ℤ/12ℤ: units in bold circles 0 1 2 3 4 5 6 7 8 9 10 11 Units: {1, 5, 7, 11} — those coprime to 12, so |(ℤ/12ℤ)ˣ| = φ(12) = 4 Non-units 2,3,4,6,8,9,10 share a factor with 12 and have no inverse mod 12

Theorem

TheoremThe units of a ring with identity form a group

Let RR be a ring with multiplicative identity 1≠01 \neq 0 (not necessarily commutative), and let

R×={u∈R:∃v∈R, uv=vu=1}.R^\times = \{ u \in R : \exists v \in R,\ uv = vu = 1 \}.

Then R×R^\times is a group under the multiplication inherited from RR. That is: 1. 1∈R×1 \in R^\times. 2. If u,w∈R×u, w \in R^\times then uw∈R×uw \in R^\times (closure). 3. Multiplication restricted to R×R^\times is associative. 4. Every u∈R×u \in R^\times has an inverse u−1∈R×u^{-1} \in R^\times with uu−1=u−1u=1u u^{-1} = u^{-1} u = 1. Moreover, inverses in RR are unique whenever they exist, so the notation u−1u^{-1} is unambiguous, and R×R^\times is exactly the set of elements possessing a two-sided inverse in RR. If RR is commutative, R×R^\times is an abelian group.

Proof

We prove uniqueness of inverses first, since the theorem statement depends on it, and then verify the group axioms one at a time. The technique throughout is direct verification from the ring axioms (associativity and distributivity) together with elementary manipulation of equations — no prior group-theoretic machinery about units is assumed, only the group axioms themselves, which we check by hand.

Step 0: Inverses are unique. Suppose u∈Ru \in R and v,v′∈Rv, v' \in R both satisfy uv=vu=1uv = vu = 1 and uv′=v′u=1uv' = v'u = 1. Using associativity of multiplication in RR,

v=v⋅1=v(uv′)=(vu)v′=1⋅v′=v′.v = v \cdot 1 = v (u v') = (vu) v' = 1 \cdot v' = v'.

Hence any element of RR has at most one two-sided inverse. This justifies writing u−1u^{-1} for the inverse of uu when u∈R×u \in R^\times.

Step 1: 1∈R×1 \in R^\times. Since 1⋅1=11 \cdot 1 = 1 by the defining property of the identity, 11 is its own inverse, so 1∈R×1 \in R^\times.

Step 2: Closure under multiplication. Let u,w∈R×u, w \in R^\times, with inverses u−1,w−1∈Ru^{-1}, w^{-1} \in R satisfying uu−1=u−1u=1u u^{-1} = u^{-1}u = 1 and ww−1=w−1w=1w w^{-1} = w^{-1} w = 1. We claim w−1u−1w^{-1}u^{-1} is a two-sided inverse of uwuw. Compute, using associativity repeatedly:

(uw)(w−1u−1)=u(ww−1)u−1=u⋅1⋅u−1=uu−1=1,(uw)(w^{-1}u^{-1}) = u\big(w w^{-1}\big) u^{-1} = u \cdot 1 \cdot u^{-1} = u u^{-1} = 1,
(w−1u−1)(uw)=w−1(u−1u)w=w−1⋅1⋅w=w−1w=1.(w^{-1}u^{-1})(uw) = w^{-1}\big(u^{-1} u\big) w = w^{-1} \cdot 1 \cdot w = w^{-1} w = 1.

Both computations only used associativity of ⋅\cdot in RR (valid since RR is a ring) and the defining equations for u−1u^{-1} and w−1w^{-1}. Hence uwuw has a two-sided inverse in RR, namely w−1u−1w^{-1}u^{-1}, so uw∈R×uw \in R^\times. This proves closure, and simultaneously shows

(uw)−1=w−1u−1.(uw)^{-1} = w^{-1}u^{-1}.

Step 3: Associativity on R×R^\times. Multiplication on R×R^\times is simply the restriction of multiplication on RR, which is associative for all triples of elements of RR by the ring axioms; in particular it is associative for triples drawn from the subset R×R^\times. No separate argument is needed beyond restricting the ambient associative law.

Step 4: Existence of inverses within R×R^\times. Let u∈R×u \in R^\times with inverse u−1∈Ru^{-1} \in R, so uu−1=u−1u=1u u^{-1} = u^{-1} u = 1. We must check u−1u^{-1} itself lies in R×R^\times, i.e. that u−1u^{-1} has an inverse in RR. But the same equation u−1u=uu−1=1u^{-1}u = uu^{-1} = 1 exhibits uu as a two-sided inverse of u−1u^{-1}. Hence u−1∈R×u^{-1} \in R^\times, and by Step 0 (uniqueness) its inverse is exactly uu, i.e. (u−1)−1=u(u^{-1})^{-1} = u.

Conclusion: group axioms verified. We have shown:

  • R×R^\times is closed under the multiplication of RR (Step 2), so multiplication restricts to a binary operation on R×R^\times.
  • This restricted operation is associative (Step 3).
  • 1∈R×1 \in R^\times acts as a two-sided identity for this operation, since 1⋅a=a⋅1=a1 \cdot a = a \cdot 1 = a holds for all a∈Ra \in R by hypothesis, in particular for a∈R×a \in R^\times (Step 1).
  • Every element of R×R^\times has an inverse within R×R^\times (Step 4).

These are precisely the group axioms, so (R×,⋅)(R^\times, \cdot) is a group.

Commutative case. If RR is commutative, then ab=baab = ba for all a,b∈Ra, b \in R, in particular for all a,b∈R×⊆Ra, b \in R^\times \subseteq R. Hence the group R×R^\times is abelian. ■\blacksquare

∎
CorollaryZero is never a unit

If RR is a ring with identity 1≠01 \neq 0, then 0∉R×0 \notin R^\times.

Proof

Suppose toward contradiction that 0∈R×0 \in R^\times, so there is v∈Rv \in R with 0⋅v=10 \cdot v = 1. By the distributive law and the additive identity property of 00,

0⋅v=(0+0)v=0⋅v+0⋅v,0 \cdot v = (0+0)v = 0\cdot v + 0 \cdot v,

so subtracting 0⋅v0 \cdot v from both sides (using that (R,+)(R,+) is a group) gives 0⋅v=00 \cdot v = 0. Hence 1=0⋅v=01 = 0 \cdot v = 0, contradicting the hypothesis 1≠01 \neq 0. Therefore no such vv exists, and 0∉R×0 \notin R^\times. ■\blacksquare

∎

This corollary is the reason R×R^\times is often described as a subset of R∖{0}R \setminus \{0\}: it can never contain the zero element, though it need not equal all of R∖{0}R\setminus\{0\} — that stronger property is exactly what will define a field.

Worked examples

Example 1: The group of units of Z/12Z\mathbb{Z}/12\mathbb{Z}. Let R=Z/12ZR = \mathbb{Z}/12\mathbb{Z}, the ring of integers modulo 1212, with the usual addition and multiplication of residue classes. This is a commutative ring with identity 1ˉ\bar 1. Claim: aˉ∈R×\bar a \in R^\times if and only if gcd⁡(a,12)=1\gcd(a, 12) = 1. Proof of claim. Suppose gcd⁡(a,12)=1\gcd(a,12) = 1. By Bézout's identity there exist integers x,yx, y with

ax+12y=1.ax + 12y = 1.

Reducing modulo 1212 (and noting 12y≡012 y \equiv 0), we get aˉxˉ=1ˉ\bar a \bar x = \bar 1 in RR, so xˉ\bar x is a two-sided inverse of aˉ\bar a (the ring is commutative, so aˉxˉ=xˉaˉ\bar a \bar x = \bar x \bar a). Hence aˉ∈R×\bar a \in R^\times. Conversely, suppose aˉ∈R×\bar a \in R^\times, so there is xˉ∈R\bar x \in R with ax≡1(mod12)a x \equiv 1 \pmod{12}, i.e. ax−12k=1ax - 12k = 1 for some integer kk. Any common divisor dd of aa and 1212 divides the left side ax−12kax - 12k, hence divides 11, forcing d=±1d = \pm 1. So gcd⁡(a,12)=1\gcd(a,12) = 1. □\square Now we compute directly. The residues a∈{0,1,…,11}a \in \{0,1,\dots,11\} with gcd⁡(a,12)=1\gcd(a,12)=1 are:

1,5,7,11.1, 5, 7, 11.

(Check: gcd⁡(2,12)=2\gcd(2,12)=2, gcd⁡(3,12)=3\gcd(3,12)=3, gcd⁡(4,12)=4\gcd(4,12)=4, gcd⁡(5,12)=1\gcd(5,12)=1, gcd⁡(6,12)=6\gcd(6,12)=6, gcd⁡(7,12)=1\gcd(7,12)=1, gcd⁡(8,12)=4\gcd(8,12)=4, gcd⁡(9,12)=3\gcd(9,12)=3, gcd⁡(10,12)=2\gcd(10,12)=2, gcd⁡(11,12)=1\gcd(11,12)=1.) So R×={1ˉ,5ˉ,7ˉ,11ˉ}R^\times = \{\bar 1, \bar 5, \bar 7, \bar{11}\}, and ∣R×∣=4=φ(12)|R^\times| = 4 = \varphi(12) where φ(12)=12(1−12)(1−13)=4\varphi(12) = 12(1-\tfrac12)(1-\tfrac13) = 4. Let us verify the group structure explicitly by computing the multiplication table modulo 1212:

5⋅5=25≡1,5⋅7=35≡11,5⋅11=55≡7,7⋅7=49≡1,7⋅11=77≡5,11⋅11=121≡1.5 \cdot 5 = 25 \equiv 1, \quad 5\cdot 7 = 35 \equiv 11, \quad 5\cdot 11 = 55 \equiv 7, \quad 7\cdot 7 = 49\equiv 1, \quad 7 \cdot 11 = 77 \equiv 5, \quad 11\cdot 11 = 121 \equiv 1.

So every non-identity element squares to 1ˉ\bar 1: 5ˉ2=7ˉ2=11ˉ2=1ˉ\bar 5^2 = \bar 7^2 = \bar{11}^2 = \bar 1. This means R×R^\times is a group of order 44 in which every element has order dividing 22; such a group is necessarily isomorphic to the Klein four-group Z/2Z×Z/2Z\mathbb{Z}/2\mathbb{Z} \times \mathbb{Z}/2\mathbb{Z} (it cannot be cyclic of order 44, since a cyclic group of order 4 has an element of order 4, but here the maximal order of a non-identity element is 22). This is a genuinely useful fact: (Z/12Z)×≅Z/2Z×Z/2Z(\mathbb{Z}/12\mathbb{Z})^\times \cong \mathbb{Z}/2\mathbb{Z}\times\mathbb{Z}/2\mathbb{Z}, not cyclic — illustrating that the group of units need not be cyclic even though Z/nZ\mathbb{Z}/n\mathbb{Z} itself (additively) always is.

Example 2: The group of units of the Gaussian integers Z[i]\mathbb{Z}[i]. Let R=Z[i]={a+bi:a,b∈Z}⊂CR = \mathbb{Z}[i] = \{a + bi : a, b \in \mathbb{Z}\} \subset \mathbb{C}, with addition and multiplication inherited from C\mathbb{C}. This is a commutative ring with identity 1=1+0i1 = 1 + 0i; one checks directly that sums and products of Gaussian integers are again Gaussian integers (closure), associativity and distributivity are inherited from C\mathbb{C}, and (R,+)(R,+) is an abelian group (it is a subgroup of (C,+)(\mathbb{C},+), being closed under addition and negation with integer coordinates). Claim: R×={1,−1,i,−i}R^\times = \{1, -1, i, -i\}. Proof of claim. Define the norm N:Z[i]→Z≥0N: \mathbb{Z}[i] \to \mathbb{Z}_{\geq 0} by

N(a+bi)=a2+b2=(a+bi)(a−bi).N(a+bi) = a^2 + b^2 = (a+bi)(a-bi).

The norm is multiplicative: for z,w∈Z[i]z, w \in \mathbb{Z}[i],

N(zw)=zwzw‾=zwzˉwˉ=(zzˉ)(wwˉ)=N(z)N(w),N(zw) = zw\overline{zw} = zw\bar z\bar w = (z\bar z)(w \bar w) = N(z) N(w),

using that complex conjugation is multiplicative (zw‾=zˉwˉ\overline{zw} = \bar z \bar w) and that complex multiplication is commutative and associative. Suppose u∈Z[i]×u \in \mathbb{Z}[i]^\times, with inverse v∈Z[i]v \in \mathbb{Z}[i], so uv=1uv = 1. Applying NN and multiplicativity,

N(u)N(v)=N(uv)=N(1)=1.N(u)N(v) = N(uv) = N(1) = 1.

Both N(u)N(u) and N(v)N(v) are non-negative integers (as a2+b2a^2+b^2 for integers a,ba,b), and their product is 11, so we must have N(u)=N(v)=1N(u) = N(v) = 1. Now we find all u=a+bi∈Z[i]u = a+bi \in \mathbb{Z}[i] with N(u)=a2+b2=1N(u) = a^2+b^2 = 1, a,b∈Za,b \in \mathbb{Z}. Since a2,b2≥0a^2, b^2 \geq 0 are integers summing to 11, one of them is 00 and the other is 11. This forces (a,b)∈{(1,0),(−1,0),(0,1),(0,−1)}(a,b) \in \{(1,0),(-1,0),(0,1),(0,-1)\}, i.e.

u∈{1,−1,i,−i}.u \in \{1, -1, i, -i\}.

So N(u)=1N(u) = 1 implies u∈{1,−1,i,−i}u \in \{1,-1,i,-i\}, showing Z[i]×⊆{1,−1,i,−i}\mathbb{Z}[i]^\times \subseteq \{1,-1,i,-i\}. For the reverse inclusion we exhibit explicit inverses: 1⋅1=11\cdot 1=1; (−1)(−1)=1(-1)(-1)=1; i⋅(−i)=−i2=1i \cdot (-i) = -i^2 = 1; (−i)⋅i=1(-i)\cdot i = 1. So each of 1,−1,i,−i1,-1,i,-i has an inverse in Z[i]\mathbb{Z}[i] (in fact each is its own inverse or paired with its negative), confirming all four lie in Z[i]×\mathbb{Z}[i]^\times. Hence Z[i]×={1,−1,i,−i}\mathbb{Z}[i]^\times = \{1,-1,i,-i\}, a cyclic group of order 44 generated by ii, since i1=ii^1 = i, i2=−1i^2=-1, i3=−ii^3=-i, i4=1i^4=1. Note the contrast with Example 1: here the unit group of order 44 is cyclic (≅Z/4Z\cong \mathbb{Z}/4\mathbb{Z}), while there it was the Klein four-group — a reminder that ∣R×∣=4|R^\times|=4 does not determine the isomorphism type of R×R^\times without more information about RR.

CounterexampleWhy the "with identity" hypothesis is needed

Drop the hypothesis that RR has a multiplicative identity and consider R=2ZR = 2\mathbb{Z}, the ring of even integers, with the usual addition and multiplication. This is a commutative ring: (2Z,+)(2\mathbb{Z}, +) is an abelian group (sums and negatives of even integers are even), multiplication is associative and commutative (inherited from Z\mathbb{Z}), and the distributive laws hold (inherited from Z\mathbb{Z}). So all the ring axioms without identity hold. However, 2Z2\mathbb{Z} has no multiplicative identity: an identity would be an element e∈2Ze \in 2\mathbb{Z} with ex=xex = x for all x∈2Zx \in 2\mathbb{Z}. In particular e⋅2=2e \cdot 2 = 2, forcing e=1e=1 in Z\mathbb{Z} since 2≠02 \neq 0 and Z\mathbb{Z} has no zero divisors — but 1∉2Z1 \notin 2\mathbb{Z}. So no candidate for ee exists inside 2Z2\mathbb{Z}. Consequently the very definition of "unit" collapses: a unit was defined via the equation uv=vu=1uv = vu = 1, but there is no element 1∈R1 \in R to solve this equation against. One cannot even ask "is uu invertible" in a ring without identity in the sense used above, since invertibility was defined relative to a two-sided identity element. This is exactly why the theorem's proof leaned on 1⋅a=a⋅1=a1\cdot a = a\cdot 1 = a holding for all a∈Ra \in R (used explicitly in Step 1 and in verifying the identity axiom for the group R×R^\times): without a genuine multiplicative identity in RR, there is no candidate identity element for R×R^\times to inherit, and the entire construction of R×R^\times as a group is unavailable. (One can artificially adjoin an identity to 2Z2\mathbb{Z} to form a larger ring, but that changes the ring under consideration; within 2Z2\mathbb{Z} itself as given, the notion of "unit" as defined here simply does not apply.) This shows the identity hypothesis is not a cosmetic convenience — it is load-bearing for the entire theorem.

Scope, edge cases & common traps

SituationWhat happensWhy
RR has identity, non-commutativeR×R^\times is a group, possibly non-abelianTheorem holds without commutativity; e.g. invertible n×nn\times n matrices over a field form GLnGL_n, non-abelian for n≥2n\geq 2
RR commutative, no identity"Unit" undefinedDefinition requires solving uv=1uv=1; no 11 means no such equation
RR = zero ring {0}\{0\}Degenerate: 1=01=0Excluded by convention 1≠01 \neq 0; otherwise every "unit" statement is vacuous or ill-posed
RR finite commutative with identityUnits are exactly non-zero-divisorsFinite ring: an element is a unit iff it is not a zero divisor (a fact used freely but requiring its own proof, not shown here)
u,vu,v both one-sided inverses of xx in non-commutative RRIf xx has both a left inverse and a right inverse, they are automatically equal (same proof as Step 0)One-sided inverses alone do not immediately give a group without this coincidence

The mathematician behind it

Origins · 1 minRichard Dedekind and how this was discovered
RD
Richard Dedekind
1831–1916 · German mathematician, foundational figure in abstract ring and ideal theory

Richard Dedekind was a student and later close associate of Gauss and Dirichlet at Göttingen, and one of the earliest mathematicians to insist on abstract, structural definitions in algebra rather than purely computational ones. Working on the arithmetic of algebraic number fields — generalizations of Z\mathbb{Z} like the Gaussian integers Z[i]\mathbb{Z}[i] discussed above — Dedekind introduced the modern notion of an ideal and laid essential groundwork for what would become ring theory. His insistence on studying rings of integers in number fields, and the units and non-units within them, directly anticipates the general framework of commutative rings with identity used throughout this article.

History
- 1831: Richard Dedekind born in Braunschweig, Germany.
- 1871: Dedekind introduces the modern concept of an ideal in his supplement to Dirichlet's lectures on number theory, studying rings of algebraic integers.
- 1897: Kurt Hensel and others further develop the arithmetic of rings such as Z[i]\mathbb{Z}[i], sharpening the study of units in number rings.
- 1914: Abstract axioms for rings (Fraenkel) begin to formalize commutative and non-commutative rings independently of number-theoretic origins.
- 1916: Dedekind dies in Braunschweig, having shaped the structural viewpoint that leads to the modern definitions of ring, identity, and unit used today.
Does every ring have a multiplicative identity?

No. The definition of a ring (in the convention used here, following Dummit–Foote) only requires an abelian additive group structure, an associative multiplicative structure, and the distributive laws; a multiplicative identity is an extra property some rings have and others lack. The ring of even integers 2Z2\mathbb{Z} is a concrete example of a commutative ring with no multiplicative identity, as shown in the counterexample above. When a ring does have an identity, it is unique: if 11 and 1′1' both satisfy the identity property, then 1=1⋅1′=1′1 = 1\cdot 1' = 1'. Because so many important theorems (including the one in this article) require an identity, many textbooks build it into their basic definition of "ring," so always check which convention is in force.

Is every nonzero element of a commutative ring with identity a unit?

Not in general. This is exactly the property that distinguishes a field from an arbitrary commutative ring with identity. In Z\mathbb{Z}, the element 22 is nonzero but not a unit, since no integer solves 2x=12x=1. In Z/12Z\mathbb{Z}/12\mathbb{Z}, elements like 4ˉ\bar 4 or 6ˉ\bar 6 are nonzero zero-divisors, hence not units — indeed 4ˉ⋅3ˉ=12ˉ=0ˉ\bar 4\cdot \bar 3 = \bar{12} = \bar 0 shows 4ˉ\bar 4 cannot be a unit, since multiplying a unit equation 4ˉu=1\bar 4 u = 1 by 3ˉ\bar 3 would force 3ˉ=3ˉ⋅4ˉu=0ˉ⋅u=0ˉ\bar 3 = \bar 3 \cdot \bar 4 u = \bar 0 \cdot u = \bar 0, a contradiction. A field is defined precisely as a commutative ring with identity 1≠01\neq 0 in which every nonzero element is a unit.

Why do we insist 1≠01 \neq 0 in the definition of a ring with identity?

If 1=01 = 0 were allowed, then for every a∈Ra \in R we would have a=1⋅a=0⋅a=0a = 1\cdot a = 0 \cdot a = 0 (using the Corollary-style computation that 0⋅a=00\cdot a = 0 for all aa), forcing R={0}R = \{0\}, the trivial zero ring. Requiring 1≠01 \neq 0 simply excludes this single degenerate case from the main theory, so that statements like "units are never zero" are meaningful and non-vacuous. The zero ring technically satisfies the ring axioms with identity, but essentially all interesting ring-theoretic statements (integral domain, field, unit group structure) are stated for rings with 1≠01\neq 0 to avoid trivial exceptions cluttering every theorem.

Is the group of units always abelian?

No — only when the ring itself is commutative. If RR is commutative, then ab=baab=ba for all a,b∈Ra,b\in R, in particular for units, so R×R^\times is automatically abelian. But for a non-commutative ring with identity, such as the ring Mn(F)M_n(F) of n×nn\times n matrices over a field FF with n≥2n \geq 2, the unit group GLn(F)GL_n(F) is famously non-abelian: matrix multiplication does not commute in general. The theorem proved in this article deliberately does not assume commutativity, precisely so that it applies to both cases; commutativity is invoked only as an extra hypothesis to conclude R×R^\times is abelian.

How do I quickly check whether an element of Z/nZ\mathbb{Z}/n\mathbb{Z} is a unit?

Compute gcd⁡(a,n)\gcd(a,n) using the Euclidean algorithm. The residue class aˉ\bar a is a unit in Z/nZ\mathbb{Z}/n\mathbb{Z} if and only if gcd⁡(a,n)=1\gcd(a,n) = 1, as proved via Bézout's identity in Example 1 above. If gcd⁡(a,n)=1\gcd(a,n)=1, running the extended Euclidean algorithm produces integers x,yx,y with ax+ny=1ax+ny=1, and xˉ\bar x is the explicit inverse of aˉ\bar a modulo nn. This is exactly how modular inverses are computed in practice, for instance in RSA key generation, where one needs the inverse of the public exponent modulo Euler's totient of the modulus.

What is the difference between a "unit" in ring theory and a "unit" in everyday language like "unit of measurement"?

These are unrelated uses of the same English word. In ring theory, a unit is a precisely defined algebraic object: an element possessing a multiplicative inverse within the ring, as in the Definition above. This has nothing to do with units of measurement (meters, kilograms) from physics or engineering. The ring-theoretic sense traces back to the idea of the multiplicative identity "11" — historically sometimes just called "unity" — and a unit is, informally, an element that behaves like a rescaled copy of 11 under multiplication, in the sense that multiplying by it is invertible.

Does the theorem require RR to be finite?

No. The proof that R×R^\times is a group uses only the ring axioms (associativity, distributivity, additive group structure) and the defining property of the identity element 11; finiteness is never invoked. The theorem applies equally to infinite rings like Z\mathbb{Z}, Z[i]\mathbb{Z}[i], or the polynomial ring Q[x]\mathbb{Q}[x], and to finite rings like Z/nZ\mathbb{Z}/n\mathbb{Z} or matrix rings over finite fields. Finiteness only becomes relevant for auxiliary facts, such as "in a finite commutative ring with identity, an element is a unit if and only if it is not a zero divisor" — a separate, stronger statement not proved in this article.

Before this

Where this leads