Geometry

Triangle Calculator — Three Sides

Enter three side lengths and get the area, all three angles, the perimeter and both radii.

Formula and sources updated · Data sources · 1View algorithm, constants and default inputs (JSON)

Enter your values

Area 6u²
Results
Example

Angles of the triangle

Angle opposite a90.00 °Angle opposite b53.13 °Angle opposite c36.87 °

About this calculator

Enter three positive side lengths in the same unit. Length results use that input unit (u), and area uses its square (u²); this calculator does not choose or convert a measurement unit.

Recomputed from this page's implementation at build time · checked 2026-10-22

Sides of 1, 1 and 1.999999 are still accepted as a triangle

The triangle inequality is strict: two sides must sum to more than the third, not to the same amount. That single word decides which inputs are refused, and it leaves a narrow band of legal but almost flat triangles where some results stop being usable.

211ABCapex 0.002 above the base
The dashed square is one unit on a side, and the triangle is drawn at the same scale. Its base spans two of them; its apex rises by about two thousandths of one. The thin line at the bottom is the entire triangle, drawn honestly rather than exaggerated.

How the result moves

Longest side, with the other two fixed at 1 → · Area
1.91.991.9991.99991.999999
Area0.2970.0990.0321.0e-21.0e-3

Every column is a legal triangle. The area falls by roughly a factor of three for each extra digit, and no column is ever rejected, because the triangle inequality is strict but the margin is not bounded below.

From exact to almost flat

The classic right triangle

Area
6
Perimeter
12
Angle A
36.87
Angle B
53.13
Angle C
90
Inradius
1
Circumradius
2.5
Height to side A
4

Every field lands on a round number, which makes this the reference case for the rest of the page. The right angle sits opposite the longest side, so here it lands on angle C purely because side C is the one measuring 5.

An equilateral triangle

Area
15.588
Angle A
60
Inradius
1.7321
Circumradius
3.4641
Height
5.1962

Equal sides produce equal angles, and the inradius lands at half the circumradius: 1.7321 against 3.4641 once both are rounded, which is the ratio you should expect for any equilateral triangle at any size.

A sliver that satisfies the inequality

Area
1e-3
Angle C
179.89
Circumradius
500.0001
Height to side A
0.002

Legal, because the two short sides still add up to slightly more than the long one. The area is now below the two-decimal display precision, so it switches to exponential form and prints as 1e-3, which is 0.001. The circumradius climbs to 500 while the height to side A collapses to 0.002. Correct results, and a display that has quietly changed notation on you.

The same triangle with the labels rotated

Area
6
Angle A
90
Angle B
53.13
Angle C
36.87

The area is unchanged, but the right angle has moved to angle A. Sides are read by position, not sorted by length, so the angle named for a side is always the one opposite it — no reordering happens behind your back.

Two different refusals

  • You typed
    sideA
    1
    sideB
    2
    sideC
    3
    It answered triangle

    Two sides that add up to exactly the third

    This is a segment with a point on it, not a triangle. Equality fails the strict inequality, so the input is refused rather than returned with zero area and angles of zero and 180 degrees.

  • You typed
    sideA
    1
    sideB
    1
    sideC
    2
    It answered triangle

    A degenerate isosceles case

    The same failure with equal short sides. It is worth testing separately because it is the shape most people type when they want to see what happens at the boundary.

  • You typed
    sideA
    0
    sideB
    1
    sideC
    1
    It answered inputError

    A side of zero

    A zero-length side is rejected before the geometry check runs, so it produces a different error from the degenerate cases above. Two kinds of failure, two messages — that distinction is what makes the refusal diagnosable.

  • You typed
    sideA
    -3
    sideB
    4
    sideC
    5
    It answered inputError

    A negative side

    Lengths are not signed. Taking the absolute value would quietly turn a typo into a valid triangle, so the input is rejected instead.

How the inputs are read

Only three sides are read
There is no angle input at all. Two angles and one side cannot be solved here, and the page does not accept a partial set and guess the rest.
Labels follow positions
Angle A is opposite side A no matter which value is largest. If you need the angles sorted, read the results and match them yourself; the calculator will not relabel the triangle.
Angles are returned in degrees
There is no radians switch. A right angle reads as 90 rather than 1.5708, and every angle obeys the sum-to-180 rule that a degree display makes easy to check.
Near-degenerate inputs are legal but unstable
Inside the legal band the area can shrink below the printed precision while the circumradius grows without a matching limit. If a result looks absurd, check whether the three sides are almost collinear before assuming a bug.

Six fields on the competitor

  • calculator.netchecked 2026-10-22

    Theirs
    Six fields — three sides and three angles — accepting any three values that include at least one side, with a degree/radian switch.
    Here
    Three side fields only, degrees only, no angle input.

    Why they built it that waySix fields, three sides and three angles, so any three values can drive the solution. That flexibility is the product - a solver that only accepted sides would be a different tool, and the side-side-angle ambiguity has to be handled rather than avoided.

    If you know two angles and one side, this page cannot solve it and will not attempt to. The scope limit is deliberate: a three-field page cannot silently mis-handle a combination it never offered to accept.

Enter 1, 1 and 1.999999: the result is accepted, with an angle close to 180 degrees and a circumradius in the hundreds. Then change the long side to 2 and confirm the triangle is refused outright.

Verified Heron's area against the base-height formula on the 3-4-5 case · impl f5e3515f

Method and assumptions

Start with the semiperimeter s = (a + b + c) / 2. Heron’s formula gives the area A = √[s(s − a)(s − b)(s − c)]. Each angle comes from the cosine rule; Angle opposite a is opposite Side a, and likewise for b and c. The inradius A/s is the radius of the circle inside and tangent to all three sides. The circumradius abc/(4A) is the radius of the circle through all three vertices. Height to side a is 2A/a. Enter the sides in the same unit: centimetres give length results in centimetres and area in square centimetres. Decimal results are rounded; very small positive areas use scientific notation.

Data sources

Disclaimer

These calculators give general mathematical results. They suit study, planning and estimation — verify anything that feeds a graded submission, a published figure or a financial commitment.

Maintained by: CalcDelta Formula and sources updated ·

Implementation source

This record describes the implementation used by this page. It is not independent validation. External references, when available, support only the stated formula or definition; estimates and custom rules retain their own assumptions.

View algorithm, constants and default inputs (JSON)

Formula and variables

A = √(s(s−a)(s−b)(s−c)); α = acos((b²+c²−a²) ÷ 2bc); r = A ÷ s; R = a × b × c ÷ 4A

a,b,c
Sides
s
Semiperimeter
A
Area
α
Angle opposite a
r
Inradius
R
Circumradius

Enter all sides in the same unit u. Length outputs use u and area uses u²; no unit is selected or converted. Invalid triangles suppress results.

Embed this calculator

Copy the iframe snippet to place this calculator on your site. No account required. The snippet stays in sync with the inputs currently shown.

Frequently asked questions

Which set of information do I need to solve a triangle?

Enter the lengths of all three sides in the same unit. This calculator uses those sides to find the area, angles, perimeter, inradius and circumradius.

Why can't a triangle have sides of 1, 2 and 5?

The two shorter sides must add up to more than the longest side. Since 1 + 2 is less than 5, those lengths cannot form a triangle. The calculator shows an error and withholds results until the sides are valid.

Which side lengths can I enter, and what do the units mean?

Enter all three side lengths from 0.01 to 100,000 in the same unit. The sum of any two sides must be greater than the third; equality is a flat, degenerate shape and is rejected. The symbol u stands for your chosen length unit and u² for its square. For example, if the sides are in metres, area is in square metres. This tool does not convert units.

What results does a 3–4–5 triangle give?

For Side a = 5, Side b = 4 and Side c = 3, the semiperimeter is 6 and Heron’s formula gives area √(6 × 1 × 2 × 3) = 6 square units. The perimeter is 12 units. The angles opposite a, b and c are 90°, about 53.13° and about 36.87°. The inradius is 1 unit, the circumradius 2.5 units, and the height to side a is 2.4 units.