Trigonometry Calculator

All six trig functions of an angle, or the angle from a value.

Trigonometry Calculator tool

What do you want?
Angle unit
—
sin
—
cos
—
tan
—
csc
—
sec
—
cot

About the Trigonometry Calculator

Trigonometry turns angles into side ratios, which is how ramps, roofs, heights and distances are worked out. This trigonometry calculator gives all six functions of an angle at once, in degrees or radians, with exact values for special angles such as sin 30° = 1/2. Its inverse functions answer questions like the angle of a 1:12 wheelchair ramp, about 4.76 degrees.

In a right triangle, sine is opposite over hypotenuse, cosine is adjacent over hypotenuse, and tangent is opposite over adjacent, often remembered as SOH-CAH-TOA. Cosecant, secant and cotangent are their reciprocals. On the unit circle the definitions extend to every angle: cos θ and sin θ are the x and y coordinates of the point at angle θ. The calculator also reports the quadrant, the reference angle and the angle in the other unit.

Example: for 30°, sin = 0.5 exactly 1/2, cos ≈ 0.866025 exactly √3/2, and tan ≈ 0.57735 exactly √3/3. Tangent and secant are undefined at 90° and 270°, where cosine is zero. In inverse mode, arcsin(0.5) = 30°, arccos(0.5) = 60° and arctan(0.5) ≈ 26.565051°. One radian is about 57.29578°, and 180° equals π radians.

To solve whole triangles, use the triangle calculator or, for right triangles, the Pythagorean theorem calculator. Slopes and angles of lines are on the slope calculator.

How to use the Trigonometry Calculator

  1. Choose a modeFind the functions of an angle, or find an angle from a value.
  2. Enter the angle or valueType the angle, or the sine, cosine or tangent value.
  3. Pick degrees or radiansChoose the unit for the angle.
  4. Read the resultsSee all six functions, exact values for special angles, the quadrant and reference angle.

Trigonometry Calculator features

  • All six trig functions at once
  • Degrees and radians
  • Exact values for unit circle angles
  • arcsin, arccos and arctan
  • Quadrant and reference angle
  • Undefined values flagged correctly
  • Precise to about 12 digits

Common uses

  • Trigonometry and precalculus homework
  • Physics problems with forces and vectors
  • Surveying, navigation and engineering angles
  • Checking unit circle values
  • Game and graphics programming

Trigonometry in practice: heights, shadows, solar panels and waves

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

Trigonometry links the angles of a triangle to the ratios of its sides, and those links let you measure heights you cannot reach, predict shadows, set solar panels at the right tilt and describe anything that repeats in waves. This guide covers the classic SOH-CAH-TOA ratios, worked examples measuring a building and a shadow, the exact values worth remembering and where sine waves appear in daily life.

SOH-CAH-TOA

In a right-angled triangle, the sine of an angle is the opposite side divided by the hypotenuse, the cosine is the adjacent side divided by the hypotenuse, and the tangent is the opposite side divided by the adjacent side. The memory aid SOH-CAH-TOA captures all three. Choosing the right ratio depends on which sides you know and which you need.

A worked example: the height of a building

A student stands 40 metres from a building and measures the angle up to the roof as 35 degrees, using a simple clinometer or a phone app. The height above eye level is 40 × tan 35°, about 28 metres. Adding the student's eye height of about 1.6 metres gives a building height of roughly 29.6 metres.

Surveyors use the same method with precise instruments. Measuring from two different distances and averaging the results improves accuracy.

A worked example: shadows

When the sun is 40 degrees above the horizon, a 10-metre pole casts a shadow of 10 ÷ tan 40°, about 11.9 metres. In winter, when the sun is lower, shadows lengthen, which matters when planning buildings, gardens and solar panels so that one does not shade another. Architects use sun angles throughout the year to check daylight and shading.

Solar panel tilt

A common rule of thumb for fixed solar panels is to tilt them at an angle close to the site's latitude, facing the equator. In Lahore, at about 31.5 degrees north, panels are often tilted at around 30 degrees facing south. Steeper angles favour winter production and shallower ones summer production. Installers fine-tune the angle for local conditions and roof constraints.

Exact values worth remembering

Anglesincostan
0°010
30°1/2√3/21/√3
45°√2/2√2/21
60°√3/21/2√3
90°10undefined

These exact values appear constantly in exams and engineering, and they follow from two simple triangles: half of an equilateral triangle and half of a square.

Inverse functions

When you know the sides and want the angle, use the inverse functions: arcsin, arccos and arctan, often labelled sin⁻¹, cos⁻¹ and tan⁻¹ on calculators. A ramp rising 1 metre over 12 metres has an angle of arctan(1/12), about 4.8 degrees. Remember that calculators return angles in the current mode, degrees or radians.

Waves and cycles

Sine and cosine describe anything that repeats smoothly: alternating electricity, sound waves, ocean tides, the swing of a pendulum and the changing length of the day through the year. Mains electricity in Pakistan alternates as a sine wave 50 times a second. Engineers and scientists analyse complex signals, such as music, by breaking them into sums of sine waves.

Beyond right triangles

For triangles without a right angle, the law of sines and the law of cosines extend trigonometry to any triangle. Surveyors, navigators and engineers use these laws to calculate distances and angles from a few measurements, as the triangle calculator shows.

Common mistakes

  • Using the wrong ratio for the sides you know.
  • Leaving the calculator in radian mode for degree problems.
  • Forgetting to add eye height when measuring tall objects.
  • Taking the tangent of 90 degrees, which is undefined.

Related tools

For general triangles, use Triangle Calculator. For right triangles, try Pythagorean Theorem Calculator, and for angle units, Degrees to Radians Converter.

Navigation with bearings

Trigonometry splits a journey into east and north components. Walking 5 km on a bearing of 060 degrees, measured clockwise from north, moves you 5 × sin 60°, about 4.33 km east, and 5 × cos 60°, 2.5 km north. Navigators add the components of several legs to find the final position, then use Pythagoras and the inverse tangent to find the direct distance and bearing back to the start.

A built-in check

For any angle, the square of the sine plus the square of the cosine equals 1. This identity is a quick check on calculated values: if sin θ is 0.6, then cos θ must be 0.8 or −0.8, because 0.36 + 0.64 = 1. Checking results this way catches errors from mistyped values or the wrong calculator mode.

Trigonometry in sport and games

Trigonometry also helps in sport and video games. The angle at which a ball is struck determines how far and how high it travels, with sine and cosine splitting its speed into vertical and horizontal parts. Game engines use the same functions to rotate characters, aim projectiles and move cameras around a scene. Whenever something turns or moves at an angle, trigonometry is quietly at work.

Limits

Results are computed to full precision and shown rounded; exact forms are given for special angles.

Frequently asked questions

What do sin, cos and tan mean?

In a right triangle, sin is opposite ÷ hypotenuse, cos is adjacent ÷ hypotenuse and tan is opposite ÷ adjacent, relative to the chosen angle. SOH-CAH-TOA is a common way to remember them.

What are the exact values of sin, cos and tan for 30°, 45° and 60°?

sin 30° = 1/2, cos 30° = √3/2, tan 30° = √3/3; sin 45° = cos 45° = √2/2, tan 45° = 1; sin 60° = √3/2, cos 60° = 1/2, tan 60° = √3.

How do I convert degrees to radians?

Multiply by π ÷ 180. 90° = π/2 ≈ 1.5708 radians and 180° = π radians. To go back, multiply radians by 180 ÷ π, which is about 57.2958. The calculator shows both units for every angle.

Why is tan 90° undefined?

Because tan θ = sin θ ÷ cos θ and cos 90° = 0, so it would mean dividing by zero. As the angle approaches 90° the tangent grows without limit.

What are csc, sec and cot?

The reciprocal functions: csc θ = 1 ÷ sin θ, sec θ = 1 ÷ cos θ and cot θ = 1 ÷ tan θ. They are undefined wherever the function they invert is zero. For example, csc 30° = 2 because sin 30° = 1/2.

What does arcsin do?

arcsin, written sin⁻¹, gives the angle whose sine is a value. arcsin(0.5) = 30°. Its results lie between −90° and 90°, and it only accepts values from −1 to 1.

Why does my calculator give a different answer?

It is probably in the wrong angle mode. sin(30) is 0.5 in degrees but about −0.988 in radians. Always check whether the angle is in degrees or radians.

What is the unit circle?

A circle of radius 1 centered at the origin. The point at angle θ on it has coordinates (cos θ, sin θ), which defines the trig functions for every angle, including angles above 90° and negative angles.

What is a reference angle?

The acute angle between an angle's terminal side and the x-axis. 150° has a reference angle of 30°, so its sine equals sin 30° = 1/2, with the sign decided by the quadrant.