Home › iPhone calculator › Trigonometry
iPhone Calculator Trigonometry: How to Use sin, cos and tan
A Phoney’s Calculator Class tutorial
How tall is the oak tree in your neighbor’s yard? You cannot climb it with a tape measure, and you certainly cannot lay the tree on the ground to measure it. But if you stand 20 meters away, look up at the top of the tree, and measure the angle of your gaze, you can find the height with your iPhone in about ten seconds. The tool that makes this possible is trigonometry.
Trigonometry is the mathematics of triangles and angles. It sounds like a school subject, yet people use it every day: builders checking that a roof slope is safe, surveyors measuring land, pilots planning a descent, game designers moving characters around a screen, and musicians working with sound waves. Your iPhone Calculator holds three of its most important keys, sin, cos and tan, in the scientific keypad.
In this tutorial you will learn what those three words mean, how to press the keys correctly, how to find missing lengths and angles in right triangles, and how to avoid the classic mistakes. You will work with trees, ladders, ramps and shadows. Turn your iPhone sideways, open Calculator, and let us climb.
The right triangle and its three sides
Trigonometry starts with a right triangle, which is a triangle with one square corner of 90 degrees. Pick one of the other two angles and call it the angle you care about. The three sides of the triangle then get names based on where they sit compared with that angle:
- The hypotenuse is the longest side, always opposite the right angle.
- The opposite side is the one across from your angle.
- The adjacent side is the one next to your angle, other than the hypotenuse.
The tree example makes this concrete. You stand on the ground, the tree rises straight up, and the line from your eyes to the treetop is slanted. The right angle is where the tree meets the ground. The angle you measure, at your eyes, is the angle of elevation. The tree itself is the opposite side, the ground between you and the tree is the adjacent side, and your line of sight is the hypotenuse.
What sin, cos and tan mean
The three functions are simply ratios, which means one side divided by another side. For a given angle, each ratio always has the same value, no matter how big or small the triangle is. That is the amazing fact that makes trigonometry work.
- sine (sin) = opposite ÷ hypotenuse
- cosine (cos) = adjacent ÷ hypotenuse
- tangent (tan) = opposite ÷ adjacent
Students remember these with the nonsense word SOH CAH TOA: Sine is Opposite over Hypotenuse, Cosine is Adjacent over Hypotenuse, Tangent is Opposite over Adjacent.
Here is a quick check of the idea. A triangle with a 30-degree angle always has an opposite side that is half the length of the hypotenuse. So sin 30° is always 0.5, whether the triangle is the size of a postage stamp or a mountain.
The calculator stores these ratios for every angle. All you do is type the angle and tap the key.
Before you start: check Deg mode
Angles can be measured in degrees or in radians. Everyday trigonometry uses degrees, where a full turn is 360. Your calculator can work in either unit, and it is vital that it uses the one you intend. We study this in detail in Part 7, but for now, here is the quick check.
In the scientific keypad, the bottom-left key shows Rad when the calculator is in degree mode. If it shows Deg, the calculator is in radian mode, and you should tap it once to switch back. The quickest test of all is to type 30, tap sin, and see what you get. If the screen shows 0.5, you are in degree mode and ready to go. If it shows −0.9880316, you are in radian mode.
Where to find the keys
Turn your iPhone sideways with the orientation lock off. Look at the fourth row on the left side of the scientific keypad. Next to x! you will find sin, cos and tan. They work in the same way as the roots and factorial: type the angle first, then tap the function key. They act immediately, so you do not press equals.
Try these five:
- Type 30, tap sin. The screen shows 0.5.
- Type 60, tap cos. The screen shows 0.5.
- Type 45, tap tan. The screen shows 1.
- Type 90, tap sin. The screen shows 1.
- Type 45, tap sin. The screen shows about 0.7071067812.
These are special angles, and it is worth knowing their sine and cosine values. For 0, 30, 45, 60 and 90 degrees, sine goes 0, 0.5, 0.7071, 0.8660, 1. Cosine goes in the reverse order: 1, 0.8660, 0.7071, 0.5, 0. Tangent goes 0, 0.5774, 1, 1.7321, and then it is undefined at 90 degrees, because you would be dividing by zero. If you try 90, tan, the calculator shows an error.
Finding a missing side
Here is the heart of trigonometry. When you know one angle and one side of a right triangle, you can find the other sides. The method has three steps:
- Decide which sides are involved: the one you know and the one you want.
- Choose the function from SOH CAH TOA that connects those two sides.
- Rearrange and calculate.
Example 1: the height of a tree
You stand 20 meters from the tree. The angle of elevation to the top is 35 degrees. You know the adjacent side (20 m) and you want the opposite side (the height). Opposite and adjacent are linked by tan. So tan 35° = height ÷ 20. Multiply both sides by 20: height = 20 × tan 35°.
On the calculator:
- Type 35.
- Tap tan. The screen shows about 0.7002075.
- Tap ×.
- Type 20.
- Tap =.
- The screen shows about 14.0042.
The tree is about 14 meters tall. If you held your phone at eye level 1.6 meters above the ground, add that to the answer: the tree is about 15.6 meters tall.
Example 2: a leaning ladder
A ladder 5 meters long leans against a wall and makes an angle of 70 degrees with the ground. How high up the wall does it reach, and how far is its foot from the wall?
The ladder is the hypotenuse. The height up the wall is opposite the 70° angle, and the distance along the ground is adjacent to it.
- Height: sin 70° = height ÷ 5, so height = 5 × sin 70°. Type 70, tap sin, tap ×, type 5, tap =. The screen shows about 4.698. The ladder reaches 4.70 meters up the wall.
- Distance from the wall: cos 70° = distance ÷ 5, so distance = 5 × cos 70°. Type 70, tap cos, tap ×, type 5, tap =. The screen shows about 1.710. The foot of the ladder is 1.71 meters from the wall.
A quick check with Pythagoras: 4.698² + 1.710² should equal 5². That is 22.07 + 2.92, which is 25. It works.
Example 3: when the unknown is the hypotenuse
Sometimes the side you want is on the bottom of the fraction. A guy wire holds up a mast. It makes an angle of 25 degrees with the mast, and the horizontal distance it spans from the base is 7 meters, which is the side opposite the 25° angle. How long is the wire?
Sin 25° = 7 ÷ wire length. Rearranged, wire length = 7 ÷ sin 25°.
On the calculator: type 7, tap ÷, type 25, tap sin, tap =. The screen shows about 16.563. The wire is about 16.6 meters long.
The trick is to remember that the function key takes effect on the number on the screen at once. When you type 25 and tap sin, the screen shows 0.4226, and then equals completes the division.
Example 4: shadows
A flagpole casts a shadow 12 meters long when the sun is 40 degrees above the horizon. How tall is the flagpole? The shadow is the adjacent side, the pole is the opposite side, so use tangent: height = 12 × tan 40°. Type 40, tap tan, tap ×, type 12, tap =. The answer is about 10.07 meters.
Finding a missing angle: the inverse keys
What if you know two sides and want the angle? You need the inverse functions, written sin⁻¹, cos⁻¹ and tan⁻¹. They run the key backwards: instead of turning an angle into a ratio, they turn a ratio into an angle.
On the iPhone, these keys are hiding behind the 2nd key. Tap 2nd, and the labels on sin, cos and tan change to sin⁻¹, cos⁻¹ and tan⁻¹. Then tap the key you need. After you use one, the keys return to normal.
The sequence is: calculate the ratio, press equals so the ratio is on the screen, tap 2nd, and tap the function.
Example 5: the angle of a wheelchair ramp
A wheelchair ramp rises 1 meter over a horizontal run of 12 meters. What angle does it make with the ground? The rise is opposite, the run is adjacent, so use tangent. The angle is tan⁻¹(1 ÷ 12).
- Type 1, tap ÷, type 12, tap =. The screen shows about 0.0833333.
- Tap 2nd.
- Tap tan (now labeled tan⁻¹).
- The screen shows about 4.7636.
The ramp makes an angle of about 4.76 degrees. This is the gentle 1-in-12 slope used in many accessibility standards.
Example 6: the angle of a ladder
A 5-meter ladder has its foot 1.5 meters from the wall. What angle does it make with the ground? The distance from the wall is adjacent, the ladder is the hypotenuse, so use cosine. The angle is cos⁻¹(1.5 ÷ 5).
Type 1.5, tap ÷, type 5, tap =. The screen shows 0.3. Tap 2nd, then tap cos. The screen shows about 72.54. The ladder makes a 72.5-degree angle with the ground, which is close to the safe 75-degree guideline many ladder instructions recommend.
Example 7: road grade
A sign says a road has an 8 percent grade, meaning it rises 8 meters for every 100 meters of horizontal distance. The angle is tan⁻¹(0.08). Type 8, tap ÷, type 100, tap =, tap 2nd, tap tan. The screen shows about 4.57, so the road is inclined at about 4.6 degrees. Percentages look much steeper than the angle sounds.
Phoney’s tip: the little ⁻¹ on sin⁻¹ does not mean “one over sine.” It means “the angle whose sine is this.” The reciprocal of sine is a different thing, called cosecant.
Checking the rules with your calculator
Trigonometry is full of neat patterns, and your calculator lets you verify them yourself. Here are three.
Pattern 1: sine squared plus cosine squared always equals 1. Try it with 40 degrees using the memory keys:
- Tap mc.
- Type 40, tap sin, tap x², tap m+. The screen shows about 0.4132.
- Type 40, tap cos, tap x², tap m+. The screen shows about 0.5868.
- Tap mr. The screen shows 1.
Try it with 73 degrees or any other angle. The answer is always 1. This is called the Pythagorean identity.
Pattern 2: tangent equals sine divided by cosine. Type 30, tap sin (0.5), tap ÷, type 30, tap cos (0.8660254), tap =. The screen shows 0.5773503. Now type 30, tap tan. The answer is the same.
Pattern 3: complementary angles swap sine and cosine. Two angles that add up to 90 degrees are called complementary. Sin 20° equals cos 70°, and both are about 0.3420. Check it yourself.
Beyond right triangles: big and negative angles
The keys accept any angle, not just those between 0 and 90 degrees. The values repeat every 360 degrees, because a full turn brings you back to the start. So sin 390° is the same as sin 30°, which is 0.5. Type 390, tap sin, and you will see it.
Negative angles mean turning the other way. To find sin(−30°), type 30, tap ±, tap sin. The screen shows −0.5. The sine of a negative angle is the negative of the sine.
If your angle comes from a sum, such as sin(30° + 15°), remember the golden rule from Part 1. Type 30 + 15 = first so the screen shows 45, then tap sin. You get about 0.7071.
A fun real-world mix: climbing a hill
Suppose a hiking trail climbs steadily at an angle of 12 degrees, and the trail is 3 kilometers long. How much height do you gain? The trail is the hypotenuse, the height gained is the opposite side, so height = 3 × sin 12°. Type 12, tap sin, tap ×, type 3, tap =. The screen shows about 0.6237, so you climb about 624 meters. Trigonometry turns a hiking guide’s angle into a number you can feel in your legs.
Common mistakes and how to avoid them
Mistake 1: the wrong angle mode. If sin 30 does not give 0.5, you are in radian mode. This is the number one trigonometry mistake. Check the mode key first, and read Part 7.
Mistake 2: choosing the wrong function. Before you press anything, label the sides opposite, adjacent and hypotenuse, and use SOH CAH TOA to choose sin, cos or tan.
Mistake 3: typing the angle after the key. On the iPhone, type 35, then tap tan. Do not tap tan first.
Mistake 4: using the plain key to find an angle. To find an angle from sides, use the inverse key from the 2nd menu, such as tan⁻¹. The normal tan key gives a ratio from an angle, not the other way round.
Mistake 5: forgetting equals before an inverse key. The inverse key works on the number on the screen. Finish the division first, so the screen shows the ratio.
Mistake 6: rounding too early. Keep all the digits until the end, or the final height may be off by more than you expect.
Mistake 7: using the formulas for triangles without a right angle. SOH CAH TOA works in right triangles only. For other triangles, you need the sine rule or the cosine rule.
Practice questions
Try these before you look at the answers. Make sure your calculator is in degree mode.
Question 1. What is sin 30°?
Question 2. What is cos 60°?
Question 3. A kite string 50 meters long makes a 60-degree angle with the ground. How high is the kite?
Question 4. A shadow is 8 meters long when the sun is 50 degrees above the horizon. How tall is the object?
Question 5. A right triangle has an opposite side of 5 and an adjacent side of 12. What is the angle?
Question 6. The adjacent side is 10 and the angle is 40 degrees. How long is the hypotenuse?
Question 7. A ramp has a slope of 1 in 20. What angle does it make?
Question 8. What is sin 390°?
Answers
- Question 1: 0.5.
- Question 2: 0.5.
- Question 3: About 43.30 meters. Type 60, tap sin, × 50 =.
- Question 4: About 9.53 meters. Type 50, tap tan, × 8 =.
- Question 5: About 22.62 degrees. Type 5 ÷ 12 =, tap 2nd, then tan.
- Question 6: About 13.05. Type 10 ÷ 40, tap cos, =.
- Question 7: About 2.86 degrees. Type 1 ÷ 20 =, tap 2nd, then tan.
- Question 8: 0.5, because 390 degrees is one full turn plus 30.
Quick reference
- sin = opposite ÷ hypotenuse. cos = adjacent ÷ hypotenuse. tan = opposite ÷ adjacent.
- Type the angle first, then tap the function key. No equals needed.
- Check the mode: sin 30 should give 0.5 in degree mode.
- Use 2nd to reach sin⁻¹, cos⁻¹ and tan⁻¹ when you want an angle.
- tan 90° is undefined and shows an error.
- SOH CAH TOA works only in right triangles.
Frequently asked questions
Why do some answers look like 0.99999999 instead of 1? The calculator works with a limited number of digits, so tiny rounding differences can appear. Treat a result that is extremely close to a whole number as that number.
Do I need to memorize the special values? No, but knowing that sin 30° and cos 60° are 0.5 helps you spot mistakes quickly.
Can sine or cosine ever be bigger than 1? No. Both stay between −1 and 1, because the hypotenuse is the longest side. If you ask for sin⁻¹ of 2, the calculator shows an error.
What is the difference between tan and tan⁻¹? Tan takes an angle and gives a ratio. Tan⁻¹ takes a ratio and gives an angle.
What comes next
You now have the three classic trigonometry keys. In Part 6, you will meet their curious cousins on the bottom row, sinh, cosh and tanh. They look similar but come from a different shape, and they appear in the study of hanging cables, bridges and even artificial intelligence. They are easier than they sound, and you already have the skills you need.
Until then, take a walk and estimate the height of a lamp post or a building. Measure the distance, estimate the angle, and let your iPhone do the rest.