Understanding Infinity
Infinity: Size, Structure, and Mathematical Consequences
What infinity means
Infinity describes something that does not end or cannot be completed by counting through all of its elements. By contrast, a finite collection has a fixed number of elements, even if that number is very large.
A jar of Skittles or glitter contains a finite quantity. The exact number may be difficult to determine, but in principle the pieces could be counted one by one. An infinite collection is different: there is no final element reached by continuing the count.
Infinity is not something that can be physically gathered into a finite space. Infinitely many jars, each occupying space, could not fit in a room or in the observable universe. Mathematical infinity is therefore generally an abstract idea used to describe unending processes and infinite sets, rather than a quantity that can be physically displayed in full.
Mathematicians use the idea in several distinct ways:
In analysis, infinity can describe a quantity that grows without bound or a limit that approaches an arbitrarily large value.
In set theory, infinity describes sets with endlessly many elements and allows their sizes to be compared.
In some mathematical systems, infinity is treated as a number-like object, but its arithmetic does not behave exactly like ordinary finite-number arithmetic.
These uses are related, but they should not be confused. For example, the idea of a function tending to infinity in calculus is not automatically the same as comparing the cardinalities of two infinite sets.
Infinity as a size: cardinality
The cardinality of a set is its size: the number of elements it contains. Cardinality applies to both finite and infinite sets.
The natural numbers form the basic example of an infinite set:
The list continues without end, so the natural numbers have infinite cardinality. A key question in set theory is whether two infinite sets have the same cardinality or whether one is larger than the other.
For finite sets, size can be compared by counting. For infinite sets, counting cannot reach the end. Instead, mathematicians compare sets using one-to-one correspondences.
Functions and one-to-one correspondences
A function maps elements of a domain to elements of a codomain. A function is bijective if it satisfies both conditions:
Every element of the codomain is matched with an element of the domain.
No two different elements of the domain are matched with the same element of the codomain.
A bijection therefore pairs the elements of two sets perfectly, with none left over on either side. If two sets can be put into bijection, they have the same cardinality—even if they are infinite.
This gives a precise way to compare infinite sets without trying to finish counting them.
Countably infinite sets
An infinite set is countably infinite if its elements can be arranged in a list indexed by the natural numbers. Such a list may continue forever, but every element must appear at some finite position.
The natural numbers are countably infinite by definition. More surprisingly, the integers and rational numbers are also countably infinite.
The integers and the natural numbers
The integers include zero, positive numbers, and negative numbers:
At first, the integers might seem more numerous than the natural numbers because they include all the negative numbers as well. But they can be listed in an order that includes every integer:
For example, the natural numbers can be paired with this list as follows:
1 is paired with 0.
2 is paired with 1.
3 is paired with −1.
4 is paired with 2.
5 is paired with −2.
Every integer appears in the list, and each appears exactly once. Thus, the integers and natural numbers have the same cardinality, despite their different appearances.
This illustrates an important feature of infinite sets: adding infinitely many elements to an infinite set does not necessarily make it larger.
Hilbert’s Hotel and the arithmetic of infinity
Hilbert’s Hotel is a thought experiment that demonstrates how an infinite set can accommodate additions while remaining the same size.
Imagine a hotel with one room for every positive integer: room 1, room 2, room 3, and so on. Every room is occupied.
Accommodating one new guest
A new guest arrives, but the hotel appears full. Each current guest can be moved from room n to room n+1:
The guest in room 1 moves to room $2.
The guest in room 2 moves to room $3.
In general, the guest in room n moves to room n+1.
Room 1 becomes available for the new guest. Every existing guest moves only a finite number of rooms, even though the hotel has infinitely many rooms.
In cardinal arithmetic, this is expressed as:
Here, ℵ0 denotes the cardinality of a countably infinite set.
Accommodating two infinite hotels
Suppose a second hotel, also with countably infinitely many occupied rooms, needs to move its guests into the first hotel. The existing guests can move from room n to room 2n, occupying all the even-numbered rooms.
The incoming guests can then occupy the odd-numbered rooms. For example, incoming guest n can be placed in room 2n−1.
The combined guests from two countably infinite hotels can therefore fit into one countably infinite hotel:
This does not mean that infinity behaves like an ordinary finite number. It means that two sets of countably infinite size can be placed in bijection with one countably infinite set. The hotel is a way of visualizing this set-theoretic fact, not a claim that a physical hotel could contain infinitely many rooms.
The rational numbers are countable
The rational numbers are numbers that can be written as a ratio of integers, with a nonzero denominator:
There appear to be many more rational numbers than integers. Between any two distinct rational numbers, there are infinitely many more rational numbers. Nevertheless, the rational numbers are countably infinite.
One way to see this is to represent a rational number as a pair of integers, such as the pair (p,q) for qp. Integer pairs can be arranged in a systematic pattern, for example by moving outward from the origin through the integer lattice Z×Z. This pattern can be traversed in a sequence so that every pair eventually appears.
The fractions produced by those pairs can then be listed, skipping pairs that would repeat an already-listed rational number. For example, 21 and 42 represent the same rational number, so only one needs to appear in the final list.
Since every rational number can be reached in this enumeration, the rational numbers are countable. They are also at least as numerous as the natural numbers because the natural numbers are included among the rational numbers. The two sets therefore have the same cardinality.
Thus, the natural numbers, integers, and rational numbers all have the same infinite cardinality, even though the rational numbers seem much more densely packed.
The real numbers are uncountable
The real numbers include every point on the number line: the integers, rational numbers, and irrational numbers such as 2 and π. Unlike the natural numbers, the real numbers cannot be arranged in a complete list indexed by the natural numbers.
Georg Cantor’s diagonal argument proves this by showing that any proposed list of real numbers must leave at least one real number out.
Imagine that all real numbers between 0 and 1 have been listed, each written as a decimal expansion. The first digit of the first number, the second digit of the second number, the third digit of the third number, and so on form a diagonal through the list.
A new decimal can be constructed by changing each diagonal digit. For instance, each new digit could be chosen to be 1 or 2 and specifically chosen to differ from the corresponding diagonal digit. The resulting number differs from:
the first listed number in its first decimal digit,
the second listed number in its second decimal digit,
the third listed number in its third decimal digit,
and so on.
Therefore, the constructed real number cannot be anywhere on the original list. Since this construction works for any proposed list, no complete countable list of the real numbers exists.
The cardinality of the real numbers is called the cardinality of the continuum, commonly written as c. It is strictly larger than the cardinality of the natural numbers:
This establishes that there is more than one size of infinity: the natural numbers, integers, and rationals are countably infinite, while the real numbers are uncountable.
Cantor’s theorem: sets have larger power sets
For any set A, its power set P(A) is the set of all subsets of A,includingtheemptysetandA$ itself.
Cantor’s diagonal argument has a general form: for any set A, its power set has strictly greater cardinality than A:
This means there is no largest set-sized infinity. Starting with any set and taking its power set produces a strictly larger set. Repeating the process creates a sequence of ever-larger cardinalities.
This result also explains why there cannot be a set containing every set. If a set of all sets existed, its power set would have to be larger than it, even though the power set would itself consist of sets. The idea of a universal set leads to foundational difficulties in ordinary set theory.
Infinity and computation
The difference between countable and uncountable sets has an important consequence for computer science.
A Turing machine is a mathematical model of a computer program. There are only countably many finite programs: programs can be encoded as finite strings from a finite or countable alphabet, and such strings can be listed.
A real number is computable if a program can approximate it to any desired precision in finite time. The program need not produce an exact infinite decimal expansion all at once; it must be able to produce approximations that become as accurate as requested.
There are only countably many programs, so there can be only countably many computable real numbers. But there are uncountably many real numbers. Therefore, most real numbers are uncomputable: no program can calculate them to arbitrary precision.
This is a cardinality argument. It does not identify every uncomputable number individually; it proves that the computable numbers form only a countable portion of the uncountable set of real numbers.
Infinity in calculus and other areas of mathematics
Infinity appears throughout mathematics, but not always as a cardinality.
In calculus, limits describe how a function behaves as an input approaches a value or grows without bound. Derivatives are defined using limits, and limits provide a precise way to describe processes involving quantities that become arbitrarily small or large. In these settings, infinity often describes unbounded growth or an ongoing limiting process rather than a completed collection.
Infinite sets also appear in algebra, analysis, and other fields. Mathematicians study infinite families of numbers, sequences, functions, and structures. Infinity is therefore unusual as a physical object but central to mathematical reasoning.
Points at infinity in projective geometry
In ordinary Euclidean geometry, parallel lines do not intersect. Projective geometry extends the plane by adding points at infinity so that parallel lines can be treated as meeting.
In a projective plane, lines with the same direction meet at a shared point at infinity corresponding to that direction. Different directions correspond to different points at infinity. Adding these points gives the geometry a more uniform structure: lines that are parallel in the ordinary plane can be treated similarly to lines that intersect in the finite part of the plane.
A point at infinity is not an ordinary location at an enormously large distance. It is a mathematical addition to the space that encodes a direction and simplifies geometric relationships.
The axiom of choice
The axiom of choice concerns choosing elements from collections of nonempty sets. Given any family of nonempty sets, it asserts that a choice function can select one element from each set, even when the family is infinite and no explicit selection rule is given.
In standard set theory, the axiom of choice is equivalent to several other important principles:
The well-ordering principle states that every set can be given a well-order: an ordering in which every nonempty subset has a least element.
Zorn’s lemma is a principle about partially ordered sets. In a common formulation, if every chain has an upper bound, then the partially ordered set has a maximal element.
These principles can seem different in form, but within the usual foundations of set theory they are equivalent: if one is assumed, the others can be proved.
The usual ordering of the real numbers is not a well-order. For example, the interval (0,1) has no smallest element. The well-ordering principle says that the real numbers can be arranged in some other order that is a well-order; it does not say that their familiar numerical order has this property.
Transfinite induction
If a set is well-ordered, arguments can be proved by transfinite induction, which extends ordinary mathematical induction beyond the natural numbers to well-ordered sets and ordinals.
Ordinals describe the order types of well-ordered sets. Assuming the axiom of choice, the real numbers can be well-ordered, though such an ordering is generally not given by an explicit construction. Transfinite induction then provides a method of reasoning along that order, just as ordinary induction reasons along the natural numbers.
Counterintuitive consequences of the axiom of choice
The axiom of choice enables many powerful mathematical results, but it also implies some results that conflict with geometric intuition.
Decompositions into congruent circles
A cited consequence is that three-dimensional Euclidean space can be partitioned into disjoint congruent circles, such as circles of radius one. The mathematical partition is not an ordinary construction that can be carried out by placing circles one by one in physical space. It depends on highly nonconstructive set-theoretic reasoning and should be understood as an existence result.
The Banach–Tarski paradox
The Banach–Tarski paradox states that a solid ball in three-dimensional space can be divided into a finite number of pieces and rearranged, using rigid motions, into two solid balls each congruent to the original.
This does not provide a physical method for duplicating a ball. The pieces involved are highly irregular and nonmeasurable: they do not have ordinary volumes that can be added in the usual way. The result therefore does not contradict the familiar conservation of volume for ordinary physical objects. It shows how the axiom of choice can produce sets whose behavior differs dramatically from that of measurable physical regions.
Universes and large cardinals
Because there is no set of all sets in ordinary set theory, category theory and other areas sometimes use a restricted collection of sets as a workable mathematical “universe.” This allows mathematicians to discuss a large collection of sets without treating it as a set containing absolutely everything.
A Grothendieck universe is a collection of sets closed under certain standard set-forming operations. It acts like a self-contained setting for many constructions. A related approach assumes the existence of an inaccessible cardinal, a very large cardinal with strong closure properties, and considers sets whose sizes are below it.
If one universe is bounded by an inaccessible cardinal κ, it can be treated as sitting inside a still larger universe bounded by a larger inaccessible cardinal. This provides a way to handle categories of sets at one size level while working within an even larger framework.
The existence of inaccessible cardinals is an additional set-theoretic assumption; it is not generally established from the standard axioms of set theory alone. These assumptions help manage “large collection” problems in a rigorous way.
The continuum hypothesis
The continuum hypothesis asks whether there is an infinite cardinal strictly between the cardinality of the natural numbers and the cardinality of the real numbers.
Equivalently, it asks whether every infinite subset of the real line is either countable or has the full cardinality of the continuum. If there is no intermediate cardinal, then:
where ℵ1 is the smallest uncountable cardinal.
The continuum hypothesis is independent of the standard axioms of set theory, assuming those axioms are consistent. In particular, it can neither be proved nor refuted from the usual Zermelo–Fraenkel axioms together with the axiom of choice, abbreviated ZFC. Additional assumptions can settle it in either direction.
This means that a proof about the continuum hypothesis must make its assumptions explicit. Mathematical conclusions depend on the foundational axioms from which they are derived.
Mathematical foundations and the status of infinity
Questions about infinity lead to philosophical questions about mathematics. Some mathematicians view mathematical objects as discovered; others emphasize that mathematical systems are constructed from definitions, axioms, and rules of reasoning.
A mathematical proof establishes a conclusion relative to its hypotheses. If the foundational axioms change, some statements that were previously provable may change status. This does not make proofs arbitrary: within a chosen system, the reasoning must still be precise and valid. It does mean that foundational choices shape the mathematical landscape.
Different people may also interpret mathematical existence differently. One view treats infinite objects as legitimate abstract entities. Another is more skeptical of completed infinities and accepts only processes or objects that can be explicitly constructed. Hilbert’s Hotel captures this difference: its argument is mathematically precise once a countably infinite set is accepted, but the idea of a completed infinite hotel may not feel physically realizable.
Why infinity matters
Infinity is not merely a very large number. It involves distinct questions about unending processes, the sizes of sets, the structure of space, the reach of computation, and the assumptions underlying mathematical proof.
Some infinite sets have the same cardinality even when one appears much larger than another. Other infinite sets, such as the real numbers compared with the natural numbers, provably have different cardinalities. Cantor’s theorem shows that this hierarchy of set sizes has no final largest member.
These ideas also have practical and conceptual consequences: they explain limits on computation, support geometric and algebraic constructions, and reveal how set-theoretic assumptions can produce unexpected results. Infinite mathematics extends reasoning beyond what can be physically counted or directly experienced.

Ask anything
We've read this whole study set, so questions about it get the best answers.