Use this calculator to find adjacent side b from angle A and hypotenuse c.
Use this calculator to find adjacent side b from angle A and hypotenuse c.
Leg b from Cosine Calculator
This calculator finds Adjacent side b using b=c⋅cos(A).
Enter inputs to calculate Adjacent side b.
Adjacent side b
Result
-
Solution Steps
Formula:b=c⋅cos(A)
Live Visualization
Leg b from Cosine Diagram
What This Tool Solves
This calculator takes angle A and hypotenuse c as inputs and returns the adjacent side b. Cosine is the ratio that links these three values, so the formula needs no rearranging.
Known values
Angle A and hypotenuse c
Finds
Adjacent side b
Main formula
b = c × cos(A)
Best for
Finding horizontal run, base distance, or ground projection
Right Triangle Diagram: Side b from Cosine
In this layout, angle A is at the bottom-right. The adjacent side b runs along the base, sitting right next to angle A. The hypotenuse c stretches from angle A up to the top vertex. The calculator uses these two known values to find b.
Diagram Key
Side to find a
Opposite side a is directly across from angle A. It is not needed for this calculation.
Side to find b = find
Adjacent side b runs along the base next to angle A. This is the value the calculator returns.
Known side c = known
Hypotenuse c is the longest side, opposite the right angle. You provide this as input.
For angle A, side a is opposite, side b is adjacent, and side c is the hypotenuse.
The adjacent side is always the side that touches angle A and the right angle.
The result b will always be shorter than c.
Side From Cosine Formula
The cosine of an angle in a right triangle equals the adjacent side divided by the hypotenuse. Written as a ratio: cos(A) = b / c. Multiplying both sides by c gives the direct formula below.
Here, c is the hypotenuse (the longest side, opposite the 90-degree angle), A is the acute angle, and b is the adjacent side you want. The cosine function converts the angle into the exact fraction of the hypotenuse that equals the adjacent side.
b=c×cos(A)
How to Use This Calculator
Find the hypotenuse c in your right triangle. It is the side across from the right angle and always the longest side.
Identify your known acute angle A. Confirm the value is in degrees.
Type the hypotenuse c into the first field.
Type angle A into the second field.
Press Calculate to see the adjacent side b and the step-by-step solution.
Step-by-Step Example: Find Adjacent Side b
Given: A = 36.87 degrees, c = 5. Find adjacent side b using the cosine formula.
b=c×cos(A)
b=5×cos(36.87)
b=5×0.8
b=4
How to Find the Adjacent Side Using Cosine
A 5 m ladder leans against a wall, making a 65-degree angle with the ground. You know the ladder length and the angle, but how far is the base from the wall? That horizontal distance is the adjacent leg of a right triangle, and cosine finds it directly. A cosine side calculator takes the hypotenuse and one acute angle as inputs and returns the adjacent side, no manual trigonometry tables required.
This page explains the cosine formula from first principles: what the adjacent side means, why cosine uses the hypotenuse, how to identify the correct sides in any diagram orientation, and how to apply the result to real measurements. The formula is b = c × cos(A), where b is the side next to angle A, c is the hypotenuse, and A is measured in degrees. Unlike a basic Pythagorean calculator that needs two sides, this tool works when you know one side and one angle.
Understanding the Adjacent Side and Hypotenuse
What Is a Right Triangle?
A right triangle contains one angle measuring exactly 90 degrees. The other two angles are acute (each less than 90 degrees) and complementary, meaning they sum to 90 degrees. If angle A is 30 degrees, the other acute angle B must be 60 degrees. Cosine calculations require this right-angle structure because the ratio definitions depend on the perpendicular relationship between the legs.
What Is the Hypotenuse?
The hypotenuse sits opposite the right angle and is always the longest side. It is labeled c by convention. To find it in a rotated diagram, look for the side that does not touch the right-angle marker. In this calculator, you enter the hypotenuse as a known value.
What Is the Adjacent Side?
The adjacent side is the leg that touches both the reference angle A and the right angle. For angle A, side b is adjacent and side a is opposite. If you switch your reference to angle B, the labels swap: side a becomes adjacent and side b becomes opposite. The hypotenuse never changes; it is always c, opposite the 90-degree angle.
Anatomy for cosine: angle A at the bottom-left, adjacent leg b along the base, opposite leg a vertical, hypotenuse c across from the right angle.
What Is Cosine in a Right Triangle?
Cosine expresses a simple ratio: for a given acute angle, the adjacent leg divided by the hypotenuse always gives the same number. That number is cos(A). If angle A is 60 degrees, cos(60°) = 0.5, which means the adjacent side is exactly half the hypotenuse, no matter how large or small the triangle is.
The ratio has no units because the units cancel: meters divided by meters leaves a pure number. To find the adjacent side, rearrange the ratio. Start with cos(A) = b / c. Multiply both sides by c. The c in the denominator cancels, leaving b = c × cos(A). The formula multiplies the known hypotenuse by the cosine of the known angle.
For any valid acute angle (between 0 and 90 degrees), cos(A) is between 0 and 1. This guarantees the adjacent leg is shorter than the hypotenuse, which matches the geometry: no leg can exceed the hypotenuse.
Understanding SOH-CAH-TOA
SOH-CAH-TOA is a memory aid for the three basic ratios. SOH: Sine = Opposite / Hypotenuse. CAH: Cosine = Adjacent / Hypotenuse. TOA: Tangent = Opposite / Adjacent. For this page, focus on CAH. The mnemonic helps you pick the right ratio, but you still need to correctly identify which side is adjacent to your reference angle.
The cosine ratio: divide the highlighted adjacent leg b by the highlighted hypotenuse c to get cos(A).
How to Use the Right Triangle Side From Cosine Calculator
Follow these steps to get an accurate result.
Steps:
Identify the right angle in your triangle. Confirm one corner measures 90 degrees.
Identify the known acute angle A. Make sure it is not the right angle.
Locate the hypotenuse c. It is the side opposite the right angle, always the longest side.
Identify the adjacent leg b. It touches both angle A and the right angle.
Enter the hypotenuse length c into the first input field.
Enter angle A in degrees into the second field.
Select the measurement unit that matches your hypotenuse input.
Press Calculate. The result shows the adjacent side b with solution steps.
Review the steps to confirm the formula and substitution match your problem.
Check that b is shorter than c. If not, recheck which side you entered as the hypotenuse.
How to Calculate the Adjacent Side Using Cosine
Example 1: A Basic Right Triangle
Given: c = 10 m, A = 30°. Find: b.
Formula: b = c × cos(A)
Substitution: b = 10 × cos(30°)
Cosine value: cos(30°) ≈ 0.8660254
Calculation: b ≈ 10 × 0.8660254 = 8.660254
Answer:b ≈ 8.66 m
The result is shorter than the 10 m hypotenuse, as expected. At 30 degrees, the adjacent side is about 87% of the hypotenuse length.
Example 2: A Special Angle
Given: c = 12 ft, A = 60°. Find: b.
Calculation: b = 12 × cos(60°) = 12 × 0.5 = 6
Answer:b = 6 ft
At 60 degrees, cos(A) = 0.5 exactly, so the adjacent leg is precisely half the hypotenuse. Special angles like 30°, 45°, and 60° give clean cosine values worth remembering.
Keep full precision in the cosine value during calculation and round only the final answer. Rounding cos(42°) to 0.74 early would give 5.55 m, introducing a small but avoidable error.
As the angle approaches 90 degrees, the adjacent leg shrinks toward zero. At 80°, the adjacent side is only about 17% of the hypotenuse. This is normal geometry, not a calculation error.
Worked solution: b = 10 × cos(30°) ≈ 8.66 m, with each substitution step shown.
Real-Life Examples of Cosine Calculations
These examples show how the cosine formula solves practical measurement problems. In each case, the known sloped or diagonal length is the hypotenuse, and the desired horizontal distance is the adjacent leg.
Example 5: Finding the Horizontal Distance of a Ladder
A 5 m ladder rests against a wall and makes a 65-degree angle with level ground. Find the horizontal distance from the wall to the foot of the ladder.
Given: c = 5 m (ladder), A = 65°. Find: b (ground distance).
Why adjacent: The ground distance touches both the 65° angle and the right angle where wall meets ground.
The sloping rafter (4.5 m) covers 3.90 m horizontally. The difference matters when ordering materials: you need 4.5 m of lumber for a 3.90 m horizontal span. Roof overhangs, joints, and construction allowances are not included.
Example 7: Calculating the Horizontal Run of a Ramp
A simplified ramp has a sloping length of 8 m and an angle of 6 degrees relative to the horizontal. Find its horizontal run.
Given: c = 8 m (slope), A = 6°. Find: b (horizontal run).
At a shallow 6° angle, the horizontal run (7.96 m) is nearly equal to the slope length (8 m). The slope is always slightly longer than the horizontal projection. This does not verify accessibility or building-code compliance.
Example 8: Finding the Horizontal Reach of a Cable
A cable is 20 m long and forms a 55-degree angle with the horizontal. Calculate the horizontal component.
The horizontal distance is 146.72 m, slightly less than the 150 m sight line. Actual surveying requires corrections for curvature, terrain, and instrument height; this example covers the basic geometry only.
Example 10: Finding the Horizontal Component of a Wire
A wire is 13 m long and forms a 22-degree angle with level ground. Find its horizontal projection.
This measurement helps interpret a drawing: the brace spans 1.84 m horizontally. The calculation is geometric and does not verify structural strength or design compliance.
Example 12: Finding the Ground Distance of a Guy Wire
A guy wire is 18 m long and forms a 35-degree angle with level ground. Calculate the horizontal distance between the anchor point and the point directly below the wire's attachment.
The wire itself is the hypotenuse because it stretches from the ground anchor up to the attachment point, opposite the right angle formed by the vertical structure and level ground.
Example 13: Estimating Horizontal Travel on a Slope
A simplified sloping path measures 250 m and makes an 18-degree angle with the horizontal. Calculate the horizontal component.
At 8°, the walkway is gentle enough that the horizontal run (5.94 m) is close to the slope length (6 m). The result alone does not prove accessibility compliance.
Example 15: Finding a Mechanical Link's Horizontal Projection
A mechanical link is 850 mm long and is positioned at a 25-degree angle to the horizontal. Calculate its horizontal component.
When reading a dimensional drawing, this tells you the support covers 2.14 ft horizontally. The calculation is geometric, not a structural safety check.
Scenario
Hypotenuse
Angle
Formula
Adjacent Side
Ladder
5 m
65°
b = 5 × cos(65°)
2.11 m
Roof rafter
4.5 m
30°
b = 4.5 × cos(30°)
3.90 m
Cable
20 m
55°
b = 20 × cos(55°)
11.47 m
Survey sight
150 m
12°
b = 150 × cos(12°)
146.72 m
Guy wire
18 m
35°
b = 18 × cos(35°)
14.74 m
Walkway
6 m
8°
b = 6 × cos(8°)
5.94 m
Cosine in practice: each panel shows the hypotenuse, the reference angle, and the calculated horizontal (adjacent) distance.
When Should You Use Cosine Instead of Sine or Tangent?
Each trigonometric ratio connects a different pair of sides. Pick the one that matches your known and unknown values.
Ratio
Formula
Known
Finds
Cosine
b = c × cos(A)
Hypotenuse, angle
Adjacent leg
Sine
a = c × sin(A)
Hypotenuse, angle
Opposite leg
Tangent
a = b × tan(A)
Adjacent leg, angle
Opposite leg
What goes wrong with the wrong ratio: Suppose c = 10 m and A = 30°, and you need the adjacent side. Using sine by mistake gives a = 10 × sin(30°) = 5 m, which is the opposite leg, not the adjacent. The correct cosine calculation gives b ≈ 8.66 m. The two answers differ because they measure different sides. Always confirm which side touches your reference angle before choosing.
How the Angle Changes the Adjacent Side
With the hypotenuse fixed, the adjacent leg shrinks as angle A grows. At 0°, cos(A) = 1 and the adjacent leg equals the full hypotenuse (the triangle flattens into a line). At 90°, cos(A) = 0 and the adjacent leg vanishes. Between these extremes, the relationship is smooth and predictable.
Angle A
cos(A)
Adjacent b (c = 10)
30°
0.8660
8.66
45°
0.7071
7.07
60°
0.5000
5.00
Notice the pattern: doubling the angle from 30° to 60° does not halve the side, because cosine is not linear. Two triangles with the same angle but different hypotenuses are similar, so their side ratios match even though the absolute lengths differ. A 5 m hypotenuse at 30° gives b ≈ 4.33 m, exactly half of the 10 m case.
Note: 0° and 90° are not valid acute angles for a non-degenerate right triangle. They represent limiting cases where the triangle collapses.
Entering Angles and Measurements Correctly
This calculator expects angles in degrees. Degrees divide a full circle into 360 parts; radians use a different scale where a full circle is about 6.283. Entering 30 radians when you mean 30 degrees produces a wildly wrong answer because cos(30 radians) ≈ 0.154, not 0.866. Always confirm your angle is in degrees before calculating.
Use the same length unit for the hypotenuse as you want in the answer. If c is in meters, b comes out in meters. Mixing units, such as entering c = 5 (meters) while thinking in feet, guarantees a wrong result. Convert first, then calculate.
Round only the final answer, not intermediate values. The cosine of 42° is 0.743144825..., and using the full value gives b = 5.5736 m for c = 7.5 m. Rounding the cosine to 0.74 first gives 5.55 m, an error of nearly 2.4 cm. Your result cannot be more precise than your least precise input: if you measured the hypotenuse to the nearest centimeter, do not report the answer in millimeters.
Common Cosine Calculation Mistakes and How to Avoid Them
1. Confusing the adjacent side with the opposite side. The adjacent side touches angle A; the opposite side does not. Fix: trace from angle A along each leg and confirm which one forms the angle.
2. Using the leg as the hypotenuse. Entering a leg value into the hypotenuse field inflates the result. Fix: the hypotenuse is always opposite the right angle and always the longest side.
3. Forgetting to multiply by the hypotenuse. Answering cos(30°) ≈ 0.866 instead of 10 × 0.866 ≈ 8.66. Fix: the ratio alone is not a length; multiply by c.
4. Dividing instead of multiplying. Computing c / cos(A) instead of c × cos(A). Division applies to the tangent mode for finding b from a, not to cosine. Fix: check the rearranged formula.
5. Using the wrong reference angle. Measuring from angle B instead of angle A swaps adjacent and opposite. Fix: label your reference angle before identifying sides.
6. Entering radians when degrees are expected. cos(1 radian) ≈ 0.540 differs from cos(1°) ≈ 0.99985. Fix: confirm degree mode.
7. Mixing units. Entering c = 5 (meters) and expecting feet. Fix: convert all inputs to one unit first.
8. Rounding intermediate values too early. Rounding cos(42°) to 0.74 before multiplying compounds the error. Fix: keep full precision until the final step.
9. Applying cosine to a non-right triangle. The ratio definitions assume a 90-degree angle. Fix: verify the right angle exists before using this calculator.
10. Accepting a result longer than the hypotenuse. If b > c, something is wrong. Fix: recheck inputs; cos(A) never exceeds 1 for acute angles.
11. Entering zero, negative, or invalid measurements. Side lengths must be positive. Fix: use positive lengths only.
12. Treating a near-zero adjacent side as an error. At 89°, b ≈ 0.017c, which is correct geometry, not a bug. Fix: recognize that steep angles naturally produce short adjacent sides.
How to Check Whether Your Cosine Result Is Correct
Method 1: Check the relative side lengths. For any acute angle, the adjacent leg must be shorter than the hypotenuse. If your answer exceeds c, recheck your inputs.
Method 2: Recalculate the cosine ratio. Divide your answer by the hypotenuse: b / c should approximately equal cos(A). Use unrounded values for the check. For c = 10 m, A = 30°, b ≈ 8.660254: 8.660254 / 10 = 0.8660254 ≈ cos(30°). Match confirms correctness.
Method 3: Apply the Pythagorean theorem. If you also know or calculate the opposite leg a = c × sin(A), verify that a² + b² ≈ c². Full example: c = 10 m, A = 30°. Then b ≈ 8.660254 m and a = 10 × sin(30°) = 5 m. Check: 5² + 8.660254² = 25 + 75 = 100 = 10². The triangle is consistent.
Minor discrepancies in the last decimal place come from rounding the displayed values. When verifying, use the full-precision numbers rather than the rounded output.
Find the Adjacent Side With Confidence
Identify the hypotenuse and the reference angle first. Confirm which leg touches the angle: that is the adjacent side b. Apply b = c × cos(A) with the angle in degrees, using consistent units. Verify that the answer is shorter than the hypotenuse and, when possible, cross-check with the Pythagorean theorem. With these habits, every cosine side calculation becomes routine. Use the calculator above to run your numbers.
Answers to the most common right-triangle solving questions.
01 How do you find the adjacent side using cosine?
Multiply the hypotenuse by the cosine of the known acute angle: b = c × cos(A). Enter the hypotenuse c and angle A in degrees, and the calculator returns the adjacent side b with full solution steps.
02 What is the formula for a cosine side calculator?
The formula is b = c × cos(A), where b is the adjacent side, c is the hypotenuse, and A is the acute angle. It comes from rearranging the cosine ratio cos(A) = b / c by multiplying both sides by c.
03 Which sides are used in the cosine ratio?
Cosine uses the adjacent side and the hypotenuse: cos(A) = adjacent / hypotenuse. For angle A, the adjacent side is b (the leg touching angle A) and the hypotenuse is c (the longest side, opposite the right angle).
04 Can I calculate the adjacent side from the hypotenuse and an angle?
Yes. That is exactly what this calculator does. Enter the hypotenuse length and the acute angle in degrees, and it computes b = c × cos(A). The angle must be between 0 and 90 degrees, exclusive.
05 Why is the adjacent side shorter than the hypotenuse?
For any acute angle, cos(A) is between 0 and 1, so multiplying the hypotenuse by cos(A) always gives a smaller value. Geometrically, no leg of a right triangle can exceed the hypotenuse, which spans the greatest distance between vertices.
06 What is the difference between sine and cosine?
Both use the hypotenuse, but sine returns the opposite side (a = c × sin(A)) while cosine returns the adjacent side (b = c × cos(A)). Choose sine when you need the side across from the angle, cosine when you need the side next to it.
07 Should I enter the angle in degrees or radians?
Enter the angle in degrees. This calculator expects degree input. Entering radians produces incorrect results because cos(30 radians) ≈ 0.154 differs from cos(30°) ≈ 0.866. Always confirm degree mode before calculating.
08 Can cosine calculate a side in metres, feet, or inches?
Yes. The formula works in any length unit. The answer uses the same unit as the hypotenuse input: meters in gives meters out, feet in gives feet out. Use consistent units for all inputs.
09 Why does the adjacent side decrease as the angle increases?
Cosine decreases from 1 to 0 as the angle grows from 0° to 90°. Since b = c × cos(A), a smaller cosine multiplier produces a shorter adjacent side. At 60° the adjacent side is half the hypotenuse; at 80° it is only about 17%.
10 What if I know the adjacent side and angle but not the hypotenuse?
Rearrange the formula to solve for c: c = b / cos(A). This calculator finds the adjacent side from the hypotenuse; to find the hypotenuse from the adjacent side, divide the adjacent side by cos(A).
11 How can I verify my calculated side?
Check three things: (1) the answer is shorter than the hypotenuse, (2) dividing the answer by the hypotenuse approximately equals cos(A), and (3) if you also compute a = c × sin(A), then a² + b² should equal c².
12 What happens when the angle is very close to 90 degrees?
The adjacent side becomes very small because cos(A) approaches zero. At 89°, b ≈ 0.017c. This is correct geometry, not an error. The triangle becomes tall and narrow, with almost all of the hypotenuse length going into the opposite side.