Commutative Rings, Identity, and Units
Which elements of a ring can you "divide by"? In the integers, only and 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 it is the two-element group . For it is the group of residues coprime to . 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 typically has no inverse, and other elements may fail to have one too. Commutativity of multiplication and the presence of an identity element 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 and units of the Gaussian integers . It shows exactly which hypothesis fails when a "ring" lacks identity. It closes by connecting units to the road ahead: Integral Domains and Fields.
- A ring with identity has a multiplicative identity satisfying for all .
- A ring is commutative if for all elements ; 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 of units of a ring with identity is a group under multiplication.
- is never a unit (assuming ), so 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 is far from a curiosity; it is a working tool across mathematics and beyond. In elementary number theory, is the group underlying Euler's theorem and Fermat's little theorem, and its structure (cyclic when is for odd prime , 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 . In algebraic number theory, units of rings of integers in number fields (generalizing ) are governed by Dirichlet's unit theorem, which computes the rank of the unit group from the field's embeddings into and . In linear algebra and representation theory, the units of the ring of matrices over a field form the general linear group , 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 . Even in coding theory, unit groups of finite rings such as or polynomial quotient rings determine which linear codes admit certain symmetries.
:::quiz[What is the group of units of the Gaussian integers, and what is its order?]
- , order 2
- , order 4 ✓
- All nonzero Gaussian integers, infinite order
- , order 1
Ask the tutor: How does the structure of change as ranges over primes, prime powers, and products of distinct primes?
Let be a ring, meaning is an abelian group, is associative, and the distributive laws
hold for all .
Commutative. is a commutative ring if for all .
Identity. is a ring with identity (or unital ring) if there exists an element , called the multiplicative identity, such that
We additionally require to avoid the degenerate zero ring being treated as having a nontrivial identity structure (in the zero ring , one has 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 be a ring with identity . An element is a unit if there exists such that
Such a , if it exists, is called a (multiplicative) inverse of , and we will show below it is unique; we denote it .
Group of units. The set of all units of is denoted
sometimes also written .
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 : every integer has an additive inverse (its negative), so additively the whole line is symmetric and complete as a group. But multiplicatively, only and "reach back" to when multiplied by another integer; every other integer's reciprocal () escapes the ring entirely. The units are the tiny surviving island of multiplicative invertibility inside a much larger ring. For , the picture changes: invertibility becomes a question about the greatest common divisor with . An element is a unit exactly when , because Bézout's identity produces integers with , and reducing mod gives . This is why has exactly elements, where is Euler's totient function.
Theorem
Let be a ring with multiplicative identity (not necessarily commutative), and let
Then is a group under the multiplication inherited from . That is: 1. . 2. If then (closure). 3. Multiplication restricted to is associative. 4. Every has an inverse with . Moreover, inverses in are unique whenever they exist, so the notation is unambiguous, and is exactly the set of elements possessing a two-sided inverse in . If is commutative, is an abelian group.
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 and both satisfy and . Using associativity of multiplication in ,
Hence any element of has at most one two-sided inverse. This justifies writing for the inverse of when .
Step 1: . Since by the defining property of the identity, is its own inverse, so .
Step 2: Closure under multiplication. Let , with inverses satisfying and . We claim is a two-sided inverse of . Compute, using associativity repeatedly:
Both computations only used associativity of in (valid since is a ring) and the defining equations for and . Hence has a two-sided inverse in , namely , so . This proves closure, and simultaneously shows
Step 3: Associativity on . Multiplication on is simply the restriction of multiplication on , which is associative for all triples of elements of by the ring axioms; in particular it is associative for triples drawn from the subset . No separate argument is needed beyond restricting the ambient associative law.
Step 4: Existence of inverses within . Let with inverse , so . We must check itself lies in , i.e. that has an inverse in . But the same equation exhibits as a two-sided inverse of . Hence , and by Step 0 (uniqueness) its inverse is exactly , i.e. .
Conclusion: group axioms verified. We have shown:
- is closed under the multiplication of (Step 2), so multiplication restricts to a binary operation on .
- This restricted operation is associative (Step 3).
- acts as a two-sided identity for this operation, since holds for all by hypothesis, in particular for (Step 1).
- Every element of has an inverse within (Step 4).
These are precisely the group axioms, so is a group.
Commutative case. If is commutative, then for all , in particular for all . Hence the group is abelian.
∎If is a ring with identity , then .
Suppose toward contradiction that , so there is with . By the distributive law and the additive identity property of ,
so subtracting from both sides (using that is a group) gives . Hence , contradicting the hypothesis . Therefore no such exists, and .
∎This corollary is the reason is often described as a subset of : it can never contain the zero element, though it need not equal all of — that stronger property is exactly what will define a field.
Worked examples
Example 1: The group of units of . Let , the ring of integers modulo , with the usual addition and multiplication of residue classes. This is a commutative ring with identity . Claim: if and only if . Proof of claim. Suppose . By Bézout's identity there exist integers with
Reducing modulo (and noting ), we get in , so is a two-sided inverse of (the ring is commutative, so ). Hence . Conversely, suppose , so there is with , i.e. for some integer . Any common divisor of and divides the left side , hence divides , forcing . So . Now we compute directly. The residues with are:
(Check: , , , , , , , , , .) So , and where . Let us verify the group structure explicitly by computing the multiplication table modulo :
So every non-identity element squares to : . This means is a group of order in which every element has order dividing ; such a group is necessarily isomorphic to the Klein four-group (it cannot be cyclic of order , since a cyclic group of order 4 has an element of order 4, but here the maximal order of a non-identity element is ). This is a genuinely useful fact: , not cyclic — illustrating that the group of units need not be cyclic even though itself (additively) always is.
Example 2: The group of units of the Gaussian integers . Let , with addition and multiplication inherited from . This is a commutative ring with identity ; one checks directly that sums and products of Gaussian integers are again Gaussian integers (closure), associativity and distributivity are inherited from , and is an abelian group (it is a subgroup of , being closed under addition and negation with integer coordinates). Claim: . Proof of claim. Define the norm by
The norm is multiplicative: for ,
using that complex conjugation is multiplicative () and that complex multiplication is commutative and associative. Suppose , with inverse , so . Applying and multiplicativity,
Both and are non-negative integers (as for integers ), and their product is , so we must have . Now we find all with , . Since are integers summing to , one of them is and the other is . This forces , i.e.
So implies , showing . For the reverse inclusion we exhibit explicit inverses: ; ; ; . So each of has an inverse in (in fact each is its own inverse or paired with its negative), confirming all four lie in . Hence , a cyclic group of order generated by , since , , , . Note the contrast with Example 1: here the unit group of order is cyclic (), while there it was the Klein four-group — a reminder that does not determine the isomorphism type of without more information about .
Drop the hypothesis that has a multiplicative identity and consider , the ring of even integers, with the usual addition and multiplication. This is a commutative ring: is an abelian group (sums and negatives of even integers are even), multiplication is associative and commutative (inherited from ), and the distributive laws hold (inherited from ). So all the ring axioms without identity hold. However, has no multiplicative identity: an identity would be an element with for all . In particular , forcing in since and has no zero divisors — but . So no candidate for exists inside . Consequently the very definition of "unit" collapses: a unit was defined via the equation , but there is no element to solve this equation against. One cannot even ask "is 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 holding for all (used explicitly in Step 1 and in verifying the identity axiom for the group ): without a genuine multiplicative identity in , there is no candidate identity element for to inherit, and the entire construction of as a group is unavailable. (One can artificially adjoin an identity to to form a larger ring, but that changes the ring under consideration; within 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
| Situation | What happens | Why |
|---|---|---|
| has identity, non-commutative | is a group, possibly non-abelian | Theorem holds without commutativity; e.g. invertible matrices over a field form , non-abelian for |
| commutative, no identity | "Unit" undefined | Definition requires solving ; no means no such equation |
| = zero ring | Degenerate: | Excluded by convention ; otherwise every "unit" statement is vacuous or ill-posed |
| finite commutative with identity | Units are exactly non-zero-divisors | Finite 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) |
| both one-sided inverses of in non-commutative | If 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
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 like the Gaussian integers 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.
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 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 and both satisfy the identity property, then . 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 , the element is nonzero but not a unit, since no integer solves . In , elements like or are nonzero zero-divisors, hence not units — indeed shows cannot be a unit, since multiplying a unit equation by would force , a contradiction. A field is defined precisely as a commutative ring with identity in which every nonzero element is a unit.
Why do we insist in the definition of a ring with identity?
If were allowed, then for every we would have (using the Corollary-style computation that for all ), forcing , the trivial zero ring. Requiring 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 to avoid trivial exceptions cluttering every theorem.
Is the group of units always abelian?
No — only when the ring itself is commutative. If is commutative, then for all , in particular for units, so is automatically abelian. But for a non-commutative ring with identity, such as the ring of matrices over a field with , the unit group 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 is abelian.
How do I quickly check whether an element of is a unit?
Compute using the Euclidean algorithm. The residue class is a unit in if and only if , as proved via Bézout's identity in Example 1 above. If , running the extended Euclidean algorithm produces integers with , and is the explicit inverse of modulo . 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 "" — historically sometimes just called "unity" — and a unit is, informally, an element that behaves like a rescaled copy of under multiplication, in the sense that multiplying by it is invertible.
Does the theorem require to be finite?
No. The proof that is a group uses only the ring axioms (associativity, distributivity, additive group structure) and the defining property of the identity element ; finiteness is never invoked. The theorem applies equally to infinite rings like , , or the polynomial ring , and to finite rings like 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.