Adjacent Side Calculator: Find b from Opposite Side a and Angle A
Find the adjacent side b of a right triangle from the opposite side a and angle A. Enter both values to calculate b instantly.
Find the adjacent side b of a right triangle from the opposite side a and angle A. Enter both values to calculate b instantly.
Leg b from Tangent Calculator
This calculator finds Adjacent side b using b=a/tan(A).
Enter inputs to calculate Adjacent side b.
Adjacent side b
Result
-
Solution Steps
Formula:b=a/tan(A)
Live Visualization
Leg b from Tangent Diagram
What This Tool Solves
This is the reverse of the standard tangent side calculator. Instead of multiplying by tangent to find the opposite side, you divide by tangent to find the adjacent side. The hypotenuse is not involved.
Known values
Angle A and opposite side a
Finds
Adjacent side b
Main formula
b = a / tan(A)
Best for
Finding base distance, horizontal run, or ground offset from height and angle
Understand the Right Triangle
Angle A is at the bottom-right corner. The opposite side a is directly across from it, which you already know. The adjacent side b is the horizontal base next to angle A, and this is what the calculator finds by dividing a by tan(A).
Diagram Key
Known side a = known
Opposite side a is directly across from angle A. You enter this value.
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 = hypotenuse
Hypotenuse c is the longest side, opposite the right angle. It appears for geometric context but is not an input here.
For angle A, side a is opposite, side b is adjacent, and side c is the hypotenuse.
This calculation uses division, not multiplication.
As angle A increases, the adjacent side b decreases for the same opposite side a.
Adjacent Side From Tangent Formula
Start with the tangent ratio: tan(A) = opposite / adjacent. Substituting the side notation gives tan(A) = a / b.
Step 1: Start with the tangent ratio. The tangent of angle A equals the opposite side divided by the adjacent side.
Step 2: Multiply both sides by b. This gives b × tan(A) = a.
Step 3: Divide both sides by tan(A). This isolates the adjacent side: b = a / tan(A).
Where a is the known opposite side (across from angle A), A is the acute angle in degrees, and b is the adjacent side you want to find (next to angle A, not the hypotenuse).
Why division? In the original ratio, b sits in the denominator. Multiplying both sides by b moves it to the left, then dividing by tan(A) isolates it. This is the reverse of the usual tangent calculation, which multiplies by tan(A) to find the opposite side from a known adjacent side.
tan(A)=ba
b×tan(A)=a
b=tan(A)a
How to Calculate the Adjacent Side
Identify the right angle in the triangle. The tangent ratio only applies to right triangles.
Identify the opposite side a relative to angle A. This is the side across from the angle, often a vertical height.
Confirm that angle A is measured in degrees. This calculator uses degrees, not radians.
Enter the known opposite-side length a.
Enter the acute angle A (must satisfy 0° < A < 90°).
Click Calculate to find the adjacent side b.
Review the result and the step-by-step solution shown below the calculator.
Verify the answer using the tangent ratio: tan(A) should approximately equal a / b.
Quick Example
Given a = 3 m and A = 36.87°, the adjacent side is b ≈ 4 m. See the detailed examples below for full step-by-step solutions.
b=a/tan(A)
b=3/tan(36.87∘)
b≈3/0.75
b≈4
Adjacent Side Examples With Step-by-Step Solutions
Example 1: The 3-4-5 Triangle
Problem: A right triangle has opposite side a = 3 m and angle A ≈ 36.87°. Find the adjacent side b.
Given: a = 3 m, A = 36.87°. Find: b.
Formula: b = a / tan(A)
Substitution: b = 3 / tan(36.87°) ≈ 3 / 0.75
Answer:b ≈ 4 m
Verification: tan(A) ≈ 3 / 4 = 0.75. The angle 36.87° is the rounded angle for the 3-4-5 triangle.
Example 2: A 45-Degree Angle
Problem: Given opposite side a = 5 cm and angle A = 45°, find the adjacent side.
Given: a = 5 cm, A = 45°. Find: b.
Calculation: Since tan(45°) = 1: b = 5 / 1 = 5 cm
Answer:b = 5 cm
Why this works: The two legs of a right triangle are equal when either acute angle is 45°. At 45°, the triangle is isosceles.
Example 3: Calculate a Longer Horizontal Distance
Problem: A surveyor measures a vertical height of a = 6 m and an angle of elevation A = 30°. Find the horizontal distance.
Given: a = 6 m, A = 30°. Find: b.
Calculation: b = 6 / tan(30°) ≈ 6 / 0.577350 ≈ 10.3923 m
Answer:b ≈ 10.39 m
Why b > a here: When angle A is less than 45°, the adjacent side is longer than the opposite side. A shallow angle stretches the base out.
Example 4: Decimal Measurement
Problem: Given opposite side a = 2.4 m and angle A = 15°, find the adjacent side.
Calculation: b = 2.4 / tan(15°) ≈ 2.4 / 0.267949 ≈ 8.9569 m
Answer:b ≈ 8.96 m
Verification: tan(15°) ≈ 2.4 / 8.9569 ≈ 0.2679.
Use the full available precision during calculation and round only the final displayed result.
How Angle A Affects the Adjacent Side
When the opposite side a is held constant, increasing angle A decreases the adjacent side b. This is because tan(A) grows as A approaches 90°, and b = a / tan(A) shrinks accordingly.
Three landmark cases: at A = 45°, b = a (the legs are equal). For 0° < A < 45°, b > a (shallow angle, long base). For 45° < A < 90°, b < a (steep angle, short base).
As the angle approaches 0°, the calculated horizontal distance grows very large. As the angle approaches 90°, the adjacent side approaches zero. Neither boundary angle is a valid input for this calculator.
Example values (a = 5 m):
A = 30°: b ≈ 8.66 m
A = 45°: b = 5.00 m
A = 60°: b ≈ 2.89 m
Where Is the Adjacent Side From Tangent Formula Used?
Estimating horizontal distance from height and angle. When the vertical height difference is known and the angle of elevation is measured from the horizontal, the horizontal distance follows from the tangent ratio. Example: vertical height a = 6 m, angle of elevation A = 30°, horizontal distance b = 6 / tan(30°) ≈ 10.39 m. This assumes a level horizontal baseline and a correctly defined angle.
Ramp geometry. A known vertical rise and slope angle measured from the horizontal give the horizontal run. Example: rise a = 1.2 m, slope angle A = 10°, run b = 1.2 / tan(10°) ≈ 6.81 m. This is a geometric calculation, not proof of compliance with accessibility, construction, or building regulations.
Roof pitch and building measurements. A known vertical rise and roof angle measured relative to the horizontal determine the horizontal run. Be careful with the angle convention: roof pitch is sometimes given as a ratio (e.g. 4:12) rather than degrees, and must be converted first.
Surveying and site measurements. The formula helps calculate a horizontal distance when the vertical difference and angle are known. Practical surveying requires corrections, calibrated instruments, and professional procedures; this basic calculator is not a substitute for professional surveying or engineering.
Valid Inputs and Common Calculation Checks
The opposite side a must be a positive number. The angle A must satisfy 0° < A < 90°: it must be acute.
Empty fields: provide both the side length and the angle before calculating.
Zero or negative side length: rejected. Side lengths must be positive.
Angle equal to 0°: rejected, because tan(0°) = 0 makes the division undefined.
Angle equal to 90°: rejected, because the angle is not acute and the required triangle geometry does not apply.
Angle outside the valid range: a clear validation error is displayed.
Very small angles: the result grows very large as A approaches 0°. Check that the answer is physically reasonable for your situation.
Requirements:
Opposite side a > 0.
Angle A > 0° and A < 90°.
Angle measured in degrees, not radians.
Numeric, finite input values.
How to Check Your Adjacent Side Result
The result is the length of the leg next to angle A, excluding the hypotenuse. Verify it with the original tangent ratio: tan(A) should approximately equal a / b.
For the 3-4-5 example: tan(36.87°) ≈ 3 / 4 ≈ 0.75. Small differences may occur because the displayed angle and result are rounded; use an appropriate floating-point tolerance when checking programmatically.
A valid result should satisfy:
b > 0.
tan(A) ≈ a / b.
If A = 45°, b should equal a.
If A < 45°, b should be greater than a; if A > 45°, b should be less than a.
Common Mistakes When Finding the Adjacent Side
The most common error is multiplying by tan(A) instead of dividing. The standard tangent formula multiplies to find the opposite side; this reversed version divides to find the adjacent side. Mixing them up gives the reciprocal of the correct answer.
Avoid these mistakes:
Multiplying by tan(A) instead of dividing. Wrong: b = a × tan(A). Correct: b = a / tan(A).
Confusing opposite and adjacent sides. Side a is across from angle A; side b is next to it. Swapping them inverts the result.
Treating the hypotenuse as the adjacent side. The hypotenuse c is never an input here; b is the leg beside angle A.
Entering the angle in radians. This calculator expects degrees. 0.64 radians is not 0.64 degrees.
Entering 0° or 90°. Both are rejected: tan(0°) = 0 causes division by zero, and 90° is not acute.
Mixing incompatible units. The result uses the same unit as the input side; keep them consistent.
Rounding too early. Keep full precision through the division and round only the final answer.
Measuring the angle from the vertical. The formula assumes angle A is measured from the horizontal (between the adjacent side and the hypotenuse).
Answers to the most common right-triangle solving questions.
01 What does b = a / tan(A) calculate?
It calculates the adjacent side b when you know the opposite side a and an acute angle A. It is the rearranged version of the tangent formula tan(A) = a / b.
02 Why does the formula use division?
In the tangent ratio tan(A) = a / b, the adjacent side b is in the denominator. To isolate b, multiply both sides by b and then divide by tan(A). Division is required because you are solving for the denominator of the original ratio.
03 How do I identify the adjacent side?
The adjacent side is the leg that forms angle A together with the hypotenuse. It is the side next to the angle, not across from it. The opposite side a is across from angle A.
04 What happens when angle A is 45°?
When A = 45°, tan(A) = 1, so b = a / 1 = a. The two legs are equal and the triangle is isosceles. This is the only angle where the adjacent and opposite sides match exactly.
05 Can the adjacent side be longer than the opposite side?
Yes. When angle A is less than 45°, tan(A) < 1, so dividing by it gives b > a. A shallow angle produces a long base relative to the height.
06 Why is an angle of 0° invalid?
Because tan(0°) = 0, and dividing by zero is undefined. Geometrically, a 0° angle means there is no triangle at all — just a flat line.
07 Can I calculate horizontal distance from height and angle?
Yes, that is one of the main uses. If a = 6 m is the vertical height and A = 30° is the angle of elevation measured from the horizontal, the horizontal distance is b = 6 / tan(30°) ≈ 10.39 m.
08 What is the difference between this calculator and a standard tangent side calculator?
A standard tangent side calculator multiplies: a = b × tan(A), finding the opposite side from a known adjacent side. This calculator divides: b = a / tan(A), finding the adjacent side from a known opposite side. They are inverse operations.