The Field of Fractions

Can you always divide? In the integers you cannot solve 2x=32x = 3. The rational numbers fix this by formally adjoining fractions a/ba/b. This article asks a question. Given any integral domain, can we perform the same construction? In what sense is the result the smallest field containing it? The idea matters because it is the archetype of a "free" construction in algebra. We start from a modest algebraic object with just enough structure (no zero divisors). From this we build the most economical field extension possible. We do so functorially. This means any map out of the domain into a field automatically extends. This same pattern reappears constantly. Build an equivalence class of formal expressions, define operations, then verify a universal property. This happens most notably when we later build the field of rational functions k(x)k(x) over a polynomial ring k[x]k[x]. The big picture is that "integral domain" is exactly the right hypothesis. It makes this construction work. It is precisely the condition that makes the naive fraction-building recipe (cross-multiplication) into a genuine equivalence relation. That relation is compatible with arithmetic. It is also precisely the condition needed to embed the domain into the resulting field. Losing it (allowing zero divisors) causes the construction to collapse or misbehave. We verify this explicitly. This article delivers a complete construction of the field of fractions Frac⁡(R)\operatorname{Frac}(R) of an integral domain RR. It gives a full proof that it is a field containing RR. It also gives a rigorous statement and proof of its universal property. Frac⁡(R)\operatorname{Frac}(R) is the unique smallest field in which RR embeds. Every injective-on-domain homomorphism from RR into a field factors uniquely through it.

Key takeaways
  • Given an integral domain RR, we formally invert all nonzero elements by building equivalence classes of pairs (a,b)(a,b), b≠0b \neq 0, thought of as a/ba/b.
  • The equivalence relation (a,b)∼(c,d)  ⟺  ad=bc(a,b) \sim (c,d) \iff ad = bc requires RR to have no zero divisors to be transitive and well-defined with the arithmetic.
  • The resulting set Frac⁡(R)\operatorname{Frac}(R) with the usual fraction addition and multiplication is a field, and RR embeds into it via r↦r/1r \mapsto r/1.
  • Frac⁡(R)\operatorname{Frac}(R) satisfies a universal property: any injective ring homomorphism from RR into a field KK extends uniquely to a field homomorphism Frac⁡(R)→K\operatorname{Frac}(R) \to K.
  • This universal property characterizes Frac⁡(R)\operatorname{Frac}(R) up to unique isomorphism fixing RR, so the construction, though built from arbitrary representatives, produces a canonical object.
  • Key idea: integral domains are exactly the rings that embed in a field, and Frac⁡(R)\operatorname{Frac}(R) is the universal such field.

Where this lives today

The field of fractions is the simplest instance of localization, a fundamental tool throughout commutative algebra and algebraic geometry: instead of inverting all nonzero elements, one inverts a chosen multiplicative set T⊆RT \subseteq R to get T−1RT^{-1}R, with the same fraction-and-equivalence-class recipe (modified to handle possible zero divisors in TT). Localization underlies the construction of local rings at a point of a variety, the study of primary decomposition, and the definition of the structure sheaf in scheme theory. In polynomial rings over a field, Frac⁡(k[x1,…,xn])\operatorname{Frac}(k[x_1,\dots,x_n]) is the field of rational functions k(x1,…,xn)k(x_1,\dots,x_n), indispensable in algebraic geometry (function fields of varieties), in the theory of transcendence degree, and in the definition of rational maps between varieties. In number theory, Frac⁡(OK)\operatorname{Frac}(\mathcal{O}_K) for a ring of integers OK\mathcal{O}_K recovers the number field KK itself, and the construction underlies the definition of pp-adic fields as completions built from fraction-field-like limiting procedures. In cryptography, arithmetic in finite fields and their extensions (built via polynomial ring quotients) sometimes requires passing to fraction fields of polynomial rings over finite fields, e.g., in coding theory and the study of rational function fields Fq(x)\mathbb{F}_q(x) used in constructing algebraic-geometry codes. In computer algebra systems, exact rational arithmetic and symbolic manipulation of rational expressions are direct computational implementations of Frac⁡(Z)\operatorname{Frac}(\mathbb{Z}) and Frac⁡(k[x])\operatorname{Frac}(k[x]).

:::faq[How does Frac⁡(k[x])\operatorname{Frac}(k[x]) relate to rational functions we know from calculus?] Frac⁡(k[x])\operatorname{Frac}(k[x]), denoted k(x)k(x), is the algebraic field of formal ratios of polynomials, whose elements are equivalence classes under cross-multiplication rather than functions. When k=Rk = \mathbb{R} or C\mathbb{C}, one can evaluate a representative f/gf/g at any point where gg does not vanish, and this evaluation is consistent across equivalent representatives wherever both denominators are simultaneously nonzero — this is why the calculus notion of "rational function" and the algebraic element of k(x)k(x) agree in practice, though the algebraic object exists independent of any notion of evaluation and is cleaner for purely algebraic manipulations like field extensions and Galois theory.

Ask the tutor: How does this construction generalize to localizing a commutative ring at an arbitrary multiplicative set, and what changes when that ring has zero divisors?

DefinitionField of Fractions

Let RR be an integral domain, i.e., a commutative ring with 1≠01 \neq 0 and no zero divisors. Let

S=R×(R∖{0})={(a,b):a,b∈R, b≠0}.S = R \times (R \setminus \{0\}) = \{(a,b) : a,b \in R,\ b \neq 0\}.

Define a relation ∼\sim on SS by

(a,b)∼(c,d)iffad=bc.(a,b) \sim (c,d) \quad \text{iff} \quad ad = bc.

Write Frac⁡(R)=S/∼\operatorname{Frac}(R) = S/\sim, and denote the equivalence class of (a,b)(a,b) by ab\dfrac{a}{b}. Define operations on Frac⁡(R)\operatorname{Frac}(R) by

ab+cd:=ad+bcbd,ab⋅cd:=acbd.\frac{a}{b} + \frac{c}{d} := \frac{ad+bc}{bd}, \qquad \frac{a}{b}\cdot \frac{c}{d} := \frac{ac}{bd}.

The set Frac⁡(R)\operatorname{Frac}(R), equipped with these operations, is called the field of fractions (or quotient field) of RR.

Intuition

The construction mirrors exactly how a child learns to build Q\mathbb{Q} from Z\mathbb{Z}: a fraction a/ba/b is not really a pair of integers, it is an equivalence class of pairs, since 1/21/2, 2/42/4, and −3/(−6)-3/(-6) should all denote "the same number." The rule ad=bcad = bc is just cross-multiplication, the familiar test for whether two fractions are equal. What integral domains buy us is that this cross-multiplication test behaves like an honest equality: it is reflexive and symmetric for free, but transitivity — the fact that a/b=c/da/b = c/d and c/d=e/fc/d = e/f should force a/b=e/fa/b = e/f — genuinely uses the absence of zero divisors, as the proof below shows. Once the set of fractions is built, addition and multiplication are defined exactly as with rational numbers: find a common denominator, multiply numerators and denominators. The nontrivial content is that these operations are well-defined — independent of which representative pair we chose — and that they endow Frac⁡(R)\operatorname{Frac}(R) with the structure of a field, with 0/10/1 and 1/11/1 as additive and multiplicative identities and b/ab/a as the inverse of a nonzero a/ba/b. The picture below visualizes Frac⁡(Z)=Q\operatorname{Frac}(\mathbb{Z}) = \mathbb{Q}: each rational number is an equivalence class of lattice points (a,b)(a,b) with b≠0b \ne 0, all lying on a common ray through the origin (since (a,b)∼(c,d)  ⟺  ad=bc(a,b) \sim (c,d) \iff ad = bc means the points are collinear with the origin, i.e. a/b=c/da/b = c/d as slopes).

Figure
Equivalence classes of pairs as rays through the origin: (1,2), (2,4), (3,6) all represent the fraction 1/2
b a (1,2) (2,4) (3,6) all represent 1/2 ∈ Frac(ℤ) origin (0,0) excluded: b≠0

Central results

TheoremExistence, Field Structure, and Embedding

Let RR be an integral domain. Then: 1. The relation ∼\sim on S=R×(R∖{0})S = R \times (R\setminus\{0\}) defined by (a,b)∼(c,d)  ⟺  ad=bc(a,b)\sim(c,d) \iff ad=bc is an equivalence relation. 2. The operations

ab+cd=ad+bcbd,ab⋅cd=acbd\frac{a}{b}+\frac{c}{d} = \frac{ad+bc}{bd}, \qquad \frac{a}{b}\cdot\frac{c}{d}=\frac{ac}{bd}

are well-defined on Frac⁡(R)=S/∼\operatorname{Frac}(R) = S/\sim, and (Frac⁡(R),+,⋅)(\operatorname{Frac}(R), +, \cdot) is a field. 3. The map ι:R→Frac⁡(R)\iota: R \to \operatorname{Frac}(R), ι(r)=r/1\iota(r) = r/1, is an injective ring homomorphism. In particular RR embeds as a subring of Frac⁡(R)\operatorname{Frac}(R).

Proof

Technique: direct verification from the axioms, using well-definedness lemmas before invoking them. Part 1: ∼\sim is an equivalence relation. *Reflexivity. For (a,b)∈S(a,b) \in S, ab=baab = ba since RR is commutative, so (a,b)∼(a,b)(a,b)\sim(a,b). Symmetry. If (a,b)∼(c,d)(a,b)\sim(c,d) then ad=bcad = bc. Since RR is commutative, cb=bc=ad=dacb = bc = ad = da, so cb=dacb = da, which is exactly the condition (c,d)∼(a,b)(c,d)\sim(a,b). Transitivity.* Suppose (a,b)∼(c,d)(a,b)\sim(c,d) and (c,d)∼(e,f)(c,d)\sim(e,f), i.e., ad=bcad = bc and cf=decf = de. We must show (a,b)∼(e,f)(a,b)\sim(e,f), i.e., af=beaf = be. Compute, using commutativity and associativity of RR:

(af)d=a(fd)=a(df)=(ad)f=(bc)f=b(cf)=b(de)=(bd)e=(db)e=d(be).(af)d = a(fd) = a(df) = (ad)f = (bc)f = b(cf) = b(de) = (bd)e = (db)e = d(be).

So d(af)=d(be)d(af) = d(be), i.e., d(af−be)=0d(af - be) = 0 in RR. Since d≠0d \neq 0 (as (c,d)∈S(c,d) \in S) and RR has no zero divisors, we conclude af−be=0af - be = 0, i.e., af=beaf = be, as required. This is exactly the step where the integral domain hypothesis is essential: without it, d(af−be)=0d(af-be)=0 would not force af=beaf=be. Thus ∼\sim is an equivalence relation, and Frac⁡(R):=S/∼\operatorname{Frac}(R) := S/\sim is well-defined as a set. Part 2: well-definedness of ++ and ⋅\cdot, and the field axioms. First, note that if b,d∈R∖{0}b, d \in R \setminus\{0\} then bd≠0bd \neq 0 (this uses that RR has no zero divisors, applied directly: bd=0bd = 0 with b≠0b\neq 0 would force d=0d = 0, contradiction). So (ad+bc,bd)(ad+bc, bd) and (ac,bd)(ac,bd) do lie in SS, and the formulas above define elements of Frac⁡(R)\operatorname{Frac}(R). Well-definedness of addition. Suppose (a,b)∼(a′,b′)(a,b)\sim(a',b') and (c,d)∼(c′,d′)(c,d)\sim(c',d'), i.e. ab′=a′bab' = a'b and cd′=c′dcd'=c'd. We must show

(ad+bc,bd)∼(a′d′+b′c′,b′d′),(ad+bc, bd) \sim (a'd'+b'c', b'd'),

i.e., (ad+bc)(b′d′)=(bd)(a′d′+b′c′)(ad+bc)(b'd') = (bd)(a'd'+b'c'). Expand both sides:

(ad+bc)(b′d′)=ab′dd′+bb′cd′,(bd)(a′d′+b′c′)=a′b dd′+bb′ c′d.(ad+bc)(b'd') = ab'dd' + bb'cd', \qquad (bd)(a'd'+b'c') = a'b\, dd' + bb'\,c'd.

Using ab′=a′bab' = a'b, the first terms agree: ab′dd′=a′b dd′ab'dd' = a'b\,dd'. Using cd′=c′dcd' = c'd, the second terms agree: bb′cd′=bb′c′dbb'cd' = bb'c'd. Hence both expansions are equal term-by-term, proving the required equality. So addition is well-defined. Well-definedness of multiplication. With the same hypotheses, we must show (ac,bd)∼(a′c′,b′d′)(ac,bd)\sim(a'c',b'd'), i.e., ac b′d′=bd a′c′ac\,b'd' = bd\,a'c'. Indeed,

(ac)(b′d′)=(ab′)(cd′)=(a′b)(c′d)=(a′c′)(bd)=(bd)(a′c′),(ac)(b'd') = (ab')(cd') = (a'b)(c'd) = (a'c')(bd) = (bd)(a'c'),

using ab′=a′bab'=a'b, cd′=c′dcd'=c'd, and commutativity/associativity to rearrange. This proves multiplication is well-defined. Field axioms. We now verify (Frac⁡(R),+,⋅)(\operatorname{Frac}(R),+,\cdot) satisfies the field axioms, writing 0R,1R0_R, 1_R for the zero and identity of RR.

  • Additive identity: 0R/1R0_R/1_R satisfies ab+0R1R=a⋅1R+b⋅0Rb⋅1R=ab\dfrac{a}{b} + \dfrac{0_R}{1_R} = \dfrac{a\cdot 1_R + b\cdot 0_R}{b\cdot 1_R} = \dfrac{a}{b}, using a⋅1R=aa\cdot 1_R = a and b⋅0R=0Rb \cdot 0_R = 0_R and (a,b)∼(a⋅1R,b⋅1R)(a,b)\sim(a\cdot1_R, b\cdot1_R) trivially, then simplifying via the equivalence (a⋅1R,b⋅1R)∼(a,b) (a\cdot 1_R, b\cdot 1_R)\sim (a,b) (check: a⋅1R⋅b=b⋅1R⋅aa\cdot1_R\cdot b = b\cdot1_R \cdot a, true by commutativity).
  • Additive inverses: For a/b∈Frac⁡(R)a/b \in \operatorname{Frac}(R), we claim (−a)/b(-a)/b is its additive inverse: ab+−ab=ab+b(−a)b2=ab−abb2=0Rb2\dfrac{a}{b}+\dfrac{-a}{b} = \dfrac{ab+b(-a)}{b^2} = \dfrac{ab - ab}{b^2} = \dfrac{0_R}{b^2}, and 0Rb2∼0R1R\dfrac{0_R}{b^2} \sim \dfrac{0_R}{1_R} since 0R⋅1R=b2⋅0R=0R0_R \cdot 1_R = b^2 \cdot 0_R = 0_R. So this equals the zero element.
  • Additive associativity and commutativity follow by direct expansion using the corresponding axioms in RR; commutativity is immediate since RR is commutative (ad+bc=cb+daad+bc = cb+da up to reindexing), and associativity is a routine but lengthy expansion, e.g.
(ab+cd)+ef=(ad+bc)f+bdebdf=adf+bcf+bdebdf,\left(\frac{a}{b}+\frac{c}{d}\right)+\frac{e}{f} = \frac{(ad+bc)f + bde}{bdf} = \frac{adf+bcf+bde}{bdf},

and one checks the right-associated sum gives the same numerator over bdfbdf after using distributivity in RR; we omit the symmetric verification, which is identical arithmetic to the associativity check in Q\mathbb{Q} built from Z\mathbb{Z}.

  • Multiplicative identity: 1R/1R1_R/1_R satisfies ab⋅1R1R=ab\dfrac{a}{b}\cdot\dfrac{1_R}{1_R} = \dfrac{a}{b} directly.
  • Multiplicative associativity and commutativity again follow from associativity/commutativity of multiplication in RR applied to numerators and denominators.
  • Distributivity: ab(cd+ef)=ab⋅cf+dedf=a(cf+de)bdf=acf+adebdf\dfrac{a}{b}\left(\dfrac{c}{d}+\dfrac{e}{f}\right) = \dfrac{a}{b}\cdot\dfrac{cf+de}{df} = \dfrac{a(cf+de)}{bdf} = \dfrac{acf+ade}{bdf}, while ab⋅cd+ab⋅ef=acbd+aebf=acbf+bdaeb2df=b(acf+ade)b(bdf)\dfrac{a}{b}\cdot\dfrac{c}{d}+\dfrac{a}{b}\cdot\dfrac{e}{f} = \dfrac{ac}{bd}+\dfrac{ae}{bf} = \dfrac{acbf + bdae}{b^2df} = \dfrac{ b(acf+ade)}{b(bdf)}; these two fractions are equivalent since (acf+ade)(b⋅bdf)=(b(acf+ade))(bdf)(acf+ade)(b\cdot bdf) = (b(acf+ade))(bdf) holds trivially by commutativity, so cross-multiplication confirms equality in Frac⁡(R)\operatorname{Frac}(R).
  • Nonzero elements are invertible: Suppose a/b≠0Frac⁡(R)=0R/1Ra/b \neq 0_{\operatorname{Frac}(R)} = 0_R/1_R. Then (a,b)≁(0R,1R)(a,b)\not\sim(0_R,1_R), i.e., a⋅1R≠b⋅0R=0Ra\cdot 1_R \neq b \cdot 0_R = 0_R, so a≠0Ra \neq 0_R. Hence b/a∈S/∼b/a \in S/\sim is a legitimate element (since a≠0Ra \neq 0_R), and
ab⋅ba=abba=abab∼1R1R,\frac{a}{b}\cdot\frac{b}{a} = \frac{ab}{ba} = \frac{ab}{ab} \sim \frac{1_R}{1_R},

since ab⋅1R=1R⋅abab \cdot 1_R = 1_R \cdot ab. So a/ba/b is invertible with inverse b/ab/a.

  • Finally, 0Frac⁡(R)≠1Frac⁡(R)0_{\operatorname{Frac}(R)} \neq 1_{\operatorname{Frac}(R)}: if 0R/1R∼1R/1R0_R/1_R \sim 1_R/1_R then 0R⋅1R=1R⋅1R0_R \cdot 1_R = 1_R \cdot 1_R, i.e. 0R=1R0_R = 1_R in RR, contradicting that RR is an integral domain (which by definition has 1R≠0R1_R \neq 0_R).

All field axioms hold, so Frac⁡(R)\operatorname{Frac}(R) is a field. Part 3: ι\iota is an injective ring homomorphism. Define ι(r)=r/1R\iota(r) = r/1_R. Then:

ι(r+s)=r+s1R,ι(r)+ι(s)=r1R+s1R=r⋅1R+1R⋅s1R⋅1R=r+s1R,\iota(r+s) = \frac{r+s}{1_R}, \qquad \iota(r)+\iota(s) = \frac{r}{1_R}+\frac{s}{1_R} = \frac{r\cdot1_R + 1_R\cdot s}{1_R\cdot 1_R} = \frac{r+s}{1_R},

so ι(r+s)=ι(r)+ι(s)\iota(r+s)=\iota(r)+\iota(s). Similarly ι(rs)=rs1R=r1R⋅s1R=ι(r)ι(s)\iota(rs) = \dfrac{rs}{1_R} = \dfrac{r}{1_R}\cdot\dfrac{s}{1_R} = \iota(r)\iota(s), and ι(1R)=1R/1R=1Frac⁡(R)\iota(1_R) = 1_R/1_R = 1_{\operatorname{Frac}(R)}. So ι\iota is a ring homomorphism. For injectivity: if ι(r)=ι(s)\iota(r) = \iota(s), then r/1R∼s/1Rr/1_R \sim s/1_R, i.e., r⋅1R=1R⋅sr \cdot 1_R = 1_R \cdot s, i.e., r=sr = s. So ι\iota is injective. Since ι\iota is an injective ring homomorphism, R≅ι(R)⊆Frac⁡(R)R \cong \iota(R) \subseteq \operatorname{Frac}(R) is (isomorphic to) a subring of the field Frac⁡(R)\operatorname{Frac}(R). ■\blacksquare

∎
TheoremUniversal Property of the Field of Fractions

Let RR be an integral domain with field of fractions Frac⁡(R)\operatorname{Frac}(R) and embedding ι:R→Frac⁡(R)\iota: R \to \operatorname{Frac}(R). Let KK be any field and let φ:R→K\varphi: R \to K be an injective ring homomorphism. Then there exists a unique ring homomorphism Φ:Frac⁡(R)→K\Phi: \operatorname{Frac}(R) \to K such that

Φ∘ι=φ.\Phi \circ \iota = \varphi.

Moreover Φ\Phi is automatically injective (a field homomorphism). Consequently, Frac⁡(R)\operatorname{Frac}(R) is the smallest field containing (a copy of) RR: if KK is any field with R⊆KR \subseteq K and KK is generated as a field by RR (every element of KK is a ratio of elements of RR), then K≅Frac⁡(R)K \cong \operatorname{Frac}(R).

Proof

Technique: construct Φ\Phi explicitly on representatives, prove well-definedness, then prove uniqueness by a forced-formula argument. Existence. Define Φ:Frac⁡(R)→K\Phi: \operatorname{Frac}(R) \to K by

Φ(ab)=φ(a) φ(b)−1.\Phi\left(\frac{a}{b}\right) = \varphi(a)\,\varphi(b)^{-1}.

This makes sense: since b≠0Rb \neq 0_R and φ\varphi is injective (with φ(0R)=0K\varphi(0_R) = 0_K automatically, as ring homomorphisms send 00 to 00), we get φ(b)≠0K\varphi(b) \neq 0_K, so φ(b)−1\varphi(b)^{-1} exists in the field KK. Well-definedness. Suppose (a,b)∼(c,d)(a,b)\sim(c,d), i.e., ad=bcad=bc in RR. Applying the homomorphism φ\varphi:

φ(a)φ(d)=φ(ad)=φ(bc)=φ(b)φ(c).\varphi(a)\varphi(d) = \varphi(ad) = \varphi(bc) = \varphi(b)\varphi(c).

Since φ(b),φ(d)\varphi(b),\varphi(d) are nonzero elements of the field KK, we may multiply both sides by φ(b)−1φ(d)−1\varphi(b)^{-1}\varphi(d)^{-1}:

φ(a)φ(b)−1=φ(c)φ(d)−1.\varphi(a)\varphi(b)^{-1} = \varphi(c)\varphi(d)^{-1}.

So Φ(a/b)=Φ(c/d)\Phi(a/b) = \Phi(c/d), confirming Φ\Phi is well-defined independent of the representative. Φ\Phi is a ring homomorphism. We check additivity and multiplicativity directly.

Φ(ab+cd)=Φ(ad+bcbd)=φ(ad+bc)φ(bd)−1=(φ(a)φ(d)+φ(b)φ(c))φ(b)−1φ(d)−1,\Phi\left(\frac{a}{b}+\frac{c}{d}\right) = \Phi\left(\frac{ad+bc}{bd}\right) = \varphi(ad+bc)\varphi(bd)^{-1} = \big(\varphi(a)\varphi(d)+\varphi(b)\varphi(c)\big)\varphi(b)^{-1}\varphi(d)^{-1},

using that φ\varphi is a ring homomorphism (so it respects ++ and ⋅\cdot) and that φ(bd)−1=φ(b)−1φ(d)−1\varphi(bd)^{-1} = \varphi(b)^{-1}\varphi(d)^{-1} in the field KK (inverse of a product is the product of inverses, valid since both factors are nonzero). Distributing,

=φ(a)φ(b)−1+φ(c)φ(d)−1=Φ(a/b)+Φ(c/d).= \varphi(a)\varphi(b)^{-1} + \varphi(c)\varphi(d)^{-1} = \Phi(a/b) + \Phi(c/d).

For multiplicativity,

Φ(ab⋅cd)=Φ(acbd)=φ(ac)φ(bd)−1=φ(a)φ(c)φ(b)−1φ(d)−1=Φ(a/b)Φ(c/d),\Phi\left(\frac{a}{b}\cdot\frac{c}{d}\right) = \Phi\left(\frac{ac}{bd}\right) = \varphi(ac)\varphi(bd)^{-1} = \varphi(a)\varphi(c)\varphi(b)^{-1}\varphi(d)^{-1} = \Phi(a/b)\Phi(c/d),

using commutativity of KK to reorder factors. Finally Φ(1Frac⁡(R))=Φ(1R/1R)=φ(1R)φ(1R)−1=1K\Phi(1_{\operatorname{Frac}(R)}) = \Phi(1_R/1_R) = \varphi(1_R)\varphi(1_R)^{-1} = 1_K, since φ(1R)=1K\varphi(1_R)=1_K for a ring homomorphism between rings with identity. Φ∘ι=φ\Phi \circ \iota = \varphi. For r∈Rr \in R, Φ(ι(r))=Φ(r/1R)=φ(r)φ(1R)−1=φ(r)⋅1K−1=φ(r)\Phi(\iota(r)) = \Phi(r/1_R) = \varphi(r)\varphi(1_R)^{-1} = \varphi(r)\cdot 1_K^{-1} = \varphi(r). So the required diagram commutes. Uniqueness. Suppose Ψ:Frac⁡(R)→K\Psi: \operatorname{Frac}(R) \to K is any ring homomorphism with Ψ∘ι=φ\Psi \circ \iota = \varphi. For any a/b∈Frac⁡(R)a/b \in \operatorname{Frac}(R), note the identity in Frac⁡(R)\operatorname{Frac}(R):

ab=ι(a)⋅ι(b)−1,\frac{a}{b} = \iota(a) \cdot \iota(b)^{-1},

which holds because ι(a)⋅ι(b)−1=a1R⋅1Rb=ab\iota(a)\cdot\iota(b) ^{-1}= \dfrac{a}{1_R}\cdot\dfrac{1_R}{b} = \dfrac{a}{b} directly from the definition of multiplication and the computation of inverses in Part 2 of the previous theorem (recalling ι(b)=b/1R\iota(b) = b/1_R is invertible in the field Frac⁡(R)\operatorname{Frac}(R) with inverse 1R/b1_R/b, since b≠0Rb \ne 0_R). Applying the homomorphism Ψ\Psi and using that ring homomorphisms between fields send inverses to inverses of images (provided the image is nonzero, which holds since Ψι=φ\Psi\iota=\varphi is injective so Ψ(ι(b))=φ(b)≠0K\Psi(\iota(b)) = \varphi(b) \neq 0_K):

Ψ(ab)=Ψ(ι(a)) Ψ(ι(b))−1=φ(a)φ(b)−1=Φ(ab).\Psi\left(\frac{a}{b}\right) = \Psi(\iota(a))\,\Psi(\iota(b))^{-1} = \varphi(a)\varphi(b)^{-1} = \Phi\left(\frac{a}{b}\right).

Since a/ba/b was arbitrary, Ψ=Φ\Psi = \Phi. This proves uniqueness. Φ\Phi is injective. Any ring homomorphism Φ:F→K\Phi: F \to K from a field FF to a ring KK with 1K≠0K1_K \neq 0_K is automatically injective: its kernel is an ideal of FF, and the only ideals of a field are {0}\{0\} and FF itself (if a nonzero xx lies in the ideal, then 1=x−1x1 = x^{-1}x lies in it too, forcing the ideal to be all of FF); since Φ(1F)=1K≠0K\Phi(1_F) = 1_K \neq 0_K, the kernel cannot be all of FF, so ker⁡Φ={0}\ker\Phi = \{0\}. The final "smallest field" statement. Suppose KK is a field with R⊆KR \subseteq K (via inclusion φ\varphi, an injective homomorphism) such that every element of KK has the form rs−1rs^{-1} for r,s∈Rr,s\in R, s≠0s \neq 0. By the existence part, we get Φ:Frac⁡(R)→K\Phi: \operatorname{Frac}(R) \to K extending φ\varphi, and Φ\Phi is injective by the above. Given k∈Kk \in K, write k=φ(r)φ(s)−1k = \varphi(r)\varphi(s)^{-1} for some r,s∈Rr,s \in R, s≠0s\neq0; then k=Φ(r/s)k = \Phi(r/s), so Φ\Phi is also surjective. Hence Φ\Phi is a bijective ring homomorphism, i.e., an isomorphism Frac⁡(R)≅K\operatorname{Frac}(R) \cong K, and it restricts to the identity on RR (since Φ∘ι=φ\Phi \circ \iota = \varphi is the given inclusion). ■\blacksquare

∎

Worked examples

Example 1: The field of fractions of Z[i]\mathbb{Z}[i], the Gaussian integers. Let R=Z[i]={a+bi:a,b∈Z}⊂CR = \mathbb{Z}[i] = \{a+bi : a,b\in\mathbb{Z}\} \subset \mathbb{C}. This is an integral domain (it is a subring of the field C\mathbb{C}, and subrings of a field with 1≠01\neq0 have no zero divisors, since a zero divisor in RR would witness xy=0xy=0 with x,y≠0x,y \neq 0 in C\mathbb{C} too, impossible in a field). By the universal property, take K=CK = \mathbb{C} and φ:Z[i]↪C\varphi: \mathbb{Z}[i] \hookrightarrow \mathbb{C} the inclusion, which is injective. This extends uniquely to Φ:Frac⁡(Z[i])→C\Phi: \operatorname{Frac}(\mathbb{Z}[i]) \to \mathbb{C} via Φ(a/b)=a⋅b−1\Phi(a/b) = a \cdot b^{-1} computed in C\mathbb{C}. We claim the image of Φ\Phi is exactly Q(i):={p+qi:p,q∈Q}\mathbb{Q}(i) := \{p+qi : p,q \in \mathbb{Q}\}, and that Φ\Phi gives an isomorphism Frac⁡(Z[i])≅Q(i)\operatorname{Frac}(\mathbb{Z}[i]) \cong \mathbb{Q}(i). Image is contained in Q(i)\mathbb{Q}(i): take a representative a/ba/b with a=a1+a2i, b=b1+b2i∈Z[i]a = a_1+a_2i,\ b=b_1+b_2 i \in \mathbb{Z}[i], b≠0b \neq 0. Rationalize:

Φ(a/b)=ab=abˉbbˉ=(a1+a2i)(b1−b2i)b12+b22=a1b1+a2b2b12+b22+a2b1−a1b2b12+b22 i,\Phi(a/b) = \frac{a}{b} = \frac{a\bar b}{b\bar b} = \frac{(a_1+a_2i)(b_1-b_2i)}{b_1^2+b_2^2} = \frac{a_1b_1+a_2b_2}{b_1^2+b_2^2} + \frac{a_2b_1 - a_1b_2}{b_1^2+b_2^2}\,i,

and since b≠0b \neq 0 we have b12+b22≠0b_1^2+b_2^2 \neq 0 (a sum of two integer squares, not both zero), so this exhibits Φ(a/b)∈Q(i)\Phi(a/b) \in \mathbb{Q}(i) explicitly. Concretely, take a=1+2ia = 1+2i, b=3−ib = 3-i (so b1=3,b2=−1b_1=3, b_2=-1, b12+b22=10b_1^2+b_2^2 = 10). Then

Φ ⁣(1+2i3−i)=(1+2i)(3+i)10=3+i+6i+2i210=3+7i−210=1+7i10=110+710i.\Phi\!\left(\frac{1+2i}{3-i}\right) = \frac{(1+2i)(3+i)}{10} = \frac{3+i+6i+2i^2}{10} = \frac{3+7i-2}{10} = \frac{1+7i}{10} = \frac{1}{10}+\frac{7}{10}i.

Image contains all of Q(i)\mathbb{Q}(i): given p+qip+qi with p=m/n,q=k/np=m/n, q=k/n (common denominator n∈Z>0n \in \mathbb{Z}_{>0}, m,k∈Zm,k\in\mathbb{Z}), we have p+qi=(m+ki)/n=Φ((m+ki)/n)p+qi = (m+ki)/n = \Phi\big((m+ki)/n\big) where m+ki,n∈Z[i]m+ki, n \in \mathbb{Z}[i], n≠0n \neq 0. So Φ\Phi is onto Q(i)\mathbb{Q}(i). Since Φ\Phi is injective (by the theorem) and surjective onto Q(i)\mathbb{Q}(i), we conclude Frac⁡(Z[i])≅Q(i)\operatorname{Frac}(\mathbb{Z}[i]) \cong \mathbb{Q}(i).

Example 2: The field of fractions of R=k[x]R = k[x], giving k(x)k(x), evaluated at an explicit non-trivial fraction. Let kk be a field (say k=Qk=\mathbb{Q}) and R=k[x]R = k[x], the polynomial ring in one variable, which is an integral domain because kk is a field (the leading coefficients of a product of nonzero polynomials multiply to a nonzero element of kk, by no-zero-divisors in kk, so the product is nonzero). Its field of fractions is denoted

k(x)=Frac⁡(k[x])={f(x)g(x):f,g∈k[x], g≠0}/∼,k(x) = \operatorname{Frac}(k[x]) = \left\{ \frac{f(x)}{g(x)} : f,g \in k[x],\ g \neq 0 \right\}\Big/\sim,

the field of rational functions. Take the explicit fraction

fg=x3−2x+1x2−1∈Q(x).\frac{f}{g} = \frac{x^3 - 2x + 1}{x^2 - 1} \in \mathbb{Q}(x).

Let's verify this is not the zero element and simplify it using the equivalence relation. First factor: g=x2−1=(x−1)(x+1)g = x^2-1=(x-1)(x+1), and f=x3−2x+1f = x^3-2x+1. Testing x=1x=1: f(1)=1−2+1=0f(1) = 1-2+1=0, so (x−1)∣f(x-1) \mid f. Polynomial division gives

x3−2x+1=(x−1)(x2+x−1).x^3-2x+1 = (x-1)(x^2+x-1).

So

fg=(x−1)(x2+x−1)(x−1)(x+1).\frac{f}{g} = \frac{(x-1)(x^2+x-1)}{(x-1)(x+1)}.

We claim this equals x2+x−1x+1\dfrac{x^2+x-1}{x+1} in Frac⁡(k[x])\operatorname{Frac}(k[x]): by definition of ∼\sim, we need

(x−1)(x2+x−1)⋅(x+1)=(x−1)(x+1)⋅(x2+x−1),(x-1)(x^2+x-1)\cdot(x+1) = (x-1)(x+1)\cdot (x^2+x-1),

which holds trivially by commutativity of k[x]k[x] — this is the algebraic incarnation of "cancel the common factor (x−1)(x-1)," valid here precisely because k[x]k[x] is an integral domain, so the cross-multiplication test is a genuine equivalence, and cancellation of a nonzero common factor from numerator and denominator never changes the class. This also illustrates that elements of Frac⁡(k[x])\operatorname{Frac}(k[x]) are not literally functions on all of kk: the original expression f/gf/g is undefined at x=1,−1x=1,-1 (denominator zero), while the simplified form x2+x−1x+1\frac{x^2+x-1}{x+1} is defined at x=1x=1 (value 11), yet both represent the same element of the field k(x)k(x) — equality in Frac⁡(R)\operatorname{Frac}(R) is an algebraic identity of formal fractions, not pointwise equality of evaluated functions, and one must fix this distinction carefully when later interpreting elements of k(x)k(x) as functions on a suitable domain.

CounterexampleWhy "integral domain" cannot be weakened to "commutative ring"

Let R=Z/6ZR = \mathbb{Z}/6\mathbb{Z}, a commutative ring with 1≠01 \neq 0 but not an integral domain, since 2⋅3=6≡02 \cdot 3 = 6 \equiv 0 in RR while 2,3≠02, 3 \neq 0. Attempt the same construction: let S=R×(R∖{0})S = R \times (R\setminus\{0\}) and declare (a,b)∼(c,d)  ⟺  ad=bc(a,b)\sim(c,d) \iff ad=bc. We show transitivity fails, so ∼\sim is not even an equivalence relation, and the whole construction breaks down at the first step. Take a=1, b=2, c=0, d=3, e=1, f=2a=1,\ b=2,\ c=0,\ d=3,\ e=1,\ f=2 — concretely consider the three pairs (1,2),(0,3),(1,2)(1,2), (0,3), (1,2); let's instead find a genuine failure using distinct classes. Consider (2,2)(2,2) and (0,3)(0,3): is (2,2)∼(0,3)(2,2)\sim(0,3)? Check 2⋅3=6≡02\cdot 3 = 6 \equiv 0 and 2⋅0=02 \cdot 0 = 0, so 2⋅3=2⋅02\cdot 3 = 2\cdot 0, i.e. 6=06 = 0 in RR: yes, (2,2)∼(0,3)(2,2)\sim(0,3). Now check (0,3)∼(0,1)(0,3) \sim (0,1): need 0⋅1=3⋅00\cdot 1 = 3\cdot 0, i.e. 0=00=0: yes, so (0,3)∼(0,1)(0,3)\sim(0,1). By transitivity we would need (2,2)∼(0,1)(2,2)\sim(0,1): check 2⋅1=2⋅02\cdot 1 = 2\cdot 0? That is 2=02 = 0 in Z/6Z\mathbb{Z}/6\mathbb{Z} — false. So (2,2)∼(0,3)(2,2)\sim(0,3) and (0,3)∼(0,1)(0,3)\sim(0,1) but (2,2)≁(0,1)(2,2)\not\sim(0,1): transitivity fails. Tracing through the general proof of transitivity above, the failure occurs exactly at the step "d(af−be)=0⇒af−be=0d(af-be)=0 \Rightarrow af-be=0": here d=3d = 3, and 3⋅(af−be)=3⋅(2⋅1−2⋅0)=3⋅2=6≡03\cdot(af-be) = 3\cdot(2\cdot1 - 2\cdot0) = 3\cdot 2 = 6 \equiv 0, yet af−be=2≠0af-be = 2 \neq 0. The zero divisor 33 (paired with 22, since 3⋅2≡03\cdot 2 \equiv 0) is precisely what breaks the cancellation. Thus ∼\sim is not transitive, Frac⁡(R)\operatorname{Frac}(R) as defined is not even a well-formed set of equivalence classes, and no sensible "field of fractions" exists for Z/6Z\mathbb{Z}/6\mathbb{Z} via this construction — consistent with the fact that Z/6Z\mathbb{Z}/6\mathbb{Z} does not embed in any field at all (any ring embedding into a field must itself have no zero divisors, since fields have none, and injective homomorphisms reflect this).

Scope, edge cases & common traps

SituationWhat happens
RR is already a fieldFrac⁡(R)≅R\operatorname{Frac}(R) \cong R via ι\iota, since every nonzero b∈Rb\in R already has b−1∈Rb^{-1}\in R, so a/b=ab−1/1=ι(ab−1)a/b = ab^{-1}/1 = \iota(ab^{-1}); ι\iota is onto.
R=ZR = \mathbb{Z}Frac⁡(Z)=Q\operatorname{Frac}(\mathbb{Z}) = \mathbb{Q}, the motivating and defining example.
RR has zero divisorsConstruction fails at the equivalence-relation step (see counterexample); no field of fractions exists in general.
RR is an infinite integral domain that is not Noetherian, not a UFD, etc.Construction still works verbatim: the theorem uses only "integral domain," no finiteness or factorization hypotheses.
Confusing Frac⁡(R)\operatorname{Frac}(R)-equality with function equalityFor R=k[x]R=k[x], f/g=f′/g′f/g = f'/g' in k(x)k(x) need not mean f(a)/g(a)=f′(a)/g′(a)f(a)/g(a) = f'(a)/g'(a) pointwise wherever both sides are defined and nonsingular — though it does agree wherever both are defined, by the cross-multiplication identity being a polynomial identity.
Applying the universal property with a non-injective φ:R→K\varphi: R \to KThe theorem's hypothesis "φ\varphi injective" is essential (see warning below).

The mathematician behind it

Origins · 1 minRichard Dedekind and how this was discovered
RD
Richard Dedekind
1831-1916 · late 19th-century Germany, foundations of algebraic number theory

Dedekind did not "invent" fractions, but he was among the first to treat the passage from a domain of integers to its field of quotients as a general, rigorous algebraic construction rather than a numerical convenience. Working in Göttingen in the circle of Gauss, Dirichlet, and Riemann, he developed the modern theory of ideals in rings of algebraic integers, and the systematic construction of quotient fields — generalizing Z→Q\mathbb{Z} \to \mathbb{Q} to arbitrary rings of integers in number fields — was a key technical tool in that program, later abstracted fully in the language of commutative rings by Emmy Noether's school.

History
- 1858–1871: Dedekind develops the theory of ideals for rings of integers in algebraic number fields, implicitly using quotient-field constructions to define fractional ideals.
- 1893: Dedekind's treatment of algebraic number theory (in his supplements to Dirichlet's lectures) crystallizes ring-theoretic language later formalized abstractly.
- 1920s: Emmy Noether and her school (including Krull) formalize the abstract notion of a commutative ring and prove the field-of-fractions construction for general integral domains in the modern axiomatic style.
- 1930: B.L. van der Waerden's Moderne Algebra presents the construction of Frac⁡(R)\operatorname{Frac}(R) in the textbook form essentially used today, cementing it as standard curriculum.
- Present: the construction is the prototypical example of a "localization" of a ring, vastly generalized in commutative algebra to localizing at arbitrary multiplicative sets.
Why must RR be an integral domain, not just a commutative ring, for this construction?

The equivalence relation (a,b)∼(c,d)  ⟺  ad=bc(a,b)\sim(c,d) \iff ad=bc needs transitivity to define genuine equivalence classes, and the proof of transitivity requires cancelling a common nonzero factor: from d(af−be)=0d(af-be)=0 with d≠0d \neq 0, we need to conclude af=beaf=be. This cancellation is valid exactly when RR has no zero divisors. If RR has zero divisors, as shown for Z/6Z\mathbb{Z}/6\mathbb{Z}, transitivity can fail outright, so ∼\sim is not even an equivalence relation and Frac⁡(R)\operatorname{Frac}(R) cannot be defined by this recipe. More conceptually, any ring embedding into a field must itself have no zero divisors (since fields have none and injectivity reflects this property), so integral domains are exactly the rings capable of embedding in a field at all.

Is Frac⁡(R)\operatorname{Frac}(R) literally unique, or just unique "up to isomorphism"?

It is unique up to a unique isomorphism that is the identity on RR, which is the strongest reasonable sense of uniqueness for a universal construction. Concretely, if KK is any field containing RR as a subring such that every element of KK is a ratio of two elements of RR, the universal property theorem produces a unique field isomorphism Frac⁡(R)→K\operatorname{Frac}(R) \to K restricting to the identity on RR. So while the explicit construction (equivalence classes of pairs) is one specific model, any other model satisfying the same universal property is canonically identified with it — this is the standard "universal property pins down the object uniquely" phenomenon seen also for quotient groups, tensor products, and free groups.

Does Frac⁡(R)\operatorname{Frac}(R) depend on which representative pair (a,b)(a,b) we pick for a fraction?

No — and proving this independence (well-definedness) is the technical heart of the construction. The elements of Frac⁡(R)\operatorname{Frac}(R) are equivalence classes [ (a,b) ][\,(a,b)\,], not pairs themselves, and the theorem's proof explicitly verifies that addition and multiplication give the same answer regardless of which representative pair is used, by a direct algebraic computation using the cross-multiplication relation. This is exactly analogous to checking that 1/2+1/3=5/61/2 + 1/3 = 5/6 gives the same result whether you write 1/21/2 as 1/21/2, 2/42/4, or 50/10050/100.

Can the field of fractions be infinite even if we start with something small, like R=ZR=\mathbb{Z}?

Yes, and this is exactly the point: Z\mathbb{Z} is a countably infinite integral domain, and Frac⁡(Z)=Q\operatorname{Frac}(\mathbb{Z}) = \mathbb{Q} is also countably infinite but strictly larger in the sense of containing multiplicative inverses Z\mathbb{Z} lacks (e.g. 1/2∉Z1/2 \notin \mathbb{Z}). More strikingly, if RR is a finite integral domain, one can show RR must already be a field (a classical fact: injectivity of multiplication-by-aa for a≠0a \neq 0, on a finite set, forces surjectivity, giving an inverse), so Frac⁡(R)=R\operatorname{Frac}(R) = R in the finite case, and genuinely new elements only appear when RR is infinite.

What goes wrong if we try to build Frac⁡(R)\operatorname{Frac}(R) by inverting only some nonzero elements rather than all of them?

That is precisely the more general operation of localization: given a multiplicative subset T⊆R∖{0}T\subseteq R\setminus\{0\} closed under products and containing 11, one forms T−1RT^{-1}R using pairs (a,t)(a,t) with t∈Tt \in T, under the same cross-multiplication equivalence. This yields a ring (not always a field) sitting between RR and Frac⁡(R)\operatorname{Frac}(R); taking T=R∖{0}T = R\setminus\{0\} recovers exactly the full field of fractions. Localization at a prime ideal's complement is a central tool in commutative algebra for studying rings "near a point," generalizing this construction far beyond fields.

Why is ι:R→Frac⁡(R)\iota: R \to \operatorname{Frac}(R), r↦r/1r \mapsto r/1, automatically injective, and does this ever fail?

The proof shows ι(r)=ι(s)\iota(r)=\iota(s) forces r⋅1R=1R⋅sr\cdot 1_R = 1_R \cdot s, i.e. r=sr=s directly, with no cancellation of possible zero divisors needed — this step uses only that 1R≠0R1_R \ne 0_R and ordinary ring axioms, so it never fails once RR is an integral domain (in particular a nonzero ring). This is why RR genuinely "sits inside" Frac⁡(R)\operatorname{Frac}(R) as a subring, rather than merely mapping into it; without the integral domain hypothesis the whole target Frac⁡(R)\operatorname{Frac}(R) may not even be well-defined, as the counterexample demonstrates, so the question of injectivity of ι\iota does not even arise.

Before this

Where this leads