Triangle Calculator

Calculate triangle properties including sides, angles, area, perimeter, inradius, and circumradius. Enter two sides and an angle to solve for all other properties.

Your Triangle Results

Calculated
Side C
-
Third side
Area
-
Square units
Angles A, B
-
In degrees
Inradius
-
Inscribed circle
Circumradius
-
Circumscribed circle
Triangle Formulas Reference
Property Formula
Area (SAS) Area = (1/2) * a * b * sin(C)
Law of Cosines c² = a² + b² - 2ab*cos(C)
Remaining Angle A + B + C = 180°
Inradius r = Area / s (s = semi-perimeter)
Circumradius R = (a * b * c) / (4 * Area)

Key Takeaways

  • A triangle has three sides and three angles that always sum to 180 degrees
  • The Law of Cosines relates all three sides to one angle: c² = a² + b² - 2ab*cos(C)
  • Area can be calculated using SAS formula: (1/2) * a * b * sin(C)
  • Every triangle has an inradius (inscribed circle) and circumradius (circumscribed circle)
  • Triangles are classified by sides (equilateral, isosceles, scalene) or angles (acute, right, obtuse)
  • Knowing just 3 elements (with at least one side) allows you to solve the entire triangle

What Is a Triangle? Fundamental Geometry Explained

A triangle is a polygon with three edges (sides) and three vertices (corners). It is one of the most fundamental shapes in geometry, forming the basis for understanding more complex polygons and serving as an essential building block in mathematics, architecture, engineering, and countless practical applications. The word "triangle" comes from the Latin "triangulus" meaning "three-cornered."

Triangles possess several unique mathematical properties that make them invaluable in calculations. The sum of all interior angles in a plane triangle always equals exactly 180 degrees - a principle known as the Triangle Angle Sum Theorem. Additionally, the sum of any two sides must be greater than the third side, which is called the Triangle Inequality Theorem. These fundamental properties enable mathematicians and engineers to solve complex problems involving triangular shapes.

Unlike quadrilaterals and other polygons, triangles are inherently rigid structures. This means that when the three side lengths are fixed, the shape cannot be deformed without changing the side lengths. This rigidity property makes triangles essential in structural engineering - from bridge trusses to roof supports to crane arms. The triangle's stability under load is why you see triangular bracing in everything from bicycles to skyscrapers.

Types of Triangles by Sides

Equilateral Triangle

All three sides are equal length. All angles are 60 degrees.

Isosceles Triangle

Two sides are equal length. Two angles are equal.

Scalene Triangle

All three sides are different lengths. All angles are different.

Types of Triangles by Angles

Acute Triangle

All three angles are less than 90 degrees.

Right Triangle

One angle is exactly 90 degrees. Follows Pythagorean theorem.

Obtuse Triangle

One angle is greater than 90 degrees.

Essential Triangle Formulas: Complete Reference Guide

Understanding the mathematical formulas that govern triangles is essential for solving geometry problems. Here we present the most important formulas used in triangle calculations, from basic area formulas to more advanced relationships.

Area = (1/2) * base * height
base = any side of the triangle
height = perpendicular distance from base to opposite vertex

When you know two sides and the included angle (SAS - Side-Angle-Side), you can calculate the area using the trigonometric formula:

Area = (1/2) * a * b * sin(C)
a, b = two known sides
C = the angle between sides a and b

When you know all three sides but no angles, use Heron's Formula:

Area = sqrt(s(s-a)(s-b)(s-c))
s = semi-perimeter = (a + b + c) / 2
a, b, c = the three side lengths

Pro Tip: Choosing the Right Formula

Select your formula based on what you know. Have base and height? Use the basic formula. Know two sides and the included angle? Use the SAS formula. Know all three sides? Heron's Formula is your friend. Each approach will give you the same answer - pick the one that matches your given information!

The Law of Cosines

The Law of Cosines is a generalization of the Pythagorean theorem that works for any triangle, not just right triangles. It relates the lengths of all three sides to one of the angles:

c² = a² + b² - 2ab * cos(C)
a, b = two known sides
c = the side opposite to angle C
C = the angle opposite to side c

Notice that when angle C equals 90 degrees, cos(C) = 0, and the formula reduces to c² = a² + b², which is exactly the Pythagorean theorem!

The Law of Sines

The Law of Sines establishes a relationship between the sides and their opposite angles:

a/sin(A) = b/sin(B) = c/sin(C) = 2R
a, b, c = the three sides
A, B, C = the angles opposite to each side
R = circumradius (radius of circumscribed circle)

How to Calculate Triangle Properties (Step-by-Step)

1

Identify Your Known Values

Determine which sides and angles you know. You need at least three elements (with at least one being a side) to solve a triangle. Example: Side A = 5, Side B = 7, Angle C = 45 degrees.

2

Calculate the Third Side

Use the Law of Cosines: c² = 5² + 7² - 2(5)(7)cos(45°) = 25 + 49 - 70(0.707) = 74 - 49.5 = 24.5. So c = sqrt(24.5) = 4.95 units.

3

Calculate the Area

Using the SAS formula: Area = (1/2) * 5 * 7 * sin(45°) = (1/2) * 35 * 0.707 = 12.37 square units.

4

Find the Remaining Angles

Use the Law of Sines: sin(A)/a = sin(C)/c. Solve for angles A and B knowing that A + B + C = 180°.

5

Calculate Inradius and Circumradius

Inradius r = Area / s (where s is semi-perimeter). Circumradius R = (a * b * c) / (4 * Area). These give you the radii of the inscribed and circumscribed circles.

Worked Example: Solving a Triangle

Given: Side A = 8, Side B = 6, Angle C = 60 degrees

Side C 7.21
Area 20.78
Perimeter 21.21

Using the Law of Cosines: c² = 64 + 36 - 2(8)(6)(0.5) = 100 - 48 = 52, so c = 7.21. Area = (1/2)(8)(6)sin(60°) = 20.78 sq units.

Understanding Inradius and Circumradius

Every triangle has two special circles associated with it: the inscribed circle (incircle) and the circumscribed circle (circumcircle). Understanding these concepts deepens your knowledge of triangle geometry and has practical applications in design and engineering.

The Inscribed Circle (Incircle)

The incircle is the largest circle that fits entirely inside the triangle, touching all three sides. The radius of this circle is called the inradius (r). The center of the incircle, called the incenter, is equidistant from all three sides and is found at the intersection of the angle bisectors.

r = Area / s
r = inradius
Area = area of the triangle
s = semi-perimeter = (a + b + c) / 2

The Circumscribed Circle (Circumcircle)

The circumcircle is the unique circle that passes through all three vertices of the triangle. The radius of this circle is called the circumradius (R). The center, called the circumcenter, is equidistant from all three vertices and is found at the intersection of the perpendicular bisectors of the sides.

R = (a * b * c) / (4 * Area)
R = circumradius
a, b, c = the three sides
Area = area of the triangle

Interesting Relationship

There's a beautiful relationship between the inradius, circumradius, and the triangle: Area = r * s and also from the Law of Sines, a = 2R * sin(A). These relationships show how deeply connected all triangle properties are to each other.

Real-World Applications of Triangle Calculations

Triangle calculations are not just academic exercises - they have countless practical applications across various fields. Understanding how to work with triangles enables professionals in many industries to solve real-world problems.

Construction & Architecture

Calculating roof pitches, stair angles, structural supports, and determining building heights using triangulation.

Surveying & Navigation

Triangulation methods to determine distances, map terrain, and establish GPS coordinates.

Engineering Design

Designing bridges, cranes, mechanical linkages, and analyzing force distributions in structures.

Computer Graphics

3D modeling, game development, animation - all rely heavily on triangle mesh calculations.

Astronomy & Physics

Calculating distances to stars using parallax, orbital mechanics, and wave interference patterns.

Art & Design

Creating perspective drawings, designing patterns, and achieving visual balance through geometric proportions.

Real-World Example: Calculating Building Height

A surveyor stands 50 meters from a building and measures the angle to the top as 35 degrees. Using triangle calculations:

Distance 50m
Angle 35°
Height 35m

Height = 50 * tan(35°) = 50 * 0.700 = 35 meters. This triangulation technique is used daily by surveyors worldwide.

Common Mistakes to Avoid in Triangle Calculations

Even experienced mathematicians and engineers occasionally make errors when working with triangles. Being aware of these common pitfalls can help you avoid them and ensure accurate calculations.

Critical Mistakes to Avoid

  • Degrees vs. Radians: Most calculators have both modes. Always verify you're using the correct angle unit - many errors come from calculating sin(60) in radians instead of sin(60°).
  • Triangle Inequality Violation: Remember that the sum of any two sides must exceed the third side. If a + b ≤ c, the triangle cannot exist.
  • Ambiguous Case (SSA): When given two sides and a non-included angle, there may be zero, one, or two possible triangles. Always check for this ambiguity.
  • Angle Sum Error: Forgetting that angles must sum to exactly 180°. If your calculated angles don't add up, recheck your work.
  • Wrong Formula Selection: Using the Pythagorean theorem on non-right triangles, or using area = (1/2)bh when height isn't perpendicular to the base.

Advanced Triangle Concepts

Beyond the basic calculations, there are several advanced concepts that provide deeper insights into triangle geometry and have applications in higher mathematics.

The Centroid

The centroid is the intersection point of the three medians (lines from each vertex to the midpoint of the opposite side). It's the center of mass of a uniform triangular plate. The centroid divides each median in a 2:1 ratio from the vertex.

The Orthocenter

The orthocenter is where the three altitudes (perpendicular lines from each vertex to the opposite side) intersect. In an acute triangle, it lies inside; in an obtuse triangle, it lies outside; in a right triangle, it coincides with the right-angle vertex.

Euler Line

The Euler line is a remarkable discovery: the centroid, circumcenter, and orthocenter of any non-equilateral triangle are collinear (lie on the same line). The centroid divides the segment from orthocenter to circumcenter in a 2:1 ratio.

Pro Tip: The Nine-Point Circle

Every triangle has a special circle called the nine-point circle that passes through nine significant points: the midpoints of each side, the feet of the altitudes, and the midpoints of the segments from vertices to orthocenter. Its radius is exactly half the circumradius!

Triangle Congruence and Similarity

Two triangles are congruent if they have identical shapes and sizes. The tests for congruence are:

  • SSS (Side-Side-Side): All three pairs of sides are equal
  • SAS (Side-Angle-Side): Two sides and the included angle are equal
  • ASA (Angle-Side-Angle): Two angles and the included side are equal
  • AAS (Angle-Angle-Side): Two angles and a non-included side are equal
  • HL (Hypotenuse-Leg): For right triangles only - hypotenuse and one leg are equal

Two triangles are similar if they have the same shape but possibly different sizes. This means all angles are equal and sides are proportional. The tests for similarity are:

  • AA (Angle-Angle): Two pairs of angles are equal
  • SSS Similarity: All three pairs of sides are proportional
  • SAS Similarity: Two sides are proportional and the included angles are equal

Triangle Types Comparison

Triangle Type Side Properties Angle Properties Special Features
Equilateral All sides equal All angles = 60° Incenter = Circumcenter = Centroid = Orthocenter
Isosceles Two sides equal Two angles equal (base angles) Axis of symmetry bisects apex angle
Scalene All sides different All angles different Most general triangle type
Right Triangle Follows Pythagorean theorem One angle = 90° Circumcenter lies on hypotenuse midpoint
Acute c² < a² + b² All angles < 90° Orthocenter lies inside triangle
Obtuse c² > a² + b² One angle > 90° Orthocenter lies outside triangle

Frequently Asked Questions

Use Heron's Formula. First, calculate the semi-perimeter: s = (a + b + c) / 2. Then, Area = sqrt(s(s-a)(s-b)(s-c)). For example, for a triangle with sides 5, 6, and 7: s = 9, Area = sqrt(9 * 4 * 3 * 2) = sqrt(216) = 14.7 square units.

The Law of Cosines (c² = a² + b² - 2ab*cos(C)) is best when you know two sides and the included angle (SAS) or all three sides (SSS). The Law of Sines (a/sin(A) = b/sin(B) = c/sin(C)) is ideal when you know two angles and a side (AAS or ASA), or when solving the ambiguous case (SSA).

This can be proven by drawing a line parallel to one side through the opposite vertex. The angles formed by this parallel line and the two other sides of the triangle are alternate interior angles, which are equal to the base angles of the triangle. Together with the vertex angle, they form a straight line (180°). This is known as the Triangle Angle Sum Theorem.

The ambiguous case occurs when you're given two sides and a non-included angle (SSA). Depending on the values, there may be zero, one, or two possible triangles. For example, if a = 5, b = 8, and angle A = 30°, you might get two valid triangles with different values for angle B. Always check both possible solutions when solving SSA problems.

Apply the Triangle Inequality Theorem: the sum of any two sides must be greater than the third side. Check all three combinations: a + b > c, a + c > b, and b + c > a. If all three conditions are true, the triangle is valid. For example, sides 3, 4, 5 form a triangle (3+4>5, 3+5>4, 4+5>3), but sides 1, 2, 5 do not (1+2=3, which is NOT > 5).

The circumradius R is related to the sides by: R = (a * b * c) / (4 * Area). Additionally, from the Law of Sines: a / sin(A) = 2R. This means for any side and its opposite angle, the ratio equals twice the circumradius. This elegant relationship connects the circumcircle to every part of the triangle.

Special right triangles have angles and sides with exact, memorable ratios. The two most common are: 45-45-90 triangle with side ratio 1:1:sqrt(2), and 30-60-90 triangle with side ratio 1:sqrt(3):2. These triangles appear frequently in standardized tests, engineering, and architecture because they allow exact calculations without calculators.

This calculator uses standard JavaScript floating-point arithmetic and trigonometric functions, providing accuracy to approximately 10-15 significant digits. Results are rounded to 4 decimal places for display. For most practical purposes (education, engineering, construction), this level of precision far exceeds what's needed. For extremely precise scientific calculations, specialized mathematical software may be preferred.