Trigonometry Calculator
Trigonometry Calculator
Trigonometry is the branch of mathematics that studies the relationships between the angles and side lengths of triangles. The three primary trigonometric functions — sine, cosine, and tangent — describe ratios of sides in a right triangle and, by extension, points on the unit circle. These functions are foundational in geometry, physics, engineering, navigation, signal processing, and computer graphics. A trigonometry calculator lets you evaluate these functions and their inverses without reaching for a scientific calculator or memorizing tables of values.
The word "trigonometry" comes from the Greek "trigonon" (triangle) and "metron" (measure). Ancient astronomers such as Hipparchus and Ptolemy built the first trigonometric tables to predict the motion of the stars and planets. Today the same functions describe sound waves, alternating current, the orbits of satellites, and the rendering of three-dimensional scenes on a flat screen [katz].
For any angle, the sine and cosine values always fall between -1 and 1, while the tangent can take any real value (and is undefined at 90°, 270°, and every odd multiple of 90° where the cosine is zero). The inverse functions answer the reverse question: given a ratio, what angle produced it? Because the trigonometric functions repeat periodically, the inverse functions return a principal value within a restricted range.
This calculator supports all six standard functions. You can enter an angle in degrees to find its sine, cosine, or tangent, or you can enter a ratio between -1 and 1 to recover the corresponding angle through arcsine, arccosine, or arctangent. All results are shown to six decimal places so they can be pasted directly into further work.
Begin by selecting the function you need from the Function menu. The six options are sine, cosine, tangent, and their inverse counterparts arcsine, arccosine, and arctangent.
For the forward functions (sine, cosine, tangent), enter the angle in degrees. For example, to find sin(30°), choose "Sine (sin)" and type 30. The result is 0.5. To find cos(60°), choose cosine and type 60; the result is also 0.5. For tan(45°), choose tangent and type 45; the result is 1.
For the inverse functions, enter a ratio. The arcsine, arccosine, and arctangent of a value return an angle measured in degrees. For example, arcsin(0.5) returns 30°, arccos(0.5) returns 60°, and arctan(1) returns 45°. The inverse sine and cosine only accept values between -1 and 1, because no real angle has a sine or cosine outside that range.
Edge cases worth noting: tangent is undefined when the angle places the point on the unit circle directly above or below the origin (90°, 270°, etc.), where the cosine is zero and division by zero occurs. The calculator reports "Undefined (vertical)" in that situation rather than producing an error. The inverse sine and cosine reject inputs of -1.1 or 1.1 as out of range.
Try a practical example: the height of a building can be estimated from a distance of 50 meters and an elevation angle of 35°. Using tangent, height = 50 × tan(35°) ≈ 50 × 0.700208 = 35.01 meters. The same tangent function powers the survey calculations used in construction and cartography.
For another example, a pendulum's displacement is modeled as a sine wave. At t = 0 with amplitude 1, the value is sin(0) = 0. After a quarter period the phase reaches 90° and sin(90°) = 1, its maximum. These periodic values are exactly what the calculator returns.
Trigonometric functions are defined geometrically on the unit circle, a circle of radius 1 centered at the origin. For an angle θ measured from the positive x-axis, the point where the terminal side meets the circle has coordinates (cos θ, sin θ). The tangent is the ratio of the two: tan θ = sin θ / cos θ [stewart].
Internally, the calculator converts the input angle from degrees to radians, because the standard mathematical library defines sine and cosine in radians. The conversion multiplies degrees by π / 180. It then evaluates the function and, for inverses, converts the resulting radian angle back to degrees by multiplying by 180 / π.
Manual example: compute sin(30°). Step 1: convert 30° to radians: 30 × π / 180 = π / 6 ≈ 0.523599. Step 2: sin(π / 6) = 0.5. So sin(30°) = 0.5. The cosine relation confirms it, since cos(60°) = 0.5 and the two functions are phase-shifted by 90°.
The inverse functions use the same library routines. For arcsin(0.5), the calculator finds the unique angle in the range [-90°, 90°] whose sine is 0.5, which is 30°. For arccos, the principal value lies in [0°, 180°]; arccos(0.5) = 60°. For arctan, the principal value lies in (-90°, 90°); arctan(1) = 45°.
Trigonometric functions began as tools for measuring triangles in astronomy and surveying, but they now underlie nearly every area of science that involves periodic or rotational behavior. Sound waves, alternating current, light, and planetary orbits are all described using sines and cosines, which is why a reliable trig evaluator is a basic scientific instrument.
The inverse functions answer the reverse question: given a ratio, what angle produced it. Navigation, computer graphics, and robotics all need inverse trigonometry to convert between directions and angles, and the principal-value ranges implemented here are the standard conventions used across programming languages.
Working in degrees versus radians changes only the unit, not the mathematics. Degrees remain common in everyday measurement and education, while radians are the natural unit for calculus because the derivative of sin x is cos x only when x is measured in radians. This calculator keeps both options explicit so the unit is never ambiguous.
Periodicity is the defining feature that distinguishes trig functions from polynomials. Adding or subtracting a full circle returns to the same value, which the unit-circle picture makes visible and which the calculator respects automatically for any input angle.
The reciprocal functions — secant, cosecant, and cotangent — are simply the reciprocals of cosine, sine, and tangent, and they inherit the same periodic behavior with their own asymptotes. Although this calculator focuses on the three primary functions and their inverses, the reciprocal identities connect every result here to the broader family of six trig functions used in calculus and physics.
Many real measurements are indirect. A surveyor rarely measures a height directly; instead they measure an angle and a baseline, then let the tangent function recover the distance. The reliability of that recovery depends on the angle being measured accurately, which is why trig calculators are paired with theodolites and total stations in practice.
Students often confuse the function value with its inverse. Sine answers "given an angle, what ratio?" while arcsine answers "given a ratio, what angle?" Keeping the direction of the question clear prevents the most common sign and range mistakes.
Trigonometry also bridges geometry and algebra. The unit-circle definition turns a geometric picture into a set of numerical values, so the same calculator output can be interpreted as a coordinate, a ratio, or a wave height depending on the problem you are solving.
The law of sines and the law of cosines extend the basic ratios to arbitrary triangles, not just right triangles. Those laws reduce to the definitions here when the triangle happens to be right-angled, so mastering the primary functions is the foundation for solving any triangular configuration in surveying or navigation.
Phase shifts are another everyday use. Two waves of the same frequency but different starting angles interfere constructively or destructively depending on the difference, and that difference is just an angle you would recover with an inverse trig function. Audio engineering, radio, and optics all lean on this single idea.
When you convert between degrees and radians you are really choosing a unit for measuring rotation, much like choosing meters or feet for length. The mathematics is identical; only the scale factor π/180 changes, and keeping track of which unit your input uses prevents the most frustrating mismatches between a computed value and a textbook answer.
Common Angle Values (Degrees)
| Angle (°) | sin | cos | tan |
|---|---|---|---|
| 0 | 0 | 1 | 0 |
| 30 | 0.5 | 0.866025 | 0.577350 |
| 45 | 0.707107 | 0.707107 | 1 |
| 60 | 0.866025 | 0.5 | 1.732051 |
| 90 | 1 | 0 | Undefined |
The table captures the five angles students memorize, but the calculator handles any value in between. Note that tangent grows without bound as the angle approaches 90°, which is why the value is marked Undefined exactly at 90°. The symmetry of the functions means sin(120°) = sin(60°) and cos(120°) = -cos(60°), a pattern the unit-circle definition explains.
Additional evaluations that reinforce the function behavior.
Example A — sin(90°) = 1, the peak of the sine wave, where the tangent is undefined because the cosine is zero. This is the boundary case the calculator flags as "Undefined (vertical)".
Example B — cos(180°) = -1, the opposite extreme from cos(0°) = 1, showing the cosine oscillates between the two.
Example C — tan(30°) ≈ 0.577350, the reciprocal of √3. Small angles have tangents close to their radian measure, a useful approximation.
Example D — arcsin(0) = 0°, arcsin(-0.5) = -30°, confirming the principal range [-90°, 90°] and the odd symmetry of the inverse sine.
Example E — arccos(0) = 90°, the angle whose cosine vanishes; it sits at the top of the cosine's descending branch.
Example F — arctan(0) = 0°, arctan(√3) = 60°, the inverse tangent returning the angle whose slope is the input ratio.
Example G — sin(45°) = cos(45°) = 0.707107, the angle where the two functions cross, reflecting the identity sin θ = cos(90° - θ).
Example H — periodicity check: sin(390°) = sin(30°) = 0.5, because adding 360° returns to the same point on the unit circle. The calculator handles angles beyond a full rotation transparently.
- Always confirm whether your problem uses degrees or radians. This calculator accepts degrees for input angles and reports inverse results in degrees, but many physics formulas assume radians.
- Remember the range restrictions on inverse functions. arcsin and arctan return values between -90° and 90°, while arccos returns values between 0° and 180°. A different branch may be needed for your application.
- Use tangent for elevation and slope problems. If you know the horizontal distance and the angle, height = distance × tan(angle); if you know the rise and run, the slope angle is arctan(rise / run).
- Watch for the undefined tangent at odd multiples of 90°. In periodic models such as AC voltage, these are the points where the function crosses vertical asymptotes.
- Leverage the periodic identities: sin(θ + 360°) = sin θ and cos(θ + 360°) = cos θ. You can reduce any large angle by subtracting multiples of 360° before evaluating.
- Keep significant figures in mind. Reporting sin(30°) as 0.5000000 implies more precision than your input angle warrants; six decimal places is convenient but not always meaningful.
- Angle Unit Assumption: The forward functions expect degrees. If you have a radian measure, convert it first (radians × 180 / π) or the result will be wrong.
- Principal Values Only: The inverse functions return a single principal value, not every angle that satisfies the equation. Equations like sin θ = 0.5 have infinitely many solutions differing by 360°.
- Periodicity Not Shown: The calculator gives one value per input and does not list the family of all solutions; users must apply periodicity manually.
- No Symbolic Output: Results are numeric approximations, not exact surds. For example, sin(45°) is shown as 0.707107 rather than √2 / 2.
- Finite Precision: Like all floating-point calculations, results are accurate to about 15 significant digits; values extremely close to an asymptote may lose precision.
- Why is tan(90°) undefined?
- Tangent equals sine divided by cosine. At 90°, the cosine is exactly zero, so the calculation divides by zero. The tangent function has a vertical asymptote there, and no finite value exists.
- What is the difference between sine and cosine?
- Sine and cosine are the same wave shifted by 90°. cos θ equals sin(θ + 90°). On the unit circle, sine is the y-coordinate and cosine is the x-coordinate of the point at angle θ.
- How do I convert degrees to radians?
- Multiply the degree measure by π / 180. For example, 180° becomes π radians (about 3.14159), and 90° becomes π / 2 radians.
- Why does arcsin only accept values from -1 to 1?
- Because the sine of any real angle is always between -1 and 1, the inverse sine is only defined for inputs in that range. An input like 2 would require an angle whose sine exceeds 1, which does not exist.
- What is the range of arccos?
- The principal value of arccosine lies between 0° and 180°. This convention makes the inverse a true function, returning exactly one output for each valid input.
- Can this calculator handle negative angles?
- Yes. Negative angles rotate clockwise from the positive x-axis. For example, sin(-30°) = -sin(30°) = -0.5, and the calculator handles the sign automatically.
- What are the inverse trig functions used for?
- They recover angles from ratios. Common uses include finding a roof pitch from its rise and run, computing a bearing from coordinates, and solving triangles in surveying and navigation.
- Why are my results given to six decimal places?
- Six decimals balance readability and precision. You can round further depending on the accuracy of your input measurements, but the extra digits avoid cumulative rounding error in chained calculations.
- Is tangent periodic like sine and cosine?
- Yes, but with half the period. Sine and cosine repeat every 360°, while tangent repeats every 180°. The tangent of 45° equals the tangent of 225°.
- How does trigonometry relate to the unit circle?
- The unit circle of radius 1 defines the functions: for angle θ the point on the circle is (cos θ, sin θ). This geometric picture explains every identity, range, and sign of the trigonometric functions.
- [1]Katz, Victor J. (2009). A History of Mathematics: An Introduction (3rd ed.). Addison-Wesley.
- [2]Paul's Online Math Notes. (Calculus I-III).
- [3]National Institute of Standards and Technology. (n.d.). Digital Library of Mathematical Functions — Trigonometric Functions. Retrieved from
- [4]Purcell, Edwin J., Varberg, Dale, and Rigdon, Steven E. (2007). Calculus (9th ed.). Pearson Prentice Hall.
- [5]Lial, Margaret L., Hornsby, John, and Schneider, David I. (2016). Trigonometry (11th ed.). Pearson.
- [6]Weisstein, Eric W. (n.d.). Trigonometric Functions. MathWorld — A Wolfram Web Resource.
Last updated: July 20, 2026
UnByte — Independent Software Engineering
Every calculator references authoritative sources — Editorial policy