Trigonometry Calculator
Calculate sine, cosine and tangent, and solve any triangle with real-time SVG visualisation.
| Angle | Radians | sin | cos | tan |
|---|---|---|---|---|
| 0° | 0 | 0 | 1 | 0 |
| 30° | π/6 | 1/2 | √3/2 | √3/3 |
| 45° | π/4 | √2/2 | √2/2 | 1 |
| 60° | π/3 | √3/2 | 1/2 | √3 |
| 90° | π/2 | 1 | 0 | ∞ |
| 120° | 2π/3 | √3/2 | −1/2 | −√3 |
| 135° | 3π/4 | √2/2 | −√2/2 | −1 |
| 150° | 5π/6 | 1/2 | −√3/2 | −√3/3 |
| 180° | π | 0 | −1 | 0 |
How to use the calculator
The calculator has two independent modules. The first calculates all six trigonometric functions (sine, cosine, tangent and their inverses) for any angle, in degrees or radians. The second solves complete triangles given three sufficient pieces of data, and draws the resulting triangle as a scalable SVG.
Module 1: basic trigonometric functions
Enter the angle and select the unit. The calculator returns sin, cos, tan, arcsin(sin), arccos(cos) and arctan(tan), plus the automatic conversion between degrees and radians. The angle can be any real number, positive or negative.
Module 2: triangle solver
Choose the case based on the data you know. The sides are labelled a, b and c, and the angles opposite them A, B and C (so A + B + C = 180°). The five available cases are:
- AAS: two angles and a non-included side → the law of sines is applied.
- ASA: two angles and the included side → the law of sines gives the other two sides.
- SAS: two sides and the included angle → the law of cosines gives the third side.
- SSS: all three sides → the law of cosines gives all three angles.
- SSA: two sides and a non-included angle → the ambiguous case; there may be two solutions.
The result shows all three sides, all three angles, the area and the perimeter. When the SSA case has two valid solutions, the calculator shows both of them.
Fundamental laws of trigonometry
Law of sines
In any triangle, the ratio of each side to the sine of the opposite angle is constant and equal to the diameter of the circumscribed circle:
a / sin(A) = b / sin(B) = c / sin(C) = 2R
Applied in the AAS, ASA and SSA cases. In the SSA case it can yield two possible angles (one acute and one obtuse), hence the name "ambiguous case".
Law of cosines
Generalises the Pythagorean theorem to any triangle:
a² = b² + c² − 2·b·c·cos(A)
Applied in the SAS and SSS cases. When A = 90°, the term 2bc·cos(A) is zero and the Pythagorean theorem is recovered.
Frequently asked questions
How do you calculate the sine of an angle?
What is the law of sines?
What is the law of cosines and when is it used?
What are the exact values of sine and cosine at 30°, 45° and 60°?
What is the difference between degrees and radians?
How do you solve a triangle with two sides and an angle?
What is trigonometry used for in real life?
Last updated
Calculator updated in 2026. Compatible with all modern browsers without installing any extension or app.