ABC Triangle Calculator (SSS)

Enter all three side lengths of a triangle (a, b, and c) to instantly find every angle, the area, the perimeter, and the triangle type. This is the SSS (Side-Side-Side) case, solved using the law of cosines and Heron's formula.

Calculate.co.nz is proud to be partnered with Premium Homes, a recognised leader in eco-friendly, sustainable, and energy-efficient homebuilding. With a dedicated team and award-winning experience, they create homes that prioritise health, comfort, and long-term performance. Their founders, Andrew and Kelly, set out to raise the standard of residential construction in New Zealand by combining practical building expertise with a clear commitment to doing things better for homeowners.
Calculate.co.nz partner: Premium Homes
Standard geometry  Law of cosines and Heron's formula. Exact results to 3 decimal places.

1. Enter the Three Sides

units
units
units
C B A b c a

2. Results

These three side lengths cannot form a valid triangle. Each side must be less than the sum of the other two (triangle inequality).
Angle A (opposite side a)-
Angle B (opposite side b)-
Angle C (opposite side c)-
Perimeter-
Semi-perimeter (s)-
Area-
Triangle type (angles)-
Triangle type (sides)-

Summary

Angle A
-
degrees
Angle B
-
degrees
Angle C
-
degrees
Area
-
square units

Worked Example

Inputs: a = 5, b = 6, c = 7
Perimeter: 5 + 6 + 7 = 18 units
Semi-perimeter (s): 18 / 2 = 9
Area (Heron's formula): sqrt(9 x (9 - 5) x (9 - 6) x (9 - 7)) = sqrt(9 x 4 x 3 x 2) = sqrt(216) = 14.697 sq units
Angle A (law of cosines): arccos((6² + 7² - 5²) / (2 x 6 x 7)) = arccos(60 / 84) = 44.415°
Angle B: arccos((5² + 7² - 6²) / (2 x 5 x 7)) = arccos(38 / 70) = 57.122°
Angle C: arccos((5² + 6² - 7²) / (2 x 5 x 6)) = arccos(12 / 60) = 78.463°
Check: 44.415 + 57.122 + 78.463 = 180.000°
Type: Scalene (all sides different), Acute (all angles less than 90°)

How to Solve an ABC Triangle (SSS)

When you know all three side lengths of a triangle, you can find everything else about it using two key formulas.

The Law of Cosines

The law of cosines extends Pythagoras' theorem to any triangle. To find angle A (the angle opposite side a):

A = arccos((b² + c² - a²) / (2bc))

Repeat the formula, cycling through the sides, to find angles B and C. This always works as long as the three sides satisfy the triangle inequality (each side must be less than the sum of the other two).

Heron's Formula for Area

Heron's formula gives the area of a triangle from its three sides alone, without needing the height:

  1. Calculate the semi-perimeter: s = (a + b + c) / 2
  2. Calculate the area: Area = sqrt(s x (s - a) x (s - b) x (s - c))

Triangle Types

ClassificationBy sidesBy angles
EquilateralAll three sides equalAll angles 60°
IsoscelesTwo sides equalTwo angles equal
ScaleneAll sides differentAll angles different
Acute-All angles less than 90°
Right-One angle exactly 90°
Obtuse-One angle greater than 90°

Triangle Inequality

Three lengths can only form a valid triangle if each length is strictly less than the sum of the other two. For example, sides of 1, 2, and 10 cannot form a triangle because 1 + 2 = 3, which is less than 10. The calculator will alert you if the sides you enter fail this test.

Related Calculators

Method: Angles calculated using the law of cosines: A = arccos((b² + c² - a²) / (2bc)). Area calculated using Heron's formula: Area = sqrt(s(s-a)(s-b)(s-c)) where s = (a+b+c)/2. Triangle inequality check: each side must be less than the sum of the other two.

Results are rounded to three decimal places for display. The calculator works with any consistent unit of length (cm, m, inches, etc.).

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-07-02 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.