Trigonometry Calculator: Sin, Cos, Tan, the Unit Circle and Inverse Functions
By FindMySum · Last reviewed
A trigonometry calculator turns an angle into the six trigonometric ratios, sine, cosine, tangent, cosecant, secant and cotangent, and turns a ratio back into an angle. This one accepts degrees, radians, multiples of π and gradians, draws the angle on the unit circle, and gives exact values such as √3/2 for the special angles, along with the quadrant, the reference angle and the coterminal angle. In inverse mode it returns the principal value of arcsin, arccos, arctan, arccsc, arcsec or arccot.
From right triangles to the unit circle
Trigonometry starts with right triangles. For an acute angle θ, sine is the opposite side over the hypotenuse, cosine the adjacent side over the hypotenuse, and tangent opposite over adjacent. Those ratios only make sense up to 90°, though, so mathematicians extend them with the unit circle: the circle of radius 1 centred on the origin.
Turn a ray counter-clockwise from the positive x-axis by θ. It crosses the circle at a point, and that point's coordinates define the functions:
- cos θ is the x-coordinate and sin θ the y-coordinate.
- tan θ = sin θ / cos θ, the slope of the ray.
- csc θ = 1 / sin θ, sec θ = 1 / cos θ and cot θ = cos θ / sin θ.
For an acute angle, the ray, the x-axis and a vertical line from the point form a right triangle with hypotenuse 1, so the circle definition agrees with the triangle one. It also works for any angle, including obtuse, reflex, negative and multi-turn angles. Because the point is on a circle of radius 1, sin² θ + cos² θ = 1 always holds.
Quadrants, signs and reference angles
The axes split the plane into four quadrants. The signs of the coordinates decide the signs of the functions:
| Quadrant | Angles | sin | cos | tan |
|---|---|---|---|---|
| I | 0° to 90° | + | + | + |
| II | 90° to 180° | + | − | − |
| III | 180° to 270° | − | − | + |
| IV | 270° to 360° | − | + | − |
The reference angle is the acute angle between the terminal side and the x-axis. Every function of θ has the same size as the same function of its reference angle; the quadrant only supplies the sign. That is how the calculator finds exact values for any multiple of 30° or 45°: it reduces the angle to one between 0° and 360°, finds the reference angle, looks up the exact value for 0°, 30°, 45°, 60° or 90°, and applies the sign.
Worked example: the default 30°
With the default input, 30° is in quadrant I and is its own reference angle. The point on the circle is (√3/2, 1/2), so:
- sin 30° = 1/2 = 0.5
- cos 30° = √3/2 ≈ 0.866025403784
- tan 30° = (1/2) ÷ (√3/2) = √3/3 ≈ 0.57735026919
- csc 30° = 2, sec 30° = 2√3/3 ≈ 1.15470053838, cot 30° = √3 ≈ 1.73205080757
Change the angle to 210° and the reference angle is still 30°, but the angle is now in quadrant III, so sine and cosine turn negative: sin 210° = −1/2 and cos 210° = −√3/2, while tangent stays positive.
Angle units
A full turn is 360 degrees, 2π radians or 400 gradians. Radians measure an angle by the arc length it cuts on the unit circle, which is why calculus formulas such as the derivative of sin x being cos x only hold in radians. Because π is irrational, an angle typed as a decimal number of radians is never exactly a special angle. The calculator therefore has a separate unit, multiples of π: entering 0.75 means 3π/4, which it recognises as exactly 135°.
Inverse functions and principal values
Many angles share the same sine: sin 30°, sin 150° and sin 390° are all 1/2. To make arcsin a function, it returns a single principal value from a fixed range:
| Function | Accepts | Returns |
|---|---|---|
| arcsin x | −1 ≤ x ≤ 1 | −90° to 90° |
| arccos x | −1 ≤ x ≤ 1 | 0° to 180° |
| arctan x | any x | between −90° and 90° |
| arccsc x | x ≤ −1 or x ≥ 1 | −90° to 90°, not 0° |
| arcsec x | x ≤ −1 or x ≥ 1 | 0° to 180°, not 90° |
| arccot x | any x | between −90° and 90°, not 0° |
The arccot row follows the NIST Digital Library of Mathematical Functions, which defines arccot x as arctan(1/x). Many school textbooks use the range 0° to 180° instead; for negative x their answer is 180° larger, and the calculator shows it too.
To find every solution rather than the principal one, add whole turns and use symmetry. For sin θ = 1/2 the solutions are 30° + 360°k and 150° + 360°k for any whole number k.
Where trigonometry is used
Sine and cosine describe anything that rotates or oscillates: alternating current, sound waves, tides and the position of a point on a wheel. Tangent gives slopes and heights from angles of elevation, as in measuring a tree from its shadow. Surveyors, roofers and stair builders convert between angles and rise-over-run every day; the slope calculator and triangle calculator handle those cases directly. In physics, vectors are split into components with cos θ and sin θ, the first step of adding forces or velocities in the vector calculator.
Accuracy
Results are calculated in 40-digit decimal arithmetic and rounded to 12 significant figures. Special angles use their exact values rather than a decimal approximation, so sin 30° is exactly 0.5 rather than 0.49999999999999994, the result a typical floating-point library gives. Values where a function has an asymptote, such as tan 90°, are reported as undefined rather than as a huge number.
More questions
How do I memorise the exact values for 30°, 45° and 60°?
Write the sines as √0/2, √1/2, √2/2, √3/2 and √4/2 for 0°, 30°, 45°, 60° and 90°. Simplified, that is 0, 1/2, √2/2, √3/2 and 1. Cosine runs through the same list backwards. Tangent is sine divided by cosine, so tan 30° = (1/2) ÷ (√3/2) = 1/√3 = √3/3.
Why do textbooks write √3/3 instead of 1/√3?
They are equal. Multiplying top and bottom by √3 moves the root out of the denominator (rationalising it), which was the convention when values were looked up in printed tables and divided by hand. Both forms are correct; the calculator uses the rationalised one.
Can an angle be bigger than 360° or negative?
Yes. An angle measures rotation, so 400° is a full turn plus 40°, and −30° is a 30° turn clockwise. Both end in the same place as a coterminal angle between 0° and 360° (40° and 330°), so all six functions have the same values. Wheels, motors and phase angles in AC circuits routinely go past a full turn.
What is the difference between sin⁻¹ x and 1/sin x?
sin⁻¹ x is the inverse function, arcsin: the angle whose sine is x. 1/sin x is the reciprocal, cosecant. The superscript −1 means inverse function here, not a power, which is why many people prefer to write arcsin to avoid the mix-up. sin² x, on the other hand, does mean (sin x)².
Where are gradians used?
Mainly in surveying and civil engineering in parts of Europe, where a right angle of exactly 100 gradians makes slope and bearing arithmetic decimal. Many scientific calculators have a GRAD mode. ISO 80000-3 calls the unit the gon.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.