Skip to content

Math & Geometry

Triangle Calculator

Solve for missing sides and angles from the triangle measurements you know. Choose the input case that matches how your measurements were taken.

Use calculator

Tool updated

Triangle Solver Toolbox

Solve SSS, SAS, ASA, AAS, and SSA with unit conversion, ambiguity handling, formulas, and derived properties.

Provide all three sides. Solver uses triangle inequality and Law of Cosines.

Known values

Sides (m)

Angles (deg)

Results

Final values are rounded for display. Internally, calculations retain full precision.

    Solution 1

    Side a (m)7
    Side b (m)8
    Side c (m)9
    Angle A (deg)48.19
    Angle B (deg)58.41
    Angle C (deg)73.4
    Area (m^2)26.83
    Perimeter (m)24
    Semiperimeter (m)12
    Altitude h_a (m)7.67
    Altitude h_b (m)6.71
    Altitude h_c (m)5.96
    Median m_a (m)7.76
    Median m_b (m)7
    Median m_c (m)6.02
    Angle bisector l_a (m)7.73
    Angle bisector l_b (m)6.87
    Angle bisector l_c (m)5.99
    Inradius r (m)2.24
    Circumradius R (m)4.7

    Diagram

    ABCa = 7b = 8c = 9

    Step-by-step explanation

    The solver shows formulas, substitutions, and intermediate values for each valid solution.

    Solution 1

    Validate side-side-side input

    Method: Validation

    a+b>ca+b>c
    a+c>ba+c>b
    b+c>ab+c>a

    Substitute: 7 m, 8 m, 9 m

    Result: Triangle inequality holds.

    Solve remaining angles

    Method: Law of Cosines

    A=arccos⁡b2+c2−a22bcA=\arccos\frac{b^2+c^2-a^2}{2bc}
    B=arccos⁡a2+c2−b22acB=\arccos\frac{a^2+c^2-b^2}{2ac}

    Substitute: a = 7 m, b = 8 m, c = 9 m

    Result: A = 48.19 deg, B = 58.41 deg, C = 73.4 deg

    Compute area

    Method: Heron's Formula

    s=a+b+c2s=\frac{a+b+c}{2}
    K=s(s−a)(s−b)(s−c)K=\sqrt{s(s-a)(s-b)(s-c)}

    Substitute: s = 12 m

    Result: Area = 26.83 m^2

    Compute derived properties

    Method: Derived Properties

    P=a+b+cP=a+b+c
    ha=2Kah_a=\frac{2K}{a}
    r=Ksr=\frac{K}{s}
    R=abc4KR=\frac{abc}{4K}

    Substitute: P = 24 m

    Result: h_a = 7.67 m, r = 2.24 m, R = 4.7 m

    Worked example

    Find the area of a 3–4–5 triangle

    Choose the three-sides case and enter 3, 4, and 5 in the same length unit.

    K=3×42=6 square unitsK=\frac{3\times4}{2}=6\,\text{square units}

    The 3- and 4-unit sides meet at 90° because 3² + 4² = 5². They are the base and perpendicular height in this example.

    Back to the calculator

    How to use the calculator

    1. Choose a solve mode: SSS, SAS, ASA, AAS, or SSA.
    2. Enter known values (required fields are marked with *).
    3. Pick length unit (mm, cm, m, km, in, ft, yd, mi) and angle unit (degrees or radians).
    4. Optional: add extra known values to validate consistency.
    5. Set decimal places (and optional significant figures) for output formatting.
    6. Review solved sides, angles, area, perimeter, altitudes, medians, inradius, and circumradius.
    7. If SSA is ambiguous, inspect Solution 1 and Solution 2 and choose active solution.
    8. Copy results, export CSV, print, or share the encoded URL.

    Calculator Overview

    OmniCalc's Triangle Calculator solves full triangle geometry from multiple input sets: SSS, SAS, ASA, AAS, and SSA. Enter known sides/angles, choose units, and compute complete results including all sides, all angles, area, perimeter, altitudes, medians, inradius, circumradius, and optional angle bisectors.

    The solver includes strict validation, clear no-solution feedback, and robust SSA ambiguity handling. When SSA yields two valid triangles, both solutions are shown with side-by-side results and step-by-step math.

    Use this calculator for classwork, exam prep, design checks, fabrication planning, and engineering estimation where fast and reliable triangle solving is required.

    Formulas and short notes

    Jump to a formula

    SSS with three known sides

    cos⁡C=a2+b2−c22ab\cos C=\frac{a^2+b^2-c^2}{2ab}
    s=a+b+c2s=\frac{a+b+c}{2}
    K=s(s−a)(s−b)(s−c)K=\sqrt{s(s-a)(s-b)(s-c)}
    • Each side must be shorter than the other two combined. The angle C sits opposite side c.
    • Use the cosine rule for angles and Heron’s formula for area when you know all three sides.

    Worked example

    For sides 3,4,53,4,5, s=6s=6, C=90∘C=90^\circ, and K=6⋅3⋅2⋅1=6K=\sqrt{6\cdot3\cdot2\cdot1}=6 square units.

    SAS with an included angle

    c=a2+b2−2abcos⁡Cc=\sqrt{a^2+b^2-2ab\cos C}
    K=12absin⁡CK=\frac12 ab\sin C
    • The known angle must lie between the two known sides. If it lies across from one of them, use SSA.
    • The included angle gives the perpendicular height through its sine, which explains the area formula.

    Worked example

    With a=5a=5, b=8b=8 and C=60∘C=60^\circ, c=7c=7 and K=103K=10\sqrt3 square units.

    ASA and AAS with two angles

    C=180∘−A−BC=180^\circ-A-B
    asin⁡A=bsin⁡B=csin⁡C\frac{a}{\sin A}=\frac{b}{\sin B}=\frac{c}{\sin C}
    • ASA gives the side between the two known angles. AAS gives a different side. Both use the angle sum first.
    • Match every side with its opposite angle. The known angles must add to less than a straight angle.

    Worked example

    For A=30∘A=30^\circ, B=60∘B=60^\circ, and a=4a=4, C=90∘C=90^\circ and c=8c=8. This is AAS because side a is opposite A.

    SSA and the ambiguous case

    sin⁡B=bsin⁡Aa\sin B=\frac{b\sin A}{a}
    B2=180∘−B1B_2=180^\circ-B_1
    • The same positive sine can correspond to an acute and an obtuse angle. The remaining angle must be positive in each branch.
    • SSA can yield zero, one or two triangles. Check the diagrams and the remaining angle before choosing a solution.

    Worked example

    With A=30∘A=30^\circ, a=7a=7 and b=10b=10, sin⁡B=57\sin B=\frac57. Both B≈45.58∘B\approx45.58^\circ and B≈134.42∘B\approx134.42^\circ leave a positive angle C.

    Altitudes, medians and circle radii

    ha=2Kah_a=\frac{2K}{a}
    ma=2b2+2c2−a22m_a=\frac{\sqrt{2b^2+2c^2-a^2}}{2}
    r=Ksr=\frac{K}{s}
    R=abc4KR=\frac{abc}{4K}
    • An altitude meets a side line at a right angle. A median joins a vertex to the midpoint of the opposite side.
    • The incircle touches all three sides and the circumcircle passes through the vertices.

    Worked example

    For sides 3,4,53,4,5 and area K=6K=6, r=1r=1, R=2.5R=2.5, and ha=4h_a=4 when a=3a=3.

    Compare more scenarios

    Example 1: Conservative Triangle Example

    This scenario uses a conservative assumption set to show how the triangle output behaves when core inputs are scaled to a different planning band. It is intended to demonstrate both numerical behavior and decision interpretation under a controlled assumption change.

    Inputs

    FieldValue
    Input Length Unit0
    Side a5.6 unit
    Side b6.4 unit
    Side c7.2 unit

    Outputs

    FieldValue
    Triangle Validity (1 = valid, 0 = invalid)1
    Area (Selected Unit^2)17.173 unit^2
    Perimeter19.2 unit
    Semi-Perimeter9.6 unit
    Inradius1.7889 unit
    Circumradius3.7566 unit
    Altitude to Side a6.1332 unit
    Altitude to Side b5.3666 unit
    Altitude to Side c4.7703 unit
    Angle A48.1897 deg
    Angle B58.4119 deg
    Angle C73.3985 deg
    Area in Square Meters17.173 m^2
    Area in Square Feet184.8487 ft^2

    Step-by-Step Walkthrough

    1. Set the primary input profile for this run. Example anchor value: 0. Confirm that units match source documents before calculation.
    2. Enter all values in consistent units and keep precision settings unchanged for fair comparison. If your source includes rounded values, note that in your scenario comments.
    3. Run the calculator and capture all output fields. Primary reported output: 1. Also record secondary outputs because supporting metrics often explain why totals moved.
    4. Compare this run against the baseline scenario to quantify sensitivity and decision impact. Focus first on percentage movement, then on operational consequences.
    5. Evaluate whether the change exceeds your practical action threshold. If movement is minor, preserve the baseline plan; if movement is material, review mitigation options.
    6. Archive this scenario with assumptions and timestamp so future reviews can reproduce the exact run and audit differences over time.

    Takeaway: Use this pattern to document assumptions, rerun with updated values, and maintain a clear audit trail for follow-up decisions. Over repeated runs, this approach builds decision memory and reduces rework.

    Example 2: Baseline Triangle Example

    This scenario uses a baseline assumption set to show how the triangle output behaves when core inputs are scaled to a different planning band. It is intended to demonstrate both numerical behavior and decision interpretation under a controlled assumption change.

    Inputs

    FieldValue
    Input Length Unit0
    Side a7 unit
    Side b8 unit
    Side c9 unit

    Outputs

    FieldValue
    Triangle Validity (1 = valid, 0 = invalid)1
    Area (Selected Unit^2)26.8328 unit^2
    Perimeter24 unit
    Semi-Perimeter12 unit
    Inradius2.2361 unit
    Circumradius4.6957 unit
    Altitude to Side a7.6665 unit
    Altitude to Side b6.7082 unit
    Altitude to Side c5.9628 unit
    Angle A48.1897 deg
    Angle B58.4119 deg
    Angle C73.3985 deg
    Area in Square Meters26.8328 m^2
    Area in Square Feet288.826 ft^2

    Step-by-Step Walkthrough

    1. Set the primary input profile for this run. Example anchor value: 0. Confirm that units match source documents before calculation.
    2. Enter all values in consistent units and keep precision settings unchanged for fair comparison. If your source includes rounded values, note that in your scenario comments.
    3. Run the calculator and capture all output fields. Primary reported output: 1. Also record secondary outputs because supporting metrics often explain why totals moved.
    4. Compare this run against the baseline scenario to quantify sensitivity and decision impact. Focus first on percentage movement, then on operational consequences.
    5. Evaluate whether the change exceeds your practical action threshold. If movement is minor, preserve the baseline plan; if movement is material, review mitigation options.
    6. Archive this scenario with assumptions and timestamp so future reviews can reproduce the exact run and audit differences over time.

    Takeaway: Use this pattern to document assumptions, rerun with updated values, and maintain a clear audit trail for follow-up decisions. Over repeated runs, this approach builds decision memory and reduces rework.

    Example 3: Growth Case Triangle Example

    This scenario uses a growth case assumption set to show how the triangle output behaves when core inputs are scaled to a different planning band. It is intended to demonstrate both numerical behavior and decision interpretation under a controlled assumption change.

    Inputs

    FieldValue
    Input Length Unit0
    Side a8.05 unit
    Side b9.2 unit
    Side c10.35 unit

    Outputs

    FieldValue
    Triangle Validity (1 = valid, 0 = invalid)1
    Area (Selected Unit^2)35.4864 unit^2
    Perimeter27.6 unit
    Semi-Perimeter13.8 unit
    Inradius2.5715 unit
    Circumradius5.4001 unit
    Altitude to Side a8.8165 unit
    Altitude to Side b7.7144 unit
    Altitude to Side c6.8573 unit
    Angle A48.1897 deg
    Angle B58.4119 deg
    Angle C73.3985 deg
    Area in Square Meters35.4864 m^2
    Area in Square Feet381.9724 ft^2

    Step-by-Step Walkthrough

    1. Set the primary input profile for this run. Example anchor value: 0. Confirm that units match source documents before calculation.
    2. Enter all values in consistent units and keep precision settings unchanged for fair comparison. If your source includes rounded values, note that in your scenario comments.
    3. Run the calculator and capture all output fields. Primary reported output: 1. Also record secondary outputs because supporting metrics often explain why totals moved.
    4. Compare this run against the baseline scenario to quantify sensitivity and decision impact. Focus first on percentage movement, then on operational consequences.
    5. Evaluate whether the change exceeds your practical action threshold. If movement is minor, preserve the baseline plan; if movement is material, review mitigation options.
    6. Archive this scenario with assumptions and timestamp so future reviews can reproduce the exact run and audit differences over time.

    Takeaway: Use this pattern to document assumptions, rerun with updated values, and maintain a clear audit trail for follow-up decisions. Over repeated runs, this approach builds decision memory and reduces rework.

    Example 4: Stress Case Triangle Example

    This scenario uses a stress case assumption set to show how the triangle output behaves when core inputs are scaled to a different planning band. It is intended to demonstrate both numerical behavior and decision interpretation under a controlled assumption change.

    Inputs

    FieldValue
    Input Length Unit0
    Side a9.45 unit
    Side b10.8 unit
    Side c12.15 unit

    Outputs

    FieldValue
    Triangle Validity (1 = valid, 0 = invalid)1
    Area (Selected Unit^2)48.9028 unit^2
    Perimeter32.4 unit
    Semi-Perimeter16.2 unit
    Inradius3.0187 unit
    Circumradius6.3393 unit
    Altitude to Side a10.3498 unit
    Altitude to Side b9.0561 unit
    Altitude to Side c8.0498 unit
    Angle A48.1897 deg
    Angle B58.4119 deg
    Angle C73.3985 deg
    Area in Square Meters48.9028 m^2
    Area in Square Feet526.3854 ft^2

    Step-by-Step Walkthrough

    1. Set the primary input profile for this run. Example anchor value: 0. Confirm that units match source documents before calculation.
    2. Enter all values in consistent units and keep precision settings unchanged for fair comparison. If your source includes rounded values, note that in your scenario comments.
    3. Run the calculator and capture all output fields. Primary reported output: 1. Also record secondary outputs because supporting metrics often explain why totals moved.
    4. Compare this run against the baseline scenario to quantify sensitivity and decision impact. Focus first on percentage movement, then on operational consequences.
    5. Evaluate whether the change exceeds your practical action threshold. If movement is minor, preserve the baseline plan; if movement is material, review mitigation options.
    6. Archive this scenario with assumptions and timestamp so future reviews can reproduce the exact run and audit differences over time.

    Takeaway: Use this pattern to document assumptions, rerun with updated values, and maintain a clear audit trail for follow-up decisions. Over repeated runs, this approach builds decision memory and reduces rework.

    Comparison and Reference Table

    ScenarioPrimary InputPrimary OutputNotes
    Very Low Input01Use this row as a directional guide. Re-run with your exact constraints before acting on final values.
    Low Input01Use this row as a directional guide. Re-run with your exact constraints before acting on final values.
    Reference01Use this row as a directional guide. Re-run with your exact constraints before acting on final values.
    Moderate Increase01Use this row as a directional guide. Re-run with your exact constraints before acting on final values.
    High Increase01Use this row as a directional guide. Re-run with your exact constraints before acting on final values.
    Upper-Bound Check01Use this row as a directional guide. Re-run with your exact constraints before acting on final values.

    Frequently asked questions

    What is SSA ambiguity?

    SSA can produce two valid triangles when two different angles satisfy the sine relationship. The calculator checks this and shows zero, one, or two valid solutions.

    Law of sines vs cosines: which one should I use?

    Use Law of Sines when you know an angle-side opposite pair, and Law of Cosines when you know three sides or two sides with the included angle. The solver automatically picks the correct path per mode.

    How do you find the area of a triangle?

    Area is computed with Heron's formula for SSS and with 1/2ab sin(C) when an included angle is available. Both are mathematically consistent after solving.

    What if I enter extra optional values?

    Optional values are checked against solved results. If they conflict beyond tolerance, the solver reports inconsistency so you can correct the inputs.

    Can I switch between degrees and radians?

    Yes. Inputs and outputs can be shown in degrees or radians while the solver keeps internal computations stable.

    Which length units are supported?

    The calculator supports mm, cm, m, km, in, ft, yd, and mi. It standardizes internally and converts back for display.

    Understand your result

    Triangle Calculator guide

    A triangle is determined by a compatible set of sides and angles. Choose a method that matches the information supplied in the question.

    Check whether the supplied triangle exists

    Three positive side lengths form a nondegenerate triangle only when the sum of any two exceeds the third. Sides 3, 4, and 5 satisfy that condition. Sides 2, 3, and 5 lie on the boundary and do not enclose a positive triangular area.

    Two sides and a non-included angle can sometimes describe two triangles. That ambiguity belongs to the geometry, not to rounding. Review every valid solution shown rather than assuming the first is uniquely determined. For a three-side example, sides 3, 4, and 5 have semiperimeter 6 and Heron area square root of (6 × 3 × 2 × 1) = 6 square units.

    Continue with a related calculation

    • Circle Area Calculator

      A circle has one defining measurement: its radius. From that measurement you can find the surface inside the boundary and the distance around it. The examples below explain how to choose the correct measurement, keep units consistent, reverse a result, and apply circular geometry to a real project.

    • Area Calculator

      Area measures a two-dimensional surface. The right formula depends on the shape and the dimensions available. This guide walks through the supported geometry methods, explains unit conversion and measurement uncertainty, and shows how to combine simple shapes without confusing area with perimeter or volume.

    • Volume Calculator

      Volume measures three-dimensional space. A shape's dimensions must match its formula before a unit conversion can produce a meaningful capacity.

    • Slope Calculator

      Slope measures vertical change divided by horizontal change. Keep the same point order in both subtractions.

    Quick reference: Right triangles with whole-number sides

    Each row satisfies a² + b² = c².

    Right triangles with whole-number sides
    Sides (a, b, c)PerimeterArea (½ab)Acute angles
    3, 4, 512636.9° / 53.1°
    5, 12, 13303022.6° / 67.4°
    8, 15, 17406028.1° / 61.9°
    7, 24, 25568416.3° / 73.7°
    20, 21, 297021043.6° / 46.4°

    Read the complete Triangle Calculator guide

    See the longer walkthrough and reference notes for Triangle Calculator.

    Open Guide

    Author & Formula Review

    Author

    Jitendra Kumar

    Founder & Lead Developer

    Reviewed by

    OmniCalc Editorial Review

    Formula QA, source review, and calculator maintenance

    Last reviewed

    Math & Geometry calculator

    Formulas, rounding behavior, and worked examples are checked against hand calculations and calculator QA scenarios before publishing.

    Primary Sources

    Results are general-purpose estimates. Verify critical figures against official sources or a qualified professional. See our sources and methodology and editorial policy.

    Explore more calculators