CCalclabhub

Math · 93 calculations

Geometry

How To Calculate The Inradius Of A Triangle

The inradius of a triangle is the radius of the circle that fits inside it and touches all three sides. It links the area and the perimeter through the single relation area = inradius x semi-perimeter. Combine that with Heron's formula and the radius can be found from the three side lengths alone. This page works through the method, checks it on familiar right triangles and shows exactly how the radius responds when the sides are scaled.

Last updated

Quick Answer

r = area / s, with s = (a + b + c) / 2 and area = sqrt(s(s - a)(s - b)(s - c))

r
Inradius, the radius of the circle touching all three sides
s
Semi-perimeter, half the sum of the three side lengths
area
Area of the triangle, obtained from Heron's formula
a, b, c
The three side lengths of the triangle

The incircle touches every side, so splitting the triangle into three smaller ones gives area = r x s, where s is half the perimeter. Heron's formula supplies the area from the three sides, and dividing by s isolates the inradius. A 3-4-5 right triangle has s = 6 and area 6, so r = 1; doubling every side doubles r to 2.

What Is The Inradius Of A Triangle?

The incircle of a triangle is the largest circle that fits entirely inside it, tangent to all three sides at once. Its centre, the incenter, is the point where the three internal angle bisectors meet, and it is equidistant from every side. That common distance is the inradius, usually written r. Because the circle just touches each side, the inradius is also the perpendicular distance from the incenter to any side. For a 3-4-5 right triangle the incircle sits snugly against all three edges and has radius 1.

Joining the incenter to the three vertices splits the original triangle into three smaller triangles. Each has the inradius as its height, because a radius drawn to a point of tangency is perpendicular to the side it meets. Adding the three areas gives a half-times-base-times-height sum in which the height r is common to every term. The three bases are the side lengths, so the total is r(a + b + c)/2. Since the semi-perimeter s is half the perimeter, this collapses to the compact identity area = r x s.

That identity still needs the area, and Heron's formula supplies it from the three sides alone. Compute the semi-perimeter s = (a + b + c)/2, then form the product s(s - a)(s - b)(s - c) and take its square root. For the 3-4-5 triangle s is 6, the product is 6 x 3 x 2 x 1 = 36, and the area is 6. Dividing by s gives r = 6/6 = 1. No angles or altitudes are required, which is why the method works for scalene triangles where no height is easy to measure.

Two more right triangles make useful anchors. For sides 5, 12 and 13 the semi-perimeter is 15, the Heron product is 15 x 10 x 3 x 2 = 900, the area is 30 and the inradius is 30/15 = 2. For sides 6, 8 and 10 the semi-perimeter is 12, the area is 24 and the inradius is again 2. The last case is simply the 3-4-5 triangle scaled by two, and every derived length has scaled by the same factor.

Scaling is worth stating precisely, because it is easy to get the factor wrong. Multiply all three sides by a factor k and the semi-perimeter becomes k times as large while the area becomes k squared times as large. The inradius is their quotient, so it grows by exactly k, not by k squared. Doubling the 3-4-5 sides to 6-8-10 therefore doubles r from 1 to 2 while quadrupling the area from 6 to 24. The same reasoning shows that increasing the area at fixed semi-perimeter raises r, while increasing the semi-perimeter at fixed area lowers it.

The inradius has a close cousin, the circumradius R, which is the radius of the circle passing through all three vertices. It is given by R = abc/(4 x area), a different combination of the same inputs. For the 3-4-5 triangle abc is 60 and the area is 6, so R = 60/24 = 2.5, considerably larger than r = 1. For 5-12-13 the same calculation gives 780/120 = 6.5, and for 6-8-10 it gives 480/96 = 5. Every triangle satisfies R >= 2r, with equality only in the equilateral case, so the circumradius is never the smaller of the two.

The inputs must form a genuine triangle, which means the triangle inequality must hold for every pair of sides. If one side is as long as or longer than the sum of the other two, the Heron product becomes zero or negative and no real area exists. For sides 2, 3 and 9 the factor s - c is negative, so the square root is undefined and the calculation must be rejected. A degenerate triangle with a zero Heron product gives r = 0, a circle collapsed to a single point. Checking the inequality first avoids nonsense answers from a formula that is entirely correct within its proper domain.

This radius appears well beyond textbook exercises. A designer inscribing a circular feature in a triangular panel needs the largest radius that fits without crossing any edge. Surveyors and mesh generators use the same area-to-semi-perimeter relation when estimating inscribed features of triangular cells. In number theory, the identity area = r x s links integer-sided triangles to integer areas, producing the Heronian triangles studied for their exact arithmetic. Knowing r also helps locate the incenter once the angle bisectors have been constructed.

Several distinct radii are easy to confuse with the inradius. The three exradii belong to circles tangent to one side and the extensions of the other two, and each is larger than r. The circumradius passes through the vertices rather than touching the sides, as already noted. For an equilateral triangle of side a the inradius simplifies to a times the square root of three divided by six, a special case that does not generalise to other shapes. Keep these definitions separate and the correct formula is usually obvious from whether the circle meets sides or vertices.

Formula

r = area / s, where s = (a + b + c) / 2

Formula page →

Area equals the inradius times the semi-perimeter, so dividing the area by s isolates r.

SymbolMeaning
rInradius
areaArea of the triangle
sSemi-perimeter

area = sqrt(s(s - a)(s - b)(s - c))

Formula page →

The area follows from the three sides through the semi-perimeter, supplying the numerator needed above.

SymbolMeaning
areaArea of the triangle
sSemi-perimeter
a, b, cThree side lengths

R = a b c / (4 x area)

Formula page →

Uses the same sides and area; for a 3-4-5 triangle it gives 60/24 = 2.5.

SymbolMeaning
RCircumradius
a b cProduct of the three sides
areaArea of the triangle

How To Calculate The Inradius Of A Triangle

  1. 1

    Check that the sides form a triangle

    Before doing anything else, confirm that each side is shorter than the sum of the other two. If this fails, the Heron product is negative or zero and no incircle with a positive radius exists. For 3, 4 and 5 the largest side 5 is less than 3 + 4, so the input is valid and the calculation can proceed safely.

  2. 2

    Compute the semi-perimeter

    Add the three sides and halve the total: s = (a + b + c) / 2. For the 3-4-5 triangle this is (3 + 4 + 5) / 2 = 12 / 2 = 6. Do not stop at the full perimeter of 12, because every later step divides by s and using 12 would halve the answer.

  3. 3

    Find the area with Heron's formula

    Form the product s(s - a)(s - b)(s - c) and take its square root. With s = 6 the three differences are 3, 2 and 1, so the product is 6 x 3 x 2 x 1 = 36 and the area is the square root of 36, namely 6. Keep the full precision of the square root until the end if the sides are not whole numbers.

  4. 4

    Divide the area by the semi-perimeter

    Apply the identity r = area / s. For the 3-4-5 triangle this gives r = 6 / 6 = 1, a clean whole number that makes a good sanity check. Note the direction of the relationship: at a fixed semi-perimeter a larger area gives a larger radius, while at a fixed area a larger semi-perimeter gives a smaller one.

  5. 5

    Check the scaling and compare with the circumradius

    Verify the result against an anchor and examine how it scales. Doubling all three sides to 6-8-10 gives s = 12, area 24 and r = 2, so the radius has doubled while the area quadrupled. For comparison, the circumradius is abc/(4 x area), which for the 3-4-5 triangle is 60/24 = 2.5, well above the inradius of 1.

Examples

Example 1: The classic 3-4-5 right triangle

sideA
3
sideB
4
sideC
5
StepCalculationResult
Semi-perimeter(3 + 4 + 5) / 26
Heron product6 x 3 x 2 x 136
Areasqrt(36)6
Inradius6 / 61

Result: For the 3-4-5 triangle the area is 6, the inradius is 1 and the circumradius is 2.5.

Example 2: A 5-12-13 right triangle

sideA
5
sideB
12
sideC
13
StepCalculationResult
Semi-perimeter(5 + 12 + 13) / 215
Heron product15 x 10 x 3 x 2900
Areasqrt(900)30
Inradius30 / 152

Result: For the 5-12-13 triangle the area is 30, the inradius is 2 and the circumradius is 6.5.

Example 3: A 6-8-10 triangle — the 3-4-5 case doubled

sideA
6
sideB
8
sideC
10
StepCalculationResult
Semi-perimeter(6 + 8 + 10) / 212
Heron product12 x 6 x 4 x 2576
Areasqrt(576)24
Inradius24 / 122

Result: For the 6-8-10 triangle the area is 24, the inradius is 2 and the circumradius is 5.

Calculator

Inradius

1

Circumradius
2.5
Triangle area
6
Inradius at double the area
2

Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.

Prefer a full-width tool? Open the The Inradius Of A Triangle calculator page.

Common Mistakes

  • Reporting the area as the inradius

    The most common slip is to compute the Heron area and stop there. The area is not a radius; it must be divided by the semi-perimeter. For the 3-4-5 triangle the area is 6 but the inradius is only 1, so forgetting the final division gives an answer six times too large.

  • Dividing by the full perimeter instead of the semi-perimeter

    The identity is area = r x s with s equal to half the perimeter, not the whole perimeter. Using 12 rather than 6 for the 3-4-5 triangle produces r = 0.5 instead of 1. Halve the sum of the sides first and label that quantity s so it cannot be confused with the perimeter.

  • Skipping the triangle inequality check

    Heron's formula will happily produce a negative product for impossible lengths such as 2, 3 and 9. Taking a square root then fails or returns a meaningless value. Check that the longest side is shorter than the other two added together before starting, and reject the input if it is not.

  • Confusing the inradius with the circumradius

    The incircle touches the sides from inside, while the circumcircle passes through the vertices. Their formulas differ: r = area/s but R = abc/(4 x area). For the 3-4-5 triangle these are 1 and 2.5 respectively, so mixing them up changes the answer by a large factor.

  • Assuming that doubling the sides quadruples the inradius

    The area does grow by a factor of four when every side doubles, but the semi-perimeter only doubles. Since the radius is the quotient, it grows by a factor of two: the 3-4-5 triangle has r = 1 and the 6-8-10 triangle has r = 2. Applying the area's factor to the radius is a frequent scaling error.

  • Rounding the square root too early

    For triangles with awkward sides, the Heron product is rarely a perfect square. Rounding its square root before dividing by s compounds the error, especially when s is small. Carry extra digits through the intermediate steps and round only the final radius.

FAQ

What exactly is the inradius of a triangle?

It is the radius of the incircle, the largest circle that fits inside the triangle and touches each of the three sides. Its centre is the incenter, where the internal angle bisectors meet. Equivalently, it is the perpendicular distance from that centre to any side.

Why does area equal inradius times semi-perimeter?

Joining the incenter to the vertices splits the triangle into three smaller triangles. Each has the inradius as its height and one of the side lengths as its base. Adding their half-times-base-times-height areas gives r(a + b + c)/2, which is r times the semi-perimeter s.

Do I always need Heron's formula to find the inradius?

No. If you already know the area by another route, such as a half-times-base-times-height calculation, divide it by the semi-perimeter directly. Heron's formula is simply the convenient way to get the area when only the three side lengths are given.

What happens to the inradius when all sides are doubled?

It doubles. The semi-perimeter scales by two and the area scales by four, so their quotient scales by two. The 3-4-5 triangle has an inradius of 1 and the 6-8-10 triangle, with exactly twice the sides, has an inradius of 2.

How is the inradius different from the circumradius?

The incircle lies inside the triangle and touches the sides; the circumcircle passes through the three vertices. The circumradius is abc/(4 x area) and is always at least twice the inradius. For a 3-4-5 triangle the two values are 1 and 2.5.

Can any three lengths be used as inputs?

Only lengths that satisfy the triangle inequality, meaning each side is shorter than the sum of the other two. Otherwise the Heron product is negative or zero and no real incircle exists. Lengths of 2, 3 and 9 fail this test because 9 is greater than 2 + 3.

References

  1. [1]Wikipedia, Incircle and excircles — https://en.wikipedia.org/wiki/Incircle_and_excircles
  2. [2]Wikipedia, Heron's formula — https://en.wikipedia.org/wiki/Heron%27s_formula
  3. [3]Wikipedia, Triangle — https://en.wikipedia.org/wiki/Triangle