Search
Menu

Trigonometric Calculator – Sin, Cos, Tan & More

Connect right-triangle ratios, inverse functions and angle modes before reading a calculator result.

Quick Answer

Use Inverse Functions when you know a trigonometric ratio and want to find the angle.

Protractor and a unit circle on graph paper
Free Online Trigonometry Tool

Trigonometric Calculator

Use this Trigonometric Calculator to calculate sine, cosine, tangent, cosecant, secant, cotangent, inverse trigonometric values, radians, degrees, and right-triangle side relationships. It is built for students, teachers, engineers, test-prep learners, and anyone who needs accurate trigonometry results with clear formulas.

Calculate Trigonometric Values

Choose a mode, enter your values, and get instant results for common trigonometry calculations.

Tip: In trigonometry, always check whether your angle is measured in degrees or radians. Using the wrong unit is one of the most common causes of incorrect answers.

What Is a Trigonometric Calculator?

A Trigonometric Calculator is an online math tool that calculates trigonometric values such as sine, cosine, tangent, cosecant, secant, and cotangent. It can also calculate inverse trigonometric functions, convert degrees to radians, convert radians to degrees, and solve right-triangle side lengths when one angle and one side are known. Trigonometry is used in algebra, geometry, precalculus, calculus, physics, engineering, computer graphics, navigation, architecture, astronomy, surveying, robotics, game development, signal processing, and many other technical fields.

This calculator is designed to help users get accurate answers quickly while also learning the formulas behind the result. A basic calculator may only show a single output, but a strong educational calculator should explain what each value means. For example, if you enter an angle of 30 degrees, this calculator can show \(\sin(30^\circ)\), \(\cos(30^\circ)\), \(\tan(30^\circ)\), \(\csc(30^\circ)\), \(\sec(30^\circ)\), and \(\cot(30^\circ)\), plus the equivalent angle in radians. This helps students connect numerical results with mathematical relationships.

Trigonometry begins with triangles, especially right triangles. In a right triangle, one angle is exactly 90 degrees. The remaining two acute angles are connected to the side lengths through ratios. These ratios are sine, cosine, and tangent. The reciprocal ratios are cosecant, secant, and cotangent. Although trigonometry starts with triangles, it expands into the unit circle, periodic functions, waves, rotations, vectors, and circular motion. Because of this, trigonometry is one of the most important bridges between geometry and advanced mathematics. Use the printable geometry worksheets to practise selecting formulas without a calculator choosing them first.

This page focuses on practical, high-utility trigonometry. Users can calculate common functions, inverse functions, angle conversions, and triangle side lengths. The guide below explains the formulas in plain language, shows how each calculation works, and highlights common mistakes. The goal is not only to provide a calculator but also to make the calculator useful as a learning resource for students and teachers.

How to Use the Trigonometric Calculator

Start by choosing the calculator mode that matches your problem. Use Basic Functions when you already know an angle and want to calculate sine, cosine, tangent, cosecant, secant, and cotangent. Enter the angle, select degrees or radians, and press the calculate button. The calculator will return the trigonometric values and show the angle conversion where helpful.

Use Inverse Functions when you know a trigonometric ratio and want to find the angle. For example, if \(\sin(\theta)=0.5\), then \(\theta=30^\circ\) or \(\theta=\frac{\pi}{6}\) for the principal inverse sine value. This calculator returns the principal value, which means the standard output range used by inverse trigonometric functions. For inverse sine and inverse cosine, the input must be between -1 and 1. For inverse tangent, any real number can be used.

Use Right Triangle mode when you know one acute angle and one side length. Select whether the known side is the opposite side, adjacent side, or hypotenuse. The calculator will solve the other two sides using trigonometric ratios. This is useful for geometry homework, construction estimates, slope problems, height and distance problems, and physics vector components.

Use Degree / Radian mode when your problem requires unit conversion. Many school problems use degrees, but advanced math and calculus often use radians. Most programming languages and scientific computing tools also use radians by default. This makes angle conversion a critical skill. Before calculating any trigonometric function, always confirm whether your input is in degrees or radians.

Trigonometric Calculator Formulas

The calculator uses the standard definitions of trigonometric functions. In a right triangle, the side opposite the selected angle is called the opposite side, the side next to the selected angle is called the adjacent side, and the longest side is called the hypotenuse. Use the triangle area formulas and calculator to compare base and height with the two-sides-and-angle method.

Primary trigonometric ratios
\[\sin(\theta)=\frac{\text{opposite}}{\text{hypotenuse}},\quad \cos(\theta)=\frac{\text{adjacent}}{\text{hypotenuse}},\quad \tan(\theta)=\frac{\text{opposite}}{\text{adjacent}}\]
Reciprocal trigonometric ratios
\[\csc(\theta)=\frac{1}{\sin(\theta)},\quad \sec(\theta)=\frac{1}{\cos(\theta)},\quad \cot(\theta)=\frac{1}{\tan(\theta)}\]
Degree and radian conversion
\[\text{Radians}=\text{Degrees}\times\frac{\pi}{180},\quad \text{Degrees}=\text{Radians}\times\frac{180}{\pi}\]
Pythagorean identity
\[\sin^2(\theta)+\cos^2(\theta)=1\]
Tangent identity
\[\tan(\theta)=\frac{\sin(\theta)}{\cos(\theta)}\]

These formulas are the foundation of most trigonometry problems. The calculator applies them in numerical form. When a value is undefined, such as \(\tan(90^\circ)\), the calculator displays “undefined” instead of forcing an inaccurate number. Undefined values occur when a formula would require division by zero.

The Six Trigonometric Functions

The six trigonometric functions are sine, cosine, tangent, cosecant, secant, and cotangent. The first three are the primary functions. The last three are reciprocal functions. Understanding all six helps students solve a wider range of equations and identities.

Sine

Sine compares the opposite side of a right triangle to the hypotenuse. It is commonly used to find vertical components, heights, wave displacement, and circular motion coordinates. On the unit circle, \(\sin(\theta)\) gives the y-coordinate of the point created by rotating through angle \(\theta\).

Cosine

Cosine compares the adjacent side to the hypotenuse. It is commonly used to find horizontal components, distances along a baseline, and x-coordinates on the unit circle. In physics and engineering, cosine is often used when a force or motion has a horizontal component.

Tangent

Tangent compares the opposite side to the adjacent side. It is strongly connected to slope. If an angle describes the steepness of a line, the tangent of the angle gives the rise-over-run ratio. Tangent is widely used in surveying, navigation, roof pitch, ramps, and height-distance calculations.

Cosecant, Secant, and Cotangent

Cosecant is the reciprocal of sine, secant is the reciprocal of cosine, and cotangent is the reciprocal of tangent. These functions appear often in trigonometric identities, calculus integrals, and advanced algebraic simplification. Even if a beginner uses them less often, they are important for complete trigonometry fluency.

Inverse Trigonometric Functions

Inverse trigonometric functions work in the opposite direction of regular trigonometric functions. A regular function takes an angle and returns a ratio. An inverse trigonometric function takes a ratio and returns an angle. For example, \(\sin(30^\circ)=0.5\), so \(\sin^{-1}(0.5)=30^\circ\) as a principal value.

Inverse trigonometric notation
\[\theta=\sin^{-1}(x),\quad \theta=\cos^{-1}(x),\quad \theta=\tan^{-1}(x)\]

Inverse sine is also called arcsine, inverse cosine is also called arccosine, and inverse tangent is also called arctangent. The calculator returns the principal angle in both degrees and radians. The word “principal” matters because trigonometric functions are periodic. For example, many different angles have the same sine value. The inverse function gives one standard answer from a restricted range.

For \(\sin^{-1}(x)\), the input value must be between -1 and 1, and the principal output is between \(-90^\circ\) and \(90^\circ\). For \(\cos^{-1}(x)\), the input value must also be between -1 and 1, and the principal output is between \(0^\circ\) and \(180^\circ\). For \(\tan^{-1}(x)\), the input can be any real number, and the principal output is between \(-90^\circ\) and \(90^\circ\), not including the endpoints.

Right-Triangle Trigonometry

Right-triangle trigonometry is one of the most practical parts of trigonometry. A right triangle has one 90-degree angle and two acute angles. Once you know one acute angle and one side length, you can often calculate the remaining sides. This is because the trigonometric ratios connect side lengths to angles. Use the right triangle side calculator to use the simpler side relationship when a right angle is given.

Suppose you know an angle \(\theta\) and the hypotenuse. You can calculate the opposite side using sine and the adjacent side using cosine. The formulas are:

If the hypotenuse is known
\[\text{opposite}=\text{hypotenuse}\times\sin(\theta),\quad \text{adjacent}=\text{hypotenuse}\times\cos(\theta)\]

If you know the opposite side, you can calculate the hypotenuse using sine and the adjacent side using tangent:

If the opposite side is known
\[\text{hypotenuse}=\frac{\text{opposite}}{\sin(\theta)},\quad \text{adjacent}=\frac{\text{opposite}}{\tan(\theta)}\]

If you know the adjacent side, you can calculate the hypotenuse using cosine and the opposite side using tangent:

If the adjacent side is known
\[\text{hypotenuse}=\frac{\text{adjacent}}{\cos(\theta)},\quad \text{opposite}=\text{adjacent}\times\tan(\theta)\]

This calculator uses these relationships to solve side lengths. For best results, enter an acute angle between 0 and 90 degrees. If the angle is 0 degrees, 90 degrees, or outside the normal acute-angle range, some ratios may be zero or undefined, which can make triangle solving impossible or unrealistic. Use the degrees to radians converter to check angle units before evaluating a trigonometric expression.

Degrees and Radians

Degrees and radians are two ways to measure angles. Degrees are common in geometry, navigation, school-level math, and everyday angle descriptions. A full circle has 360 degrees, a right angle has 90 degrees, and a straight angle has 180 degrees. Radians are common in advanced mathematics because they connect angles directly to arc length on a circle. A full circle has \(2\pi\) radians, a straight angle has \(\pi\) radians, and a right angle has \(\frac{\pi}{2}\) radians.

The relationship between degrees and radians comes from the fact that \(180^\circ=\pi\) radians. From this relationship, the conversion formulas are easy to derive. To convert degrees to radians, multiply by \(\frac{\pi}{180}\). To convert radians to degrees, multiply by \(\frac{180}{\pi}\). This calculator includes a dedicated conversion mode because angle unit errors are extremely common in trigonometry.

Radians become especially important in calculus because derivatives and integrals of trigonometric functions are cleanest when angles are measured in radians. For example, the derivative of \(\sin(x)\) is \(\cos(x)\) when \(x\) is in radians. In programming, most built-in math functions also expect radians. JavaScript, Python, Java, C++, and many scientific calculators use radians internally for trigonometric functions unless a degree mode is explicitly available.

Common Trigonometric Values

Students should memorize common trigonometric values because they appear frequently in exams and problem solving. The angles \(0^\circ\), \(30^\circ\), \(45^\circ\), \(60^\circ\), and \(90^\circ\) are especially important. These values come from special right triangles and the unit circle.

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 Undefined

These exact values are useful because calculators often return decimals. For example, \(\sin(30^\circ)=0.5\), but the exact form is \(\frac{1}{2}\). Similarly, \(\cos(30^\circ)\approx0.866025\), but the exact form is \(\frac{\sqrt{3}}{2}\). Exact forms are usually preferred in algebra and exams, while decimals are often preferred in measurement, engineering, and applied calculations.

Common Trigonometry Mistakes

The most common mistake is mixing degrees and radians. If your calculator or programming language expects radians and you enter 30 thinking it means 30 degrees, the output will be wrong because the tool reads 30 as 30 radians. Always check the angle unit before calculating.

The second common mistake is choosing the wrong side in a right triangle. The opposite side depends on the angle you are using. If you switch to the other acute angle, the opposite and adjacent sides swap. The hypotenuse is always the longest side and is always opposite the right angle.

The third mistake is ignoring undefined values. Tangent is undefined when cosine is zero, secant is undefined when cosine is zero, cosecant is undefined when sine is zero, and cotangent is undefined when tangent is zero. These are not calculator errors; they are mathematical restrictions caused by division by zero.

The fourth mistake is assuming inverse trigonometric functions return every possible angle. Inverse functions return principal values. If you are solving a full trigonometric equation, there may be multiple solutions across different quadrants or periods. A calculator gives a starting answer, but algebraic reasoning may be needed for the complete solution set.

Where Trigonometry Is Used

Trigonometry is not limited to classroom exercises. It is one of the main tools used to describe rotation, waves, angles, slopes, heights, distances, and periodic behavior. In physics, trigonometry is used to break vectors into horizontal and vertical components. In engineering, it helps analyze forces, structures, signals, circuits, and mechanical systems. In computer graphics, it helps rotate objects, animate motion, calculate lighting angles, and control camera movement.

In construction and architecture, trigonometry helps calculate roof pitch, ramp angle, stair dimensions, shadows, support lengths, and line-of-sight measurements. In navigation and surveying, it helps measure distances and positions when direct measurement is difficult. In astronomy, trigonometry is used to understand apparent motion, angular separation, orbital geometry, and distance estimation. In data science and signal processing, sine and cosine functions help model periodic patterns such as sound waves, seasonal trends, and oscillations.

For students, trigonometry is also a gateway to higher mathematics. Precalculus, calculus, physics, engineering mathematics, and advanced statistics often assume strong trigonometry skills. A good trigonometric calculator can speed up computation, but the real advantage comes from understanding why the values make sense.

Trigonometric Calculator FAQs

What does a trigonometric calculator do?

It calculates trigonometric values such as sine, cosine, tangent, cosecant, secant, cotangent, inverse trigonometric angles, degree-radian conversions, and right-triangle side lengths. Use the law of sines calculator to check a side–opposite-angle pair in a non-right triangle.

Should I use degrees or radians?

Use degrees if your problem gives angles like 30°, 45°, or 60°. Use radians if your problem uses π, calculus notation, programming functions, or unit circle measurements such as π/6 or π/2.

Why is tangent of 90 degrees undefined?

Tangent is sine divided by cosine. At 90 degrees, cosine equals zero. Since division by zero is undefined, tangent of 90 degrees is undefined.

What is the difference between sin and sin⁻¹?

Sine takes an angle and returns a ratio. Inverse sine takes a ratio and returns an angle. For example, sin(30°) = 0.5, while sin⁻¹(0.5) = 30° as a principal value.

Can this calculator solve a right triangle?

Yes. If you know one acute angle and one side length, the right-triangle mode can calculate the opposite side, adjacent side, and hypotenuse.

Why do some results show decimals instead of exact radical forms?

The calculator gives numerical decimal results for practical use. The guide includes common exact values such as 1/2, √2/2, and √3/2 for standard angles.

Important Note

This Trigonometric Calculator is designed for educational, planning, and general calculation use. For professional engineering, construction, surveying, aviation, navigation, or safety-critical work, verify all calculations with approved tools and qualified professionals.

Advertisement

Distinguish a ratio from its angle

A right triangle has an opposite side of six units and a hypotenuse of ten. The sine of the chosen acute angle is therefore 0.6. Use inverse sine to recover an angle of about 36.87 degrees. Before rounding, check that taking the sine of this angle gives the original ratio. The remaining acute angle is its complement, so exchanging the opposite and adjacent sides changes the angle being measured.

Using Right Triangles to Evaluate Trigonometric Functions

diagram shows a right triangle with a vertical side of length y and a horizontal side has length x. Notice that the triangle is inscribed in a circle of radius 1. Such a circle, with a center at the origin and a radius of 1, is known as a unit circle.
Graph of quarter circle with radius of 1. Inscribed triangle with an angle of t. Point of (x,y) is at intersection of terminal side of angle and edge of circle.
We can define the trigonometric functions in terms an angle t and the lengths of the sides of the triangle. The adjacent side is the side closest to the angle, x. (Adjacent means “next to.”) The opposite side is the side across from the angle, y. The hypotenuse is the side of the triangle opposite the right angle, 1. These sides are labeled in diagram.
A right triangle with hypotenuse, opposite, and adjacent sides labeled.
The sides of a right triangle in relation to angle t
Given a right triangle with an acute angle of t, the first three trigonometric functions are listed.
Sine sin t = opposite hypotenuse
Cosine cos t = adjacent hypotenuse
Tangent tan t = opposite adjacent
A common mnemonic for remembering these relationships is SohCahToa, formed from the first letters of “Sine is opposite over hypotenuse, Cosine is adjacent over hypotenuse, Tangent is opposite over adjacent.”
For the triangle shown in diagram, we have the following.
sin t = y 1 cos t = x 1 tan t = y x

Evaluating a Trigonometric Function of a Right Triangle

Given the triangle shown in diagram, find the value of cosα.
A right triangle with side lengths of 8, 15, and 17. Angle alpha also labeled which is opposite to the side labeled 8.
Solution
The side adjacent to the angle is 15, and the hypotenuse of the triangle is 17.
cos(α) = adjacent hypotenuse = 15 17

Reciprocal Functions

In addition to sine, cosine, and tangent, there are three more functions. These too are defined in terms of the sides of the triangle.
Secant sec t = hypotenuse adjacent
Cosecant csc t = hypotenuse opposite
Cotangent cot t = adjacent opposite
Take another look at these definitions. These functions are the reciprocals of the first three functions.
sin t = 1 csc t csc t = 1 sin t cos t = 1 sec t sec t = 1 cos t tan t = 1 cot t cot t = 1 tan t
When working with right triangles, keep in mind that the same rules apply regardless of the orientation of the triangle. In fact, we can evaluate the six trigonometric functions of either of the two acute angles in the triangle in diagram. The side opposite one acute angle is the side adjacent to the other acute angle, and vice versa.
Right triangle with angles alpha and beta. Sides are labeled hypotenuse, adjacent to alpha/opposite to beta, and adjacent to beta/opposite alpha.
The side adjacent to one angle is opposite the other angle.
Many problems ask for all six trigonometric functions for a given angle in a triangle. A possible strategy to use is to find the sine, cosine, and tangent of the angles first. Then, find the other trigonometric functions easily using the reciprocals.

Evaluating Trigonometric Functions of Angles Not in Standard Position

Using the triangle shown in diagram, evaluate sinα,cosα,tanα,secα,cscα,andcotα.
Right triangle with sides of 3, 4, and 5. Angle alpha is also labeled which is opposite the side labeled 4.
Solution
sin α = opposite α hypotenuse = 4 5 cos α = adjacent to α hypotenuse = 3 5 tan α = opposite α adjacent to α = 4 3 sec α = hypotenuse adjacent to α = 5 3 csc α = hypotenuse opposite α = 5 4 cot α = adjacent to α opposite α = 3 4

Finding Trigonometric Functions of Special Angles Using Side Lengths

It is helpful to evaluate the trigonometric functions as they relate to the special angles—multiples of 30°,60°, and 45°. Remember, however, that when dealing with right triangles, we are limited to angles between 0° and 90°.
Suppose we have a 30°,60°,90° triangle, which can also be described as a π 6 , π 3 , π 2 triangle. The sides have lengths in the relation s, 3 s ,2s. The sides of a 45°,45°,90° triangle, which can also be described as a π 4 , π 4 , π 2 triangle, have lengths in the relation s,s, 2 s. These relations are shown in diagram.
Two side-by-side graphs of circles with inscribed angles. First circle has angle of pi/3 inscribed, radius of 2s, base of length s and height of length . Second circle has angle of pi/4 inscribed with radius , base of length s and height of length s.
Side lengths of special triangles
We can then use the ratios of the side lengths to evaluate trigonometric functions of special angles.

Evaluating Trigonometric Functions of Special Angles Using Side Lengths

Find the exact value of the trigonometric functions of π 3 , using side lengths.
Solution
sin( π 3 ) = opp hyp = 3s 2s = 3 2 cos( π 3 ) = adj hyp = s 2s = 1 2 tan( π 3 ) = opp adj = 3 s s = 3 sec( π 3 ) = hyp adj = 2s s =2 csc( π 3 ) = hyp opp = 2s 3 s = 2 3 = 2 3 3 cot( π 3 ) = adj opp = s 3 s = 1 3 = 3 3

Using Equal Cofunction of Complements

If we look more closely at the relationship between the sine and cosine of the special angles, we notice a pattern. In a right triangle with angles of π 6 and π 3 , we see that the sine of π 3 , namely 3 2 , is also the cosine of π 6 , while the sine of π 6 , namely 1 2 , is also the cosine of π 3 .
sin π 3 =cos π 6 = 3 s 2s = 3 2 sin π 6 =cos π 3 = s 2s = 1 2
See diagram.
A graph of circle with angle pi/3 inscribed with a radius of 2s, a base with length s and a height of.
The sine of π 3 equals the cosine of π 6 and vice versa.
This result should not be surprising because, as we see from diagram, the side opposite the angle of π 3 is also the side adjacent to π 6 , so sin( π 3 ) and cos( π 6 ) are exactly the same ratio of the same two sides, 3 s and 2s. Similarly, cos( π 3 ) and sin( π 6 ) are also the same ratio using the same two sides, s and 2s.
The interrelationship between the sines and cosines of π 6 and π 3 also holds for the two acute angles in any right triangle, since in every case, the ratio of the same two sides would constitute the sine of one angle and the cosine of the other. Since the three angles of a triangle add to π, and the right angle is π 2 , the remaining two angles must also add up to π 2 . That means that a right triangle can be formed with any two angles that add to π 2 —in other words, any two complementary angles. So we may state a cofunction identity: If any two angles are complementary, the sine of one is the cosine of the other, and vice versa. This identity is illustrated in diagram.
Right triangle with angles alpha and beta. Equivalence between sin alpha and cos beta. Equivalence between sin beta and cos alpha.
Cofunction identity of sine and cosine of complementary angles
Using this identity, we can state without calculating, for instance, that the sine of π 12 equals the cosine of 5π 12 , and that the sine of 5π 12 equals the cosine of π 12 . We can also state that if, for a given angle t,cost= 5 13 , then sin( π 2 −t )= 5 13 as well.

Using Cofunction Identities

If sint= 5 12 , find cos( π 2 −t ).
Solution
According to the cofunction identities for sine and cosine, we have the following.
sint=cos( π 2 −t )
So
cos( π 2 −t )= 5 12

Using Trigonometric Functions

In previous examples, we evaluated the sine and cosine in triangles where we knew all three sides. But the real power of right-triangle trigonometry emerges when we look at triangles in which we know an angle but do not know all the sides.

Finding Missing Side Lengths Using Trigonometric Ratios

Find the unknown sides of the triangle in diagram.
A right triangle with sides a, c, and 7. Angle of 30 degrees is also labeled which is opposite the side labeled 7.
Solution
We know the angle and the opposite side, so we can use the tangent to find the adjacent side.
tan(30°)= 7 a
We rearrange to solve for a.
a = 7 tan(30°) ≈ 12.1
We can use the sine to find the hypotenuse.
sin(30°)= 7 c
Again, we rearrange to solve for c.
c = 7 sin(30°) = 14