In geometry, a **torus** (plural **tori** or **toruses**) is a surface of revolution generated by revolving a circle in three-dimensional space one full revolution about an axis that is coplanar with the circle. The main types of toruses include ring toruses, horn toruses, and spindle toruses. A ring torus is sometimes colloquially referred to as a **donut** or **doughnut**.

If the axis of revolution does not touch the circle, the surface has a ring shape and is called a **torus of revolution**, also known as a **ring torus**. If the axis of revolution is tangent to the circle, the surface is a **horn torus**. If the axis of revolution passes twice through the circle, the surface is a **spindle torus** (or *self-crossing torus* or *self-intersecting torus*). If the axis of revolution passes through the center of the circle, the surface is a degenerate torus, a double-covered sphere. If the revolved curve is not a circle, the surface is called a *toroid*, as in a square toroid.

Real-world objects that approximate a torus of revolution include swim rings, inner tubes and ringette rings.

A torus should not be confused with a *solid torus*, which is formed by rotating a disk, rather than a circle, around an axis. A solid torus is a torus plus the volume inside the torus. Real-world objects that approximate a *solid torus* include O-rings, non-inflatable lifebuoys, ring doughnuts, and bagels.

In topology, a ring torus is homeomorphic to the Cartesian product of two circles: , and the latter is taken to be the definition in that context. It is a compact 2-manifold of genus 1. The ring torus is one way to embed this space into Euclidean space, but another way to do this is the Cartesian product of the embedding of in the plane with itself. This produces a geometric object called the Clifford torus, a surface in 4-space.

In the field of topology, a torus is any topological space that is homeomorphic to a torus.^{[1]} The surface of a coffee cup and a doughnut are both topological tori with genus one.

An example of a torus can be constructed by taking a rectangular strip of flexible material such as rubber, and joining the top edge to the bottom edge, and the left edge to the right edge, without any half-twists (compare Möbius strip).

Bottom-halves and

vertical cross-sections

vertical cross-sections

A torus can be defined parametrically by:^{[2]}

where

- θ, φ are angles which make a full circle, so their values start and end at the same point,
- R is the distance from the center of the tube to the center of the torus,
- r is the radius of the tube.

Angle θ represents rotation around the tube, whereas φ represents rotation around the torus' axis of revolution. R is known as the "major radius" and r is known as the "minor radius".^{[3]} The ratio R divided by r is known as the "aspect ratio". The typical doughnut confectionery has an aspect ratio of about 3 to 2.

An implicit equation in Cartesian coordinates for a torus radially symmetric about the z-axis is

or the solution of *f*(*x*, *y*, *z*) = 0, where

Algebraically eliminating the square root gives a quartic equation,

The three classes of standard tori correspond to the three possible aspect ratios between R and r:

- When
*R*>*r*, the surface will be the familiar ring torus or anchor ring. *R*=*r*corresponds to the horn torus, which in effect is a torus with no "hole".*R*<*r*describes the self-intersecting spindle torus; its inner shell is a*lemon*and its outer shell is an*apple*- When
*R*= 0, the torus degenerates to the sphere.

When *R* ≥ *r*, the interior

of this torus is diffeomorphic (and, hence, homeomorphic) to a product of a Euclidean open disk and a circle. The volume of this solid torus and the surface area of its torus are easily computed using Pappus's centroid theorem, giving:

These formulas are the same as for a cylinder of length 2π*R* and radius r, obtained from cutting the tube along the plane of a small circle, and unrolling it by straightening out (rectifying) the line running around the center of the tube. The losses in surface area and volume on the inner side of the tube exactly cancel out the gains on the outer side.

Expressing the surface area and the volume by the distance p of an outermost point on the surface of the torus to the center, and the distance q of an innermost point to the center (so that *R* = *p* + *q*/2 and *r* = *p* − *q*/2), yields

As a torus is the product of two circles, a modified version of the spherical coordinate system is sometimes used. In traditional spherical coordinates there are three measures, R, the distance from the center of the coordinate system, and θ and φ, angles measured from the center point.

As a torus has, effectively, two center points, the centerpoints of the angles are moved; φ measures the same angle as it does in the spherical system, but is known as the "toroidal" direction. The center point of θ is moved to the center of r, and is known as the "poloidal" direction. These terms were first used in a discussion of the Earth's magnetic field, where "poloidal" was used to denote "the direction toward the poles".^{[5]}

In modern use, toroidal and poloidal are more commonly used to discuss magnetic confinement fusion devices.

This section includes a list of references, related reading, or external links, but its sources remain unclear because it lacks inline citations. Please help to improve this section by introducing more precise citations. (November 2015) (Learn how and when to remove this template message)

Topologically, a torus is a closed surface defined as the product of two circles: *S*^{1} × *S*^{1}. This can be viewed as lying in **C**^{2} and is a subset of the 3-sphere *S*^{3} of radius √2. This topological torus is also often called the Clifford torus. In fact, *S*^{3} is filled out by a family of nested tori in this manner (with two degenerate circles), a fact which is important in the study of *S*^{3} as a fiber bundle over *S*^{2} (the Hopf bundle).

The surface described above, given the relative topology from , is homeomorphic to a topological torus as long as it does not intersect its own axis. A particular homeomorphism is given by stereographically projecting the topological torus into from the north pole of *S*^{3}.

The torus can also be described as a quotient of the Cartesian plane under the identifications

or, equivalently, as the quotient of the unit square by pasting the opposite edges together, described as a fundamental polygon *ABA*^{−1}*B*^{−1}.

The fundamental group of the torus is just the direct product of the fundamental group of the circle with itself:

Intuitively speaking, this means that a closed path that circles the torus' "hole" (say, a circle that traces out a particular latitude) and then circles the torus' "body" (say, a circle that traces out a particular longitude) can be deformed to a path that circles the body and then the hole. So, strictly 'latitudinal' and strictly 'longitudinal' paths commute. An equivalent statement may be imagined as two shoelaces passing through each other, then unwinding, then rewinding.

If a torus is punctured and turned inside out then another torus results, with lines of latitude and longitude interchanged. This is equivalent to building a torus from a cylinder, by joining the circular ends together, in two ways: around the outside like joining two ends of a garden hose, or through the inside like rolling a sock (with the toe cut off). Additionally, if the cylinder was made by gluing two opposite sides of a rectangle together, choosing the other two sides instead will cause the same reversal of orientation.

The first homology group of the torus is isomorphic to the fundamental group (this follows from Hurewicz theorem since the fundamental group is abelian).

The 2-torus double-covers the 2-sphere, with four ramification points. Every conformal structure on the 2-torus can be represented as a two-sheeted cover of the 2-sphere. The points on the torus corresponding to the ramification points are the Weierstrass points. In fact, the conformal type of the torus is determined by the cross-ratio of the four points.

The torus has a generalization to higher dimensions, the *n-dimensional torus*, often called the * n-torus* or

The standard 1-torus is just the circle: . The torus discussed above is the standard 2-torus, . And similar to the 2-torus, the *n*-torus, can be described as a quotient of under integral shifts in any coordinate. That is, the *n*-torus is modulo the action of the integer lattice (with the action being taken as vector addition). Equivalently, the *n*-torus is obtained from the *n*-dimensional hypercube by gluing the opposite faces together.

An *n*-torus in this sense is an example of an *n-*dimensional compact manifold. It is also an example of a compact abelian Lie group. This follows from the fact that the unit circle is a compact abelian Lie group (when identified with the unit complex numbers with multiplication). Group multiplication on the torus is then defined by coordinate-wise multiplication.

Toroidal groups play an important part in the theory of compact Lie groups. This is due in part to the fact that in any compact Lie group *G* one can always find a maximal torus; that is, a closed subgroup which is a torus of the largest possible dimension. Such maximal tori *T* have a controlling role to play in theory of connected *G*. Toroidal groups are examples of protori, which (like tori) are compact connected abelian groups, which are not required to be manifolds.

Automorphisms of *T* are easily constructed from automorphisms of the lattice , which are classified by invertible integral matrices of size *n* with an integral inverse; these are just the integral matrices with determinant ±1. Making them act on in the usual way, one has the typical *toral automorphism* on the quotient.

The fundamental group of an *n*-torus is a free abelian group of rank *n*. The *k*-th homology group of an *n*-torus is a free abelian group of rank *n* choose *k*. It follows that the Euler characteristic of the *n*-torus is 0 for all *n*. The cohomology ring *H*^{•}(, **Z**) can be identified with the exterior algebra over the **Z**-module whose generators are the duals of the *n* nontrivial cycles.

As the *n*-torus is the *n*-fold product of the circle, the *n*-torus is the configuration space of *n* ordered, not necessarily distinct points on the circle. Symbolically, . The configuration space of *unordered*, not necessarily distinct points is accordingly the orbifold , which is the quotient of the torus by the symmetric group on *n* letters (by permuting the coordinates).

For *n* = 2, the quotient is the Möbius strip, the edge corresponding to the orbifold points where the two coordinates coincide. For *n* = 3 this quotient may be described as a solid torus with cross-section an equilateral triangle, with a twist; equivalently, as a triangular prism whose top and bottom faces are connected with a 1/3 twist (120°): the 3-dimensional interior corresponds to the points on the 3-torus where all 3 coordinates are distinct, the 2-dimensional face corresponds to points with 2 coordinates equal and the 3rd different, while the 1-dimensional edge corresponds to points with all 3 coordinates identical.

These orbifolds have found significant applications to music theory in the work of Dmitri Tymoczko and collaborators (Felipe Posada, Michael Kolinas, et al.), being used to model musical triads.^{[7]}^{[8]}

A flat torus is a torus with the metric inherited from its representation as the quotient, /**L**, where **L** is a discrete subgroup of isomorphic to . This gives the quotient the structure of a Riemannian manifold. Perhaps the simplest example of this is when **L** = : , which can also be described as the Cartesian plane under the identifications (*x*, *y*) ~ (*x* + 1, *y*) ~ (*x*, *y* + 1). This particular flat torus (and any uniformly scaled version of it) is known as the "square" flat torus.

This metric of the square flat torus can also be realised by specific embeddings of the familiar 2-torus into Euclidean 4-space or higher dimensions. Its surface has zero Gaussian curvature everywhere. Its surface is flat in the same sense that the surface of a cylinder is flat. In 3 dimensions, one can bend a flat sheet of paper into a cylinder without stretching the paper, but this cylinder cannot be bent into a torus without stretching the paper (unless some regularity and differentiability conditions are given up, see below).

A simple 4-dimensional Euclidean embedding of a rectangular flat torus (more general than the square one) is as follows:

where *R* and *P* are positive constants determining the aspect ratio. It is diffeomorphic to a regular torus but not isometric. It can not be analytically embedded (smooth of class *C ^{k}*, 2 ≤

If *R* and *P* in the above flat torus parametrization form a unit vector (*R*, *P*) = (cos(*η*), sin(*η*)) then *u*, *v*, and 0 < *η* < π/2 parameterize the unit 3-sphere as Hopf coordinates. In particular, for certain very specific choices of a square flat torus in the 3-sphere *S*^{3}, where *η* = π/4 above, the torus will partition the 3-sphere into two congruent solid tori subsets with the aforesaid flat torus surface as their common boundary. One example is the torus **T** defined by

Other tori in *S*^{3} having this partitioning property include the square tori of the form *Q*⋅**T**, where *Q* is a rotation of 4-dimensional space , or in other words *Q* is a member of the Lie group SO(4).

It is known that there exists no *C*^{2} (twice continuously differentiable) embedding of a flat torus into 3-space. (The idea of the proof is to take a large sphere containing such a flat torus in its interior, and shrink the radius of the sphere until it just touches the torus for the first time. Such a point of contact must be a tangency. But that would imply that part of the torus, since it has zero curvature everywhere, must lie strictly outside the sphere, which is a contradiction.) On the other hand, according to the Nash-Kuiper theorem, which was proven in the 1950s, an isometric *C*^{1} embedding exists. This is solely an existence proof and does not provide explicit equations for such an embedding.

In April 2012, an explicit *C*^{1} (continuously differentiable) embedding of a flat torus into 3-dimensional Euclidean space was found.^{[9]}^{[10]}^{[11]}^{[12]} It is a flat torus in the sense that as metric spaces, it is isometric to a flat square torus. It is similar in structure to a fractal as it is constructed by repeatedly corrugating an ordinary torus. Like fractals, it has no defined Gaussian curvature. However, unlike fractals, it does have defined surface normals, yielding a so-called "smooth fractal". The key to obtain the smoothness of this corrugated torus is to have the amplitudes of successive corrugations decreasing faster than their "wavelengths".^{[13]} (These infinitely recursive corrugations are used only for embedding into three dimensions; they are not an intrinsic feature of the flat torus.) This is the first time that any such embedding was defined by explicit equations or depicted by computer graphics.

Main article: Genus g surface |

In the theory of surfaces there is another object, the "genus" *g* surface. Instead of the product of *n* circles, a genus *g* surface is the connected sum of *g* two-tori. To form a connected sum of two surfaces, remove from each the interior of a disk and "glue" the surfaces together along the boundary circles. To form the connected sum of more than two surfaces, sum two of them at a time until they are all connected. In this sense, a genus *g* surface resembles the surface of *g* doughnuts stuck together side by side, or a 2-sphere with *g* handles attached.

As examples, a genus zero surface (without boundary) is the two-sphere while a genus one surface (without boundary) is the ordinary torus. The surfaces of higher genus are sometimes called *n*-holed tori (or, rarely, *n*-fold tori). The terms double torus and triple torus are also occasionally used.

The classification theorem for surfaces states that every compact connected surface is topologically equivalent to either the sphere or the connect sum of some number of tori, disks, and real projective planes.

genus two |
genus three |

Further information: Toroidal polyhedron |

Polyhedra with the topological type of a torus are called toroidal polyhedra, and have Euler characteristic *V* − *E* + *F* = 0. For any number of holes, the formula generalizes to *V* − *E* + *F* = 2 − 2*N*, where *N* is the number of holes.

The term "toroidal polyhedron" is also used for higher-genus polyhedra and for immersions of toroidal polyhedra.

This section needs expansion. You can help by adding to it. (April 2010)

The homeomorphism group (or the subgroup of diffeomorphisms) of the torus is studied in geometric topology. Its mapping class group (the connected components of the homeomorphism group) is surjective onto the group of invertible integer matrices, which can be realized as linear maps on the universal covering space that preserve the standard lattice (this corresponds to integer coefficients) and thus descend to the quotient.

At the level of homotopy and homology, the mapping class group can be identified as the action on the first homology (or equivalently, first cohomology, or on the fundamental group, as these are all naturally isomorphic; also the first cohomology group generates the cohomology algebra:

Since the torus is an Eilenberg–MacLane space *K*(*G*, 1), its homotopy equivalences, up to homotopy, can be identified with automorphisms of the fundamental group); all homotopy equivalences of the torus can be realized by homeomorphisms – every homotopy equivalence is homotopic to a homeomorphism.

Thus the short exact sequence of the mapping class group splits (an identification of the torus as the quotient of gives a splitting, via the linear maps, as above):

The mapping class group of higher genus surfaces is much more complicated, and an area of active research.

The torus's chromatic number is seven, meaning every graph that can be embedded on the torus has a chromatic number of at most seven. (Since the complete graph can be embedded on the torus, and , the upper bound is tight.) Equivalently, in a torus divided into regions, it is always possible to color the regions using no more than seven colors so that no neighboring regions are the same color. (Contrast with the four color theorem for the plane.)

Main article: de Bruijn torus |

In combinatorial mathematics, a *de Bruijn torus* is an array of symbols from an alphabet (often just 0 and 1) that contains every *m*-by-*n* matrix exactly once. It is a torus because the edges are considered wraparound for the purpose of finding matrices. Its name comes from the De Bruijn sequence, which can be considered a special case where *n* is 1 (one dimension).

A solid torus of revolution can be cut by *n* (> 0) planes into maximally

parts.^{[14]}

The first 11 numbers of parts, for 0 ≤ *n* ≤ 10 (including the case of *n* = 0, not covered by the above formulas), are as follows:

- 1, 2, 6, 13, 24, 40, 62, 91, 128, 174, 230, ... (sequence A003600 in the OEIS).