Free tool
Sine, cosine and tangent calculator, SOH CAH TOA with steps.
Type an angle to get its sine, cosine and tangent, plus csc, sec and cot, with exact values at the common angles, its quadrant, its reference angle and a unit circle drawing. Or solve a right triangle: fill in any two of the angle and the three sides and get the rest, with the SOH, CAH or TOA rule named and the triangle drawn. You can also turn a ratio back into an angle, including csc, sec and cot. Degrees, minutes and seconds, radians and gradians all work.
What to find
Fill in exactly two boxes.
Opposite is across from θ, adjacent is next to it, and the hypotenuse is across from the right angle.
Worked out in your browser. Nothing is sent anywhere.
Guide
How to use SOH CAH TOA, with worked examples.
SOH CAH TOA is the memory aid for the three main trigonometric ratios of a right triangle: sine is opposite over hypotenuse, cosine is adjacent over hypotenuse, and tangent is opposite over adjacent. This sine, cosine and tangent calculator gives all six ratios of an angle, solves a right triangle from any two known values, and turns a ratio back into an angle. It names the SOH, CAH or TOA rule it used, so you can follow the working.
How to use the sine, cosine and tangent calculator
- Choose Angle to ratios, Right triangle or Ratio to angle.
- For ratios, type the Angle and pick degrees, radians or gradians. Sin, cos, tan and their reciprocals csc, sec and cot appear, with exact values at angles such as 30°, 45° and 60°.
- For a right triangle, fill in exactly two of Angle θ, Opposite, Adjacent, Hypotenuse and Area. Leave the others empty.
- For the inverse, pick sin, cos, tan, csc, sec or cot, type the value, and read the angle in degrees, in radians and in the full turn.
The three ratios
| Name | Rule | Reciprocal |
|---|---|---|
| SOH | sin θ = opposite ÷ hypotenuse | csc θ = hypotenuse ÷ opposite |
| CAH | cos θ = adjacent ÷ hypotenuse | sec θ = hypotenuse ÷ adjacent |
| TOA | tan θ = opposite ÷ adjacent | cot θ = adjacent ÷ opposite |
Worked example: the ratios of 35°
sin 35° = 0.5736, cos 35° = 0.8192 and tan 35° = 0.7002. Check that tan = sin ÷ cos: 0.5736 ÷ 0.8192 = 0.7002. The reciprocals are csc 35° = 1.7434, sec 35° = 1.2208 and cot 35° = 1.4281.
Worked example: find the sides
A right triangle has θ = 30° and an opposite side of 5. The opposite and the hypotenuse go with sine, so sin 30° = 5 ÷ hypotenuse. That gives hypotenuse = 5 ÷ 0.5 = 10. The adjacent side uses tangent: adjacent = 5 ÷ tan 30° = 8.6603. Check with Pythagoras: 5² + 8.6603² = 25 + 75 = 100 = 10².
Worked example: a ladder
A 6 m ladder leans at 70° to the ground. The ladder is the hypotenuse, the height up the wall is the opposite side, and the distance from the wall is the adjacent side. Height = 6 × sin 70° = 5.6382 m and base = 6 × cos 70° = 2.0521 m. Enter angle 70 and hypotenuse 6 to see it.
Worked example: two sides to an angle
With opposite 3 and adjacent 4, tan θ = 3 ÷ 4 = 0.75, so θ = arctan 0.75 = 36.87° and the hypotenuse is √(9 + 16) = 5. The other acute angle is 90° − 36.87° = 53.13°.
Worked example: from the area
A right triangle has an area of 24 and an adjacent side of 6. Since area = ½ × opposite × adjacent, the opposite side is 2 × 24 ÷ 6 = 8. Then tan θ = 8 ÷ 6, so θ = 53.13° and the hypotenuse is √(64 + 36) = 10. An area with only the hypotenuse is not enough, because two different triangles fit it, so the page asks for one more value.
From a ratio back to an angle
If sin θ = 0.5, then θ = arcsin 0.5 = 30°. The same sine also happens at 150° in one full turn, because sine is positive in two quadrants. The page lists both. A sine or cosine can only be from −1 to 1, so a value such as 1.5 has no angle.
Exact values at the special angles
Some angles have clean answers that come from half a square or half an equilateral triangle. The calculator shows these exact forms next to the decimals. They are worth knowing by heart for exams, because most calculator-free questions use them.
| Angle | sin | cos | tan |
|---|---|---|---|
| 0° | 0 | 1 | 0 |
| 30° | 1/2 | √3/2 | √3/3 |
| 45° | √2/2 | √2/2 | 1 |
| 60° | √3/2 | 1/2 | √3 |
| 90° | 1 | 0 | undefined |
Look at the sine column going down: 0, 1/2, √2/2, √3/2, 1. Written as √0/2, √1/2, √2/2, √3/2, √4/2 it is easy to remember, and the cosine column is the same list upside down. This works because the cosine of an angle equals the sine of its complement, so cos 30° = sin 60°.
Angles bigger than 90 degrees
The right triangle picture only holds from 0° to 90°, but the ratios exist for every angle. The trick is the reference angle, the acute angle between the arm of the angle and the x axis. For 120° that is 180° − 120° = 60°, so sin 120° = sin 60° = √3/2, cos 120° = −cos 60° = −1/2 and tan 120° = −√3. For 225° the reference angle is 45°, so sin 225° = cos 225° = −√2/2 and tan 225° = 1. The page gives the quadrant, the reference angle and a unit circle drawing with the cosine and sine marked.
| Quadrant | Angle | Positive ratios |
|---|---|---|
| I | 0° to 90° | sin, cos, tan |
| II | 90° to 180° | sin only |
| III | 180° to 270° | tan only |
| IV | 270° to 360° | cos only |
Negative angles turn clockwise, so −45° lands in quadrant IV: sin(−45°) = −√2/2 and cos(−45°) = √2/2. Angles over 360° wrap round: sin 720° = sin 0° = 0.
Exact values at 15 and 75 degrees
Besides 30°, 45° and 60°, the page gives exact values for 15° and 75° and their mirror angles. sin 15° = (√6 − √2) ÷ 4 = 0.2588, cos 15° = (√6 + √2) ÷ 4 = 0.9659 and tan 15° = 2 − √3 = 0.2679. At 75° the sine and cosine swap and tan 75° = 2 + √3 = 3.7321. The reciprocals csc, sec and cot are shown exactly at 30°, 45° and 60° and their mirror angles, for example sec 30° = 2√3/3.
Degrees, minutes and seconds
Surveying and navigation angles come as 35° 30' 15". Type it that way. The page turns it into 35 + 30 ÷ 60 + 15 ÷ 3600 = 35.504167° and gives sin = 0.5808, cos = 0.8141 and tan = 0.7134. Every angle result also shows its degrees, minutes and seconds form.
Inverse csc, sec and cot
These are worked through the ratio they are the reciprocal of. If sec θ = −2 then cos θ = −1/2, so θ = 120° or 240° in one full turn. If csc θ = 2 then sin θ = 1/2, so θ = 30° or 150°. A csc or sec can never be between −1 and 1, and the page says so. The calculator shows the principal value, which is −90° to 90° for arcsin and arctan and 0° to 180° for arccos, then lists the angles in 0° to 360°. For sin θ = −0.5 the principal value is −30°, and in the full turn it is 210° and 330°.
Using the ratios in real problems
Heights and distances are the classic uses. To find the height of a tree, stand a known distance away, measure the angle up to the top, and use tan θ = height ÷ distance. A tree seen at 40° from 12 m away is 12 × tan 40° = 10.07 m tall (plus your eye height). Slopes use the same idea: a ramp that rises 1 for every 12 along is at arctan(1/12) = 4.76°. For roof pitch, stairs and cables, the hypotenuse is the length of material you need and the two legs are the rise and the run.
Common problems
- Using the right triangle for a big angle. A right triangle only has angles under 90°. For 120° or 225° use the reference angle and the signs in the table above.
- Wrong angle mode. sin 30 gives 0.5 in degrees but −0.988 if your tool is set to radians. Check the unit box.
- Labelling the sides from the wrong corner. Opposite and adjacent depend on which angle you call θ. The hypotenuse is always across from the right angle.
- A hypotenuse that is too short. It must be the longest side. The page tells you when it is not.
For angles beyond 90°, see the unit circle chart. For triangles without a right angle use the law of cosines calculator or the triangle calculator.
Questions
Good to know.
What does SOH CAH TOA mean?
It is a memory aid. Sine is Opposite over Hypotenuse, Cosine is Adjacent over Hypotenuse, and Tangent is Opposite over Adjacent.
How do I find sin, cos and tan of an angle?
Type the angle in Angle to ratios. For 35° you get sin 0.5736, cos 0.8192 and tan 0.7002. Choose radians or gradians if your angle is in those.
Which side is opposite and which is adjacent?
Opposite is the side across from the angle θ. Adjacent is the side that touches θ and is not the hypotenuse. The hypotenuse is across from the right angle.
How do I find an angle from two sides?
Pick the ratio that uses both sides, then use the inverse. With opposite 3 and adjacent 4, tan θ = 0.75 and θ = arctan 0.75 = 36.87°.
Why is tan 90° undefined?
Because cos 90° is 0, and tan = sin ÷ cos. Dividing by 0 has no answer, so the page shows undefined.
Does this work for triangles without a right angle?
Not directly. Use the law of sines or the law of cosines for those. The law of cosines calculator and the triangle calculator are linked below.
What are csc, sec and cot?
They are the reciprocals: csc = 1 ÷ sin, sec = 1 ÷ cos and cot = 1 ÷ tan.
Why are there two angles for the same sine?
Within 0° to 360° the sine is the same at θ and at 180° − θ. A right triangle only uses the first one, between 0° and 90°.
What is the sine of 120 degrees?
It is √3/2, about 0.866. The reference angle is 60°, and sine is positive in quadrant II.
Can I type degrees, minutes and seconds?
Yes. Type 35° 30' 15" with the unit set to degrees. The page converts it to 35.504167° first.
How do I find an angle from sec or csc?
Take the reciprocal and use the matching inverse. For sec θ = −2, cos θ = −1/2, so θ = 120° or 240°. Choose sec, csc or cot in Ratio to angle and the page does it.
Why does the inverse show two angles?
Sine, cosine and tangent each repeat in one full turn. Sin 30° and sin 150° are both 0.5, so the page lists both angles in 0° to 360°.