Triangle Calculator – Sides, Angles, Area and Perimeter
Solve a triangle from three sides (SSS) or two sides and the included angle (SAS), returning every angle, the area by Heron's formula, the perimeter, and the triangle type.
Calculator InputsFormula v1.0
Law of cosines: c² = a² + b² − 2ab·cos C; semi-perimeter s = (a + b + c) / 2; area = √(s(s−a)(s−b)(s−c))
Area
Step-by-Step Mathematical Working
Formula and method
Law of cosines: c² = a² + b² − 2ab·cos C; semi-perimeter s = (a + b + c) / 2; area = √(s(s−a)(s−b)(s−c))Three sides determine exactly one triangle (up to reflection). If the longest side is squared equal to the sum of the squares of the other two, the triangle is right-angled; if the sum is larger the triangle is acute; if smaller, obtuse.
Variables
- a, b, c
- Side lengths opposite angles A, B and C respectively
- A, B, C
- Interior angles, which always sum to 180°
- s
- Semi-perimeter, half the total perimeter
Worked example
A 3-4-5 triangle has angles of 36.87°, 53.13° and 90°, an area of 6 square units, and a perimeter of 12.
Who this calculator is for
Students, carpenters checking a diagonal, surveyors, and anyone verifying a triangular layout before cutting.
Complete guide to the triangle calculator – sides, angles, area and perimeter
Every figure below comes from this calculator itself. The method is Law of cosines: c² = a² + b² − 2ab·cos C; semi-perimeter s = (a + b + c) / 2; area = √(s(s−a)(s−b)(s−c)), applied to the tool's default inputs and then stress-tested one input at a time.
What the Triangle Calculator – Sides, Angles, Area and Perimeter works out
Triangle Calculator – Sides, Angles, Area and Perimeter answers one specific question: Solve a triangle from three sides (SSS) or two sides and the included angle (SAS), returning every angle, the area by Heron's formula, the perimeter, and the triangle type. It is written for students, carpenters checking a diagonal, surveyors, and anyone verifying a triangular layout before cutting.
The method is Law of cosines: c² = a² + b² − 2ab·cos C; semi-perimeter s = (a + b + c) / 2; area = √(s(s−a)(s−b)(s−c)). The inputs are Side a, Side b, Side c. With the default values - Side a = 3, Side b = 4, Side c = 5 - the result is Area: 6.0000 square units. Raising Side a from 3 to 3.30 moves the headline result from 6.0000 square units to 6.5831 square units.
Working through the reported figures
Alongside 6.0000 square units this method reports 8 supporting quantities: Perimeter: 12.0000 units; Angle A (opposite side a): 36.8699°; Angle B (opposite side b): 53.1301°; Angle C (opposite side c): 90.0000°. Taken together they show which input moved the answer and by how much.
The arithmetic as executed: Semi-perimeter s = (3 + 4 + 5) ÷ 2 = 6.0000. Heron: area = √(6.0000 × 3.0000 × 2.0000 × 1.0000) = 6.0000. Law of cosines for angle A: cos A = (b² + c² − a²) ÷ (2bc) = 0.800000, so A = 36.8699°. Angles sum check: 36.8699 + 53.1301 + 90.0000 = 180.0000°. Run the same substitution yourself; a match confirms the inputs were read as you intended.
How to interpret the answer
Three sides determine exactly one triangle (up to reflection). If the longest side is squared equal to the sum of the squares of the other two, the triangle is right-angled; if the sum is larger the triangle is acute; if smaller, obtuse.
In this case 6.0000 square units together with perimeter of 12.0000 units is a single scenario, not a forecast range. Move the input you are least sure of, and watch the two figures change in step.
Common mistakes to avoid
Using any three lengths: if a + b ≤ c the sides cannot enclose an area. Mixing degree and radian mode in a handheld calculator. Treating the area result as if the unit were linear rather than squared.
Read the inputs back once before trusting the figure: Side a, Side b, Side c and confirm each entry matches its label, including whether a quantity is entered in the unit the label names. Nudge Side a and confirm the output responds in the direction the formula implies - here 6.0000 square units should shift smoothly rather than jump.
Limitations and responsible use
Solves from three sides only (SSS/SAS-equivalent inputs); angle-side-angle inputs need a different form. Assumes a planar Euclidean triangle, not a spherical one used in navigation.
Each number above is bounded by the limits just described, so treat it as a conditional result. Every figure here can be reproduced by hand from the formula shown, but no calculation can confirm that the inputs match your actual circumstances. For a consequential decision, confirm the current figure independently, because published values change between editions.
Frequently asked questions
What is the area of a 3-4-5 triangle?
The semi-perimeter is 6, so the area is 6 square units and the perimeter 12 units. Because 3² + 4² = 5², the angle opposite the 5-unit side is exactly 90°.
Why does my triangle have no solution?
If the longest side is at least the sum of the other two - for example 1, 2 and 9 - the sides cannot meet and no triangle exists. The calculator reports that instead of returning an impossible area.
Related searches for this calculator
People also look for triangle calculator, triangle side calculator, triangle angle calculator, herons formula and area of a triangle with 3 sides. Everything on this page is calculated in your browser from the formula shown above.
Related Mathematics Calculators
Explore another calculator in this subject.
Triangle Area Calculator (Heron's Formula)
Calculate triangle area from three side lengths and check whether they form a valid triangle.
Right Triangle Area
Calculates the Triangle area with A = base × height / 2. Enter Base leg and Height leg; the default example returns 24.
Pythagorean Hypotenuse
Calculates the Straight-line distance / hypotenuse with c = √(a² + b²). Enter Leg a and Leg b; the default example returns 5.