MaximCalculator Free, fun & accurate calculators
📐 Platinum math layout
🌙Dark Mode

Triangle Calculator

Use this Triangle Calculator to solve area, perimeter, and missing sides / angles in seconds. Pick the method you know (SSS / SAS / base+height / right triangle), enter what you have, and get a clean result you can screenshot and share.

Fast triangle solving (SSS, SAS, base-height, right)
📏Area + perimeter + angles in one place
Triangle validity checks & type detection
📱Perfect for homework, DIY, and quick verification

Enter what you know

Choose a solve mode, fill in the inputs, then tap Calculate. The calculator validates the triangle (triangle inequality + angle rules) before producing results.

🧠
Tip: If you only need triangle area, “Base + height” is the fastest.
📦
We keep units consistent. Area outputs use square units.
Your triangle result will appear here
Choose a mode, enter values, and press “Calculate”.
All calculations run locally in your browser.
Quick check: green means “valid triangle.” If invalid, you’ll see exactly why.
InvalidNeeds checkValid

Educational tool. For engineering or safety-critical work, verify with a qualified professional.

🧮 Formulas

Triangle formulas (the ones this calculator uses)

Triangles are one of those rare topics where the math is both simple and surprisingly powerful. Once you know what information you have (sides, angles, or a base and height), you can compute almost everything else. This calculator supports the most common pathways you’ll see in school, construction, and DIY measurement: Heron’s formula (SSS), base × height, and trigonometry (SAS).

1) Triangle validity (triangle inequality)

A triangle can only exist if the sum of any two side lengths is strictly greater than the third side: a + b > c, a + c > b, b + c > a. If you enter sides that violate this rule, your “triangle” collapses into a straight line (or can’t be drawn at all), so the calculator stops and tells you what failed.

2) Perimeter and semi-perimeter

The perimeter is just the total distance around the triangle: P = a + b + c. Many triangle formulas also use the semi-perimeter: s = (a + b + c) / 2. That “s” value shows up in Heron’s formula and is a common intermediate step.

3) Area formulas
  • Base-height area: A = (b × h) / 2. Use this when you know a base and its perpendicular height (altitude).
  • Heron’s formula (SSS): A = √( s(s-a)(s-b)(s-c) ). This is perfect when you know all three sides but not the height.
  • SAS area: A = ½ab·sin(C) for two sides a, b and included angle C.
4) Angles from sides (Law of Cosines)

If you know all three sides, you can compute each angle using the Law of Cosines. For example, angle C opposite side c: cos(C) = (a² + b² − c²) / (2ab), then C = arccos(…). The calculator does this for all three angles when enough information is available.

5) Right triangles (Pythagorean theorem)

If a triangle has a 90° angle, the longest side is the hypotenuse c. The Pythagorean theorem says a² + b² = c². That makes right-triangle problems the fastest to solve: give two values, and the third is one square root away.

Extra: What you can (and can’t) solve uniquely

Not every set of measurements defines a single triangle. Three sides (SSS) always define exactly one triangle (if valid). Two sides plus the included angle (SAS) also defines exactly one triangle. But two sides alone (SS) does not — you can “swing” the third vertex to create multiple possible triangles. And two angles alone (AA) only defines a triangle up to scale (similar triangles), unless you also know a side. This calculator focuses on the input sets people actually use most often.

✅ Examples

Worked examples (so you can sanity-check your answer)

Example 1: SSS (3 sides)

Suppose a triangle has sides a = 7, b = 8, c = 9. First, check validity: 7+8>9, 7+9>8, 8+9>7. It’s valid. Perimeter is P = 24. Semi-perimeter is s = 12. Heron’s area is A = √(12·5·4·3) = √720 ≈ 26.833 square units. The calculator also uses Law of Cosines to compute angles and tells you this is a scalene triangle.

Example 2: Base + height (fast area)

If your base is b = 10 and the perpendicular height is h = 6, the area is A = (10×6)/2 = 30. This is the cleanest method when a height is explicitly given (common in geometry homework).

Example 3: SAS (two sides + included angle)

Let a = 5, b = 9, and included angle C = 40°. Area is A = ½·5·9·sin(40°) ≈ 14.46. The third side comes from Law of Cosines: c = √(a² + b² − 2ab cos(C)). Once c is known, perimeter follows and remaining angles can be solved.

Example 4: Right triangle (legs)

If legs are a = 3 and b = 4, the hypotenuse is c = √(3²+4²)=5. Area is A = (3×4)/2 = 6. This is the classic “3-4-5” triangle.

Example 5: Right triangle (hypotenuse + leg)

If c = 13 and a = 5, then b = √(13²−5²) = √144 = 12. Area is A = (5×12)/2 = 30. This forms the well-known “5-12-13” triple.

🔍 How it works

How this Triangle Calculator works (step-by-step)

The calculator’s job is essentially to pick the right formula chain, validate the inputs, and format the result clearly. That’s simple in words, but in practice it means preventing the classic “almost correct” mistakes: mixing units, using a non-included angle in SAS, or allowing an invalid triangle to slip through. Below is exactly what the calculator does after you press “Calculate.”

Step 1: Identify your known quantities

The solve mode tells the calculator what you’re providing: three sides (SSS), base + height, two sides + included angle (SAS), or a right triangle variant. This matters because the first formula we choose determines everything that comes after. For example, if we have SSS, we can compute area with Heron’s formula immediately. If we have SAS, we compute the third side first.

Step 2: Run validity checks

Validity checks are not “extra” — they prevent nonsense outputs. For SSS, triangle inequality must hold. For angle-based modes, angles must be between 0 and 180 degrees. For right-triangle hypotenuse mode, the hypotenuse must be longer than the leg. If any check fails, we show a clear message.

Step 3: Compute missing sides (when needed)

In SAS, we compute the third side using the Law of Cosines. In right-triangle modes, we compute the missing side via the Pythagorean theorem. Once all three sides are known, the rest of the triangle can be solved consistently.

Step 4: Compute area, perimeter, and angles

Perimeter is always the sum of sides when sides are available. Area is computed using the most stable formula for the chosen mode. Angles are computed from sides using the Law of Cosines to avoid ambiguity. For right triangles, the acute angles are computed with inverse trigonometry so you get a complete set of angles.

Step 5: Classify the triangle

The calculator labels the triangle in two ways: side type (equilateral / isosceles / scalene) and angle type (acute / right / obtuse). These labels are a quick “reasonableness” check: if you expected an isosceles triangle but you typed different sides, you’ll catch it immediately.

Step 6: Make it shareable

Finally, we format the output as a compact summary that’s easy to screenshot or paste into a chat. This is very intentional: triangles show up in study groups, DIY projects, and quick “does this make sense?” checks, and a clean summary saves time.

❓ FAQ

Frequently Asked Questions

  • What is the fastest way to find triangle area?

    If you know a base and the perpendicular height, use A = (b×h)/2. It’s the simplest and least error-prone. If you only know three sides, use Heron’s formula (SSS mode).

  • Why does the calculator say my triangle is invalid?

    Most often it’s triangle inequality: one side is too long compared to the other two, e.g. a+b ≤ c. If you’re using angles, it can also be because an angle is 0/180 or outside range.

  • Do I need degrees or radians for angles?

    Input is in degrees. Internally, trigonometric functions use radians, and we convert automatically.

  • Can I solve a triangle with only two sides?

    Not uniquely (unless it’s a right triangle and you know which side is the hypotenuse). Two sides without an angle can describe multiple triangles.

  • Can this handle obtuse triangles?

    Yes. In SSS and SAS modes, the Law of Cosines handles acute and obtuse cases, and we label the angle type accordingly.

  • What’s the difference between “height” and a side?

    Height is perpendicular to the base (an altitude). Unless your triangle is right-angled in a specific way, height is not equal to any side.

  • Is this good for test prep?

    Yes — use it to verify answers, then try re-solving by hand to build intuition. The worked examples above match the calculator’s internal methods.

💡 Pro tips

Common triangle mistakes (and how to avoid them)

  • Mixing units: Keep all sides in the same unit system before calculating.
  • Height vs side: Height is perpendicular to the base — it is not usually equal to a side length unless it’s a right triangle.
  • Rounding too early: If you’re hand-checking, round only at the end. Early rounding can move angles by 1–2 degrees.
  • Wrong included angle: In SAS, the angle must be between the two known sides (the included angle).
  • Invalid “almost triangles”: If a+b=c exactly, area becomes 0 (a flat line). Real triangles require strict >.

Want to go deeper? Try the Triangle Type tool to classify triangles quickly, or Pythagorean Theorem for right-triangle speed.