Use this calculator to find opposite side a from angle A and adjacent side b.
Use this calculator to find opposite side a from angle A and adjacent side b.
Leg a from Tangent Calculator
This calculator finds Opposite side a using a=b⋅tan(A).
Enter inputs to calculate Opposite side a.
Opposite side a
Result
-
Solution Steps
Formula:a=b⋅tan(A)
Live Visualization
Leg a from Tangent Diagram
What This Tool Solves
Unlike sine and cosine, the tangent ratio works with sides a and b instead of involving the hypotenuse. This makes it ideal when the hypotenuse is unknown or not needed.
Known values
Angle A and adjacent side b
Finds
Opposite side a
Main formula
a = b × tan(A)
Best for
Finding height or rise from a base distance and angle
Right Triangle Diagram: Side a from Tangent
Angle A sits at the bottom-right. The adjacent side b is the horizontal base, right next to angle A. The opposite side a is directly across from angle A. Tangent connects these two sides directly.
Diagram Key
Side to find a = find
Opposite side a is directly across from angle A. This is the value the calculator returns.
Known side b = known
Adjacent side b runs along the base next to angle A. You enter this value.
Side to find c
Hypotenuse c is the longest side. It is not required for this calculation.
For angle A, side a is opposite, side b is adjacent, and side c is the hypotenuse.
Tangent uses only sides a and b; the hypotenuse is not needed.
As angle A grows larger, the opposite side a increases relative to b.
Side From Tangent Formula
Tangent of an angle equals the opposite side divided by the adjacent side: tan(A) = a / b. Multiplying both sides by b isolates the opposite side a.
In this formula, b is the adjacent side (the side next to angle A that also touches the right angle), A is the known acute angle in degrees, and a is the opposite side you want to find. No hypotenuse is involved.
a=b×tan(A)
How to Use This Calculator
Identify the adjacent side b. This is the side that sits next to angle A and also connects to the right angle.
Confirm the angle A is in degrees and is between 0 and 90.
Enter adjacent side b into the first input field.
Enter angle A into the second input field.
Click Calculate to see opposite side a and the full solution steps.
Step-by-Step Example: Find Opposite Side a
Given: A = 36.87 degrees, b = 4. Find opposite side a using the tangent formula.
a=b×tan(A)
a=4×tan(36.87)
a=4×0.75
a=3
How to Find the Opposite Side Using Tangent
A surveyor stands 25 m from a building and measures an angle of elevation of 38 degrees to the top. The horizontal distance is known, the angle is known, but the building height is not. That height is the opposite leg of a right triangle, and tangent finds it directly: multiply the adjacent side by the tangent of the angle.
This page explains the tangent formula from first principles: what the opposite and adjacent sides mean, why tangent skips the hypotenuse entirely, how to identify the correct sides in any diagram orientation, and how to apply the result to real measurements. The formula is a = b × tan(A), where a is the opposite side, b is the adjacent side, and A is the acute angle in degrees. Unlike sine and cosine, which both involve the hypotenuse, tangent works with the two legs alone, making it the natural choice when the hypotenuse is unknown or irrelevant.
Understanding the Opposite and Adjacent Sides
Every right triangle has one 90-degree angle and two acute angles. For the reference angle A, the three sides get their names from their positions relative to A. The hypotenuse c sits opposite the right angle and is always the longest side. The two remaining sides are the legs: one touches angle A (the adjacent side b) and one lies directly across from it (the opposite side a).
Tangent compares these two legs: tan(A) = a / b. The adjacent side b often represents a horizontal distance you can measure on the ground, such as the distance from an observer to a building. The opposite side a often represents a vertical height, such as the building itself. Because the labels depend on the reference angle, swapping from angle A to angle B exchanges the roles of a and b.
The hypotenuse plays no part in the tangent formula. This is a genuine advantage in field work: measuring a horizontal distance with a tape is far easier than measuring a diagonal. When you know the base and the angle, tangent gives the height without any diagonal measurement.
Tangent uses the opposite side a and the adjacent side b. The hypotenuse c is shown for context but is not needed.
What Is Tangent in a Right Triangle?
Tangent is the ratio of the opposite side to the adjacent side: tan(A) = a / b. It answers the question "how many units of rise come with each unit of run?" If tan(A) = 0.75, every 4 units of horizontal run correspond to 3 units of vertical rise. The ratio has no units because the units cancel in the division.
Unlike sine and cosine, whose ratios always fall between 0 and 1 for acute angles, tangent has no upper limit. A small angle gives a small tangent (mostly run, little rise). At 45 degrees the legs are equal and tan(A) = 1 exactly. Beyond 45 degrees the opposite side outgrows the adjacent side and the tangent exceeds 1, climbing steeply as the angle approaches 90 degrees.
The memory aid SOH-CAH-TOA keeps the three ratios straight: Sine = Opposite / Hypotenuse, Cosine = Adjacent / Hypotenuse, Tangent = Opposite / Adjacent. The "TOA" part is the one this calculator uses. Rearranging tan(A) = a / b by multiplying both sides by b gives the working formula a = b × tan(A).
The tangent ratio divides the opposite side by the adjacent side. Multiplying back by b recovers the opposite side.
How to Use the Right Triangle Side From Tangent Calculator
Using the calculator correctly starts with identifying the right angle and labeling the sides relative to angle A. The steps below match the actual interface: two input fields, a Calculate button, and a Reset button.
Steps:
Identify the right angle in your triangle. Tangent only applies to right triangles.
Locate angle A, the acute angle you know. Confirm it is between 0 and 90 degrees.
Find the adjacent side b: the leg that touches angle A and also touches the right angle. This is often the horizontal distance.
Find the opposite side a: the leg directly across from angle A. This is the value you want.
Enter the adjacent side b into the first input field.
Enter angle A in degrees into the second input field.
Click Calculate to see the opposite side a and the full solution steps.
Check that the answer is positive and reasonable for your situation.
Verify with the ratio: tan(A) should approximately equal a / b.
Use Reset to clear the fields before starting a new calculation.
How to Calculate the Opposite Side Using Tangent
Example 1: The 3-4-5 Triangle
Given: b = 4 cm, A = 36.87°. Find: a.
Formula: a = b × tan(A)
Substitution: a = 4 × tan(36.87°)
Tangent value: tan(36.87°) ≈ 0.75
Calculation: a ≈ 4 × 0.75 = 3
Answer:a = 3 cm
The 3-4-5 triangle is the classic introduction to tangent: the opposite side is exactly 3 when the adjacent side is 4 and the angle is 36.87 degrees.
Example 2: A 45-Degree Angle
Given: b = 6 m, A = 45°. Find: a.
Calculation: a = 6 × tan(45°) = 6 × 1 = 6
Answer:a = 6 m
At 45 degrees the two legs are equal, so the opposite side matches the adjacent side exactly. This is a useful sanity check for any tangent calculation.
When the angle exceeds 45 degrees, the opposite side outgrows the adjacent side. Here a is nearly 1.73 times b, which is correct geometry, not an error.
Keep full precision in the tangent value during calculation and round only the final answer. Rounding tan(32°) to 0.62 early would give 4.65 m, a small but avoidable error.
Worked solution: a = 10 × tan(30°) ≈ 5.77 m, with each substitution step shown.
Stand 3 m from a flagpole and measure a 60-degree angle of elevation to its top. The pole is about 5.20 m tall. This assumes level ground and a vertical pole.
From 25 m away, a 38-degree angle of elevation means the building top is about 19.53 m above eye level. Add the observer eye height for the total building height.
A surveyor 80 m from a tower base reads a 12-degree elevation angle. The tower rises about 17.00 m above the instrument. Real surveying adds instrument-height corrections.
If a kite string makes 25 degrees with level ground and the horizontal distance is 12 ft, the kite flies about 5.60 ft above the holder hand height, assuming a straight taut string.
A 150 m road climbing at 12 degrees gains about 31.88 m of elevation. Road engineers convert this to grade percentage: tan(12°) ≈ 0.2126, or about a 21.3% grade.
A ladder foot 4.2 ft from a shed wall, leaning at 48 degrees to the ground, reaches about 4.66 ft up the wall. The angle alone does not confirm the ladder is safe.
Field use: measure the horizontal distance and the angle of elevation, then multiply to get the height.
When Should You Use Tangent Instead of Sine or Cosine?
Choose the ratio that matches the sides you actually know. If you know the hypotenuse and an angle, sine finds the opposite side and cosine finds the adjacent side. If you know one leg and the angle but not the hypotenuse, tangent is the only direct option: it finds the opposite side from the adjacent side with no diagonal needed.
Tangent is also the natural ratio for slope problems. Roof pitch, road grades, and ramp inclines are all described as rise over run, which is exactly tan(A). When a problem gives you a horizontal distance and asks for a height, reach for tangent first.
Known
Find
Formula
When to use it
Hypotenuse c, angle A
Opposite a
a = c x sin(A)
Diagonal length known
Hypotenuse c, angle A
Adjacent b
b = c x cos(A)
Diagonal length known
Adjacent b, angle A
Opposite a
a = b x tan(A)
Only base distance known
How the Angle Changes the Opposite Side
With the adjacent side fixed, the opposite side grows as angle A grows, and it grows faster than linearly. Doubling the angle more than doubles the height, because the tangent curve steepens sharply past 45 degrees. This is why a small error in a large angle measurement produces a large error in the computed height.
At 45 degrees the legs are equal, so a = b exactly. Below 45 degrees the opposite side is the shorter leg; above 45 degrees it becomes the longer leg. As A approaches 90 degrees, tan(A) heads toward infinity and the computed height becomes enormous for even a modest base.
Angle A
tan(A)
a when b = 10 m
Pattern
15°
0.2679
2.68 m
Short rise
30°
0.5774
5.77 m
Rise passes half the run
45°
1.0000
10.00 m
Legs equal
60°
1.7321
17.32 m
Rise exceeds run
75°
3.7321
37.32 m
Steep climb
Entering Angles and Measurements Correctly
The calculator expects angle A in degrees, not radians. An angle of 0.64 radians is about 36.7 degrees; entering 0.64 as if it were degrees would compute tan(0.64°) instead of tan(36.7°), a completely different triangle. Always confirm your measuring device reports degrees before typing the value.
Both side lengths must use the same unit. Mixing metres for b with centimetres for the expected answer of a is the most common unit mistake. The tangent ratio itself is unitless, so the answer inherits the unit of b: metres in gives metres out, millimetres in gives millimetres out.
Keep full precision through every intermediate step and round only the final displayed answer. Tangent values like 0.4663077 carry meaningful digits; trimming to 0.47 early shifts the final height. Two decimal places are plenty for most practical answers, matching the precision of typical tape measurements.
Common Tangent Calculation Mistakes and How to Avoid Them
Most tangent errors come from mislabeled sides or a flipped formula. The checklist below covers the twelve mistakes seen most often, each with the fix.
Avoid these mistakes:
Using the hypotenuse as the adjacent side. Tangent needs the leg next to angle A, not the diagonal. Fix: the hypotenuse is always opposite the right angle; the adjacent leg touches both angle A and the right angle.
Swapping a and b. The formula multiplies the adjacent side to find the opposite side. Fix: label the sides on a sketch before calculating.
Dividing instead of multiplying. a = b × tan(A) finds the opposite side; division b = a / tan(A) finds the adjacent side. Fix: check which side is known.
Using sine or cosine with the wrong side pair. Sine needs the hypotenuse; if you only have the base, tangent is the right tool. Fix: match the formula to the sides you know.
Entering the angle in radians. The calculator expects degrees. Fix: convert radians to degrees first (degrees = radians × 180 / pi).
Using an angle of exactly 90 degrees. tan(90°) is undefined, so the calculator shows an error. Fix: the reference angle must be acute, strictly between 0 and 90 degrees.
Using an angle of 0 degrees. tan(0°) = 0 gives a = 0, a degenerate flat triangle. Fix: measure a real angle above zero.
Mixing measurement units. Entering b in feet but reading the answer as metres silently rescales the result. Fix: keep one unit throughout.
Rounding the tangent value too early. Rounding tan(32°) from 0.6248694 to 0.62 changes the answer. Fix: round only the final result.
Expecting a to stay smaller than b. Above 45 degrees the opposite side legitimately exceeds the adjacent side. Fix: compare against tan(45°) = 1 as a reference.
Confusing the angle of elevation with its complement. Measuring from the vertical instead of the horizontal gives 90° minus the intended angle. Fix: confirm the angle is measured from the horizontal.
Forgetting that field measurements are approximate. A 1-degree clinometer error at 60 degrees moves the height by several percent. Fix: report the answer with precision that matches the input quality.
How to Check Whether Your Tangent Result Is Correct
Three independent checks catch almost every tangent error. Use at least one of them whenever the answer matters.
Verification methods:
Check the ratio. Divide the answer by the input: a / b should approximately equal tan(A). For Example 1: 3 / 4 = 0.75 = tan(36.87°). If it does not match, a side is mislabeled or the angle is wrong.
Check with the Pythagorean theorem. Compute c = √a² + b² and confirm the triangle closes. For Example 1:√9 + 16 = 5, the familiar 3-4-5 hypotenuse. This catches arithmetic slips but not side-label swaps.
Check against the 45-degree benchmark. If A is below 45 degrees, a must be smaller than b; if above, a must be larger; at exactly 45 degrees they are equal. For Example 3 (60°), a ≈ 13.86 m exceeds b = 8 m, which is exactly what the benchmark predicts.
Find the Opposite Side With Confidence
When you know a horizontal distance and an angle of elevation, tangent turns those two measurements into a height with one multiplication: a = b × tan(A). No hypotenuse, no diagonal measurement, no trigonometry tables. Label the adjacent side and the opposite side relative to angle A, keep the angle in degrees, and the calculator handles the rest.
Use the verification checks above on any answer that matters, keep units consistent, and remember the 45-degree benchmark as a quick sanity test. For the reverse problem, finding the base from a known height, the companion adjacent side from tangent calculator divides instead of multiplying.
Answers to the most common right-triangle solving questions.
01 What does a = b × tan(A) calculate?
It calculates the opposite side a of a right triangle when you know the adjacent side b and an acute angle A. Tangent is the ratio that connects the two legs directly, so no hypotenuse is needed.
02 Why does this calculator not need the hypotenuse?
The tangent ratio is defined as opposite over adjacent (a / b). It only involves the two legs, so the hypotenuse never enters the formula. This makes tangent ideal for field measurements where the horizontal distance is easy to measure but the diagonal is not.
03 What happens when the angle is close to 90 degrees?
Tangent values grow extremely large as the angle approaches 90 degrees. The opposite side becomes much longer than the adjacent side. At exactly 90 degrees the tangent is undefined, so the calculator shows an error for that input.
04 Can I use this to find the adjacent side instead?
No. This calculator finds the opposite side from the adjacent side. To find the adjacent side from the opposite side, use the adjacent side from tangent calculator with the formula b = a / tan(A).
05 Is there a difference between tan and tangent?
No. They are the same function. "tan" is the standard abbreviation used on calculators and in math notation. Both refer to the tangent trigonometric function.
06 What is the difference between tangent, sine, and cosine?
Sine uses opposite and hypotenuse (a / c), cosine uses adjacent and hypotenuse (b / c), and tangent uses the two legs (a / b). Choose tangent when you know a leg and the angle but not the hypotenuse.
07 Can the opposite side be longer than the adjacent side?
Yes. When angle A exceeds 45 degrees, tan(A) is greater than 1 and the opposite side outgrows the adjacent side. In Example 3, a ≈ 13.86 m from b = 8 m at 60 degrees. This is correct geometry, not an error.
08 Why must the angle be between 0 and 90 degrees?
Tangent is defined here for the acute angle of a right triangle. At 0 degrees the triangle flattens to nothing, and at 90 degrees tan(A) is undefined because the adjacent side would have zero length. The calculator rejects both boundary values.
09 How do I know whether to use tangent or sine?
Match the formula to the sides you know. If you know the hypotenuse and the angle, use sine (opposite) or cosine (adjacent). If you know only the adjacent side and the angle, tangent is the direct choice: a = b × tan(A).
10 What units should I use for the inputs?
Use any length unit, as long as both inputs share it. The tangent ratio is unitless, so the answer inherits the unit of the adjacent side: metres in gives metres out, feet in gives feet out, millimetres in gives millimetres out.
11 How can I verify my tangent answer?
Divide the answer by the input: a / b should approximately equal tan(A). You can also check the 45-degree benchmark (a smaller than b below 45 degrees, larger above) or confirm the triangle with the Pythagorean theorem.
12 Can tangent find the height of a building?
Yes. Stand a known horizontal distance from the building, measure the angle of elevation to the top, and compute a = b × tan(A). The result is the height above your eye level on level ground; add your eye height for the total.