Triangle Solver (Law of Sines and Cosines)

Solve any triangle from three sides, two sides and the angle between, or two angles and a side.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Step 1: Open Triangle Solver (Law of Sines and Cosines) and add your input

    Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.

  2. 2
    Step 2: What Triangle Solver (Law of Sines and Cosines) does

    Solve any triangle from three sides, two sides and the angle between, or two angles and a side.

  3. 3
    Step 3: Read the result and compare

    The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.

  4. 4
    Step 4: Copy or save it

    Copy the result or download it. For an important decision, confirm it with the official source or an adviser.

About this tool

Choose what you know: three sides (SSS), two sides and the included angle (SAS), two angles and a side (AAS) or two sides and an angle opposite one of them (SSA). The calculator finds all sides and angles, the perimeter, area, inradius and circumradius.

Methods

The law of cosines c² = a² + b² − 2ab cos C solves SSS and SAS. The law of sines a ÷ sin A = b ÷ sin B = c ÷ sin C solves ASA and SSA. The area comes from Heron's formula.

Input order

Enter the three values in this order. SSS: sides a, b, c. SAS: sides b and c, then the angle A between them in degrees. AAS: angles A and B in degrees, then side b. SSA: sides a and b, then angle A in degrees. SSA can have two solutions; the one with an acute angle B is shown.

Worked example

Sides 5, 6, 7 give angles 44.42°, 57.12° and 78.46°, perimeter 18, area 14.697, inradius 1.633 and circumradius 3.572.

Tips for best results

Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.

Quick facts

Embed this calculator on your site

Copy this code to show the calculator on your own page. A link back to shobfree.com is included.

Frequently asked questions

What is the ambiguous case?

With SSA two different triangles may fit; the tool shows the one where angle B is acute.

Which angle unit?

Degrees.

Why no triangle?

The sides break the triangle inequality or the angles add to 180° or more.

What are inradius and circumradius?

The radii of the circles inside and around the triangle.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages