Trigonometry Calculator
All six trig functions of an angle, or the angle from a ratio, with exact values, quadrant and steps.
Solve a triangle right here from any three known sides or angles, or open one of six free tools that show their working: sin, cos and tan of any angle, the unit circle chart, right triangles, Pythagorean triples, any triangle, and degrees, minutes and seconds. The table further down matches what you know to the right one.
Solved triangle
a = 5, b = 6, c = 7; A = 44.4153086°, B = 57.12165044°, C = 78.46304097°
Scalene acute triangle
The triangle has sides 5, 6 and 7 and angles 44.4153086°, 57.12165044° and 78.46304097°. It is scalene and acute, with area 14.69693846 and perimeter 18.
Angles are in degrees. Values are rounded to 10 significant digits.
| Part | Value | Source |
|---|---|---|
| Side a | 5 | Given |
| Side b | 6 | Given |
| Side c | 7 | Given |
| Angle A | 44.4153086° | Calculated |
| Angle B | 57.12165044° | Calculated |
| Angle C | 78.46304097° | Calculated |
Known: SSS
Given a = 5, b = 6, c = 7.
Law of cosines for angle A
Law of cosines for angle B
Angle sum for C
The angles of a triangle add up to 180°.
Area with Heron’s formula
The semiperimeter is s = (a + b + c)/2 = 9.
Check with ½ab sin C
The full triangle calculator adds the formulas, worked examples and a guide to every case.
All six trig functions of an angle, or the angle from a ratio, with exact values, quadrant and steps.
Unit circle chart in degrees and radians with exact (cos θ, sin θ), tan, a point finder and practice.
Missing side, angles and area of a right triangle, with steps, triples and feet-and-inches input.
Pythagorean triples listed to 1,000, a checker with working, Euclid’s formula and triples for any side.
Solve any triangle from SSS, SAS, ASA, AAS or SSA, with law of sines and cosines steps and the ambiguous case.
DMS to decimal degrees and back for latitude and longitude, with N/S/E/W, DDM, radians and every step.
Start from what you already know. Each example opens its calculator with the values filled in and the answer worked out.
| What you know | Example (opens solved) | Calculator |
|---|---|---|
| An angle, and you want sin, cos, tan, csc, sec or cot | sin 30° = 1/2 | Sin cos tan calculator |
| An angle, and you want its point (cos θ, sin θ) on the unit circle | 150° is at (−√3/2, 1/2) | Unit circle |
| The whole unit circle chart in degrees and radians | All 16 special angles | Unit circle |
| Two sides of a right triangle | Legs 3 and 4, hypotenuse 5 | Right triangle calculator |
| One side and one acute angle of a right triangle | Hypotenuse 10, angle 35° | Right triangle calculator |
| Three sides (SSS) | 5, 6 and 7 | Triangle calculator |
| Two sides and the angle between them (SAS) | 8, 11 and 37° | Triangle calculator |
| Two angles and a side (ASA or AAS) | 50°, 65° and 12 | Triangle calculator |
| Two sides and an angle not between them (SSA) | 7, 10 and 40°: two triangles | Triangle calculator |
| Three sides, and you want the area or a height | 13, 14 and 15: area 84, height to side 14 is 12 | Triangle calculator |
| An isosceles or equilateral triangle | 5, 5 and 6: base angles 53.13°, area 12 | Triangle calculator |
| A 45-45-90 triangle | Legs 1 and 1: hypotenuse √2 ≈ 1.414 | Right triangle calculator |
| A 30-60-90 triangle | Hypotenuse 2, angle 30°: legs 1 and √3 ≈ 1.732 | Right triangle calculator |
| Three whole numbers, and you want to know if they form a right triangle | 9, 12 and 15: yes, 3 × (3, 4, 5) | Pythagorean triples calculator |
| A list of right triangles with whole-number sides | All 52 triples up to 100 | Pythagorean triples calculator |
| A latitude, longitude or other angle in decimal degrees, radians or DMS | 40.7128° N = 40° 42′ 46.08″ N | DMS to decimal degrees converter |
| Polar coordinates (r, θ), and you want rectangular (x, y), or the reverse | (2, 60°) = (1, √3) | Polar to rectangular calculator |
Both triangle calculators give the area and perimeter of the triangle they solve, and the triangle calculator adds the three heights, inradius and circumradius. Triangle angles are entered in degrees; the sin cos tan calculator also accepts radians and gradians.
In a right triangle, sine, cosine and tangent are ratios of two sides, measured from one of the acute angles. The side across from the angle is the opposite, the longest side is the hypotenuse, and the remaining side next to the angle is the adjacent. SOH CAH TOA is the usual way to remember them.
| Ratio | Memory aid | Formula | Use it when you know or want |
|---|---|---|---|
| Sine | SOH | The opposite side and the hypotenuse | |
| Cosine | CAH | The adjacent side and the hypotenuse | |
| Tangent | TOA | The opposite and adjacent sides |
Label the sides
Mark the angle you know or want, then name the opposite side, the adjacent side and the hypotenuse from that angle.
Choose the ratio
Pick the one ratio that uses the side you know and the side (or angle) you want: SOH, CAH or TOA.
Rearrange and solve
To find a side, multiply or divide. To find an angle, use the inverse function: , or .
The full guide, how to use sin, cos and tan, works through five more examples, including finding the hypotenuse and the angle of a ramp.
A right triangle has a hypotenuse of 10 and an angle of 35°. How long is the side opposite the 35° angle? You know the hypotenuse and want the opposite, so use SOH: , which is .
The legs of a right triangle are 3 and 4. What is the angle opposite the side of length 3? You know the opposite and adjacent sides, so use TOA: , so .
Check degrees or radians first
The most common wrong answer comes from the angle mode. is 0.5, but in radians is about −0.988. Degrees vs radians explains when each is used.
These angles come up so often that their exact values are worth knowing. The sin cos tan calculator gives exact forms like these, with the decimal alongside, for every multiple of 15° or 18°, and the unit circle shows all 16 special angles around the full circle.
| Angle | Radians | sin θ | cos θ | tan θ |
|---|---|---|---|---|
| 0° | ||||
| 30° | ||||
| 45° | ||||
| 60° | ||||
| 90° | Undefined |
SOH CAH TOA works only when one angle is 90°. For any other triangle, label the sides , and with the opposite angles , and , and use one of two laws.
Find the largest angle with the law of cosines
, so .
Find a second angle the same way
, so .
The angles add to 180°
.
Find the area with Heron’s formula
The semiperimeter is , so the area is .
SSA can give two triangles
With two sides and an angle that is not between them, the data can fit two different triangles, one or none. For , and , the law of sines gives or , and both are valid. The triangle calculator solves and lists both.
Each calculator shows its working: the ratio or law it used, each substitution and the result, so you can follow the method and check your own steps. Where an exact answer exists, such as or a hypotenuse of , you get it alongside the decimal.
The triangle calculator checks your input before it solves: it warns when three sides break the triangle inequality, when angles add to 180° or more, and when SSA data fit two triangles or none. The DMS to decimal degrees converter handles latitude and longitude with N, S, E and W, and rounds seconds without producing 60″.
All of these calculators are free, need no account and run in your browser. Results are checked against reference values by automated tests; the methodology page describes how. For trig inside longer expressions, use the scientific calculator, and to see the curves, plot sin x in the graphing calculator.
Label the sides from the angle you are working with, then pick the ratio that links the side you know to the side you want. Opposite and hypotenuse: sine. Adjacent and hypotenuse: cosine. Opposite and adjacent: tangent.
Sine is Opposite over Hypotenuse, Cosine is Adjacent over Hypotenuse, and Tangent is Opposite over Adjacent. It applies to the acute angles of a right triangle.
Not with the side alone. You need one more value: a second side or one of the acute angles. With a side and an angle, SOH CAH TOA gives the other two sides, and the missing angle is 90° minus the known one.
Use the law of sines when you know an angle and its opposite side (ASA, AAS or SSA). Use the law of cosines when you know three sides (SSS) or two sides and the angle between them (SAS).
Use degrees for most geometry and surveying problems, and radians for calculus, physics formulas and anywhere angles are multiplied by lengths, such as arc length s = rθ.
tan θ = sin θ / cos θ, and cos 90° = 0, so the division is undefined. The graph of tan has a vertical asymptote there.