Trigonometry Calculator

Inverse — angle from a ratio

Right-triangle solver

In short: sin 30° = 0.5, cos 60° = 0.5, tan 45° = 1 — and the angle whose tangent is 1 is 45°. Feed the solver the 3 and 4 of a 3-4-5 triangle and it returns the hypotenuse 5 and both angles, 36.87° and 53.13°.

Three ratios that measure the unmeasurable

Trigonometry exists because of a beautiful cheat: the ratios inside a right triangle depend only on its angles, not its size. A triangle with a 30° angle always has its short side at exactly half the hypotenuse, whether it is drawn in a notebook or formed by a lighthouse, a ship and the sea. So a handful of ratios — sine, cosine, tangent and their reciprocals — turn one measured length and one measured angle into every other length in the figure. Surveyors mapped countries with that cheat, navigators crossed oceans with it, and it still sits inside every game engine, signal processor and structural calculation running today. This calculator covers the three directions the cheat is used: angle to ratios (all six functions), ratio back to angle (the inverse functions), and the full right-triangle solve from two sides.

The definitions worth memorising are the triangle ones — SOHCAHTOA: Sine = Opposite/Hypotenuse, Cosine = Adjacent/Hypotenuse, Tangent = Opposite/Adjacent — because they tell you which function a problem wants. The unit circle is the same three functions generalised: walk around a circle of radius 1 and the point's height is the sine, its horizontal position the cosine. That is why sine and cosine stay between −1 and 1 forever, why they repeat every 360°, and why tangent — their quotient — explodes wherever cosine crosses zero.

How the calculations work

Angles are converted to radians internally (degrees × π ÷ 180) because the underlying mathematics is defined in radians; results are shown to six significant figures, with the exact standard values (0.5, 1, √2⁄2 and friends) recognisable on sight. The inverse functions return their principal values — arcsin and arctan between −90° and 90°, arccos between 0° and 180° — which is the convention every calculator follows and the source of the classic trap: an angle in the second or third quadrant needs adjusting from the principal value, using the signs of the sides involved. The triangle solver applies Pythagoras for the missing side and arctan for the angles.

The standard values

Anglesincostan
0°010
30°0.50.86600.5774
45°0.70710.70711
60°0.86600.51.7321
90°10undefined

These five rows are worth knowing cold — they are the values exams test and the sanity check for everything else: sine climbing from 0 to 1, cosine falling from 1 to 0, the two crossing at 45°, and tangent passing 1 there on its way to the 90° cliff. Notice also the symmetry sin 30° = cos 60°: the two acute angles of a right triangle are complementary, so each one's sine is the other's cosine.

Worked examples

The 3-4-5 triangle: opposite 3, adjacent 4 → hypotenuse 5; angle at the adjacent side = arctan(3/4) = 36.87°; the other acute angle 53.13°. The pair sums to 90°, as they must.

Height from a distance: 20 m from a building, angle of elevation 40° → height above eye level = 20 × tan 40° = 16.78 m. Add your eye height for the full figure.

Reciprocals: cosecant, secant and cotangent are 1/sin, 1/cos and 1/tan — csc 30° = 2 and sec 60° = 2 fall straight out of the standard table.

Frequently asked questions

What are sin, cos and tan?

Ratios of sides in a right triangle, relative to one of its acute angles. Sine is opposite over hypotenuse, cosine is adjacent over hypotenuse, tangent is opposite over adjacent — SOHCAHTOA. For 30 degrees: sin = 0.5, cos = 0.866, tan = 0.577. The same three numbers come from the unit circle, which is the definition that extends them beyond triangles to any angle, including negative and greater-than-360 ones.

How do I find an angle when I know the sides?

Use the inverse functions: if you know opposite and hypotenuse, the angle is arcsin(opposite / hypotenuse); adjacent and hypotenuse call for arccos; opposite and adjacent, arctan. In a 3-4-5 triangle, the angle opposite the side of length 3 is arcsin(0.6) = 36.87 degrees. This calculator's inverse mode and triangle solver both do it — the solver is faster when you have two sides, since it returns everything at once.

Should I use degrees or radians?

Degrees for measuring and building — surveying, navigation, school geometry, anything with a protractor in its past. Radians for mathematics and programming — calculus formulas, series expansions and most code libraries assume them, because the radian (the angle whose arc equals the radius) makes the maths clean: 180 degrees is pi radians, 90 degrees is pi/2. This calculator converts and computes in either; just make sure the mode matches the number you typed.

Why is tan 90 degrees undefined?

Because tangent is sine divided by cosine, and cos 90 degrees is exactly zero — division by zero has no value. Approaching 90 degrees from below, tangent races toward positive infinity; from above, it returns from negative infinity. On a graph that is the vertical asymptote every student is warned about, and in a triangle it is the geometric fact that a right angle leaves no 'opposite over adjacent' to measure.

Where is trigonometry used in real life?

Anywhere heights, distances or rotations matter and cannot be measured directly: surveying land and setting out buildings, navigation and GPS, engineering loads and roof pitches, computer graphics and game physics, sound and signal processing, astronomy. The classic classroom example is also a real one — stand 20 metres from a building, measure a 40-degree angle to the roof, and its height is 20 x tan 40 = 16.78 metres above your eye line. No ladder required.

Note: Inverse functions return principal values (arcsin/arctan between −90° and 90°, arccos between 0° and 180°). For angles in other quadrants, adjust using the signs of the components involved.

Related tools

Definitions and values last verified: 24 November 2026. Everything is calculated in your browser — nothing you type is sent anywhere.