In geometry, the **cross-ratio**, also called the **double ratio** and **anharmonic ratio**, is a number associated with a list of four collinear points, particularly points on a projective line. Given four points *A*, *B*, *C* and *D* on a line, their cross ratio is defined as

where an orientation of the line determines the sign of each distance and the distance is measured as projected into Euclidean space. (If one of the four points is the line's point at infinity, then the two distances involving that point are dropped from the formula.)
The point *D* is the harmonic conjugate of *C* with respect to *A* and *B* precisely if the cross-ratio of the quadruple is −1, called the *harmonic ratio*. The cross-ratio can therefore be regarded as measuring the quadruple's deviation from this ratio; hence the name *anharmonic ratio*.

The cross-ratio is preserved by linear fractional transformations. It is essentially the only projective invariant of a quadruple of collinear points; this underlies its importance for projective geometry.

The cross-ratio had been defined in deep antiquity, possibly already by Euclid, and was considered by Pappus, who noted its key invariance property. It was extensively studied in the 19th century.^{[1]}

Variants of this concept exist for a quadruple of concurrent lines on the projective plane and a quadruple of points on the Riemann sphere. In the Cayley–Klein model of hyperbolic geometry, the distance between points is expressed in terms of a certain cross-ratio.

Pappus of Alexandria made implicit use of concepts equivalent to the cross-ratio in his *Collection: Book VII*. Early users of Pappus included Isaac Newton, Michel Chasles, and Robert Simson. In 1986 Alexander Jones made a translation of the original by Pappus, then wrote a commentary on how the lemmas of Pappus relate to modern terminology.^{[2]}

Modern use of the cross ratio in projective geometry began with Lazare Carnot in 1803 with his book *Géométrie de Position*. The term used was *le rapport anharmonique* (Fr: anharmonic ratio). German geometers call it *das Doppelverhältnis* (Ger: double ratio).

Given three points on a line, a fourth point that makes the cross ratio equal to minus one is called the projective harmonic conjugate. In 1847 Carl von Staudt called the construction of the fourth point a **throw** (**Wurf**), and used the construction to exhibit arithmetic implicit in geometry. His Algebra of Throws provides an approach to numerical propositions, usually taken as axioms, but proven in projective geometry.^{[3]}

The English term "cross-ratio" was introduced in 1878 by William Kingdon Clifford.^{[4]}

The cross-ratio of a quadruple of distinct points on the projectively extended real line with coordinates *z*_{1}, *z*_{2}, *z*_{3}, *z*_{4} is given by

It can also be written as a "double ratio" of two division ratios of triples of points:

The cross-ratio is normally extended to the case when one of *z*_{1}, *z*_{2}, *z*_{3}, *z*_{4} is infinity this is done by removing the corresponding two differences from the formula. For example:

In the notation of Euclidean geometry, if *A*, *B*, *C*, *D* are collinear points, their cross ratio is:

where each of the distances is signed according to a consistent orientation of the line.

The same formulas can be applied to four different complex numbers or, more generally, to elements of any field, and can also be extended as above to the case when one of them is the symbol ∞.

The cross ratio of the four collinear points *A*, *B*, *C*, *D* can be written as

where describes the ratio with which the point *C* divides the line segment *AB*, and describes the ratio with which the point *D* divides that same line segment. The cross ratio then appears as a ratio of ratios, describing how the two points *C*, *D* are situated with respect to the line segment *AB*. As long as the points *A*, *B*, *C* and *D* are distinct, the cross ratio (*A*, *B*; *C*, *D*) will be a non-zero real number. We can easily deduce that

- (
*A*,*B*;*C*,*D*) < 0 if and only if one of the points*C*,*D*lies between the points*A*,*B*and the other does not - (
*A*,*B*;*C*,*D*) = 1 / (*A*,*B*;*D*,*C*) - (
*A*,*B*;*C*,*D*) = (*C*,*D*;*A*,*B*) - (
*A*,*B*;*C*,*D*) ≠ (*A*,*B*;*C*,*E*) ↔*D*≠*E*

Four points can be ordered in 4! = 4 × 3 × 2 × 1 = 24 ways, but there are only six ways for partitioning them into two unordered pairs. Thus, four points can have only six different cross-ratios, which are related as:

See *Anharmonic group* below.

Further information: Projective geometry |

The cross-ratio is a **projective invariant** in the sense that it is preserved by the projective transformations of a projective line.

In particular, if four points lie on a straight line *L* in **R**^{2} then their cross-ratio is a well-defined quantity, because any choice of the origin and even of the scale on the line will yield the same value of the cross-ratio.

Furthermore, let {*L*_{i} | 1 ≤ *i* ≤ 4} be four distinct lines in the plane passing through the same point *Q*. Then any line *L* not passing through *Q* intersects these lines in four distinct points *P*_{i} (if *L* is parallel to *L*_{i} then the corresponding intersection point is "at infinity"). It turns out that the cross-ratio of these points (taken in a fixed order) does not depend on the choice of a line *L*, and hence it is an invariant of the 4-tuple of lines {*L*_{i}}.

This can be understood as follows: if *L* and *L*′ are two lines not passing through *Q* then the perspective transformation from *L* to *L*′ with the center *Q* is a projective transformation that takes the quadruple {*P*_{i}} of points on *L* into the quadruple {*P*_{i}′} of points on *L*′.

Therefore, the invariance of the cross-ratio under projective automorphisms of the line implies (in fact, is equivalent to) the independence of the cross-ratio of the four collinear points {*P*_{i}} on the lines {*L*_{i}} from the choice of the line that contains them.

If four collinear points are represented in homogeneous coordinates by vectors *a*, *b*, *c*, *d* such that *c* = *a* + *b* and *d* = *ka* + *b*, then their cross-ratio is *k*.^{[5]}

Arthur Cayley and Felix Klein found an application of the cross-ratio to non-Euclidean geometry. Given a nonsingular conic *C* in the real projective plane, its stabilizer *G _{C}* in the projective group

Explicitly, let the conic be the unit circle. For any two points *P*, *Q*, inside the unit circle . If the line connecting them intersects the circle in two points, *X* and *Y* and the points are, in order, *X*, *P*, *Q*, *Y*. Then the hyperbolic distance between *P* and *Q* in the Cayley–Klein model of the hyperbolic plane can be expressed as

(the factor one half is needed to make the curvature −1). Since the cross-ratio is invariant under projective transformations, it follows that the hyperbolic distance is invariant under the projective transformations that preserve the conic *C*.

Conversely, the group *G* acts transitively on the set of pairs of points (*p*, *q*) in the unit disk at a fixed hyperbolic distance.

Later, partly through the influence of Henri Poincaré, the cross ratio of four complex numbers on a circle was used for hyperbolic metrics. Being on a circle means the four points are the image of four real points under a Möbius transformation, and hence the cross ratio is a real number. The Poincaré half-plane model and Poincaré disk model are two models of hyperbolic geometry in the complex projective line.

These models are instances of Cayley–Klein metrics.

The cross-ratio may be defined by any of these four expressions:

These differ by the following permutations of the variables (in cycle notation):

We may consider the permutations of the four variables as an action of the symmetric group S_{4} on functions of the four variables. Since the above four permutations leave the cross ratio unaltered, they form the stabilizer *K* of the cross-ratio under this action, and this induces an effective action of the quotient group on the orbit of the cross-ratio. The four permutations in *K* make a realization of the Klein four-group in S_{4}, and the quotient is isomorphic to the symmetric group S_{3}.

Thus, the other permutations of the four variables alter the cross-ratio to give the following six values, which are the orbit of the six-element group :

As functions of *λ*, these are examples of Möbius transformations, which under composition of functions form the Mobius group PGL(2, **Z**). The six transformations form a subgroup known as the **anharmonic group**, again isomorphic to S_{3}**.** They are the torsion elements (elliptic transforms) in PGL(2, **Z**). Namely, , , and are of order 2 with respective fixed points −1, 1/2, and 2 (namely, the orbit of the harmonic cross-ratio). Meanwhile, the elements
and are of order 3 in PGL(2, **Z**), and each fixes both values of the "most symmetric" cross-ratio.

The anharmonic group is generated by *λ* ↦ 1/*λ* and *λ* ↦ 1 − *λ*. Its action on {0, 1, ∞} gives an isomorphism with S_{3}. It may also be realised as the six Möbius transformations mentioned,^{[6]} which yields a projective representation of S_{3} over any field (since it is defined with integer entries), and is always faithful/injective (since no two terms differ only by 1/−1). Over the field with two elements, the projective line only has three points, so this representation is an isomorphism, and is the exceptional isomorphism . In characteristic 3, this stabilizes the point , which corresponds to the orbit of the harmonic cross-ratio being only a single point, since . Over the field with 3 elements, the projective line has only 4 points and , and thus the representation is exactly the stabilizer of the harmonic cross-ratio, yielding an embedding equals the stabilizer of the point .

For certain values of *λ* there will be greater symmetry and therefore fewer than six possible values for the cross-ratio. These values of *λ* correspond to fixed points of the action of S_{3} on the Riemann sphere (given by the above six functions); or, equivalently, those points with a non-trivial stabilizer in this permutation group.

The first set of fixed points is {0, 1, ∞}. However, the cross-ratio can never take on these values if the points *A*, *B*, *C* and *D* are all distinct. These values are limit values as one pair of coordinates approach each other:

The second set of fixed points is {−1, 1/2, 2}. This situation is what is classically called the **harmonic cross-ratio**, and arises in projective harmonic conjugates. In the real case, there are no other exceptional orbits.

In the complex case, the most symmetric cross-ratio occurs when . These are then the only two values of the cross-ratio, and these are acted on according to the sign of the permutation.

Main article: Möbius transformation |

The cross-ratio is invariant under the projective transformations of the line. In the case of a complex projective line, or the Riemann sphere, these transformations are known as Möbius transformations. A general Möbius transformation has the form

These transformations form a group acting on the Riemann sphere, the Möbius group.

The projective invariance of the cross-ratio means that

The cross-ratio is real if and only if the four points are either collinear or concyclic, reflecting the fact that every Möbius transformation maps generalized circles to generalized circles.

The action of the Möbius group is simply transitive on the set of triples of distinct points of the Riemann sphere: given any ordered triple of distinct points, (*z*_{2}, *z*_{3}, *z*_{4}), there is a unique Möbius transformation *f*(*z*) that maps it to the triple (1, 0, ∞). This transformation can be conveniently described using the cross-ratio: since (*z*, *z*_{2}; *z*_{3}, *z*_{4}) must equal (*f*(*z*), 1; 0, ∞), which in turn equals *f*(*z*), we obtain

An alternative explanation for the invariance of the cross-ratio is based on the fact that the group of projective transformations of a line is generated by the translations, the homotheties, and the multiplicative inversion. The differences *z*_{j} − *z*_{k} are invariant under the translations

where *a* is a constant in the ground field *F*. Furthermore, the division ratios are invariant under a homothety

for a non-zero constant *b* in *F*. Therefore, the cross-ratio is invariant under the affine transformations.

In order to obtain a well-defined inversion mapping

the affine line needs to be augmented by the point at infinity, denoted ∞, forming the projective line *P*^{1}(*F*). Each affine mapping *f* : *F* → *F* can be uniquely extended to a mapping of *P*^{1}(*F*) into itself that fixes the point at infinity. The map *T* swaps 0 and ∞. The projective group is generated by *T* and the affine mappings extended to *P*^{1}(*F*). In the case *F* = **C**, the complex plane, this results in the Möbius group. Since the cross-ratio is also invariant under *T*, it is invariant under any projective mapping of *P*^{1}(*F*) into itself.

If we write the complex points as vectors and define , and let be the dot product of with , then the real part of the cross ratio is given by:

This is an invariant of the 2D special conformal transformation such as inversion .

The imaginary part must make use of the 2-dimensional cross product

The concept of cross ratio only depends on the ring operations of addition, multiplication, and inversion (though inversion of a given element is not certain in a ring). One approach to cross ratio interprets it as a homography that takes three designated points to 0, 1, and infinity. Under restrictions having to do with inverses, it is possible to generate such a mapping with ring operations in the projective line over a ring. The cross ratio of four points is the evaluation of this homography at the fourth point.

The theory takes on a differential calculus aspect as the four points are brought into proximity. This leads to the theory of the Schwarzian derivative, and more generally of projective connections.

Further information: General position |

The cross-ratio does not generalize in a simple manner to higher dimensions, due to other geometric properties of configurations of points, notably collinearity – configuration spaces are more complicated, and distinct *k*-tuples of points are not in general position.

While the projective linear group of the projective line is 3-transitive (any three distinct points can be mapped to any other three points), and indeed simply 3-transitive (there is a *unique* projective map taking any triple to another triple), with the cross ratio thus being the unique projective invariant of a set of four points, there are basic geometric invariants in higher dimension. The projective linear group of *n*-space has (*n* + 1)^{2} − 1 dimensions (because it is projectivization removing one dimension), but in other dimensions the projective linear group is only 2-transitive – because three collinear points must be mapped to three collinear points (which is not a restriction in the projective line) – and thus there is not a "generalized cross ratio" providing the unique invariant of *n*^{2} points.

Collinearity is not the only geometric property of configurations of points that must be maintained – for example, five points determine a conic, but six general points do not lie on a conic, so whether any 6-tuple of points lies on a conic is also a projective invariant. One can study orbits of points in general position – in the line "general position" is equivalent to being distinct, while in higher dimensions it requires geometric considerations, as discussed – but, as the above indicates, this is more complicated and less informative.

However, a generalization to Riemann surfaces of positive genus exists, using the Abel–Jacobi map and theta functions.