Triangle Calculator

Triangle area

6 units²

Perimeter

12 units

All results
Calculator inputs
?

Match your given measurements to the labels in the diagram. Side a is opposite A, and similarly for b/B and c/C; relabel a textbook triangle if needed.

?

All lengths use this one unit; areas use its square. Changing this label reinterprets the numbers, rather than converting their values.

?

Known positive length, opposite angle A. All sides must use the selected length unit.

?

Known positive length, opposite angle B. In SAS it meets side a at angle C.

?

Known third length, opposite angle C. Three sides must satisfy the strict triangle inequality.

Shape and dimensions

Compare the solved side lengths

Lengths share the selected unit. This is a side-length comparison; the separate diagram shows the geometric arrangement.

a3 units
b4 units
c5 units

Solved triangle measurements

Sides a, b, c are opposite angles A, B, C. Distinct SSA solutions have different third sides and areas. CSV retains stored precision; displayed digits are rounded.

Solved triangle measurements
SolutionSide aSide bSide cAngle AAngle BAngle CAreaPerimeter
13 units4 units5 units36.86989765 °53.13010235 °90 °6 units²12 units

Altitudes, medians and circle radii

Altitudes are perpendicular to the selected side or its extension. Medians end at a side midpoint. Inradius and circumradius describe different circles.

Altitudes, medians and circle radii
SolutionMeasurementLength
1Altitude to a4 units
1Altitude to b3 units
1Altitude to c2.4 units
1Median to a4.27200187 units
1Median to b3.60555128 units
1Median to c2.5 units
1Inradius1 units
1Circumradius2.5 units

Triangle classification and consistency checks

Side equality uses a relative 10^−10 tolerance on the longest side; right-angle classification uses 10^−10 radians. Classification at those boundaries is approximate.

Triangle classification and consistency checks
SolutionSide classificationAngle classificationAngle sum2 × area / side c
1ScaleneRight (within numeric tolerance)180 °2.4 units

Vertices and triangle centers in one coordinate frame

A is at the origin, B lies on the positive x-axis, and C lies above it. Translation, rotation and reflection give equivalent placements. An obtuse triangle’s circumcenter can lie outside its area.

Vertices and triangle centers in one coordinate frame
SolutionPointxy
1Vertex A0 units0 units
1Vertex B5 units0 units
1Vertex C3.2 units2.4 units
1Centroid2.7333333333 units0.8 units
1Incenter3 units1 units
1Circumcenter2.5 units-7.40148683e-16 units

Follow the solved geometry step by step

These are relationships among the completed triangle’s measurements. They supplement the selected-input solver, and are not additional amounts to sum.

Follow the solved geometry step by step
SolutionQuantityRelationshipValue
1PerimeterP = a + b + c12
1Semiperimeters = P / 26
1AreaK = sqrt[s(s-a)(s-b)(s-c)] (evaluated in a scaled stable form)6
1Altitude to ch_c = 2K / c2.4
1Inradiusr = K / s1
1CircumradiusR = abc / (4K)2.5
1Median to cm_c = sqrt(2a² + 2b² - c²) / 22.5

How to use the Triangle Calculator

Solve SSS, SAS, two-angle or ambiguous SSA triangles. See proportional diagrams, both valid solutions, area, perimeter, angles, altitudes, medians and circle radii.

  1. 1. Enter your inputs

    Start with Known triangle measurements, Length unit, Side a, Side b. Use the units shown beside each field and open the field help when you need its assumptions.

  2. 2. Read the results

    Results update as you enter valid values. Review Triangle area, Perimeter, Angle opposite c. Keep the entered units and settings consistent when comparing scenarios.

  3. 3. Check the calculation

    Euclidean plane triangles only. No geodesic, spherical, surveying-error or measurement-uncertainty model. Derived values are floating-point approximations, not arbitrary-precision symbolic proofs.

    See the worked example and method

Understanding the Triangle Calculator: uses, inputs and results

The Triangle Calculator connects three valid side lengths with the triangle’s area, perimeter and angles.

Which triangle measurements determine a unique answer?

The Triangle Calculator separates side-only, included-angle, two-angle and ambiguous SSA cases. Selecting the known measurements prevents a formula from quietly solving a different triangle.

Opposite labels carry information

Side a faces A, b faces B and c faces C. Two known angles still need a side to establish scale.

Two solutions are sometimes necessary

SSA can produce distinct third sides and areas. Both are retained, with separate diagram tabs and full measurement rows.

Further reading: OpenStax: the law of sines and ambiguous SSA cases · OpenStax: law of cosines and triangle area

What do the Triangle Calculator inputs mean?

Known triangle measurements
Match your given measurements to the labels in the diagram. Side a is opposite A, and similarly for b/B and c/C; relabel a textbook triangle if needed.
Length unit
All lengths use this one unit; areas use its square. Changing this label reinterprets the numbers, rather than converting their values.
Side a
Known positive length, opposite angle A. All sides must use the selected length unit. This field applies when Known triangle measurements is set to Three sides: a, b, c (SSS) or Two sides a, b and included C (SAS) or Side a and angles A, B (AAS / ASA) or Sides a, b and opposite angle A (SSA).
Side b
Known positive length, opposite angle B. In SAS it meets side a at angle C. This field applies when Known triangle measurements is set to Three sides: a, b, c (SSS) or Two sides a, b and included C (SAS) or Sides a, b and opposite angle A (SSA).
Side c
Known third length, opposite angle C. Three sides must satisfy the strict triangle inequality. This field applies when Known triangle measurements is set to Three sides: a, b, c (SSS).
Angle unit
Radian angle fields accept decimal values or simple pi multiples such as pi/6 or 2*pi/3. Results retain degree fields for existing API links. This field applies when Known triangle measurements is set to Two sides a, b and included C (SAS) or Side a and angles A, B (AAS / ASA) or Sides a, b and opposite angle A (SSA).
Angle A
Angle opposite side a. Use a decimal in degrees, or a decimal/simple pi multiple in radians. This field applies when Known triangle measurements is set to Side a and angles A, B (AAS / ASA) or Sides a, b and opposite angle A (SSA).
Angle B
Second known angle. A + B must be below 180° (pi radians). The remaining angle is C. This field applies when Known triangle measurements is set to Side a and angles A, B (AAS / ASA).
Included angle C
Angle between known sides a and b, not a non-included angle. Use the selected angle unit. This field applies when Known triangle measurements is set to Two sides a, b and included C (SAS).

When is the Triangle Calculator useful?

Check a three-side problem

Enter known side lengths to compare the calculated angles and dimensions with a geometry exercise.

Explore side changes

Change one side while retaining a valid triangle. All entered lengths must use a consistent unit.

Triangle Calculator: a practical reference

The fixed “3-4-5” example on this page produces the results below. It illustrates the stated model; your live results above use your current inputs.

Known triangle measurements
Three sides: a, b, c (SSS)
Length unit
length units
Side a
3
Triangle area
6 units²
Perimeter
12 units
Review the example inputs and calculation

Use the result in context

Euclidean plane triangles only. No geodesic, spherical, surveying-error or measurement-uncertainty model. Derived values are floating-point approximations, not arbitrary-precision symbolic proofs.

Try the Triangle Calculator·Read the subject guide·Explore a related calculator

Worked example: Triangle Calculator

3-4-5. This fixed reference example shows one complete scenario; the interactive results above use your current inputs.

View the example inputs
Known triangle measurements
Three sides: a, b, c (SSS)
Length unit
length units
Side a
3
Side b
4
Side c
5
Calculated results for the fixed example
Calculated quantityExample result
Triangle area6 units²
Perimeter12 units
Angle opposite c90 °

Triangle Calculator: choose the known measurements before choosing a formula

How do I find the missing sides and angles of a triangle?

Start by identifying what is known. Three sides, two sides with their included angle, and two angles with a side lead to different equations. The Triangle Calculator makes that choice explicit, so an angle is not accidentally treated as the one between the supplied sides.

The lowercase side and uppercase angle labels are paired: side a lies opposite A, b opposite B and c opposite C. The diagram uses those labels consistently. If your question uses other vertex names, relabel the known measurements to match before entering them. Three angles alone determine shape but not size.

OpenStax: the law of sines and ambiguous SSA cases

Can I calculate triangle area from three side lengths?

Yes. A 3–4–5 triangle has perimeter 12 and area 6 square units. Heron’s formula obtains area from the three sides without requiring an entered height. This implementation scales the sides and uses a rearranged product to reduce avoidable subtraction error near the triangle-inequality boundary.

The longest side must be shorter than the other two combined. Equality produces a collapsed line, not a positive-area triangle. A very thin valid triangle can still be poorly conditioned: the tool rejects numerically unresolved cases rather than claiming a reliable angle or area from rounded data.

OpenStax: law of cosines and triangle area

When should I use the law of cosines instead of the law of sines?

Use the included-angle mode when sides a and b meet at known angle C. The cosine law determines c; then the completed triangle supplies the remaining measurements. A 3-unit side and 4-unit side meeting at 90° give c = 5 and area 6.

Two known angles and a known side instead establish all angles first, then use sine-law ratios to set the scale. With a = 3, A = 30° and B = 60°, C is 90° and c is 6. Here the known side is opposite A; entering a different known side without relabeling changes the scenario.

OpenStax: law of cosines and triangle area

Why can the same two sides and angle give two triangles?

An angle opposite one known side is different from an included angle. In this SSA case, a sine ratio can identify both an acute angle and its obtuse supplement. Each candidate must leave a positive third angle before it describes a triangle.

For a = 10, b = 12 and A = 30°, both candidates survive. The possible c values are 6√3 + 8 and 6√3 − 8, approximately 18.392305 and 2.392305. They are different triangles with different areas, not duplicate orientations. The result card, solution tabs and tables retain both instead of choosing one silently.

OpenStax: the law of sines and ambiguous SSA cases

What do the altitude, median, inradius and circumradius measure?

An altitude meets a side, or its extension, at a right angle. A median joins a vertex to the opposite side’s midpoint. Their lengths generally differ, even though both start at a vertex. In an obtuse triangle an altitude can fall outside the filled triangle.

The inradius describes the circle tangent to all three sides; it equals area divided by semiperimeter. The circumradius describes a circle through all three vertices and equals abc divided by four times the area. A 3–4–5 triangle has inradius 1 and circumradius 2.5. Diagram controls show altitudes, medians and the incircle; the complete table retains all derived lengths.

Should I enter triangle angles in degrees or radians?

Choose the angle unit before interpreting the numbers. A right angle is 90° or pi/2 radians; a full turn is 360° or 2pi radians. Radian fields accept simple pi multiples as well as decimals. Arbitrary expressions and executable input are not evaluated.

All side lengths must share one unit. Area uses its square, while perimeter, medians, altitudes and radii use the original length unit. Changing the unit label reinterprets the numbers; it does not convert them. The proportional figure helps identify the geometry, but rounded labels and approximate classification are not measurement-error analysis.

Formula and calculation method

SSS uses a scaled rearrangement of Heron’s formula, reducing cancellation near the triangle-inequality boundary. Angles use atan2 of area and cosine-law terms.

SAS: c = hypot(a − b, 2√a√b sin(C/2)); this is a stable form of the cosine law. Two angles plus a side use sine-law ratios.

SSA may have zero, one or two triangles. Both B = asin(b sin(A)/a) and its supplement are checked, retaining only positive remaining angles.

Area K = base × perpendicular altitude / 2. Inradius = 2K/perimeter; circumradius = abc/(4K). Medians join vertices to opposite midpoints.

Lengths support 10^−12 through 10^12. Angles below 10^−12 radians or degenerate/ill-conditioned triangles are rejected. Unit labels do not convert the input values.

Scope and Limitations

  • Euclidean plane triangles only. No geodesic, spherical, surveying-error or measurement-uncertainty model. Derived values are floating-point approximations, not arbitrary-precision symbolic proofs.

Reference Sources

Frequently asked questions

What information is enough to solve a triangle?

The supported cases are three sides; two sides and their included angle; two angles with side a; or the SSA case with sides a, b and opposite angle A. Three angles alone do not determine size.

Can SSA have two correct answers?

Yes. Both an inverse-sine angle and its supplement can leave positive remaining angles. The calculator retains both valid triangles.

Why are my three side lengths rejected?

They must be positive, satisfy the strict triangle inequality and remain within the supported numeric range and conditioning limits.

Is a median the same as an altitude?

No. A median ends at a side midpoint, while an altitude is perpendicular to the side or its extension.

Does changing the unit label convert my sides?

No. All lengths are interpreted in the selected unit. Convert measurements first if they do not already share one unit.