Triangle Angle Calculator Formula

Understand the math behind the triangle angle calculator. Each variable explained with a worked example.

Formulas Used

Angle C

angle_c = 180 - angle_a - angle_b

Sum Check

sum_check = angle_a + angle_b + (180 - angle_a - angle_b)

Triangle Type

triangle_type = (angle_a == 90 or angle_b == 90 or (180 - angle_a - angle_b) == 90) ? 1 : 0

Variables

VariableDescriptionDefault
angle_aAngle A(degrees)60
angle_bAngle B(degrees)70

How It Works

How to Find a Missing Triangle Angle

Formula

Angle C = 180° - Angle A - Angle B

The sum of all interior angles of a triangle is always 180 degrees. If you know two angles, you can find the third by subtracting their sum from 180.

Triangle Types by Angles

  • Acute: All angles less than 90°
  • Right: One angle exactly 90°
  • Obtuse: One angle greater than 90°
  • Worked Example

    A triangle has angles of 60° and 70°. Find the third angle.

    angle_a = 60angle_b = 70
    1. 01Angle C = 180° - 60° - 70°
    2. 02= 180° - 130°
    3. 03= 50°

    Frequently Asked Questions

    Why do triangle angles add up to 180 degrees?

    This is a fundamental property of Euclidean geometry. It can be proven by drawing a line parallel to one side through the opposite vertex and using alternate interior angles.

    Can a triangle have two right angles?

    No. Two right angles would sum to 180°, leaving 0° for the third angle, which is impossible. A triangle can have at most one right angle or one obtuse angle.

    Learn More

    Guide

    Pythagorean Theorem - Complete Guide

    Master the Pythagorean theorem with this comprehensive guide. Learn the formula a² + b² = c², proofs, Pythagorean triples, and real-world applications.

    Ready to run the numbers?

    Open Triangle Angle Calculator