Advanced maths

Hyperbolic triangle calculator from angles or side lengths

Hyperbolic triangles live in a space of constant negative curvature and have angle sum below 180 degrees.

Your numbers

Exactly three values; sides correspond to opposite angles.
Curvature K=−1/R²; positive length.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Hyperbolic triangles live in a space of constant negative curvature and have angle sum below 180 degrees. This calculator solves either three supplied angles or three supplied side lengths using the hyperbolic cosine laws, with an explicit curvature radius. It returns corresponding sides, angles, angular defect and area.

THE FORMULAcosh(a/R)=(cos A+cos B cos C)/(sin B sin C); area=R²(π−A−B−C).

A worked example

Three angles of 45 degrees have total 135 degrees and defect pi/4 radians. At radius one, area is pi/4 and each side is acosh(1+sqrt(2)), approximately 1.52857. Doubling the curvature radius doubles all side lengths and multiplies the area by four while preserving the angles.

Good to know

AAA or SSS only, positive radius ≤1,000,000, strict triangle inequalities for side input, side/radius ≤20 and resolved defect above 10^−10 radians. Numerical near-Euclidean or extremely thin triangles may be rejected. No mixed-data solving, coordinates in a disk model or spherical geometry.

Curvature sets the length scale

The radius parameter represents curvature K=−1/R². Hyperbolic cosine laws use dimensionless side lengths a/R, b/R and c/R. Angles alone therefore determine a triangle only after the curvature scale is declared. The page keeps that radius visible rather than silently assuming curvature minus one for every use case.

Area equals radius squared times the angle defect in radians. Degrees must be converted before applying that formula. A 45-degree defect is pi/4, not the number forty-five; using degree values directly would overstate area by a factor of 180/pi. The result separately reports both degree angles and radian defect.

An equiangular hyperbolic triangle has positive angle defectA = B = C = 45°Defect = π/4R = 1; area = π/4Curvature K = −1
Three 45-degree angles sum to 135 degrees. Defect is pi/4, so area is pi/4 at curvature −1. In this conceptual disk sketch, the geodesic sides bow toward the center; it is not a numerical embedding of the selected lengths.

The Spherical triangle area from three angles calculator covers a related task. This page focuses on hyperbolic triangle calculator from angles or side lengths with the method limits and worked example described below.

Triangle existence depends on the chosen input mode

Positive angles must sum to strictly less than pi for a nondegenerate hyperbolic triangle. Three right angles are therefore impossible here even though related spherical configurations exist. Side input instead requires positive lengths satisfying the strict ordinary triangle inequalities before applying the hyperbolic side cosine law.

Near a degenerate triangle, inverse cosine and hyperbolic cosine expressions can lose significant digits through cancellation. The implementation rejects unresolved defect and restricts side-to-radius ratios. This avoids displaying a precise-looking negative area or a zero defect caused by roundoff as if it were a valid finite hyperbolic triangle.

The Euclidean limit is numerical as well as geometric

When a triangle is small relative to the curvature radius, its angles approach the Euclidean angle sum and its defect becomes tiny. The geometric limit is meaningful, but subtracting three nearly Euclidean angles from pi can be poorly conditioned. A rejection near that limit indicates limited numerical resolution rather than a new impossibility theorem.

The spherical triangle calculator uses positive curvature and angular excess. Hyperbolic geometry uses negative curvature and angular defect, so substituting the spherical formulas with a sign change is not sufficient. The static disk sketch is a conceptual model of curved geodesics; it does not encode the selected triangle’s exact Euclidean drawing coordinates.

A few questions, answered

Do angles alone determine side lengths?

They determine dimensionless lengths; the curvature radius fixes the physical scale.

Why reject an almost Euclidean triangle?

Its angle defect can be too small to resolve reliably with the supported floating-point formulas.

Find your calculator

Start typing to explore the library.