Enter four distinct finite signed coordinates a, b, c and d, using the same origin, direction and scale. Negative coordinates and decimals are allowed. Inputs use the registered unit 1; the result is dimensionless. Keep the point labels in the intended order rather than sorting the coordinates.

These one-dimensional coordinates already describe positions on one line, so no collinearity checker or image input is needed. Points at infinity are excluded.

\[\operatorname{CR}(a,b;c,d)=\frac{(a-c)(b-d)}{(a-d)(b-c)}\]

Point ordering can change the cross ratio. When comparing two configurations, preserve the correspondence of a, b, c and d and use the same formula convention.

The cross ratio is preserved under a nonsingular projective transformation of the line. This makes it useful for projective-geometry exercises and checking perspective invariants when all four original and transformed coordinates are finite. Background: The cross ratio — Stanford.

This tool evaluates a four-point invariant. It does not apply coordinate transformations, calculate a midpoint or perform ordinary ratio scaling.

Examples using the stated signed convention
abcdCross ratio
01234/3 ≈ 1.33333333
10233/4 = 0.75
-3-1134/3 ≈ 1.33333333
0213-1

All four coordinates must be distinct. Check this before interpreting the result: this arithmetic calculator does not enforce every pairwise inequality. Repeated coordinates can produce a numerical value even though they fall outside the stated four-distinct-points input requirement.

If a = d or b = c, the denominator is zero and the result is unavailable, not zero or infinity. Numeric-range failures also produce unavailable results and propagate through dependent calculations. Very large coordinates or very small differences can exceed numerical limits or lose precision. The displayed decimal is rounded to eight places; numerical agreement alone is not a proof of a projective relationship.

Reference

  1. Stanley Birchfield, The cross ratio — Stanford.