purr.tools

Triangle Calculator

Enter all three side lengths to calculate area, perimeter, angles, and triangle type.

Share this calculation

Copy this link to share your current inputs with anyone.

How to use the triangle calculator

Enter the lengths of all three sides. The calculator uses Heron's formula for area and the law of cosines for angles. Results appear instantly.

Triangle formulas

Area (Heron's): s = (a+b+c)/2, Area = √(s·(s−a)·(s−b)·(s−c)). Angles (law of cosines): cos A = (b²+c²−a²)/(2bc). A triangle is valid only if each side is less than the sum of the other two.

FAQ

What inputs are needed?

You need all three side lengths (SSS). The calculator derives everything else: area, perimeter, all three angles, and the triangle type.

What does 'invalid triangle' mean?

A triangle is only possible if the sum of any two sides is greater than the third side (triangle inequality). If your values violate this rule, no triangle exists.

Embed this tool

Add this tool to your website by copying the snippet below.

<iframe
  src="https://purr.tools/en/embed/triangle-calculator"
  width="100%"
  height="500"
  style="border:0;border-radius:8px;"
  loading="lazy"
  title="Triangle Calculator — Area, Perimeter & Angles"
  allow="clipboard-write"
></iframe>