Law of Sines & Cosines Calculator

Law of Sines & Cosines Calculator

Solve non-right oblique triangles using Law of Cosines (c² = a² + b² - 2ab cos C) and Law of Sines.

Solved Triangle Properties
Side c
6.24
Angle A
43.9°
Angle B
76.1°
Area
15.16

At a Glance

Category
Trigonometry
Best For
Students and builders solving non-right triangles
Privacy
100% in your browser: nothing you enter is uploaded
Time Required
Under a minute
Cost
Free
Updated
November 2026

Quick Overview

What This Tool Does

Uses the law of cosines for the third side, then finds the remaining angles and the area.

Who Should Use It

Trigonometry students, surveyors and engineers.

When to Use It

When two sides and the angle between them are known.

Why It Is Useful

Right-triangle formulas do not work for general triangles; the law of cosines does.

Key Features & Capabilities

SAS solution

Third side, both remaining angles and area.

Angles sum to 180°

Consistent triangle results.

Two-decimal output

Rounded for display.

How to Use This Tool

1

Enter sides a and b

Type the two known side lengths. Tip: Use the same unit.

2

Enter the included angle C

Type the angle between sides a and b in degrees. Tip: It must be between 0 and 180.

3

Read side c

The third side comes from the law of cosines. Tip: Check it is shorter than a + b.

4

Read angles and area

Angles A and B and the area appear. Tip: The three angles add to 180°.

Worked Real-World Example

Sides 5 and 7 with 60° between them

A triangle has sides 5 and 7 enclosing a 60° angle.

Sample Inputs
Side a5
Side b7
Angle C60 degrees
Third side6.24 (angles 43.9°, 76.1°, 60°; area 15.16)
Calculation Breakdown
Third side: √(25 + 49 − 70 × cos 60°) = 6.24
Angle A: arccos((49 + 38.9 − 25) ÷ (2 × 7 × 6.24)) = 43.9°
Angle B: 180 − 43.9 − 60 = 76.1°
Area: ½ × 5 × 7 × sin 60° = 15.16
The third side is about 6.24, the largest angle is opposite the longest side and the three angles total 180°.

How It Works (Math & Calculation Logic)

Side c = √(a² + b² − 2ab cos C). Angle A = arccos((b² + c² − a²) ÷ 2bc). Angle B = 180° − A − C. Area = ½ ab sin C. With three sides (SSS) the angles come from the law of cosines and the area from Heron's formula.

Formula / Algorithmc² = a² + b² − 2ab cos C
Variable & Logic Definitions
a, bKnown sides - Sides enclosing the angle (length)
CIncluded angle - Angle between a and b (degrees)
cThird side - Opposite C (length)

How to Interpret Your Results

Typical Benchmarks

Any two sides and an included angle between 0° and 180° define a unique triangle.

Evaluating Your Output

The third side lies between |a − b| and a + b.

Recommended Next Action

Check the result with the law of sines.

Frequently Asked Questions

What is the law of cosines?
c² = a² + b² − 2ab cos C, relating the sides and an angle of any triangle.
When do I use it?
When you know two sides and the included angle, or all three sides.
How is it different from the Pythagorean theorem?
It reduces to it when C = 90°.
What is SAS?
Side-angle-side: two sides and the angle between them.
What about the ambiguous case?
SSA can have two solutions and is not supported here.

Complementary QuickForma Utilities

Mathematics & Statistics

Distance & Midpoint Calculator

Calculate Euclidean distance, midpoint coordinates, and line slope between two 2D points.

Open Tool
Mathematics & Statistics

Pythagorean Theorem Calculator

Solve right triangle side lengths using a^2 + b^2 = c^2 along with area and perimeter.

Open Tool
Mathematics & Statistics

Triangle Area & Solver

Calculate triangle area from base and height using Area = 0.5 * b * h.

Open Tool
Mathematics & Statistics

Trigonometry Calculator

Calculate sine (sin), cosine (cos), and tangent (tan) in degrees or radians.

Open Tool
Mathematics & Statistics

Derivative & Limit Calculator

Calculate polynomial power-rule derivatives d/dx[ax^n] = a * n * x^(n-1) and tangent slopes.

Open Tool
Mathematics & Statistics

Descriptive Statistics Calculator

Calculate mean, median, mode, range, variance, standard deviation, quartiles, IQR, and MAD from data.

Open Tool
Mathematics & Statistics

Z-Score Calculator

Calculate standard score Z = (X - mu) / sigma and percentile rank under standard normal curve.

Open Tool
Mathematics & Statistics

Probability Calculator

Calculate single-event, joint intersection P(A and B), union P(A or B), and complement probabilities.

Open Tool
Mathematics & Statistics

Permutation & Combination Calculator

Calculate permutations nPr (order matters) and combinations nCr (order does not matter).

Open Tool
Mathematics & Statistics

Binomial Probability Calculator

Calculate exact probability P(X = k), at least P(X >= k), and at most P(X <= k) for Binomial distributions.

Open Tool
Mathematics & Statistics

Dot Product, Cross Product & Vector Magnitude Solver

Solves 2D/3D vector addition, magnitude $|\vec{v}|$, dot product a⃗·b⃗, and cross product a⃗×b⃗.

Open Tool