Trigonometry Calculator
Calculate sin, cos, tan and inverse functions in degrees or radians. Includes sec, csc, cot.
Source: BBC Bitesize, Trigonometry
By Konstantin Iakovlev · Founder, Calks.uk
Last updated: · Methodology reviewed for 2026
Trigonometric Functions
sin(45°)
0.70710678
cos(45°)
0.70710678
tan(45°)
1
sec
1.4142136
csc
1.4142136
cot
1
45° = 0.7854 radians
Inverse Functions
asin(0.5)
30°
acos(0.5)
60°
atan(0.5)
26.565051°
Disclaimer
This calculator is for guidance only. Double-check any result you rely on. Everything is calculated in your browser; nothing you enter is sent to our servers.
How It Works
Trigonometry deals with the relationships between angles and sides of triangles. The three primary functions, sine (sin), cosine (cos) and tangent (tan), relate the angles of a right-angled triangle to the ratios of its sides, and this tool computes all six trig functions along with their inverses. The definitions are the ones behind SOHCAHTOA: sin θ = opposite ÷ hypotenuse, cos θ = adjacent ÷ hypotenuse, and tan θ = opposite ÷ adjacent. The hypotenuse is the side facing the right angle and always the longest, the opposite side faces the angle θ, and the adjacent side is the remaining one touching θ.
The calculator works in both degrees and radians, and it will solve a whole triangle when you give it three pieces of information, such as two sides and an angle or all three sides, using the sine rule, the cosine rule and the fact that the angles add to 180°. Results come back with every missing side and angle filled in. To see the ratios in action, take the familiar 3-4-5 right-angled triangle with θ between the sides of length 3 and 5. Its sine is 4/5, or 0.8, its cosine is 3/5, or 0.6, and its tangent is 4/3, roughly 1.33.
A handful of angles are meant to be known exactly rather than looked up. At 0° the sine is 0, the cosine 1 and the tangent 0. At 30° the sine is ½, the cosine √3/2 (about 0.866) and the tangent 1/√3 (about 0.577). At 45° sine and cosine are both 1/√2, about 0.707, while the tangent is 1. At 60° the values swap round from 30°, so the sine is √3/2 and the cosine ½, with a tangent of √3 (about 1.732). At 90° the sine is 1, the cosine 0 and the tangent undefined. UK GCSE and A-Level papers expect all of these without a calculator.
Inverse functions run the process backwards, turning a ratio into an angle. Feed in sin⁻¹(0.5) and you get 30°, cos⁻¹(0.5) gives 60°, and tan⁻¹(1) gives 45°. On a handheld calculator they sit behind the second-function key, labelled sin⁻¹ or arcsin. You need them whenever two sides are known and the angle is not. A ladder 5m long with its base 3m from a wall reaches √(5² − 3²) = 4m up the wall, and the angle it makes with the ground is tan⁻¹(4/3), or 53.13°.
Not every triangle has a right angle, and for the rest two further rules take over. The sine rule, a/sin A = b/sin B = c/sin C, applies when you know two angles and a side, or two sides and a non-included angle. The cosine rule, a² = b² + c² − 2bc·cos A, applies when all three sides are known and you want an angle, or when two sides and the angle between them are known and you want the third side. A classic exam question sets two lighthouses 1km apart with bearings of 30° and 60°, which the sine rule solves for the distance to each. Both rules sit in GCSE Higher Tier and A-Level Maths.
Outside the exam hall the same ratios do a great deal of quiet work. Surveyors measure heights from angles using a theodolite and a tape measure, and GPS fixes a position from satellite angles by triangulation. Builders reach for trigonometry on pitched roof angles, staircase rise and run, and slope gradients, while navigators use it for bearings and course corrections. Physicists resolve forces into components with it, engineers depend on it for stress analysis and structural calculations, astronomers use it for planet positions and eclipse predictions, and sound waves in music are modelled as sine waves.
Example: Right triangle with angle 30° and hypotenuse 10
- sin(30°) = 0.5 → opposite = 10 × 0.5 = 5
- cos(30°) = 0.866 → adjacent = 10 × 0.866 = 8.66
- Third angle: 180° − 90° − 30° = 60°
- Sides: 5, 8.66, 10
Source: BBC Bitesize, Trigonometry
Frequently Asked Questions
- Can I work in radians as well as degrees?
- Yes. Angles can be entered in either degrees or radians, and the setting applies to inputs and results alike. Alongside sine, cosine and tangent it handles the three reciprocal functions, secant, cosecant and cotangent, plus all of the inverse functions. It will also solve a full triangle from three pieces of information, using the sine rule, the cosine rule and the fact that the three angles total 180°.
- When do I use the sine rule instead of the cosine rule?
- The sine rule, a/sin A = b/sin B = c/sin C, fits cases where you know two angles and one side, or two sides and an angle that is not between them. The cosine rule, a² = b² + c² − 2bc·cos A, covers the other two situations: all three sides known and an angle wanted, or two sides plus the angle between them and the third side wanted. Both are examined at GCSE Higher Tier and at A-Level.
- What does SOHCAHTOA actually stand for?
- It is the mnemonic for the three ratios in a right-angled triangle. Sine is opposite over hypotenuse, cosine is adjacent over hypotenuse, and tangent is opposite over adjacent. The hypotenuse faces the right angle and is the longest side, the opposite side faces the angle you are working with, and the adjacent side is the other one touching it. In a 3-4-5 triangle with θ between the 3 and the 5, the three ratios come out at 0.8, 0.6 and 1.33.
- How do I find the angle a ladder makes with the ground?
- Reach for an inverse function. A ladder 5m long with its base 3m from the wall reaches √(5² − 3²) = 4m up it, so the tangent of the angle at the ground is 4/3 and the angle itself is tan⁻¹(4/3), which comes to 53.13°. Inverse functions are what you want whenever two sides are known and the angle is missing, and on a physical calculator they hide behind the second-function key as sin⁻¹, cos⁻¹ or arcsin.