---
title: Universal Properties, Initial and Terminal Objects
module: Universal Properties and Basic Constructions
moduleNumber: 2
lessonNumber: 1
order: 201
summary: >
  A universal property characterizes an object by a for-all/exists-unique
  condition on the arrows into or out of it, and any two objects satisfying
  the same property are isomorphic by a unique isomorphism. Initial and
  terminal objects are the simplest cases; the free vector space, the
  discrete topology, and the ring of integers show the pattern at work.
topics: [Universal Properties and Basic Constructions]
sources:
  - book: Leinster
    ref: "Introduction — universal properties, Examples 0.1–0.9, Lemmas 0.3 and 0.7"
  - book: Simmons
    ref: "Ch. 2 — Basic gadgetry; §2.4 Initial and final objects"
  - book: Barr & Wells
    ref: "Ch. 2 §2.7 — Properties of objects and arrows in a category"
draft: false
---

A category records objects and the arrows between them, and
[nothing else](/category-theory/foundations/what-is-a-category). Whatever we
want to say about an object must therefore be said in terms of arrows. A
**universal property** is the standard way of doing this: it characterizes an
object by how every other object of the category relates to it.
The description always has the same logical shape — _for all_ objects of some
kind, _there exists a unique_ arrow satisfying an equation — and that shape
has a central consequence: any two objects satisfying
the same universal property are isomorphic, by a unique structure-compatible
isomorphism.[^lein-intro]

## The shape of a universal property

The phrase "there exists a unique $x$ such that $P(x)$" abbreviates two
claims, proved separately:

- **Existence.** There is at least one $x$ with $P(x)$.
- **Uniqueness.** There is at most one: any two elements satisfying $P$ are
  equal.

A universal property quantifies this over the whole category. It says of a
distinguished object $U$ (often equipped with a distinguished arrow): _for
every_ object $X$ (perhaps equipped with an arrow of matching type), _there
exists a unique_ arrow relating $X$ to $U$ and making a stated diagram
commute. The property is called universal because it describes $U$ by its
relationship to the entire universe it inhabits, not by its internal
contents.[^lein-univ]

Because only arrows appear in the statement, a universal property never
determines what the elements of $U$ "really are". It determines $U$ up to
isomorphism, and no finer — the resolution at which category
theory works. Two constructions of the same universal object may look
entirely different inside; the property guarantees they are interchangeable.

## Terminal and initial objects

The smallest possible universal property mentions no auxiliary data at all.

> **Definition (Terminal object).** An object $T$ of a category $\mathscr{C}$
> is **terminal** (or **final**) if for every object $A$ of $\mathscr{C}$
> there is exactly one arrow $A \to T$.

> **Definition (Initial object).** An object $I$ of $\mathscr{C}$ is
> **initial** if for every object $A$ of $\mathscr{C}$ there is exactly one
> arrow $I \to A$.

The two definitions are mirror images: an initial object of $\mathscr{C}$ is
a terminal object of the [opposite
category](/category-theory/universal-properties/constructions-on-categories)
$\mathscr{C}^{\mathrm{op}}$, and vice versa.[^simmons-24] The uniqueness clause
does the work: many objects receive an arrow from everything, but a terminal
object receives exactly one arrow from each.

$$
% caption: The terminal object $T$: from every object of the category there is
% exactly one arrow into $T$ (dashed = forced, no choice available). The initial
% object is the mirror image, with all arrows leaving $I$.
\begin{tikzpicture}[>=stealth, font=\footnotesize,
  ob/.style={draw, minimum width=10mm, minimum height=8mm, font=\footnotesize}]
  \definecolor{acc}{HTML}{4A6FA5}
  \node[ob] (A) at (0,2.4) {$A$};
  \node[ob] (B) at (0,0.8) {$B$};
  \node[ob] (C) at (0,-0.8) {$C$};
  \node[ob, draw=acc, text=acc, thick] (T) at (4.2,0.8) {$T$};
  \draw[->, acc, dashed] (A.east) -- (T.north west);
  \draw[->, acc, dashed] (B.east) -- (T.west);
  \draw[->, acc, dashed] (C.east) -- (T.south west);
  \node[anchor=north, font=\scriptsize] at (2.1,-1.7) {terminal: one arrow in from each object};
  \begin{scope}[xshift=7.6cm]
    \node[ob, draw=acc, text=acc, thick] (I) at (0,0.8) {$I$};
    \node[ob] (X) at (4.2,2.4) {$X$};
    \node[ob] (Y) at (4.2,0.8) {$Y$};
    \node[ob] (Z) at (4.2,-0.8) {$Z$};
    \draw[->, acc, dashed] (I.north east) -- (X.west);
    \draw[->, acc, dashed] (I.east) -- (Y.west);
    \draw[->, acc, dashed] (I.south east) -- (Z.west);
    \node[anchor=north, font=\scriptsize] at (2.1,-1.7) {initial: one arrow out to each object};
  \end{scope}
\end{tikzpicture}
$$

### Examples across the standard categories

- **$\mathbf{Set}$.** A one-element set $1 = \{\ast\}$ is terminal: the only
  function $A \to 1$ sends everything to $\ast$. The empty set is initial:
  there is exactly one function $\varnothing \to A$, the empty function, which
  has no elements to place.[^simmons-ex]
- **$\mathbf{Grp}$ and $\mathbf{Ab}$.** The trivial group $0$ is both initial
  and terminal: a homomorphism out of $0$ must send the identity to the
  identity, and a homomorphism into $0$ has nowhere else to go.
- **$\mathbf{Ring}$** (unital rings, unit-preserving homomorphisms). The
  terminal object is the zero ring. The initial object is $\mathbb{Z}$ — the
  worked example below. Initial and terminal objects exist but differ.
- **$\mathbf{Vect}_k$.** The zero space is both initial and terminal.
- **A poset as a category.** An initial object is a least element (bottom),
  a terminal object is a greatest element (top). A poset such as
  $(\mathbb{Z}, \le)$ has neither, so categories may lack initial or terminal
  objects entirely.
- **$\mathbf{Top}$.** The empty space is initial and the one-point space is
  terminal, by the same reasoning as in $\mathbf{Set}$.

An object that is both initial and terminal, as in $\mathbf{Grp}$,
$\mathbf{Ab}$, and $\mathbf{Vect}_k$, is called a **zero object**. If a
category has an initial object $I$, a terminal object $T$, and any arrow
$T \to I$, then $I \cong T$ and the category has a zero object.[^simmons-zero]

> **Worked example (Endpoints of a divisibility lattice).** Order the divisors
> of $12$, the set $\{1, 2, 3, 4, 6, 12\}$, by divisibility: $m \le n$ means
> $m \mid n$. As a category this poset has one arrow $m \to n$ exactly when
> $m \mid n$. The number $1$ divides every divisor, so there is exactly one
> arrow $1 \to n$ for each $n$: the object $1$ is initial. Every divisor
> divides $12$, so there is exactly one arrow $n \to 12$: the object $12$ is
> terminal. They are not isomorphic — an arrow $12 \to 1$ would require
> $12 \mid 1$ — so this poset has distinct initial and terminal objects and no
> zero object. Drop $12$ from the set and no terminal object remains: $4$ and
> $6$ have no common multiple among the remaining divisors, so no single
> object receives an arrow from both.

### The integers as an initial ring

The proof that $\mathbb{Z}$ is initial in $\mathbf{Ring}$ is a template for
every universal-property argument.[^lein-z]

**Existence.** Let $R$ be a ring. Define $\phi : \mathbb{Z} \to R$ by

$$
\phi(n) =
\begin{cases}
\underbrace{1 + \cdots + 1}_{n} & n > 0, \\[2pt]
0 & n = 0, \\[2pt]
-\phi(-n) & n < 0.
\end{cases}
$$

Routine checks confirm that $\phi$ preserves addition, multiplication, and
the multiplicative identity.

**Uniqueness.** Let $\psi : \mathbb{Z} \to R$ be any homomorphism. Since
$\psi$ preserves the multiplicative identity, $\psi(1) = 1$. Since $\psi$
preserves addition, for $n > 0$,

$$
\psi(n) = \psi(\underbrace{1 + \cdots + 1}_{n})
        = \underbrace{\psi(1) + \cdots + \psi(1)}_{n}
        = \underbrace{1 + \cdots + 1}_{n}
        = \phi(n),
$$

and preservation of zero and negatives handles $n \le 0$. So $\psi = \phi$:
once $\phi(1) = 1$ is fixed, the ring axioms determine every value.

> **Worked example (The unique map $\mathbb{Z} \to \mathbb{Z}/6\mathbb{Z}$).**
> Take $R = \mathbb{Z}/6\mathbb{Z}$. Initiality names a single ring
> homomorphism $\phi : \mathbb{Z} \to \mathbb{Z}/6\mathbb{Z}$, and the argument
> above computes it: $\phi(1) = 1$ forces $\phi(n) = n \bmod 6$. For instance
> $\phi(20) = 2$ (since $20 = 3\cdot 6 + 2$) and $\phi(-4) = 2$ (since
> $-4 + 6 = 2$). No other homomorphism competes: any $\psi$ preserving the
> unit has $\psi(1) = 1$, and additivity then forces $\psi = \phi$ on every
> integer. The map happens to be surjective here, but surjectivity is not part
> of initiality — for $R = \mathbb{Z}$ the same $\phi$ is the identity, and for
> a field of characteristic $0$ it is the inclusion of the prime subring.

## Uniqueness up to unique isomorphism

A universal property identifies its object up to unique isomorphism. The
statement and proof for initial objects recur, with more structure attached,
for products, limits, adjoints, and representing objects. Adjoint functors,
representable functors, and limits are three idioms for the same notion of
universal property.[^lein-three]

> **Theorem (Essential uniqueness).** Any two initial objects of a category
> are isomorphic, by a unique isomorphism. Dually, any two terminal objects
> are isomorphic by a unique isomorphism.

> **Proof.** Let $I$ and $J$ be initial objects. Since $I$ is initial, there is
> a unique arrow $f : I \to J$. Since $J$ is initial, there is a unique arrow
> $g : J \to I$. Consider the composite $g \circ f : I \to I$. It is an arrow
> from the initial object $I$ to $I$; but $\mathrm{id}_I$ is also such an
> arrow, and initiality says there is exactly _one_ arrow $I \to I$. Hence
> $g \circ f = \mathrm{id}_I$. The same argument at $J$ gives
> $f \circ g = \mathrm{id}_J$. So $f$ is an
> [isomorphism](/category-theory/foundations/special-morphisms), and it was
> unique from the start. $\blacksquare$

$$
% caption: The round-trip argument: initiality of $I$ forces the composite
% $g$ after $f$ to equal the identity on $I$, because both are arrows from an
% initial object into $I$ and there can be only one.
\begin{tikzpicture}[>=stealth, font=\footnotesize,
  ob/.style={draw, minimum width=10mm, minimum height=8mm, font=\footnotesize}]
  \definecolor{acc}{HTML}{4A6FA5}
  \node[ob, draw=acc, text=acc, thick] (I1) at (0,0) {$I$};
  \node[ob] (J) at (3.2,1.6) {$J$};
  \node[ob, draw=acc, text=acc, thick] (I2) at (6.4,0) {$I$};
  \draw[->, acc] (I1) -- (J) node[midway, above left, font=\scriptsize] {$f$};
  \draw[->, acc] (J) -- (I2) node[midway, above right, font=\scriptsize] {$g$};
  \draw[->, black] (I1) -- (I2) node[midway, below, font=\scriptsize] {$id_I$};
  \node[font=\scriptsize, anchor=north] at (3.2,-0.75)
    {both paths are arrows $I$ to $I$: initiality makes them equal};
\end{tikzpicture}
$$

The proof used nothing about sets, rings, or spaces — only the condition
"exactly one arrow". Leinster's Lemma 0.3, the same argument stated for rings,
accordingly "has very little to do with rings"; it belongs at the level of the
category.[^lein-lemma]

The practical consequence: once an object is characterized by a universal
property, the construction that produced it can be discarded. Different
textbooks build the same universal object in incompatible ways; the property
certifies that all of them agree up to unique isomorphism, so we may speak of
_the_ terminal object, _the_ product, _the_ free group.

## Elements as arrows

Terminal objects convert membership into composition. In $\mathbf{Set}$, a
function $1 \to A$ from the one-element set is a choice of a single element
of $A$: the functions $1 \to A$ correspond exactly to the elements of $A$.
Composition tracks this correspondence: if $x : 1 \to A$ names the element
$x \in A$ and $f : A \to B$ is any function, the composite
$f \circ x : 1 \to B$ names the element $f(x) \in B$.[^simmons-global]

> **Definition (Global element).** In a category with terminal object $1$, a
> **global element** (or **constant**) of an object $A$ is an arrow
> $1 \to A$.

Away from $\mathbf{Set}$ the notion behaves differently.

- **$\mathbf{Mon}$.** A monoid homomorphism $1 \to M$ must send the identity
  to the identity, so every monoid has exactly one global element regardless
  of its size. The global elements of a monoid carry none of its interior
  structure.
- **Presheaves over a poset.** A global element $1 \to A$ of a presheaf $A$
  is a compatible thread of choices, one from each component set — a choice
  function respecting the restriction maps.
- **$\mathbf{Top}$.** Global elements of a space are its points, which is
  the origin of the term "point" for arrows out of $1$ in general
  categories.

The [Yoneda lemma](/category-theory/representables-yoneda/yoneda-lemma) makes
this precise: an object is determined by the arrows into it, and probing by
arrows replaces probing by elements.

## Universal properties with data

Most universal properties carry an auxiliary arrow alongside the object. The
pattern: a distinguished object $U$ _and_ a distinguished arrow into or out
of it, such that every comparable pair factors through the distinguished one
uniquely.

### The free vector space

Let $V$ be a vector space over $k$ with basis $(v_s)_{s \in S}$, and define
$i : S \to V$ by $i(s) = v_s$. Linear algebra's fundamental convenience —
"a linear map may be defined freely on a basis" — is a universal property of
the pair $(V, i)$: for every vector space $W$ and every function
$f : S \to W$, there is a unique _linear_ map $\bar{f} : V \to W$ with
$\bar{f} \circ i = f$.[^lein-free]

$$
% caption: The universal property of the vector space $V$ with basis indexed
% by $S$: any function $f$ from $S$ into any vector space $W$ extends along
% $i$ to one and only one linear map $h$ with $h$ after $i$ equal to $f$.
\begin{tikzpicture}[>=stealth, font=\footnotesize,
  ob/.style={draw, minimum width=11mm, minimum height=9mm, font=\footnotesize}]
  \definecolor{acc}{HTML}{4A6FA5}
  \node[ob] (S) at (0,2.3) {$S$};
  \node[ob, draw=acc, text=acc, thick] (V) at (4.4,2.3) {$V$};
  \node[ob] (W) at (4.4,-0.4) {$W$};
  \draw[->, black] (S) -- (V) node[midway, above, font=\scriptsize] {$i$ (basis)};
  \draw[->, black] (S) -- (W) node[midway, below left, font=\scriptsize] {any function $f$};
  \draw[->, acc, thick, dashed] (V) -- (W) node[midway, right, font=\scriptsize, text=black] {unique linear $h$};
\end{tikzpicture}
$$

Existence is the familiar "extend by linearity": define
$\bar{f}\big(\sum_s \lambda_s v_s\big) = \sum_s \lambda_s f(s)$. Uniqueness
holds because any linear map agreeing with $f$ on the basis is determined on
all of $V$ — every vector is a finite linear combination of basis vectors,
and linearity forces the value on each combination.

Restated as a bijection: composition with $i$ gives a one-to-one
correspondence

$$
\{\text{linear maps } V \to W\}
\;\xrightarrow{\;\cong\;}\;
\{\text{functions } S \to W\},
\qquad
\bar{f} \;\longmapsto\; \bar{f} \circ i .
$$

This bijection is the defining data of an
[adjunction](/category-theory/adjunctions/adjunctions): the free functor
$\mathbf{Set} \to \mathbf{Vect}_k$ is left adjoint to the underlying-set
functor, and the correspondence above is the adjunction's hom-set bijection at
$(S, W)$.

### The discrete topology

Give a set $S$ the discrete topology (all subsets open) to obtain a space
$D(S)$, and let $i : S \to D(S)$ be the identity on points. Then for every
space $X$ and every function $f : S \to X$, there is a unique continuous map
$\bar{f} : D(S) \to X$ with $\bar{f} \circ i = f$ — namely $f$ itself, which
is automatically continuous out of a discrete space.[^lein-disc]

The property looks vacuous but is not: replace "discrete" by "indiscrete"
(only $\varnothing$ and $S$ open) and it fails, because a function _into_ an
arbitrary space need not be continuous from the indiscrete topology. What the
property records is precisely "every map out of a discrete space is
continuous", and that statement determines the discrete topology up to
isomorphism among all topologies on all sets over $S$. The indiscrete space
$I(S)$ satisfies the dual property — every function _into_ it from a space is
continuous — and the pair $D \dashv U \dashv I$ becomes a chain of
[adjunctions](/category-theory/adjunctions/free-forgetful-adjunctions)
flanking the forgetful functor.

### The tensor product

For vector spaces $U$ and $V$, a **bilinear** map $f : U \times V \to W$ is
linear in each variable separately. There exists a vector space $T$ and a
bilinear map $b : U \times V \to T$ that is _universal_: every bilinear
$f : U \times V \to W$ factors as $f = \bar{f} \circ b$ for a unique linear
$\bar{f} : T \to W$. The pair $(T, b)$ is the tensor product,
$T = U \otimes V$.[^lein-tensor]

Even before constructing $(T, b)$, the uniqueness argument goes through
verbatim. Suppose $b : U \times V \to T$ and $b_1 : U \times V \to T_1$ are
both universal. Universality of $b$ applied to the bilinear map $b_1$ yields
a linear $j : T \to T_1$ with $j \circ b = b_1$; universality of $b_1$
applied to $b$ yields $j_1 : T_1 \to T$ with $j_1 \circ b_1 = b$. Then
$j_1 \circ j : T \to T$ is linear and satisfies
$(j_1 \circ j) \circ b = b$, as does $\mathrm{id}_T$; the uniqueness clause
of $b$'s universality forces $j_1 \circ j = \mathrm{id}_T$, and symmetrically
$j \circ j_1 = \mathrm{id}_{T_1}$. So $T \cong T_1$ by a unique isomorphism
compatible with the universal maps — the round-trip proof again, now for
bilinear maps.

Algebra texts construct $U \otimes V$ in several inequivalent-looking ways
(quotients of free spaces, spaces of formal sums, dual constructions), and the
universal property makes the differences irrelevant. Knowing the property, one
can forget the construction.

### The quotient of a set

An equivalence relation $\sim$ on a set $A$ has a **quotient** $Q = A/{\sim}$,
the set of equivalence classes, with a surjection $q : A \to Q$ sending each
element to its class. The pair $(Q, q)$ is universal among the maps out of $A$
that identify $\sim$-related elements: for every set $B$ and every function
$f : A \to B$ with $f(a) = f(a')$ whenever $a \sim a'$, there is a unique
function $\bar{f} : Q \to B$ with $\bar{f} \circ q = f$. So functions
$Q \to B$ correspond one-to-one with functions $A \to B$ constant on classes,
the fact behind the isomorphism theorems of algebra.[^lein-quot]

$$
% caption: The universal property of the quotient $q : A \to Q$ by an
% equivalence relation: any $f$ constant on classes factors through $q$ by a
% unique map $h$ with $h$ after $q$ equal to $f$.
\begin{tikzpicture}[>=stealth, font=\footnotesize,
  ob/.style={draw, minimum width=10mm, minimum height=8mm, font=\footnotesize}]
  \definecolor{acc}{HTML}{4A6FA5}
  \node[ob] (A) at (0,2.2) {$A$};
  \node[ob, draw=acc, text=acc, thick] (Q) at (4.4,2.2) {$Q$};
  \node[ob] (B) at (4.4,-0.4) {$B$};
  \draw[->, black] (A) -- (Q) node[midway, above, font=\scriptsize] {$q$ (classes)};
  \draw[->, black] (A) -- (B) node[midway, below left, font=\scriptsize] {any $f$ constant on classes};
  \draw[->, acc, thick, dashed] (Q) -- (B) node[midway, right, font=\scriptsize, text=black] {unique $h$};
\end{tikzpicture}
$$

> **Worked example (Factoring the parity map).** Let $A = \mathbb{Z}$ and let
> $a \sim a'$ mean $a - a'$ is even. The quotient has two classes, the evens
> $[0]$ and the odds $[1]$, and $q(n)$ is the class of $n$. The parity function
> $f : \mathbb{Z} \to \{0, 1\}$, $f(n) = n \bmod 2$, sends $\sim$-related
> integers to the same value, so it factors as $f = \bar{f} \circ q$ with
> $\bar{f}[0] = 0$ and $\bar{f}[1] = 1$ — the bijection matching the two
> classes to $\{0, 1\}$. A function that is _not_ constant on classes has no
> factorization: $g(n) = n \bmod 4$ sends $0$ and $2$ to $0$ and $2$ though
> they share a class, so no map on classes can reproduce it.

## Catalogue of initial and terminal objects

| Category | Initial object | Terminal object | Zero object |
| --- | --- | --- | --- |
| $\mathbf{Set}$ | $\varnothing$ | any singleton $1$ | none |
| $\mathbf{Top}$ | empty space | one-point space | none |
| $\mathbf{Grp}$, $\mathbf{Ab}$, $\mathbf{Vect}_k$ | trivial object $0$ | trivial object $0$ | yes |
| $\mathbf{Ring}$ (unital) | $\mathbb{Z}$ | zero ring | no |
| poset $(P, \le)$ | least element (if any) | greatest element (if any) | only if $P$ is a point |
| $\mathbf{Cat}$ | empty category | one-object, one-arrow category $\mathbb{1}$ | none |

Two features of the catalogue deserve emphasis.

- **Existence is a property of the category, not a given.** Posets without
  endpoints, and the category of fields (which has neither initial nor
  terminal object), show that the definitions can simply fail to be
  instantiated.
- **An initial object can carry structure.** In $\mathbf{Ring}$ the initial
  object is a genuinely informative ring, $\mathbb{Z}$; initial objects are
  "free on nothing", and how much structure "nothing" generates depends on the
  axioms of the category.

[^lein-intro]: **Leinster**, _Basic Category Theory_, Introduction — universal properties presented jargon-free through Examples 0.1–0.9 before any categorical machinery.
[^lein-univ]: **Leinster**, Introduction, Example 0.1 — the one-element set, and the reading of "universal" as describing an object's relationship to the entire universe in which it lives.
[^simmons-24]: **Simmons**, _An Introduction to Category Theory_, §2.4 — initial and final objects defined; the duality across the opposite category is §2.8.
[^simmons-ex]: **Simmons**, §2.4, Example 2.4.2 — the singleton as final and the empty set as initial in $\mathbf{Set}$; the trivial group as zero object of $\mathbf{AGrp}$.
[^simmons-zero]: **Simmons**, §2.4, Exercises 2.4.2 and 2.4.4 — zero objects; $\mathbf{Grp}$ has one, $\mathbf{Rng}$ has distinct initial and final objects.
[^lein-z]: **Leinster**, Introduction, Example 0.2 and Lemma 0.3 — $\mathbb{Z}$ as the initial ring, with the full existence and uniqueness proof.
[^lein-lemma]: **Leinster**, Introduction, Lemma 0.3 — "this proof has very little to do with rings. It really belongs at a higher level of generality."
[^simmons-global]: **Simmons**, §2.4, Exercises 2.4.5–2.4.6 — global elements $1 \to A$ as elements in $\mathbf{Set}$ and as threads through a presheaf; **Barr & Wells**, _Category Theory for Computing Science_, §2.7.19 — constants of type $A$.
[^lein-free]: **Leinster**, Introduction, Example 0.4 — the universal property of a vector space with a chosen basis.
[^lein-disc]: **Leinster**, Introduction, Example 0.5 and Exercise 0.10 — the discrete space's universal property, and the indiscrete dual.
[^lein-tensor]: **Leinster**, Introduction, Example 0.6 and Lemma 0.7 — the tensor product characterized by universal bilinearity, with the uniqueness proof.
[^lein-quot]: **Leinster**, _Basic Category Theory_, §3.1 — the quotient $A/{\sim}$ of a set by an equivalence relation and its universal property (condition 3.1), "at the heart of the famous isomorphism theorems of algebra."
[^lein-three]: **Leinster**, Introduction, closing remarks — adjoints, representables, and limits as three approaches to universal properties, the organizing plan of the book.
