In
category theory
Category theory is a general theory of mathematical structures and their relations. It was introduced by Samuel Eilenberg and Saunders Mac Lane in the middle of the 20th century in their foundational work on algebraic topology. Category theory ...
, a branch of
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, a pullback (also called a fiber product, fibre product, fibered product or Cartesian square) is the
limit of a
diagram
A diagram is a symbolic Depiction, representation of information using Visualization (graphics), visualization techniques. Diagrams have been used since prehistoric times on Cave painting, walls of caves, but became more prevalent during the Age o ...
consisting of two
morphism
In mathematics, a morphism is a concept of category theory that generalizes structure-preserving maps such as homomorphism between algebraic structures, functions from a set to another set, and continuous functions between topological spaces. Al ...
s and with a common codomain. The pullback is written
:.
Usually the morphisms and are omitted from the notation, and then the pullback is written
:.
The pullback comes equipped with two natural morphisms and . The pullback of two morphisms and need not exist, but if it does, it is essentially uniquely defined by the two morphisms. In many situations, may intuitively be thought of as consisting of pairs of elements with in , in , and . For the general definition, a
universal property
In mathematics, more specifically in category theory, a universal property is a property that characterizes up to an isomorphism the result of some constructions. Thus, universal properties can be used for defining some objects independently fro ...
is used, which essentially expresses the fact that the pullback is the "most general" way to complete the two given morphisms to a
commutative square.
The
dual concept of the pullback is the ''
pushout''.
Universal property
Explicitly, a pullback of the morphisms
and
consists of an
object
Object may refer to:
General meanings
* Object (philosophy), a thing, being, or concept
** Object (abstract), an object which does not exist at any particular time or place
** Physical object, an identifiable collection of matter
* Goal, an a ...
and two morphisms
and
for which the diagram
:
commutes. Moreover, the pullback must be
universal with respect to this diagram. That is, for any other such triple where and are morphisms with , there must exist a unique such that
:
This situation is illustrated in the following commutative diagram.
:
As with all universal constructions, a pullback, if it exists, is unique up to
isomorphism
In mathematics, an isomorphism is a structure-preserving mapping or morphism between two structures of the same type that can be reversed by an inverse mapping. Two mathematical structures are isomorphic if an isomorphism exists between the ...
. In fact, given two pullbacks and of the same
cospan
In category theory, a span, roof or correspondence is a generalization of the notion of relation between two objects of a category. When the category has all pullbacks (and satisfies a small number of other conditions), spans can be considered ...
, there is a unique isomorphism between and respecting the pullback structure.
Pullback and product
The pullback is similar to the
product, but not the same. One may obtain the product by "forgetting" that the morphisms and exist, and forgetting that the object exists. One is then left with a
discrete category
In mathematics, in the field of category theory, a discrete category is a category whose only morphisms are the identity morphisms:
:hom''C''(''X'', ''X'') = {id''X''} for all objects ''X''
:hom''C''(''X'', ''Y'') = ∅ for all objects ''X'' ≠ '' ...
containing only the two objects and , and no arrows between them. This discrete category may be used as the index set to construct the ordinary binary product. Thus, the pullback can be thought of as the ordinary (Cartesian) product, but with additional structure. Instead of "forgetting" , , and , one can also "trivialize" them by specializing to be the
terminal object
In category theory, a branch of mathematics, an initial object of a category is an object in such that for every object in , there exists precisely one morphism .
The dual notion is that of a terminal object (also called terminal element): ...
(assuming it exists). and are then uniquely determined and thus carry no information, and the pullback of this cospan can be seen to be the product of and .
Examples
Commutative rings

In the
category of commutative rings (with identity), the pullback is called the fibered product. Let , , and be
commutative ring
In mathematics, a commutative ring is a Ring (mathematics), ring in which the multiplication operation is commutative. The study of commutative rings is called commutative algebra. Complementarily, noncommutative algebra is the study of ring prope ...
s (with identity) and and (identity preserving)
ring homomorphism
In mathematics, a ring homomorphism is a structure-preserving function between two rings. More explicitly, if ''R'' and ''S'' are rings, then a ring homomorphism is a function that preserves addition, multiplication and multiplicative identity ...
s. Then the pullback of this diagram exists and is given by the
subring
In mathematics, a subring of a ring is a subset of that is itself a ring when binary operations of addition and multiplication on ''R'' are restricted to the subset, and that shares the same multiplicative identity as .In general, not all s ...
of the
product ring
In mathematics, a product of rings or direct product of rings is a ring that is formed by the Cartesian product of the underlying sets of several rings (possibly an infinity), equipped with componentwise operations. It is a direct product in t ...
defined by
:
along with the morphisms
:
given by
and
for all
. We then have
:
Groups and modules
In complete analogy to the example of commutative rings above, one can show that all pullbacks exist in the
category of groups
In mathematics, the category Grp (or Gp) has the class of all groups for objects and group homomorphisms for morphisms. As such, it is a concrete category. The study of this category is known as group theory.
Relation to other categories
The ...
and in the
category of modules
In algebra, given a ring ''R'', the category of left modules over ''R'' is the category whose objects are all left modules over ''R'' and whose morphisms are all module homomorphisms between left ''R''-modules. For example, when ''R'' is the ...
over some fixed ring.
Sets
In the
category of sets
In the mathematical field of category theory, the category of sets, denoted by Set, is the category whose objects are sets. The arrows or morphisms between sets ''A'' and ''B'' are the functions from ''A'' to ''B'', and the composition of mor ...
, the pullback of functions and always exists and is given by the set
:
together with the
restrictions of the
projection map
In mathematics, a projection is an idempotent mapping of a set (or other mathematical structure) into a subset (or sub-structure). In this case, idempotent means that projecting twice is the same as projecting once. The restriction to a subspa ...
s and to .
Alternatively one may view the pullback in asymmetrically:
: