Euler Distance Calculator

Find the gap between a triangle's circumcenter and incenter from its three side lengths.

Math and PercentUpdated 2026-11-183 min read
Euler Distance Calculator
Distance between circumcenter and incenter
...
Circumradius...
Inradius...
R divided by r...
R minus 2r...
Squared distance (R(R - 2r))...

What it does

The circumcenter and the incenter are two of the most useful points in a triangle. One is the centre of the circle through the vertices, the other the centre of the circle tangent to the sides. Since they are both fixed once the triangle is fixed, it is natural to ask how far apart they are. Euler's theorem in geometry answers that question with a short formula involving just the two radii.

The statement is d squared equals R times R minus 2r, where d is the distance between the centres. Euler published it in 1765, and the same result appeared earlier in work by William Chapple. The theorem is more than a computational shortcut. Since a squared distance cannot be negative, the right hand side must be nonnegative, which gives the Euler inequality R is at least 2r. Equality occurs only when the triangle is equilateral, so the distance doubles as a measure of how far a triangle is from being regular.

To use the formula with side lengths, the tool first computes the area by Heron's formula. It then finds R as the product of the sides divided by four times the area, and r as the area divided by the semiperimeter. Substituting those two values into Euler's relation gives the distance directly, with no need to construct the two centres on paper.

The numbers are unitless in the sense that they inherit whatever length unit you choose for the sides. If the sides are in centimetres, R, r and the distance are all in centimetres, and the squared distance is in square centimetres. The ratio R over r has no units at all, which makes it a convenient shape indicator you can compare across triangles of different sizes.

There is one practical caution. A triangle that is almost equilateral gives a margin R minus 2r very close to zero, and small rounding errors can then dominate the computed distance. The tool clamps tiny negative margins to zero, which matches the exact geometry of the equilateral case.

How to use

  1. Enter side a, opposite vertex A.
  2. Enter side b, opposite vertex B.
  3. Enter side c, opposite vertex C.
  4. Read the distance in the top result, followed by the circumradius and inradius used to find it.
  5. Check the squared distance against R times the margin R minus 2r.
  6. Compare R divided by r with 2. A value near 2 means the triangle is close to equilateral.

Formula

d = sqrt(R(R - 2r)), where R = abc/(4K), r = K/s, s = (a + b + c)/2 and K = sqrt(s(s-a)(s-b)(s-c)).
a, b, c
Side lengths of the triangle, in any length unit.
s, K
Semiperimeter and area.
R
Circumradius, the radius of the circle through the vertices.
r
Inradius, the radius of the circle tangent to the sides.
d
Distance between the circumcenter O and the incenter I.
R - 2r
The margin, always nonnegative for a real triangle.

The same relation is often written as R squared minus d squared equals 2Rr, which is the form used in proofs based on the power of a point. A margin of zero means an equilateral triangle and a distance of zero. For a right triangle with legs p and q and hypotenuse h, the circumradius is h/2 and the inradius is (p + q - h)/2, which gives a quick cross check without Heron's formula.

Worked example

Example: the 6, 8, 10 right triangle

Defaults: a = 6, b = 8 and c = 10, a scaled 3, 4, 5 triangle.

  1. Semiperimeter s = (6 + 8 + 10)/2 = 12.
  2. Area K = sqrt(12 x 6 x 4 x 2) = sqrt(576) = 24.
  3. Circumradius R = (6 x 8 x 10)/(4 x 24) = 480/96 = 5.
  4. Inradius r = K/s = 24/12 = 2.
  5. Margin R - 2r = 5 - 4 = 1, so the squared distance is R x 1 = 5.
  6. Distance d = sqrt(5) = 2.2360679, shown as 2.2361, and the ratio R/r is 2.5.
  7. Coordinate check: with A = (0, 0) and B = (10, 0), vertex C is (6.4, 4.8), O is (5, 0) and I is (6, 2). The gap sqrt(1 + 4) equals sqrt(5), matching the tool.

Reference table

Radii and centre distance for three triangles
Sides (a, b, c)Circumradius RInradius rDistance OI
6, 8, 10522.2361
13, 14, 158.12541.0078
3, 3, 31.73210.8660

Limits

  • Applies to ordinary Euclidean triangles with positive area, not to spherical or hyperbolic geometry.
  • Uses side lengths alone, so it cannot describe where the two centres lie in an arbitrary drawing.
  • Near equilateral shapes, the tiny margin R minus 2r makes the result sensitive to rounding.
  • Ignores any measurement error in the entered sides, which is amplified when the triangle is nearly degenerate.

Common mistakes

  • Using R squared minus 2r instead of R times R minus 2r under the square root.
  • Forgetting that the inradius is K/s, not K divided by the full perimeter.
  • Expecting a positive distance for an equilateral triangle, where the two centres coincide.
  • Mixing the ratio R/r with the margin R minus 2r; they answer different questions.
  • Entering three lengths that fail the triangle inequality and reading a distance anyway.

Try it yourself

Quick checks. Answers sit tucked under each question.

A triangle has sides 13, 14 and 15. What is the distance between its circumcenter and incenter?

The area is 84, so R = 2730/336 = 8.125 and r = 84/21 = 4. The margin is 0.125, the squared distance is 1.0156 and d = sqrt(1.015625) = 1.0078.

An equilateral triangle has side 6. What distance does Euler's theorem predict?

Here R = 3.4641 and r = 1.7321, so R minus 2r is zero to rounding precision. The distance is 0 because both centres are the same point.

For a right triangle with legs 5 and 12, find the centre distance.

The hypotenuse is 13, so R = 6.5 and r = (5 + 12 - 13)/2 = 2. Then R - 2r = 2.5, the squared distance is 16.25 and d = 4.0311.

Questions

What does Euler's triangle theorem say?

If R and r are the circumradius and inradius, the distance d between the circumcenter and incenter satisfies d squared = R(R - 2r).

Why must R be at least 2r?

Because d squared cannot be negative, the product R(R - 2r) cannot be negative either. With R positive, that forces R minus 2r to be zero or positive.

When is the distance zero?

Only for an equilateral triangle. In that case R equals 2r and the circumcenter and incenter coincide.

Do I need the angles?

No. Heron's formula gives the area from the sides, and R and r both follow from the area and the side lengths.

Is this the same Euler who gave the Euler line?

Yes, Leonhard Euler published this result in 1765 and also established the collinearity of the circumcenter, centroid and orthocenter.

What is the squared distance output for?

It shows the product R(R - 2r) before the square root. Comparing it with the printed margin makes it easy to check the arithmetic by hand.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.