Angle Calculator
Right Triangle Angle From Cosine Calculator
Enter the adjacent side and hypotenuse to find angle A using the inverse cosine (arccos) formula.
Calculate Angle From Cosine
This calculator finds Angle A using .
Enter inputs to calculate Angle A.
Angle A
Result-
Solution Steps
Formula:
What Is the Right Triangle Angle From Cosine Calculator?
The right triangle angle from cosine calculator finds an acute angle when you know the adjacent side and the hypotenuse. It applies the inverse cosine function, written arccos or cos, to the ratio of those two sides. The result is angle A in degrees.
This tool exists for a specific measurement situation: you can measure the side next to your target angle and the longest side of the triangle, but the opposite side is unknown or hard to reach. Instead of calculating the opposite side first, arccos skips it entirely and converts the adjacent-over-hypotenuse ratio straight into the angle.
For example, an adjacent side of 4 and a hypotenuse of 5 give the ratio 0.8. The arccos of 0.8 is approximately 36.87 degrees. That is angle A. The other acute angle follows from the complement rule: 90 minus 36.87, or 53.13 degrees.
Arccos is one of three inverse trigonometric tools on this site. If your known sides are the opposite side and the hypotenuse, the angle from sine calculator is the right choice. If you know both legs but not the hypotenuse, use the angle from tangent calculator. This page covers the cosine case in full depth.
Understanding Arccos (Inverse Cosine)
Regular cosine takes an angle and returns a ratio. The cosine of 60 degrees is 0.5. Arccos reverses this: it takes a ratio and returns the angle. The arccos of 0.5 is 60 degrees. The two functions undo each other, which is why arccos is also written as cos
The formula used by this calculator is . Here b is the adjacent side, c is the hypotenuse, and A is the angle between them. The ratio b/c always falls between 0 and 1 for a valid right triangle, because the adjacent side is always shorter than the hypotenuse.
Think of arccos as asking a question: "Which angle has this cosine value?" If b/c equals 0.8, the question becomes "which angle has a cosine of 0.8?" The answer, 36.87 degrees, is the angle whose adjacent side is 80 percent as long as the hypotenuse.
The Ratio Tells a Story
The value of b/c describes the shape of the triangle. A ratio near 1 means the adjacent side is almost as long as the hypotenuse, so the angle between them is tiny. A ratio near 0 means the adjacent side is very short compared to the hypotenuse, so the angle opens wide toward 90 degrees. A ratio of exactly 0.5 always means 60 degrees.
Domain of Arccos
Arccos only accepts inputs from 0 to 1 in this geometric context. A ratio above 1 is impossible for a right triangle and signals a labeling error: the hypotenuse must be the denominator and must be the longest side. A negative ratio would describe an obtuse angle, which cannot appear as angle A in a right triangle.
Arccos vs. Arcsin vs. Arctan: When to Use Each
All three inverse functions find the same angle when applied to the same triangle. They differ only in which sides they require. Choosing correctly saves you from computing a side you do not need.
Use arccos when you know the adjacent side (b) and the hypotenuse (c). The formula is . This is the natural choice when the hypotenuse was measured directly, for example with a tape along a slope, and the horizontal distance is known.
Use arcsin when you know the opposite side (a) and the hypotenuse (c). The formula is . Height problems favor arcsin: the vertical rise is opposite the ground-level angle. The angle from sine calculator handles this case.
Use arctan when you know both legs (a and b) but not the hypotenuse. The formula is . Field measurements like roof rise over run favor arctan because both legs are measured directly. See the angle from tangent calculator for that method.
They Must Agree
For any single triangle, arccos(b/c), arcsin(a/c), and arctan(a/b) produce the identical angle. In a 3-4-5 triangle, arccos(4/5), arcsin(3/5), and arctan(3/4) all equal 36.87 degrees. If two methods disagree, a side is mislabeled. This cross-check is the most reliable verification available, and the trig ratios calculator can confirm all three ratios at once.
Why Not Always Use Arctan?
Arctan needs both legs. If the opposite side is unknown and hard to measure, computing it first just to use arctan adds an unnecessary step and an extra chance of error. Arccos goes straight from the two sides you have to the angle you want. Match the function to your measurements, not to habit.
Adjacent Side and Hypotenuse: The Two Inputs
Arccos needs exactly two sides: the adjacent side b and the hypotenuse c. Getting these labels right is the entire battle. Everything after that is arithmetic.
Identifying the Adjacent Side
The adjacent side is the leg that touches angle A. It forms one edge of the angle itself. In the diagram below, side b runs along the bottom from the right angle to angle A. If you are solving for the other acute angle B instead, the labels swap: the side adjacent to B is the one touching B.
Identifying the Hypotenuse
The hypotenuse is the side opposite the right angle. It is always the longest side of the triangle. It never touches the right angle vertex. If your "hypotenuse" is not the longest of your three measurements, relabel before calculating. The Pythagorean theorem calculator can confirm which side is longest when you have all three.
Why the Opposite Side Stays Out
Cosine is defined as adjacent over hypotenuse. The opposite side simply does not appear in this ratio. That is the point of this calculator: when the opposite side is unknown, buried, or irrelevant to your measurement setup, arccos still delivers the angle. You are not ignoring the opposite side; you are using a ratio that never needed it.
How to Use the Angle From Cosine Calculator
- Confirm the right angle. The calculator only works for right triangles. Identify the 90-degree corner first.
- Pick your target angle. Decide whether you are solving for angle A or angle B. The adjacent side is defined relative to this choice.
- Measure the adjacent side b. This is the leg touching your target angle. Record it in any unit.
- Measure the hypotenuse c. This is the longest side, across from the right angle. Use the same unit as b.
- Check that b is less than c. If it is not, the sides are mislabeled. The hypotenuse must be longest.
- Enter both values and press Calculate. The tool computes b/c, applies arccos, and returns angle A in degrees.
- Find the second angle. Subtract from 90 degrees: B = 90 minus A.
- Verify. Compute cos(A) on a calculator and confirm it equals b/c. If it does, the answer is solid.
16 Worked Examples
Each example follows the same four steps: write the formula, substitute, divide, apply arccos. Angles are rounded to two decimal places.
Example 1: The 3-4-5 Triangle
Given adjacent b = 4 and hypotenuse c = 5, find angle A.
A = arccos(b/c) = arccos(4/5) = arccos(0.8) . The complement B = 53.13
Example 2: The 5-12-13 Triangle
Given adjacent b = 12 and hypotenuse c = 13, find angle A.
A = arccos(12/13) = arccos(0.9231) . The complement B = 67.38
Example 3: The 8-15-17 Triangle
Given adjacent b = 8 and hypotenuse c = 17, find angle A.
A = arccos(8/17) = arccos(0.4706) . The complement B = 28.07
Example 4: Same Triangle, Other Angle
Given adjacent b = 15 and hypotenuse c = 17 (solving for angle B of the 8-15-17 triangle).
B = arccos(15/17) = arccos(0.8824) . Note 61.93 + 28.07 = 90, as required.
Example 5: 5-12-13, Other Angle
Given adjacent b = 5 and hypotenuse c = 13.
B = arccos(5/13) = arccos(0.3846) . This matches the complement from Example 2.
Example 6: 3-4-5, Other Angle
Given adjacent b = 3 and hypotenuse c = 5.
B = arccos(3/5) = arccos(0.6) . This matches the complement from Example 1.
Example 7: The 60-Degree Special Case
Given adjacent b = 1 and hypotenuse c = 2.
A = arccos(1/2) = arccos(0.5) = 60 exactly. This is the 30-60-90 special triangle. The special right triangle calculator covers these exact values.
Example 8: The 7-24-25 Triangle
Given adjacent b = 7 and hypotenuse c = 25, find angle A.
A = arccos(7/25) = arccos(0.28) . The complement B = 16.26
Example 9: 7-24-25, Other Angle
Given adjacent b = 24 and hypotenuse c = 25.
B = arccos(24/25) = arccos(0.96) . Matches the complement from Example 8.
Example 10: The 9-40-41 Triangle
Given adjacent b = 9 and hypotenuse c = 41, find angle A.
A = arccos(9/41) = arccos(0.2195) . A small adjacent side gives a wide angle.
Example 11: 9-40-41, Other Angle
Given adjacent b = 40 and hypotenuse c = 41.
B = arccos(40/41) = arccos(0.9756) . Note 77.32 + 12.68 = 90.
Example 12: The 20-21-29 Triangle
Given adjacent b = 20 and hypotenuse c = 29, find angle A.
A = arccos(20/29) = arccos(0.6897) . The complement B = 43.60
Example 13: 20-21-29, Other Angle
Given adjacent b = 21 and hypotenuse c = 29.
B = arccos(21/29) = arccos(0.7241) . Matches the complement from Example 12.
Example 14: The 6-8-10 Triangle
Given adjacent b = 6 and hypotenuse c = 10, find angle A.
A = arccos(6/10) = arccos(0.6) . Same angle as Example 6, since 6-8-10 is a scaled 3-4-5.
Example 15: 6-8-10, Other Angle
Given adjacent b = 8 and hypotenuse c = 10.
B = arccos(8/10) = arccos(0.8) . Same as Example 1, confirming similar triangles share angles.
Example 16: The 12-16-20 Triangle
Given adjacent b = 12 and hypotenuse c = 20, find angle A.
A = arccos(12/20) = arccos(0.6) . Another scaled 3-4-5, same angle again. Scaling sides never changes angles.
Special Angle Values Worth Memorizing
A few arccos values appear so often that recognizing them saves time. They come from the special right triangles.
: the adjacent side equals the hypotenuse, so the angle collapses to zero. This is a degenerate case, not a real triangle, but it anchors the scale.
: from the 30-60-90 triangle. When the adjacent side is about 86.6 percent of the hypotenuse, the angle is 30 degrees.
: from the 45-45-90 triangle. Equal legs give this exact value.
: from the 30-60-90 triangle, the case in Example 7. When the adjacent side is exactly half the hypotenuse, the angle is exactly 60 degrees.
: the adjacent side shrinks to zero, so the angle opens to a right angle. Like the zero case, this is a boundary, not a real triangle angle.
Between these landmarks, arccos decreases smoothly as the ratio increases. Memorizing the five anchor points lets you estimate any arccos mentally: a ratio of 0.7 sits between 0.5 (60 degrees) and 0.866 (30 degrees), a bit closer to 45 degrees. The true value is about 45.57 degrees.
Common Mistakes When Using Arccos
Using the Opposite Side Instead of the Adjacent Side
The most frequent error. Arccos needs the side touching angle A, not the side across from it. If you feed the opposite side into arccos, you get the complement of the intended angle. In a 3-4-5 triangle, arccos(3/5) = 53.13 degrees is angle B, not angle A. Fix: sketch the triangle, mark your target angle, and trace which leg touches it.
Putting the Hypotenuse in the Numerator
Arccos expects adjacent over hypotenuse, a number below 1. Entering c/b instead of b/c gives a ratio above 1, and the calculator returns a math error. Fix: the hypotenuse is always the denominator in the arccos ratio.
Confusing Arccos With Cosine
On many calculators, the cosine key and the inverse cosine key (often labeled cos or arccos) sit near each other. Pressing cos(0.8) instead of arccos(0.8) gives 0.6967, a meaningless ratio, instead of 36.87 degrees. Fix: check that your calculator is in degree mode and that you pressed the inverse key.
Mixing Degrees and Radians
Arccos(0.8) is 36.87 degrees but 0.6435 radians. If your hand calculation gives 0.64 for a 3-4-5 triangle, the calculator is in radian mode. Multiply by 180/pi to convert, or switch the mode to degrees. This calculator outputs degrees.
Entering Sides in Different Units
Adjacent in inches and hypotenuse in feet corrupts the ratio. Convert to a common unit first. The ratio is unitless, but only when both inputs share the unit.
Rounding the Ratio Too Early
Arccos(0.8) = 36.87 degrees, but arccos(0.80) rounded from 0.795 gives 37.24 degrees. Near ratios of 0 and 1, where arccos is steepest, small ratio errors magnify. Keep full precision through the division and round only the final angle.
Forgetting Which Angle Was Solved
Arccos returns the angle whose adjacent side you entered. If you entered the side touching angle B, the result is angle B. Label the answer with the correct angle name, or verify with the complement: the two acute angles must sum to 90 degrees.
Verifying Your Arccos Answer
Three checks confirm a correct arccos calculation:
- Range check. The result must fall strictly between 0 and 90 degrees. Anything outside signals invalid inputs or mislabeled sides.
- Round-trip check. Compute cos(A) and confirm it equals b/c. For Example 1, cos(36.87) 0.8 = 4/5. If the round trip fails, the angle is wrong.
- Cross-method check. Recompute with arcsin or arctan using the third side. If arccos(4/5) = 36.87 and arctan(3/4) = 36.87, the answer is solid. Disagreement points to a labeling error.
For the 3-4-5 triangle, also verify the sides satisfy the Pythagorean theorem: 9 + 16 = 25. Confirming the sides before trusting the angle derived from them is good practice, and the Pythagorean theorem calculator makes it quick.
A fourth check uses the complement. Compute B = 90 minus A, then verify arccos of the other ratio gives B. In Example 1, arccos(3/5) = 53.13, which matches 90 minus 36.87. When all four checks pass, the answer is beyond doubt.
Real-Life Applications of Arccos
Arccos appears wherever a slope distance and a horizontal distance are the natural measurements. The hypotenuse is measured along the slope itself, and the adjacent side is the horizontal component.
Surveying Slopes
A surveyor measures 65 meters along a slope and 60 meters horizontally. The slope angle is arccos(60/65), about 22.6 degrees. This is the standard arccos situation: the slant distance is easy to tape, the horizontal comes from the map or a level, and the opposite side (elevation) is what you might compute next.
Sun Elevation From Shadows
A 10-meter light ray casts an 8-meter shadow. The sun elevation angle is arccos(8/10), about 36.9 degrees. Shadow problems are natural arccos problems because the shadow lies along the ground (adjacent) and the ray is the hypotenuse.
Roof Rafter Pitch
A rafter spans 6.5 meters with a horizontal run of 6 meters. The pitch angle at the eave is arccos(6/6.5), about 22.6 degrees. Carpenters measure the rafter directly and the run along the joist, so arccos fits the measurements as taken.
Engineering Braces
A diagonal brace measures 4 meters with a 3.5-meter horizontal base. The brace angle is arccos(3.5/4), about 28.96 degrees. Structural sketches give the brace length and its footprint; arccos turns those into the installation angle.
Frequently Asked Questions
Answers to the most common right-triangle solving questions.
01 What does A = arccos(b / c) actually mean?
It means you divide the adjacent side by the hypotenuse, then work backward from that decimal to find the angle whose cosine equals it. The result is the acute angle between the adjacent side and the hypotenuse.
02 When should I use arccos instead of arcsin?
Use arccos when you know the adjacent side and the hypotenuse. Use arcsin when you know the opposite side and the hypotenuse. Both give the same angle for the same triangle; the choice depends on which sides you measured.
03 Why am I getting a math error from arccos?
The most common cause is a ratio greater than 1, which happens when the adjacent side entered is longer than the hypotenuse. In a valid right triangle the hypotenuse is always longest, so check your side labels.
04 Can I use arccos without knowing the opposite side?
Yes. That is the main advantage of arccos: it needs only the adjacent side and the hypotenuse. The opposite side never enters the calculation.
05 What is the difference between cos and arccos?
Cosine takes an angle and returns a ratio: cos(60 degrees) = 0.5. Arccos reverses this: it takes a ratio and returns the angle, so arccos(0.5) = 60 degrees. Use cosine when you know the angle; use arccos when you know the sides.
06 Why do arccos, arcsin, and arctan give the same answer?
Because they describe the same geometric angle through different side pairs. In a 3-4-5 triangle, arccos(4/5), arcsin(3/5), and arctan(3/4) all equal 36.87 degrees. Agreement between methods confirms correct side labels.
07 What does it mean if b/c equals exactly 0.5?
The angle is exactly 60 degrees. This is the 30-60-90 special triangle, where the side adjacent to the 60-degree angle is half the hypotenuse.
08 Should the answer be in degrees or radians?
This calculator uses degrees, the standard for construction, surveying, and classroom geometry. If you compute by hand, make sure the calculator is in degree mode; a radian-mode result like 0.64 converts to 36.87 degrees by multiplying by 180/pi.
09 How do I find the other acute angle?
Subtract from 90 degrees. If arccos gives A = 36.87 degrees, then B = 90 - 36.87 = 53.13 degrees. No further trigonometry is needed.
10 Can the arccos result ever be 90 degrees?
Only as a limit: arccos(0) = 90 degrees, but a zero adjacent side means a degenerate triangle, not a real one. Valid right triangle angles from arccos always fall strictly between 0 and 90 degrees.
11 How can I check my arccos answer?
Compute cos(A) and confirm it equals b/c. Also recompute with arcsin or arctan using the third side; all methods must agree. Finally, check that both acute angles sum to exactly 90 degrees.
12 Does scaling the triangle change the arccos result?
No. Similar triangles have identical angles. A 3-4-5 triangle and a 6-8-10 triangle both give arccos(0.8) = 36.87 degrees, because the ratio b/c is unchanged by scaling.
Find Any Angle From Cosine With Confidence
Start by identifying the adjacent side: the leg touching your target angle. Confirm the hypotenuse is the longest side. Divide, apply arccos, and read the angle in degrees. Get the second angle from 90 minus the first. Verify with the round-trip check, a cross-method computation, and the angle sum. With these steps, any adjacent-and-hypotenuse problem reduces to a reliable routine. Return to the calculator at the top of this page to run your numbers.