Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Law of Sines and Cosines






Solving Triangles Without a Right Angle

Right triangle trigonometry solves triangles that contain a 90°90° angle. Most triangles do not. A triangle formed by three survey markers, three cities on a map, or three forces acting on an object will almost never include a right angle. These oblique triangles — triangles with no right angle — require different tools.

The Law of Sines and the Law of Cosines are those tools. Together, they provide a complete framework for solving any triangle given sufficient information: finding unknown sides from known angles and sides, finding unknown angles from known sides, computing areas, and handling the geometric ambiguities that arise when the given data does not determine a unique triangle. The Law of Cosines generalizes the Pythagorean theorem — reducing to it exactly when one angle is 90°90° — while the Law of Sines provides a proportional relationship between sides and the sines of their opposite angles. Which law to apply depends entirely on what is known: the configuration of given sides and angles determines the starting point, and the two laws often work in sequence to complete the solution.


Key Terms

Sine— the function at the core of both laws
Cosine— appears in the Law of Cosines correction term
Supplementary Angles— angles summing to 180°180°, central to the ambiguous case
Inverse Trigonometric Function— used to recover angles from computed sides

Formulas Used

Law of Sines— asin⁡A=bsin⁡B=csin⁡C\frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C}
Law of Cosines— c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos C
Law of Tangents— a−ba+b=tan⁡A−B2tan⁡A+B2\frac{a - b}{a + b} = \frac{\tan\frac{A - B}{2}}{\tan\frac{A + B}{2}}
Triangle Area - SAS— A=12absin⁡CA = \frac{1}{2}ab\sin C
Herons Formula— A=s(s−a)(s−b)(s−c)A = \sqrt{s(s-a)(s-b)(s-c)}

See All Trigonometry Definitions →


Triangle Notation

Notation

Triangle Notation

The labeling convention every triangle-solving statement assumes: case-paired letters, the side-angle teams they form, and two reserved letters the formulas lean on. The angle-sum constraint A+B+C=180°A + B + C = 180° rides along — knowing two angles always gives the third.
sin⁡\sin and cos⁡\cos come from the right triangle page, degrees and radians from angle measure; the general-solution machinery for recovered angles lives with solution sets.
A,B,CA, B, C · a,b,ca, b, c
capital A, B, C; lowercase a, b, c
Case carries the geometry: capitals name the vertices — and the angles at them — while each lowercase letter names the side opposite its capital. aa faces AA from across the triangle, and every capital does double duty as point and angle measure.
CasesThe convention retires the right-triangle labels — opp/adj/hyp give way to opposite-pairing — and the Greek dress code yields to Latin capitals inside triangle work.
Do not confuseAdjacency. aa is not a side touching AA — it is the one side that avoids AA entirely, running between BB and CC; reading "aa belongs to AA" as adjacency inverts the whole convention.
(a,A)(a, A)
the side-angle pair a, A
Pairs travel together: (a,A)(a, A), (b,B)(b, B), (c,C)(c, C) — one side and the angle directly across. The Law of Sines below is written entirely in these teams: asin⁡A=bsin⁡B=csin⁡C\frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C}.
CasesA complete pair is the price of admission — the strategies of When to Use the Law of Sines below are stated as "one complete pair plus one more piece"; the common ratio itself equals 2R2R, twice the circumradius.
Do not confuseA coordinate point. The parentheses group a team, not a location — (a,A)(a, A) mixes a length with an angle and plots nowhere.
ss · RR
little s, the semiperimeter; capital R, the circumradius
Two reserved letters of triangle-solving: s=a+b+c2s = \frac{a+b+c}{2}, half the perimeter, the workhorse of Heron's Formula below; and RR, the radius of the circle through all three vertices, surfacing in asin⁡A=2R\frac{a}{\sin A} = 2R.
CasesBoth are strong enough conventions to appear undefined in careless texts — a bare ss in a triangle formula means semiperimeter unless stated otherwise, and lowercase rr stays reserved for the inscribed circle.
Do not confuseArc length's ss. The same letter measures the arc in s=rθs = r\theta — an unrelated job; no circle in sight is the tell that Heron's ss is meant.
DownloadPNG2×PDF
Notation · Cheat sheet
Trigonometry Notation at a Glance
The marks from the notation cards across the trigonometry pages: how each is read and what it means. Every group links to the full card on its page.
Degrees and radians
θ,  α,  β\theta, \; \alpha, \; \beta
theta; alpha, beta
Greek letters for angles; α,β\alpha, \beta when there are two.
41°24′36′′41°24'36''
degrees, minutes, seconds
Base 60: 1°=60′1° = 60', 1′=60′′1' = 60''.
sin⁡2\sin 2 vs sin⁡2°\sin 2°
radians unless marked
A bare number is in radians.
Right triangle
opp,adj,hyp\text{opp}, \text{adj}, \text{hyp}
opposite, adjacent, hypotenuse
Opposite and adjacent depend on which angle you chose.
sin⁡,  cos⁡,  tan⁡\sin, \; \cos, \; \tan
sine, cosine, tangent
Function names: sin⁡θ\sin\theta is not s⋅i⋅n⋅θs \cdot i \cdot n \cdot \theta.
csc⁡,  sec⁡,  cot⁡\csc, \; \sec, \; \cot
cosecant, secant, cotangent
Reciprocals, crosswise: csc⁡=1sin⁡\csc = \frac{1}{\sin}, sec⁡=1cos⁡\sec = \frac{1}{\cos}.
Unit circle
(cos⁡θ,sin⁡θ)(\cos\theta, \sin\theta)
the point on the circle
Its coordinates are the cosine and sine.
I, II, III, IV\text{I, II, III, IV}
quadrants one to four
Counterclockwise from the upper right.
θ+2π\theta + 2\pi
theta plus a full turn
Same point, new label; also θ+360°\theta + 360°.
Trigonometric functions
sin⁡2θ\sin^2\theta
sine squared theta
Means (sin⁡θ)2(\sin\theta)^2: square the value, not the angle.
n∈Zn \in \mathbb{Z}
n an integer
The formula holds for every integer nn.
nπ,  π2+nπn\pi, \; \frac{\pi}{2} + n\pi
multiples of pi
Where sin⁡=0\sin = 0, and where cos⁡=0\cos = 0.
Graphs
y=sin⁡xy = \sin x
y equals sine x
On a graph the angle becomes the input xx.
A,  B,  C,  DA, \; B, \; C, \; D
the four parameters
In y=Asin⁡(Bx−C)+Dy = A\sin(Bx - C) + D: amplitude, frequency, shift, midline.
T=2π∣B∣T = \frac{2\pi}{|B|}
capital T, the period
The shortest shift that repeats the graph.
Inverse functions
sin⁡−1(x)\sin^{-1}(x)
inverse sine of x
The inverse function, not 1sin⁡x\frac{1}{\sin x}.
arcsin⁡,  arccos⁡\arcsin, \; \arccos
arcsine, arccosine
The same functions, with no clash with powers.
asin, atan2
names in code
Programming languages; atan2 takes (y,x)(y, x).
Trigonometric equations
π6+2nπ\frac{\pi}{6} + 2n\pi
a family of solutions
One answer for each integer nn.
(−1)narcsin⁡k(-1)^n \arcsin k
all solutions of sin x = k
Plus nπn\pi; the sign flips with nn, covering both branches.
±arccos⁡k\pm\arccos k
all solutions of cos x = k
Plus 2nπ2n\pi; both branches at once, since cosine is even.
Laws of sines and cosinesThis page
A,B,CA, B, C vs a,b,ca, b, c
angles; sides
Each lowercase side is opposite its capital angle.
(a,A)(a, A)
a side-angle pair
One side and the angle across from it.
s,  Rs, \; R
semiperimeter; circumradius
s=a+b+c2s = \frac{a + b + c}{2}; RR the radius of the circle through the vertices.
Same marks, different job
sin⁡2x\sin^2 x vs sin⁡−1x\sin^{-1} xA power of the value against the inverse function.
sin⁡2\sin 2Two radians, not two degrees.
AAA vertex angle in a triangle; the amplitude on a graph.
±\pmBoth branches of the solution, not a choice of one.
Trigonometry Notation at a Glance·/trigonometry/right-triangleLearn Math Class

The Law of Sines

Sine was defined in right triangles, but most triangles have no right angle.
Take a triangle with angles 30°30°, 45°45° and 105°105° and the side a=10a = 10 opposite the 30°30° angle. There is no hypotenuse to divide by.
Each side divided by the sine of its opposite angle gives the same number, 20.
sideopposite angleside ÷ sin(angle)
a = 10A = 30°10 ÷ 0.5 = 20
b ≈ 14.14B = 45°14.14 ÷ 0.7071 ≈ 20
c ≈ 19.32C = 105°19.32 ÷ 0.9659 ≈ 20
The longest side sits opposite the largest angle, and the shortest opposite the smallest, in exactly the same proportion.
A side and the sine of the angle opposite it grow together, in a fixed proportion.
The derivation proceeds by dropping an altitude from one vertex to the opposite side. In a triangle with vertices AA, BB, CC, drop an altitude hh from CC to side cc. This altitude can be expressed two ways:
The Law of Sines
h=bsin⁡Aandh=asin⁡Bh = b\sin A \quad \text{and} \quad h = a\sin B
Setting these equal: bsin⁡A=asin⁡Bb\sin A = a\sin B, which rearranges to asin⁡A=bsin⁡B\frac{a}{\sin A} = \frac{b}{\sin B}. Repeating with an altitude from a different vertex produces the full three-way equality.
The derivation works whether the triangle is acute or obtuse, though the obtuse case requires a slight adjustment (the altitude falls outside the triangle, and the supplementary angle identity sin⁡(180°−θ)=sin⁡θ\sin(180° - \theta) = \sin\theta is invoked).
The definition
The law of sines states that in any triangle each side divided by the sine of its opposite angle gives the same value: asin⁡A=bsin⁡B=csin⁡C\frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C}.
The Law of Sines states that in any triangle, the ratio of each side to the sine of its opposite angle is constant:
Law of Sines
asin⁡A=bsin⁡B=csin⁡C\frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C}
Learn more about this formula: Law of Sines →
Equivalently, the sines are proportional to their opposite sides:
The Law of Sines
sin⁡Aa=sin⁡Bb=sin⁡Cc\frac{\sin A}{a} = \frac{\sin B}{b} = \frac{\sin C}{c}
So in the triangle above, b=10sin⁡45°sin⁡30°≈14.14b = \frac{10 \sin 45°}{\sin 30°} \approx 14.14.
The constant 20 is not arbitrary: it has a geometric meaning of its own.
The common ratio asin⁡A\frac{a}{\sin A} has a geometric interpretation: it equals the diameter of the circumscribed circle (the circle passing through all three vertices). If RR is the circumradius, then asin⁡A=2R\frac{a}{\sin A} = 2R.
37.7°70.6°71.7°abcABC
Law of Sines: a/sin A = b/sin B = c/sin C

In this oblique triangle each side is paired with the angle opposite it, and the three ratios side over sine of opposite angle come out equal, which the tool’s stats bar reports beside the picture. The largest side faces the largest angle for exactly this reason. Drag any vertex and watch the three ratios move together on the triangle explorer.

The constant ratio is the diameter of the triangle’s circumscribed circle, which is why it is the same for all three pairs.
Two sides and an angle opposite one of them can fit two different triangles.
Because sin⁡θ=sin⁡(180°−θ)\sin\theta = \sin(180° - \theta), an angle found from its sine may be acute or obtuse. That case is treated in the ambiguous case (SSA).
The rest of the page covers when to use the law of sines, the ambiguous case, the law of cosines and when to use it, choosing between the two laws, triangle area, Heron's formula, applications, common pitfalls and a summary.

When to Use the Law of Sines

The Law of Sines requires at least one complete side-angle pair — a side and its opposite angle — to get started. Given one complete pair, the law can find any other side or angle if one additional piece of information is provided.

AAS (Angle-Angle-Side): Two angles and a non-included side are known. The third angle follows from A+B+C=180°A + B + C = 180°. Then the Law of Sines finds the remaining two sides.

Example: A=40°A = 40°, B=70°B = 70°, a=10a = 10. Then C=180°−40°−70°=70°C = 180° - 40° - 70° = 70°. From the Law of Sines:

When to Use the Law of Sines
10sin⁡40°=bsin⁡70°⇒b=10sin⁡70°sin⁡40°\frac{10}{\sin 40°} = \frac{b}{\sin 70°} \quad \Rightarrow \quad b = \frac{10\sin 70°}{\sin 40°}

ASA (Angle-Side-Angle): Two angles and the included side are known. The third angle is computed first, then the Law of Sines provides the remaining sides. The distinction from AAS is organizational — the method is identical once the third angle is found.

SSA (Side-Side-Angle): Two sides and an angle opposite one of them are known. This is the only configuration where the Law of Sines is the starting tool but the solution may not be unique — the ambiguous case (see below).

The Law of Sines cannot start a solution when no complete side-angle pair is available. In SAS and SSS configurations, the Law of Cosines must be used first.

The Ambiguous Case (SSA)

    When two sides and an angle opposite one of them are given — say aa, bb, and AA — the data may determine zero, one, or two distinct triangles. This is the ambiguous case, and it arises because the Law of Sines produces a sine value for the unknown angle, and sin⁡B=k\sin B = k (with 0<k<10 < k < 1) has two solutions in [0°,180°)[0°, 180°): one acute (B1B_1) and one obtuse (B2=180°−B1B_2 = 180° - B_1).

    The analysis depends on whether AA is acute or obtuse, and on the relative sizes of aa and bb.

    When AA is acute: Compute the height from vertex CC, the far end of side bb: h=bsin⁡Ah = b\sin A. This is the shortest distance from CC to the line containing side cc, the other side of angle AA.

  • If a<ha < h: the side aa is too short to reach the opposite side. No triangle exists.
  • If a=ha = h: the side aa just reaches, forming a right angle. Exactly one (right) triangle.
  • If h<a<bh < a < b: the side aa reaches the opposite side at two different positions. Two distinct triangles exist.
  • If a≥ba \geq b: only the acute solution for BB is geometrically valid (the obtuse candidate would make A+B>180°A + B > 180°). One triangle.

  • When AA is obtuse:

  • If a≤ba \leq b: no triangle (the side opposite the obtuse angle must be the longest).
  • If a>ba > b: exactly one triangle (the obtuse angle is at AA, so BB must be acute).

  • Pitfall: Keeping only the acute angle
    With a=7a = 7, b=10b = 10, A=35°A = 35°, the Law of Sines gives sin⁡B≈0.819\sin B \approx 0.819; stopping at B≈55.0°B \approx 55.0° loses a whole triangle. B≈125.0°B \approx 125.0° also works, since 35°+125.0°<180°35° + 125.0° < 180°.

    In practice, the safest approach is computational: use the Law of Sines to find sin⁡B\sin B, check whether the value is valid (≤1\leq 1), then check whether both the acute and obtuse solutions for BB produce a valid triangle (i.e., whether A+B<180°A + B < 180° in each case).

    The six geometric subcases — four for an acute AA and two for an obtuse AA — collect into the decision table below.
The same SSA data can give two triangles, one, or nonehbaAh < a < btwo triangleshbaAa = hexactly onehbAa < hnone — it cannot reach
The same b and A, three lengths of a

Side b and angle A are identical in all three panels; only the swung side a changes. Where its arc meets the base is where the third vertex can go — twice when a is longer than the height but shorter than b, once when it exactly equals the height, and nowhere when it falls short.

Computing sin⁡B\sin B with the Law of Sines and checking both candidate angles settles which panel a given problem is in.
DownloadPNG2×PDF
Layout
Type of angle ACondition (with h = b·sin A)Number of triangles
A acutea < h0 (a too short to reach)
A acutea = h1 (right triangle)
A acuteh < a < b2 (both acute and obtuse B valid)
A acutea ≥ b1 (only acute B valid)
A obtusea ≤ b0 (side opposite obtuse must be longest)
A obtusea > b1
The Ambiguous Case (SSA)Learn Math Class

The Law of Cosines

The Law of Cosines relates the three sides of a triangle to the cosine of one of its angles:

Law of Cosines
c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos C
Learn more about this formula: Law of Cosines →


Equivalently:

The Law of Cosines
a2=b2+c2−2bccos⁡Aa^2 = b^2 + c^2 - 2bc\cos A
The Law of Cosines
b2=a2+c2−2accos⁡Bb^2 = a^2 + c^2 - 2ac\cos B

Fact: Euclid had this law without cosines
Book II of Euclid's Elements, about 300 BC, states it as Propositions 12 and 13, for obtuse and acute angles separately. In place of −2abcos⁡C-2ab\cos C it adds or subtracts twice a rectangle: one side times the projection of the other side onto it.

Each form involves one angle and all three sides. The formula generalizes the Pythagorean theorem: when C=90°C = 90°, cos⁡C=0\cos C = 0, and the equation reduces to c2=a2+b2c^2 = a^2 + b^2. The correction term −2abcos⁡C-2ab\cos C accounts for the deviation from a right angle. When C<90°C < 90° (acute), cos⁡C>0\cos C > 0, and c2<a2+b2c^2 < a^2 + b^2. When C>90°C > 90° (obtuse), cos⁡C<0\cos C < 0, and c2>a2+b2c^2 > a^2 + b^2.

The derivation uses coordinate geometry. Place the triangle with vertex CC at the origin, side aa along the positive xx-axis. Then B=(a,0)B = (a, 0) and A=(bcos⁡C,bsin⁡C)A = (b\cos C, b\sin C). The distance from AA to BB is:

The Law of Cosines
c=(bcos⁡C−a)2+(bsin⁡C)2c = \sqrt{(b\cos C - a)^2 + (b\sin C)^2}

Squaring and expanding:

The Law of Cosines
c2=b2cos⁡2C−2abcos⁡C+a2+b2sin⁡2C=a2+b2(cos⁡2C+sin⁡2C)−2abcos⁡Cc^2 = b^2\cos^2 C - 2ab\cos C + a^2 + b^2\sin^2 C = a^2 + b^2(\cos^2 C + \sin^2 C) - 2ab\cos C

Since cos⁡2C+sin⁡2C=1\cos^2 C + \sin^2 C = 1 (the Pythagorean identity):

The Law of Cosines
c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos C
The coordinate derivation above one step at a time; use Next and Back to move through it.
DownloadPNG2×PDF
Derivec2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos C
1 / 5
Place the triangle on axes
B=(a,0)B = (a, 0) and A=(bcos⁡C,bsin⁡C)A = (b\cos C, b\sin C)
Vertex CC at the origin, side aa along the positive xx-axis.
Deriving the law of cosinesLearn Math Class
The Pythagorean identity does the decisive work: it merges b2cos⁡2Cb^2\cos^2 C and b2sin⁡2Cb^2\sin^2 C into a single b2b^2.
68.2°36.9°74.9°abcABC
Law of Cosines: c² = a² + b² − 2ab cos C

The side c is computed from the two sides that enclose the angle C and from cos C; when C is a right angle the correction term vanishes and the statement is the Pythagorean theorem. Make C acute and c shrinks below the Pythagorean value, make it obtuse and c grows past it. Open the angle C and watch the correction term change sign on the triangle explorer.

The law is thus the Pythagorean theorem with a correction for the angle not being right.

When to Use the Law of Cosines

The Law of Cosines is the starting tool when no complete side-angle pair is available — that is, when the Law of Sines cannot begin.

SAS (Side-Angle-Side): Two sides and the included angle are known. The Law of Cosines directly computes the third side. Once all three sides and one angle are known, the remaining angles can be found using the Law of Sines (or the Law of Cosines again).

Example: a=8a = 8, b=6b = 6, C=50°C = 50°. Find cc:

When to Use the Law of Cosines
c2=82+62−2(8)(6)cos⁡50°=64+36−96cos⁡50°≈100−61.7=38.3c^2 = 8^2 + 6^2 - 2(8)(6)\cos 50° = 64 + 36 - 96\cos 50° \approx 100 - 61.7 = 38.3

When to Use the Law of Cosines
c≈6.19c \approx 6.19

Pitfall: Subtracting before multiplying by cos C
Working 64+36−96cos⁡50°64 + 36 - 96\cos 50° as (100−96)cos⁡50°(100 - 96)\cos 50° gives c2≈2.57c^2 \approx 2.57 and c≈1.60c \approx 1.60. Multiplying first gives 96cos⁡50°≈61.796\cos 50° \approx 61.7, so c2≈38.3c^2 \approx 38.3 and c≈6.19c \approx 6.19.

Here c2c^2 is the value of the whole right-hand side, and the third side is its square root. The angle between the two known sides is acute, so c2c^2 comes out below 82+62=1008^2 + 6^2 = 100 and the third side is shorter than it would be if the two sides met at a right angle. With an obtuse angle the cosine is negative, and c2c^2 lands above that value instead.

SSS (Side-Side-Side): All three sides are known, and the angles must be found. Rearrange the Law of Cosines to solve for an angle:

When to Use the Law of Cosines
cos⁡C=a2+b2−c22ab\cos C = \frac{a^2 + b^2 - c^2}{2ab}

Compute cos⁡C\cos C, then apply arccosine to find CC. Repeat for another angle, or use A+B+C=180°A + B + C = 180° for the third.

Pitfall: Finding an obtuse angle with arcsine
With a=10a = 10, b=4b = 4, C=40°C = 40°, so c≈7.40c \approx 7.40, the Law of Sines gives sin⁡A≈0.869\sin A \approx 0.869 and arcsine returns A≈60.3°A \approx 60.3°. The angle opposite the longest side is obtuse: cos⁡A≈−0.495\cos A \approx -0.495, so A≈119.7°A \approx 119.7°.

A practical strategy for SSS: find the largest angle first (the one opposite the longest side). If its cosine is negative, the angle is obtuse, and the triangle contains an obtuse angle. If positive, all angles are acute. Finding the largest angle first resolves this question immediately, and the remaining angles (which must be acute) can be found more safely with the Law of Sines — since arcsine of a positive value always gives an acute angle, there is no ambiguity.
The Law of Cosines opens any problem lacking a side-angle pair, and its sign exposes obtuse angles that arcsine misses.

Choosing Between the Two Laws

The decision framework is straightforward and depends entirely on what information is available:

Start with the Law of Sines when:
• AAS — two angles and a non-included side
• ASA — two angles and the included side (find the third angle first)
• SSA — two sides and an angle opposite one of them (watch for the ambiguous case)

In each of these, at least one complete side-angle pair (a,A)(a, A) is either given or immediately obtainable.

Start with the Law of Cosines when:
• SAS — two sides and the included angle
• SSS — all three sides, no angles

In these configurations, no complete pair exists until after the first computation.

In combination: Many problems require both laws. A typical SAS problem uses the Law of Cosines to find the third side, then switches to the Law of Sines for the remaining angles (which is faster than applying the Law of Cosines twice more). A typical SSS problem uses the Law of Cosines for the first (largest) angle, then switches to the Law of Sines for efficiency.

Configuration not possible:
• AAA — three angles, no sides. This determines the shape of the triangle (similarity class) but not its size. There is no unique solution.
• Only one or two pieces of information — insufficient to determine any triangle.

Any other combination of three pieces of information (out of three sides and three angles) falls into one of the cases above and is handled by the appropriate law or combination, although SSA data can give no triangle and SSS data must satisfy the triangle inequality.
DownloadPNG2×PDF
What is given decides
Which law to start with depends entirely on what information is available, and in particular on whether a complete side-angle pair (a,A)(a, A) is given or immediately obtainable.
Solving a triangle
three of the six parts given
split by whether a complete side-angle pair is available
S
Case 1
AAS, ASA, SSA
Start with the Law of Sines
a complete pair is given or immediately obtainable; watch for the ambiguous case with SSA
C
Case 2
SAS, SSS
Start with the Law of Cosines
no complete pair exists until after the first computation
✗
Case 3
AAA, or fewer than three parts
Not solvable
AAA fixes the shape but not the size; fewer pieces cannot determine a triangle
In combination
Many problems use both: a typical SAS problem finds the third side with the Law of Cosines, then switches to the Law of Sines for the remaining angles.
Which law to start with·/trigonometry/sines-cosines-lawLearn Math Class

Area of a Triangle Using Trigonometry

The standard area formula A=12×base×heightA = \frac{1}{2} \times \text{base} \times \text{height} requires knowing the height, which is often not directly given. Trigonometry provides an alternative that uses two sides and the included angle:

Triangle Area - SAS
A=12absin⁡CA = \frac{1}{2}ab\sin C
Learn more about this formula: Triangle Area - SAS →


where aa and bb are two sides and CC is the angle between them.

The derivation is direct. Drop an altitude hh from vertex AA to side aa. Then h=bsin⁡Ch = b\sin C (from the right triangle formed). Using side aa as the base:

Area of a Triangle Using Trigonometry
Area=12×a×h=12×a×bsin⁡C\text{Area} = \frac{1}{2} \times a \times h = \frac{1}{2} \times a \times b\sin C

This holds for all triangles — acute, right, or obtuse. For a right triangle with C=90°C = 90°, sin⁡C=1\sin C = 1, and the formula reduces to 12ab\frac{1}{2}ab, consistent with the standard formula (where aa and bb are the legs).

Pitfall: Using an angle that is not between the sides
For the triangle a=8a = 8, b=6b = 6, C=50°C = 50°, taking 12(8)(6)sin⁡A\frac{1}{2}(8)(6)\sin A with A≈82.0°A \approx 82.0° gives about 23.823.8. The angle between the sides 8 and 6 is CC, so the area is 12(8)(6)sin⁡50°≈18.4\frac{1}{2}(8)(6)\sin 50° \approx 18.4.

The formula requires exactly the SAS configuration: two sides and the included angle. If other configurations are given, the missing information must be found first using the Law of Sines or Law of Cosines.

Note that sin⁡C>0\sin C > 0 for all valid triangle angles (0°<C<180°0° < C < 180°), so the area is always positive. The area is maximized when C=90°C = 90° (for fixed side lengths), since sin⁡C\sin C achieves its maximum at 90°90°.
Half a b sin C is the ordinary area formula with b sin C as the heighth = b sin CCbaarea = ½ · a · h = ½ ab sin C
The height, written with a sine

Drop the altitude onto side a and it is the side opposite angle C in a small right triangle whose hypotenuse is b — so its length is b sin C. Half the base times that height is the ordinary area formula with nothing new in it.

Because sin⁡C\sin C peaks at 90°90°, two fixed sides enclose the most area when they meet at a right angle.

Heron's Formula

When all three sides of a triangle are known but no angle has been computed, the area can be found directly using Heron's formula — without first finding any angle.

Compute the semi-perimeter:

Heron's Formula
s=a+b+c2s = \frac{a + b + c}{2}

Then the area is:

Herons Formula
A=s(s−a)(s−b)(s−c)A = \sqrt{s(s-a)(s-b)(s-c)}
Learn more about this formula: Herons Formula →


Example
A triangle with sides a=5a = 5, b=7b = 7, c=9c = 9.
s=5+7+92=212=10.5s = \frac{5 + 7 + 9}{2} = \frac{21}{2} = 10.5
A=10.5×5.5×3.5×1.5=303.1875A = \sqrt{10.5 \times 5.5 \times 3.5 \times 1.5} = \sqrt{303.1875}
≈17.41\approx 17.41

Heron's formula can be derived from the trigonometric area formula 12absin⁡C\frac{1}{2}ab\sin C combined with the Law of Cosines. Express cos⁡C\cos C in terms of the sides, use sin⁡2C=1−cos⁡2C\sin^2 C = 1 - \cos^2 C to find sin⁡C\sin C, substitute into the area formula, and simplify. The algebra is substantial but the result is elegant.

Pitfall: Using the perimeter instead of the semi-perimeter
For sides 5, 7, 9, taking s=21s = 21 gives 21⋅16⋅14⋅12≈237.6\sqrt{21 \cdot 16 \cdot 14 \cdot 12} \approx 237.6, far more than the triangle can hold. With s=10.5s = 10.5 the area is 10.5⋅5.5⋅3.5⋅1.5≈17.41\sqrt{10.5 \cdot 5.5 \cdot 3.5 \cdot 1.5} \approx 17.41.

The formula has the advantage of requiring only side lengths — no angles, no trigonometric function evaluations. It is useful when the sides are given numerically and the area is the only quantity sought. Its disadvantage is that it provides no angle information; if angles are also needed, the Law of Cosines is a more efficient starting point.

A validity check: s−as - a, s−bs - b, and s−cs - c must all be positive. If any of them is zero or negative, the three given lengths do not form a valid triangle (they violate the triangle inequality).

The two area formulas — the SAS form and Heron's formula — sit side by side on what input they require and where each is the right choice.
DownloadPNG2×PDF
Layout
FormulaRequired inputBest forLimitations
A = ½ ab sin Ctwo sides + included angleSAS configuration; max at C = 90°requires a known angle
Heron's: √(s(s−a)(s−b)(s−c))three sides only (s = (a+b+c)/2)SSS when only area is sought, no angle computation neededyields no angle information
Heron's FormulaLearn Math Class
Taking the formula apart: the area on the left, the semi-perimeter ss, and the three differences under the root.
DownloadPNG2×PDF
the formula, part by part

Heron's formula

the area of a triangle from its three sides alone, with no angle needed
A=√s(s−a)(s−b)(s−c)
1AreaA
No angle and no trigonometric function is needed, but no angle comes out either. If an angle is also wanted, the Law of Cosines is the better start. Example: sides 5, 7, 9 give A = √303.1875 ≈ 17.41.
2Semi-perimeters = (a + b + c)/2
Add the three sides and halve. Using the full perimeter is the usual slip, and it gives an area far too large. Example: s = (5 + 7 + 9)/2 = 10.5; with s = 21 the result would be about 237.6.
3Three gapss − a, s − b, s − c
Multiply s by the three gaps and take the square root. A gap that is zero or negative means the lengths break the triangle inequality and form no triangle. Example: 10.5 − 5 = 5.5, 10.5 − 7 = 3.5, 10.5 − 9 = 1.5, and 10.5 × 5.5 × 3.5 × 1.5 = 303.1875.
Heron's formula, part by part·/trigonometry/sines-cosines-lawLearn Math Class
The part most often misread is ss: it is half the perimeter, not the perimeter. When an angle is also needed, the Law of Cosines is the better starting point.

Applications

The Law of Sines and Law of Cosines apply wherever distances or angles must be determined indirectly — situations where direct measurement is impossible or impractical.

Surveying and land measurement. A surveyor measures two distances and the angle between them (SAS) to determine the third distance — for example, the width of a river or the length of a property boundary obscured by terrain. Alternatively, from two known positions a measured distance apart, a surveyor observes the angles to a remote point (ASA) and computes the distance to it.

Navigation. A ship or aircraft determines its position by measuring bearings (angles) to two known landmarks. The triangle formed by the vessel and the two landmarks is solved using the Law of Sines (typically an AAS or ASA configuration), yielding the distances from the vessel to each landmark.

Fact: Everest was measured from 100 miles away
In 1849–50 the Great Trigonometrical Survey of India sighted Peak XV from six stations on the plains of Bihar, more than 100 miles off, and its triangles gave 29,002 feet, announced in 1856. The modern height, 8,848.86 m or about 29,032 feet, is only 30 feet more.

Physics and engineering. Forces acting at angles are resolved using the Law of Cosines. Two forces of known magnitudes acting at a known angle produce a resultant whose magnitude is computed by treating the force vectors as sides of a triangle — the Law of Cosines gives the resultant magnitude, and the Law of Sines gives the angle the resultant makes with each component force.

Indirect measurement. The height of a mountain, the distance to a star (via parallax), or the span of a bridge can be determined by measuring accessible distances and angles and solving the resulting triangle. Each problem reduces to identifying the triangle, classifying the known information (AAS, ASA, SAS, SSA, SSS), and applying the appropriate law.

In every application, the first step is geometric: identify the triangle, label the known and unknown elements, and determine which law applies. The computation follows mechanically from there.
DownloadPNG2×PDF
Surveying and land measurement
  • Two distances and the angle between them give the third distance.SAS: the width of a river, a boundary obscured by terrain
  • Angles to a remote point from two known positions give the distance to it.ASA
Navigation
  • A ship or aircraft measures bearings to two known landmarks.
  • The Law of Sines yields the distance from the vessel to each landmark.typically AAS or ASA
Physics and engineering
  • Two forces of known magnitudes act at a known angle.
  • The Law of Cosines gives the magnitude of the resultant.
  • The Law of Sines gives the angle it makes with each force.
Indirect measurement
  • The height of a mountain, the distance to a star (via parallax), the span of a bridge.
  • Measure accessible distances and angles, then solve the resulting triangle.
The two lawsdistances and angles found indirectly
The first step is geometricIdentify the triangle, label the known and unknown elements, and determine which law applies. The computation follows from there.
ApplicationsLearn Math Class

Formula Summary

This summary collects the formulas of the page in three families: the Law of Sines, the Law of Cosines and the area of a triangle. Each family says which given information it needs, each formula carries a short note on what it gives, with a link to the section that explains it, and the buttons above the cards show one family at a time.

The Law of Sines appears in its two equivalent forms. The Law of Cosines appears for each of the three sides and once more solved for an angle. The area family gives the formula with two sides and the angle between them, and the semi-perimeter beside Heron's formula, which needs only the three sides.
DownloadPNG2×PDF
Law of Sines2 formulas
Needs one complete pair, a side and its opposite angle: the cases AAS, ASA and SSA.
asin⁡A=bsin⁡B=csin⁡C\displaystyle \frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C}
Each side over the sine of its opposite angle gives the same number, the diameter 2R2R of the circumscribed circle, as the law of sines shows.
sin⁡Aa=sin⁡Bb=sin⁡Cc\displaystyle \frac{\sin A}{a} = \frac{\sin B}{b} = \frac{\sin C}{c}
The same law turned over: the sines are proportional to their opposite sides; see the law of sines.
Law of Cosines4 formulas
Starts when no side-angle pair is complete: SAS for the third side, SSS for an angle.
c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos C
The third side from two sides and the angle between them; at C=90°C = 90° it becomes the Pythagorean theorem, as the law of cosines notes.
a2=b2+c2−2bccos⁡Aa^2 = b^2 + c^2 - 2bc\cos A
The same law for side aa and its opposite angle, from the law of cosines.
b2=a2+c2−2accos⁡Bb^2 = a^2 + c^2 - 2ac\cos B
The same law for side bb; each form uses one angle and all three sides (the law of cosines).
cos⁡C=a2+b2−c22ab\displaystyle \cos C = \frac{a^2 + b^2 - c^2}{2ab}
The law solved for an angle when all three sides are known; a negative cosine means an obtuse angle, as when to use the law of cosines explains.
Area3 formulas
Two ways to the area of a triangle without its height.
A=12absin⁡C\displaystyle A = \frac{1}{2}ab\sin C
Two sides and the angle between them, never another angle; see area of a triangle using trigonometry.
s=a+b+c2\displaystyle s = \frac{a + b + c}{2}
The semi-perimeter, half the perimeter, used by Heron's formula; see Heron's formula.
A=s(s−a)(s−b)(s−c)A = \sqrt{s(s-a)(s-b)(s-c)}
The area from the three sides alone; if any factor under the root is not positive, the sides do not form a triangle (Heron's formula).
Laws of sines and cosines·All trigonometry formulasLearn Math Class
The choice between the two laws depends only on what is given. A side with its opposite angle opens the Law of Sines; two sides with the angle between them, or three sides, call for the Law of Cosines. Once enough parts are known, either area formula finishes the job.

Common Pitfalls

Five mistakes come up again and again when solving oblique triangles. Each is marked where it happens in the sections above and worked through here in full, with the wrong and the right working side by side.
DownloadPNG2×PDF
1Keeping only the acute angle
In the SSA case the Law of Sines gives a value of sin⁡B\sin B, and the arcsine of that value is taken as the only answer. Sine has the same value at BB and at 180°−B180° - B, so a second triangle can be lost.
Start
a=7a = 7, b=10b = 10, A=35°A = 35°.
Wrong turn
Error here
Then sin⁡B=10sin⁡35°7≈0.819\sin B = \frac{10\sin 35°}{7} \approx 0.819, so B≈55.0°B \approx 55.0°, C≈90.0°C \approx 90.0°, and one triangle is reported.
Right path
The second candidate is B≈180°−55.0°=125.0°B \approx 180° - 55.0° = 125.0°. Since 35°+125.0°=160.0°<180°35° + 125.0° = 160.0° < 180°, it gives a second triangle with C≈20.0°C \approx 20.0° and c≈4.18c \approx 4.18; the first triangle has c≈12.20c \approx 12.20.
Why it happensArcsine returns only angles up to 90°90°, and its single answer looks complete.
How to checkCompare aa with the height h=bsin⁡A=10sin⁡35°≈5.74h = b\sin A = 10\sin 35° \approx 5.74. Here 5.74<7<105.74 < 7 < 10, so h<a<bh < a < b, which is the two-triangle case in the table above.
2Subtracting before multiplying by cos C
In the Law of Cosines the term 2abcos⁡C2ab\cos C is a single product. Worked left to right, the expression subtracts 2ab2ab from a2+b2a^2 + b^2 first and then multiplies the difference by cos⁡C\cos C.
Start
a=8a = 8, b=6b = 6, C=50°C = 50°.
Wrong turn
Error here
c2=(64+36−96)cos⁡50°=4cos⁡50°≈2.57c^2 = (64 + 36 - 96)\cos 50° = 4\cos 50° \approx 2.57, so c≈1.60c \approx 1.60.
Right path
96cos⁡50°≈61.7196\cos 50° \approx 61.71, so c2≈100−61.71=38.29c^2 \approx 100 - 61.71 = 38.29 and c≈6.19c \approx 6.19.
Why it happensThe expression is typed into a calculator in the order it is written, and the product 2abcos⁡C2ab\cos C is split by the subtraction.
How to checkAny two sides of a triangle add up to more than the third. With c≈1.60c \approx 1.60, 1.60+6=7.60<81.60 + 6 = 7.60 < 8, so no triangle has these sides.
3Finding an obtuse angle with arcsine
After the third side is found, the Law of Sines is used for the angle opposite the longest side. Arcsine only returns angles up to 90°90°, so an obtuse angle comes out as its acute supplement.
Start
a=10a = 10, b=4b = 4, C=40°C = 40°.
Wrong turn
Error here
The Law of Cosines gives c2=116−80cos⁡40°≈54.72c^2 = 116 - 80\cos 40° \approx 54.72, so c≈7.40c \approx 7.40. Then sin⁡A=10sin⁡40°7.40≈0.869\sin A = \frac{10\sin 40°}{7.40} \approx 0.869, so A≈60.3°A \approx 60.3°, which leaves B≈79.7°B \approx 79.7°.
Right path
cos⁡A=b2+c2−a22bc=16+54.72−1002(4)(7.40)≈−0.495\cos A = \frac{b^2 + c^2 - a^2}{2bc} = \frac{16 + 54.72 - 100}{2(4)(7.40)} \approx -0.495, so A≈119.7°A \approx 119.7° and B≈20.3°B \approx 20.3°.
Why it happensThe Law of Sines is quicker than the Law of Cosines, and the acute value it returns raises no alarm.
How to checkThe largest angle faces the longest side. With A≈60.3°A \approx 60.3° and B≈79.7°B \approx 79.7°, the shortest side b=4b = 4 would face the largest angle, which is impossible.
4Using an angle that is not between the sides
The area formula 12absin⁡C\frac{1}{2}ab\sin C needs the angle formed by the two sides in it. Another angle of the triangle is used instead.
Wrong turn
Error here
In the triangle with a=8a = 8, b=6b = 6, C=50°C = 50°, the angle A≈82.0°A \approx 82.0° is used: 12(8)(6)sin⁡82.0°≈23.8\frac{1}{2}(8)(6)\sin 82.0° \approx 23.8.
Right path
The sides aa and bb meet at CC, so the area is 12(8)(6)sin⁡50°≈24×0.766≈18.4\frac{1}{2}(8)(6)\sin 50° \approx 24 \times 0.766 \approx 18.4.
Why it happensThe formula is remembered as "two sides and an angle", without the word included.
How to checkThe area does not depend on which pair of sides is used. With c≈6.19c \approx 6.19 and B≈48.0°B \approx 48.0°, the sides aa and cc meet at BB, and 12(8)(6.19)sin⁡48.0°≈18.4\frac{1}{2}(8)(6.19)\sin 48.0° \approx 18.4 as well.
5Using the perimeter instead of the semi-perimeter
Heron's formula uses s=a+b+c2s = \frac{a + b + c}{2}, half the perimeter. The halving is skipped and the full perimeter is used.
Wrong turn
Error here
For sides 5, 7, 9, s=21s = 21 gives 21⋅16⋅14⋅12=56448≈237.6\sqrt{21 \cdot 16 \cdot 14 \cdot 12} = \sqrt{56448} \approx 237.6.
Right path
s=10.5s = 10.5, so the area is 10.5⋅5.5⋅3.5⋅1.5=303.1875≈17.41\sqrt{10.5 \cdot 5.5 \cdot 3.5 \cdot 1.5} = \sqrt{303.1875} \approx 17.41.
Why it happensThe letter ss looks as if it stands for the sum of the sides, and the halving is easy to drop when the formula is written from memory.
How to checkThe area is at most half the product of any two sides, since sin⁡C≤1\sin C \leq 1. For the sides 7 and 9 that bound is 12(7)(9)=31.5\frac{1}{2}(7)(9) = 31.5, so 237.6237.6 is impossible.
Common pitfalls with the laws of sines and cosines·/trigonometry/sines-cosines-lawLearn Math Class
Each slip ignores a fact about triangles. The ambiguous case can give two triangles, the Law of Cosines multiplies 2ab2ab by cos⁡C\cos C before subtracting, arcsine never returns an obtuse angle, the area formula uses the angle between the two sides, and Heron's formula uses the semi-perimeter. The triangle inequality, the rule that the largest angle faces the longest side, and simple bounds on the area catch each slip.

Summary: Configuration to Solving Strategy

Solving an oblique triangle reduces to a single decision: identify the configuration of given information and apply the appropriate law (or sequence of laws). The table below maps every solvable three-piece configuration — AAS, ASA, SSA, SAS, SSS — to the law that opens the problem, the law that finishes it, and the number of triangles the data determines. The SSA row links to the ambiguous-case detail covered above.
DownloadPNG2×PDF
Layout
ConfigurationWhat is givenStart withThen useNumber of solutions
AAStwo angles and a non-included sideA + B + C = 180° to get the third angleLaw of Sines for remaining sides1 (unique)
ASAtwo angles and the included sideA + B + C = 180° to get the third angleLaw of Sines for remaining sides1 (unique)
SSAtwo sides and an angle opposite one of themLaw of Sines for the unknown sinecheck both supplementary angle solutions0, 1, or 2 (ambiguous case)
SAStwo sides and the included angleLaw of Cosines for the third sideLaw of Sines for remaining angles1 (unique)
SSSall three sidesLaw of Cosines for the largest angleLaw of Sines for remaining angles1 if triangle inequality holds; 0 otherwise
Summary: Configuration to Solving StrategyLearn Math Class

Skills You Should Learn

Each skill opens its step-by-step method page. Skills marked "On this page" are taught above.
Taught on this page
More trigonometry methods

Law of Sines and Law of Cosines FAQ

What does the lowercase and uppercase letter pairing mean in triangle notation?

+
Lowercase a is the side opposite uppercase A, meaning the one side that does not touch that vertex at all. It runs between the other two vertices. Reading the pairing as adjacency inverts the entire convention and makes both laws produce wrong answers, so the opposite relationship is worth checking before substituting.Read more →

How is the Law of Cosines related to the Pythagorean theorem?

+
It is the same statement with a correction term. When the angle between the two known sides is 90 degrees its cosine is zero, the correction vanishes, and what remains is exactly the Pythagorean theorem. For any other angle the term measures how far the triangle departs from being right-angled.Read more →

What does the common ratio in the Law of Sines equal?

+
The diameter of the triangle's circumscribed circle: asin⁡A=bsin⁡B=csin⁡C=2R\frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C} = 2R, where RR is the radius of the circle through all three vertices. That is why the ratio comes out the same for all three side-angle pairs, and it gives the circumradius directly from any one side and its opposite angle.Read more →

Can the Law of Sines find an obtuse angle?

+
Not on its own, because arcsine returns angles only up to 90°90° and reports an obtuse angle as its acute supplement. With a=10a = 10, b=4b = 4, C=40°C = 40°, the third side is c≈7.40c \approx 7.40; the Law of Sines gives sin⁡A≈0.869\sin A \approx 0.869 and arcsine says A≈60.3°A \approx 60.3°, but the Law of Cosines gives cos⁡A≈−0.495\cos A \approx -0.495, so A≈119.7°A \approx 119.7°. Finding the largest angle first with the Law of Cosines avoids the trap.Read more →

Why can't a triangle be solved from its three angles?

+
Because three angles fix the shape but not the size. Every triangle with angles 40°40°, 60°60° and 80°80° is a scaled copy of every other, so no side length follows from them. The third angle also adds nothing, since A+B+C=180°A + B + C = 180° already decides it from the other two, so AAA is really only two pieces of information.Read more →

How was the height of Mount Everest first measured?

+
By solving triangles from far away. In 1849–50 the Great Trigonometrical Survey of India sighted Peak XV from six stations on the plains of Bihar, more than 100 miles off, and its triangles gave 29,002 feet, announced in 1856. The modern height, 8,848.86 m or about 29,032 feet, is only 30 feet more.Read more →

Which angle between two fixed sides gives the largest triangle area?

+
A right angle. With sides aa and bb fixed, the area 12absin⁡C\frac{1}{2}ab\sin C depends only on sin⁡C\sin C, which reaches its maximum of 11 at C=90°C = 90°. The largest area is then 12ab\frac{1}{2}ab, the right triangle with aa and bb as legs. Opening the angle wider or closing it lowers the height, and the area with it.Read more →

How does Heron's formula show that three lengths cannot form a triangle?

+
One of the factors under the root stops being positive. With s=a+b+c2s = \frac{a + b + c}{2}, the factor s−cs - c equals a+b−c2\frac{a + b - c}{2}, so it is positive exactly when a+b>ca + b > c, the triangle inequality. For lengths 2, 3 and 6, s=5.5s = 5.5 and s−6=−0.5s - 6 = -0.5, so no triangle exists. A factor of exactly zero means the three points lie on one line.Read more →