Right Triangle Solver logo
Right Triangle Solver

Side Calculations

Right Triangle Side From Tangent Calculator

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)a = b \cdot \tan(A).

Enter inputs to calculate Opposite side a.

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.

Right Triangle Diagram: Side a from Tangent Right triangle showing angle A, known adjacent side b, and unknown opposite side a. a = find b = known c

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)a = b \times \tan(A)

How to Use This Calculator

  1. Identify the adjacent side b. This is the side that sits next to angle A and also connects to the right angle.
  2. Confirm the angle A is in degrees and is between 0 and 90.
  3. Enter adjacent side b into the first input field.
  4. Enter angle A into the second input field.
  5. 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 = b \times \tan(A)
a=4×tan⁡(36.87)a = 4 \times \tan(36.87)
a=4×0.75a = 4 \times 0.75
a=3a = 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.

Right triangle anatomy for tangent: opposite side a vertical, adjacent side b horizontal, angle A at bottom-right
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).

How the tangent ratio works: 3-4-5 triangle, tan(A) equals 3 divided by 4 equals 0.75
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:

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.

Example 3: An Angle Above 45 Degrees

Given: b = 8 m, A = 60°. Find: a.

Calculation: a = 8 × tan(60°) ≈ 8 × 1.7320508 ≈ 13.856406

Answer: a ≈ 13.86 m

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.

Example 4: A Decimal Measurement

Given: b = 7.5 m, A = 32°. Find: a.

Calculation: a = 7.5 × tan(32°) ≈ 7.5 × 0.6248694 ≈ 4.6865205

Answer: a ≈ 4.69 m

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.

Step-by-step tangent calculation: 10 m adjacent side, 30 degree angle, opposite side equals 5.77 m
Worked solution: a = 10 × tan(30°) ≈ 5.77 m, with each substitution step shown.

Real-Life Examples of Tangent Calculations

Example 5: Height of a Flagpole

Given: b = 3 m, A = 60°. Find: a.

Calculation: a = 3 × tan(60°) ≈ 3 × 1.7320508 ≈ 5.1961524

Answer: a ≈ 5.20 m

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.

Example 6: A Gentle Ramp

Given: b = 12 m, A = 5°. Find: a.

Calculation: a = 12 × tan(5°) ≈ 12 × 0.0874887 ≈ 1.0498644

Answer: a ≈ 1.05 m

A 12 m ramp rising at 5 degrees gains just over a metre of height. Small angles produce small rises, which is why wheelchair ramps need long runs.

Example 7: A Roof Rafter

Given: b = 4.5 m, A = 30°. Find: a.

Calculation: a = 4.5 × tan(30°) ≈ 4.5 × 0.5773503 ≈ 2.5980765

Answer: a ≈ 2.60 m

A rafter spanning 4.5 m horizontally at a 30-degree pitch rises about 2.60 m. This is a geometric result, not a structural design check.

Example 8: Building Height From a Distance

Given: b = 25 m, A = 38°. Find: a.

Calculation: a = 25 × tan(38°) ≈ 25 × 0.7812856 ≈ 19.53214

Answer: a ≈ 19.53 m

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.

Example 9: A Hill Slope

Given: b = 20 m, A = 42°. Find: a.

Calculation: a = 20 × tan(42°) ≈ 20 × 0.9004040 ≈ 18.00808

Answer: a ≈ 18.01 m

A 20 m horizontal stretch of hillside at 42 degrees rises about 18.01 m. Steep terrain like this is common in trail elevation profiles.

Example 10: Surveying a Distant Point

Given: b = 80 m, A = 12°. Find: a.

Calculation: a = 80 × tan(12°) ≈ 80 × 0.2125566 ≈ 17.004528

Answer: a ≈ 17.00 m

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.

Example 11: A Steep Driveway

Given: b = 6 m, A = 55°. Find: a.

Calculation: a = 6 × tan(55°) ≈ 6 × 1.4281480 ≈ 8.568888

Answer: a ≈ 8.57 m

A 6 m driveway at 55 degrees climbs about 8.57 m, steeper than it is long. Grades this steep are unusual for vehicles and need drainage planning.

Example 12: A Garden Trellis

Given: b = 2.5 m, A = 35°. Find: a.

Calculation: a = 2.5 × tan(35°) ≈ 2.5 × 0.7002075 ≈ 1.7505188

Answer: a ≈ 1.75 m

A trellis leaning at 35 degrees with its base 2.5 m out reaches about 1.75 m up the wall it leans toward.

Example 13: A Kite String

Given: b = 12 ft, A = 25°. Find: a.

Calculation: a = 12 × tan(25°) ≈ 12 × 0.4663077 ≈ 5.5956924

Answer: a ≈ 5.60 ft

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.

Example 14: A Model Bridge (Millimetres)

Given: b = 600 mm, A = 25°. Find: a.

Calculation: a = 600 × tan(25°) ≈ 600 × 0.4663077 ≈ 279.78462

Answer: a ≈ 279.78 mm

Tangent works identically in millimetres: a 600 mm model span at 25 degrees rises about 279.78 mm. Keep both inputs in the same unit.

Example 15: A Long Approach Road

Given: b = 150 m, A = 12°. Find: a.

Calculation: a = 150 × tan(12°) ≈ 150 × 0.2125566 ≈ 31.88349

Answer: a ≈ 31.88 m

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.

Example 16: A Ladder Against a Shed

Given: b = 4.2 ft, A = 48°. Find: a.

Calculation: a = 4.2 × tan(48°) ≈ 4.2 × 1.1106125 ≈ 4.6645725

Answer: a ≈ 4.66 ft

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.

Real-world tangent example: building 25 m away, 38 degree angle of elevation, height equals 19.53 m
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:

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:

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.

Related Calculators

Frequently Asked Questions

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.