Triangle Calculator

Please provide 3 values including at least one side to the following 6 fields, and click the "Calculate" button. When radians are selected as the angle unit, it can take values such as pi/2, pi/4, etc.


 
   

Angle Unit:

What Is the Triangle Calculator and Why It Matters

The Triangle Calculator is a geometry tool that computes unknown properties of a triangle — including side lengths, angles, area, perimeter, and height — based on known values. By applying fundamental geometric theorems and trigonometric identities, it can determine all characteristics of a triangle from as few as three known measurements, provided they form a valid combination.

Triangles are the most fundamental polygon in mathematics and appear throughout engineering, architecture, navigation, physics, and computer graphics. Every polygon can be decomposed into triangles, making triangle calculations the foundation for solving complex geometric problems. From determining the height of a building using shadow measurements to calculating forces in a truss structure, triangle math is indispensable across technical disciplines.

The calculator supports multiple input combinations: three sides (SSS), two sides and an included angle (SAS), two angles and a side (AAS or ASA), and two sides with a non-included angle (SSA). It applies the Law of Cosines, Law of Sines, and Heron's formula as appropriate to solve for all remaining properties.

How to Accurately Use the Triangle Calculator for Precise Results

Follow these steps to solve a triangle:

  • Identify Known Values: Determine which three measurements you know. You need at minimum three values that include at least one side length. Three angles alone cannot define a unique triangle (only its shape, not its size).
  • Select the Input Type:
    • SSS (Three Sides): Enter all three side lengths. The calculator verifies the triangle inequality and computes all angles and the area.
    • SAS (Two Sides + Included Angle): Enter two sides and the angle between them. This uniquely determines the triangle.
    • ASA/AAS (Two Angles + One Side): Enter two angles and any side. The third angle is computed automatically (angles sum to 180°).
    • SSA (Two Sides + Non-Included Angle): Enter two sides and an angle opposite one of them. Be aware this may yield two solutions (the ambiguous case) or no solution.
  • Enter Values Carefully: Specify angles in degrees or radians (and indicate which). Enter side lengths in consistent units.
  • Review All Outputs: The calculator returns all side lengths, all angles, area, perimeter, and often the inradius and circumradius.

Tips for accuracy: When measuring physical triangles, small measurement errors are amplified in calculations involving very acute or very obtuse angles. For the SSA case, always check if two valid triangles exist (when the given angle is acute and the opposite side is shorter than the adjacent side but longer than the height). Use consistent decimal precision throughout your inputs.

Real-World Scenarios & Practical Applications

Scenario 1: Surveying a Property Boundary

A land surveyor needs to determine the length of a property boundary that cannot be directly measured due to a pond. She measures two accessible sides as 150 feet and 200 feet, with the angle between them measured at 72°. Using the SAS method: the unknown side c = √(150² + 200² − 2 × 150 × 200 × cos72°) = √(22,500 + 40,000 − 18,541) = √43,959 ≈ 209.7 feet. She also calculates the area to be ½ × 150 × 200 × sin72° = 14,266 square feet, useful for the property assessment.

Scenario 2: Determining a Building's Height

An architect needs to verify the height of an existing building but cannot access the roof. From a point 100 feet from the base, she measures the angle of elevation to the roofline as 58°. This forms a right triangle where the base is 100 feet and the angle opposite the height is 58°. Height = 100 × tan(58°) = 100 × 1.6003 = 160.0 feet. She confirms this with a second measurement from 150 feet away (angle of elevation 44.5°), which yields height = 150 × tan(44.5°) = 147.3 × 1.091 ≈ 160.0 feet — consistent results.

Scenario 3: Designing a Triangular Garden Bed

A landscape designer is creating a triangular flower bed with sides measuring 12 feet, 15 feet, and 18 feet. Using the calculator with SSS input and Heron's formula: semi-perimeter s = (12 + 15 + 18) ÷ 2 = 22.5. Area = √(22.5 × 10.5 × 7.5 × 4.5) = √7,593.75 ≈ 87.1 square feet. She needs 3 inches of mulch depth: 87.1 × 0.25 = 21.8 cubic feet ≈ 0.81 cubic yards of mulch. The calculator also determines the angles (41.4°, 56.3°, 82.3°), confirming none are too acute for practical planting access.

Who Benefits Most from the Triangle Calculator

  • Students and Educators: Mathematics and physics students use triangle calculators to verify homework solutions, explore geometric relationships, and build intuition for trigonometric concepts.
  • Engineers and Architects: Structural calculations, load analysis, and spatial design frequently require solving triangles for force components, distances, and angles.
  • Surveyors and Cartographers: Land surveying relies heavily on triangulation — measuring known distances and angles to compute unknown positions and boundaries.
  • Navigators and Pilots: Triangulation is fundamental to navigation, determining position from known landmarks, calculating bearing changes, and computing distances.
  • Carpenters and Builders: Roof pitch calculations, staircase angles, and diagonal brace lengths all involve right-triangle or oblique-triangle mathematics.

Technical Principles & Mathematical Formulas

The Triangle Calculator employs several key formulas:

Law of Cosines:

c² = a² + b² − 2ab × cos(C)

Used to find a side when two sides and the included angle are known (SAS), or to find an angle when all three sides are known (SSS).

Law of Sines:

a / sin(A) = b / sin(B) = c / sin(C)

Used to find sides or angles when AAS, ASA, or SSA configurations are given.

Angle Sum Property:

A + B + C = 180°

The third angle is always 180° minus the sum of the other two.

Heron's Formula (Area from Three Sides):

s = (a + b + c) / 2 (semi-perimeter)

Area = √(s × (s − a) × (s − b) × (s − c))

Area from Two Sides and Included Angle:

Area = ½ × a × b × sin(C)

Height (Altitude):

h = 2 × Area / base

Where base is the side to which the height is perpendicular.

Triangle Inequality:

For any valid triangle: a + b > c, a + c > b, and b + c > a. The calculator verifies this before proceeding with calculations.

Ambiguous Case (SSA):

When given sides a and b with angle A opposite side a: if a < b × sin(A), no triangle exists. If a = b × sin(A), exactly one right triangle exists. If b × sin(A) < a < b, two triangles exist. If a ≥ b, exactly one triangle exists.

Frequently Asked Questions

What is the ambiguous case and how does the calculator handle it?

The ambiguous case (SSA) occurs when you know two sides and an angle opposite one of them. Depending on the values, zero, one, or two valid triangles may exist. A well-designed calculator detects all possibilities and presents both solutions when two valid triangles exist. For example, given a = 8, b = 12, and angle A = 30°, the calculator would return two triangles with different values of angle B (one acute and one obtuse).

Can the calculator solve right triangles specifically?

Yes. A right triangle is a special case where one angle equals 90°. Enter the known angle as 90° and the calculator uses simplified formulas including the Pythagorean theorem (a² + b² = c²) and basic trigonometric ratios (sin, cos, tan) for efficient solution. Many calculators offer a dedicated right-triangle mode for convenience.

How do I find the area of an irregular quadrilateral?

Divide the quadrilateral into two triangles by drawing a diagonal. Calculate the area of each triangle using the Triangle Calculator, then sum the results. For example, a quadrilateral ABCD can be split into triangles ABC and ACD. Calculate each area using whichever formula fits the available measurements, and add them together.

What units should I use for angles?

Most practical applications use degrees (0° to 360°). Scientific and mathematical contexts often use radians (0 to 2π). To convert: radians = degrees × (π / 180), or degrees = radians × (180 / π). Ensure the calculator is set to the unit system you are using — entering degrees when the calculator expects radians (or vice versa) produces wildly incorrect results.

Why does the calculator say my triangle is invalid?

A triangle is invalid if the inputs violate the triangle inequality theorem (the sum of any two sides must exceed the third side) or if the angles do not sum to 180°. Invalid results also occur if a negative value is entered, or if the SSA configuration produces no real solution. Double-check your measurements for accuracy and ensure consistent units across all inputs.