Triangle Calculator (General)

Solve any triangle from any valid combination of sides and angles. Select how you know your triangle, enter the values you have, and the calculator finds all missing sides, angles, area, and perimeter using the law of cosines and law of sines.

Calculate.co.nz is proud to be partnered with realtor.co.nz, a trusted resource for navigating the New Zealand property market. Their Helpful Articles section offers clear, well-structured insights across buying, selling, and building, making complex real estate topics more accessible. With a focus on up-to-date guidance and practical knowledge, they empower Kiwis to move forward with clarity and confidence in a constantly evolving property landscape.
Calculate.co.nz partner: realtor.co.nz
Standard geometry  Law of cosines and law of sines. Handles SSS, SAS, ASA, AAS, and SSA cases including the ambiguous (two-solution) case.

1. Known Information

Side a, angle C (between the sides), side b. Angle C is opposite side c.

2. Triangle Diagram

C A B b a c

Side a is opposite angle A, side b opposite B, side c opposite C.

Triangle Solution

Area
-
Square units
Perimeter
-
Units
Longest Side
-
Units
Triangle Type
-
By angles / sides

All Sides

Side a (opposite A)-
Side b (opposite B)-
Side c (opposite C)-
Perimeter (a + b + c)-

All Angles

Angle A (opposite a)-
Angle B (opposite b)-
Angle C (opposite c)-
Sum of angles180.00°

Second Solution (SSA Ambiguous Case)

The given information also describes a second valid triangle:

Side a: -
Side b: -
Side c: -
Angle A: -
Angle B: -
Angle C: -
Area: -
Perimeter: -
Result: Enter your triangle values above.

How to Solve Any Triangle

A triangle has six measurements: three sides (a, b, c) and three angles (A, B, C). You need to know at least three of these (with at least one being a side) to determine the triangle. The two main tools for solving triangles are the law of cosines and the law of sines.

The Law of Cosines

The law of cosines relates all three sides to one of the angles:

c² = a² + b² − 2ab·cos(C)

This is used in two cases:

The Law of Sines

The law of sines relates sides to their opposite angles:

a / sin(A) = b / sin(B) = c / sin(C)

This is used in the ASA, AAS, and SSA cases. For ASA and AAS, the third angle is found first (angles sum to 180°), then the remaining sides are found by proportion. SSA requires care because it may produce two solutions.

Worked Example (Default Values)

Given side a = 5, angle C = 60°, side b = 7 (SAS case):

  1. Find side c using the law of cosines: c² = 5² + 7² − 2 × 5 × 7 × cos(60°) = 25 + 49 − 35 = 39, so c = √39 ≈ 6.245
  2. Find angle A using the law of sines: sin(A) = a × sin(C) / c = 5 × sin(60°) / 6.245 ≈ 0.6934, so A ≈ 43.90°
  3. Find angle B = 180° − 60° − 43.90° = 76.10°
  4. Area = ½ × a × b × sin(C) = ½ × 5 × 7 × sin(60°) ≈ 15.155 sq units
  5. Perimeter = 5 + 7 + 6.245 ≈ 18.245 units

These are the values shown in the results when the calculator loads with its default inputs.

The Five Solvable Cases

CaseKnown ValuesMethodUnique Solution?
SSSAll three sidesLaw of cosines for each angleYes (if valid triangle)
SASTwo sides, included angleLaw of cosines, then law of sinesYes
ASATwo angles, included sideThird angle = 180 − sum; law of sinesYes
AASTwo angles, non-included sideThird angle = 180 − sum; law of sinesYes
SSATwo sides, non-included angleLaw of sines; check ambiguous case0, 1, or 2 solutions

Triangle Types

Once all angles are known, a triangle can be classified:

Related Calculators

Method: Law of cosines (c² = a² + b² − 2ab·cos(C)) and law of sines (a/sin(A) = b/sin(B) = c/sin(C)). Area by the formula ½ab·sin(C). SSA ambiguous case checked by comparing the given side against the perpendicular height. Standard Euclidean geometry; angles must sum to 180°.

This calculator works in Euclidean (flat) geometry. Results are to four significant figures. For very small or very large values, verify the result independently. Angle inputs must be in degrees and must sum to less than 180° for any two angles entered.

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.