Right Triangle Solver logo
Right Triangle Solver

Focused Calculator

Tangent Ratio Calculator

Find tan(A) from opposite side a and adjacent side b for slope, rise, and run problems.

Calculate Tangent Ratio

This calculator finds tan(A) using tan⁡(A)=ab\tan(A) = \frac{a}{b}.

Enter inputs to calculate tan(A).

What Is a Tangent Ratio Calculator?

A tangent ratio calculator answers one question: for an acute angle in a right triangle, how does the side across from the angle compare with the side next to it? Enter the opposite side and the adjacent side, and the tool divides the opposite side by the adjacent side, returning tan⁡(A)=a/b\tan(A)=a/b. A right triangle has an opposite side of 3 cm and an adjacent side of 4 cm, so tan⁡(A)=3/4=0.75\tan(A)=3/4=0.75. That 0.75 is the tangent ratio: it tells you the opposite side is 75 percent as long as the adjacent side. It is not an angle, so never read it as 0.75∘0.75^\circ. The hypotenuse never enters this calculation; the opposite side and the adjacent side are sufficient on their own. Tangent is one of the fundamental trigonometric ratios, and its particular strength is comparing vertical rise with horizontal run, which is why it appears in roof pitch, road grades, and ramp slopes. The result is a dimensionless number: a pure comparison of two lengths, not a measurement in centimetres or degrees. If the angle in degrees is what you need, inverse tangent converts the ratio into degrees.

Understanding the Opposite Side and Adjacent Side

What Is a Right Triangle?

A right triangle has one angle of exactly 90∘90^\circ, the angle between two perpendicular lines, like a wall meeting a level floor. The hypotenuse lies opposite that right angle and is always the longest side, because it must span the full diagonal across the corner. The other two angles share the remaining 90 degrees, so both are acute. The two legs meet at the right angle, perpendicular to each other, and it is their relationship with the hypotenuse that makes right-triangle trigonometry possible.

What Is the Opposite Side?

The opposite side aa is the side directly across from the reference angle AA, the one side that never touches its vertex. In practical problems it often plays the role of a vertical rise, an elevation difference, or a height: the wall height a ladder reaches, the rise of a roof, or the vertical component of a crane boom. Which side counts as opposite depends on the chosen reference angle, so switching from angle AA to angle CC swaps the opposite and adjacent labels. It appears in the numerator of the tangent formula because tangent measures how large that across-the-angle side is relative to the side next to the angle.

What Is the Adjacent Side?

The adjacent side bb is the leg that touches the reference angle AA without being the hypotenuse. In practical problems it often plays the role of a horizontal run or ground distance: the base of a ladder from a wall, the horizontal run of a roof, or the shadow length in a sun-angle problem. It is never the hypotenuse, a point worth checking every time, because the hypotenuse is the side facing the right angle. It appears in the denominator of the tangent formula, which is why tangent compares the opposite side against this leg rather than against the longest side.

What Is the Hypotenuse?

The hypotenuse cc is the side opposite the right angle: in any diagram it faces the small square marking the 90∘90^\circ corner, and it is strictly longer than either leg. In practical problems it often plays the role of a sloping length: a ladder, a roof rafter, a guy wire, or a diagonal brace. It is not needed for the primary tangent calculation, because the tangent formula compares the two legs directly. If it is required for another problem, the Pythagorean theorem calculates it from the two legs: c=a2+b2c=\sqrt{a^2+b^2}

Right triangle with angle A bottom-left, gold opposite side a, blue adjacent side b, tan(A)=a/b
Angle A sits at the bottom-left; tangent uses the gold opposite side a and the blue adjacent side b, not the hypotenuse c.

Tangent uses the two legs and does not require the hypotenuse. Keep this side-label convention consistent: aa opposite angle AA, bb adjacent to angle AA, and cc the hypotenuse opposite the right angle at BB

Understanding the Tangent Ratio

The tangent of an acute angle AA is the opposite side divided by the adjacent side:

tan⁡(A)=ab\boxed{\tan(A)=\frac{a}{b}}

Here tan⁡(A)\tan(A) means the tangent of angle AA, aa is the opposite side, and bb is the adjacent side. When the triangle is positioned with its base along the horizontal direction, tangent compares the vertical leg with the horizontal leg: rise over run in its purest form.

Understanding SOH-CAH-TOA

Students remember the three primary ratios with a single memory aid:

TOA corresponds to the tangent formula tan⁡(A)=a/b\tan(A)=a/b: the T stands for tangent, the O puts the opposite side on top, and the A puts the adjacent side below. The aid helps you pick the correct numerator and denominator before any numbers enter the calculation. This section stays focused on tangent; the other two ratios have their own pages.

Why Tangent Does Not Use the Hypotenuse

Tangent compares the two perpendicular legs directly, so the hypotenuse is unnecessary. With a=3a=3 and b=4b=4:

tan⁡(A)=34=0.75\tan(A)=\frac{3}{4}=0.75

The ratio already captures everything about how the opposite side compares with the adjacent side; bringing in the hypotenuse would change the question being asked. If the hypotenuse is needed for a different problem, the Pythagorean theorem calculates it from the legs. Tangent itself never asks for it.

Why Tangent Is a Dimensionless Ratio

Dividing one length by another cancels the physical units. With compatible units:

3 m4 m=0.75\frac{3\,\text{m}}{4\,\text{m}}=0.75

The metres cancel, leaving a plain number. The same ratio comes from 300 cm and 400 cm, because the unit change affects both sides equally. The one requirement is that both measurements use compatible units: mixing metres with centimetres produces a meaningless number, while converting first keeps the ratio honest.

What Does a Tangent Value of 0.75 Mean?

tan⁡(A)=0.75\tan(A)=0.75 means the opposite side is 0.75 times the adjacent side, or 75 units of vertical rise for every 100 units of horizontal run in the same straight-line geometry. Picture a roof that climbs 75 cm for every 100 cm of horizontal run: that is exactly what 0.75 describes. It does not mean the angle is 0.75∘0.75^\circ; the ratio and the angle are different quantities, and confusing them is one of the most common errors in trigonometry.

What Does a Tangent Value of 1 Mean?

tan⁡(A)=1\tan(A)=1 means a=ba=b: the opposite and adjacent sides are equal. An isosceles right triangle has two equal legs, and because the two acute angles must share 90 degrees equally, each is 45∘45^\circ:

A=45∘A=45^\circ

Equal legs, equal acute angles, tangent exactly 1. This is the balance point of the tangent scale: below 1 the triangle is wider than it is tall, above 1 it is taller than it is wide.

Why Tangent Can Be Greater Than 1

Unlike sine and cosine, tangent has no upper limit for acute angles. If the opposite side outgrows the adjacent side, the ratio passes 1 without any problem. With a=6a=6 and b=3b=3:

tan⁡(A)=63=2\tan(A)=\frac{6}{3}=2

The opposite side is twice as long as the adjacent side. A tangent value greater than 1 is mathematically valid and does not indicate a calculator error; it simply describes a steep triangle, like a tall ladder standing close to a wall.

How Tangent Relates to Sine and Cosine

Start with the other two ratios:

sin⁡(A)=ac\sin(A)=\frac{a}{c}

cos⁡(A)=bc\cos(A)=\frac{b}{c}

Divide sine by cosine and the hypotenuse cancels:

sin⁡(A)cos⁡(A)=a/cb/c=ab\frac{\sin(A)}{\cos(A)}=\frac{a/c}{b/c}=\frac{a}{b}

Therefore:

tan⁡(A)=sin⁡(A)cos⁡(A)\boxed{\tan(A)=\frac{\sin(A)}{\cos(A)}}

This identity agrees with the opposite-over-adjacent definition, and it gives a useful cross-check: any tangent result should equal the sine divided by the cosine for the same angle.

Three stages: 3-4-5 triangle, tangent formula tan(A)=a/b, result 0.75, opposite is 75 percent of adjacent
Three stages: label the 3-4-5 triangle, write tan(A) = a/b, then divide 3 by 4 to get 0.75.

How the Tangent Formula Works

Start with the definition:

tan⁡(A)=OppositeAdjacent\tan(A)=\frac{\text{Opposite}}{\text{Adjacent}}

Then use this page's notation:

tan⁡(A)=ab\boxed{\tan(A)=\frac{a}{b}}

The opposite side belongs in the numerator because tangent measures how large the side across from the angle is; the adjacent side belongs in the denominator because it is the side being compared against. Swap them and you get cotangent, a different ratio entirely.

Fully Worked Example: A 3-4-5 Right Triangle

Given an opposite side of a=3 cma=3\,\text{cm}, an adjacent side of b=4 cmb=4\,\text{cm}, and a hypotenuse of c=5 cmc=5\,\text{cm}:

Step 1: Write the formula. tan⁡(A)=a/b\tan(A)=a/b

Step 2: Substitute the known values. tan⁡(A)=3/4\tan(A)=3/4

Step 3: Divide. tan⁡(A)=0.75\boxed{\tan(A)=0.75}

Step 4: Interpret the result. The opposite side is 75 percent as long as the adjacent side.

Step 5: Verify the triangle. 32+42=523^2+4^2=5^2, which is 9+16=259+16=25. The side lengths are consistent with a genuine right triangle.

Find the Angle From the Ratio

If the angle itself is required, apply inverse tangent to the ratio:

A=tan⁡−1(0.75)A=\tan^{-1}(0.75)

A≈36.87∘\boxed{A\approx36.87^\circ}

Inverse tangent is also called arctangent. Calculating the tangent ratio and calculating the angle are separate operations: the ratio describes the triangle's shape, while inverse tangent converts that shape into degrees. The tangent ratio calculator on this page returns the ratio; recovering the angle is a follow-up step on a scientific calculator.

How to Use the Tangent Ratio Calculator

The walkthrough below matches the live interface on this page. Each step matters, because a tangent result is only as trustworthy as the two measurements behind it.

  1. Identify the reference angle AA. Tangent always works from one acute angle; naming it first fixes which side is opposite and which is adjacent.
  2. Locate the opposite side aa, directly across from angle AA. This is the side that never touches the angle's vertex.
  3. Locate the adjacent side bb, which touches angle AA and is not the hypotenuse. Double-check that you have not grabbed the slanted side by mistake.
  4. Obtain or measure both side lengths. A tape measure, a scale drawing, or a known specification all work, as long as the numbers describe the same triangle.
  5. Enter the opposite-side length in the first input field. This is the numerator of the fraction.
  6. Enter the adjacent-side length in the second input field. This is the denominator.
  7. Select compatible measurement units using the available unit selectors. Both inputs must be in the same unit, or converted to one before dividing.
  8. Confirm that both measurements are positive. A zero or negative side cannot belong to a real triangle.
  9. Click Calculate tan(A). The tool divides the opposite side by the adjacent side.
  10. Read the resulting tangent ratio. The answer is a plain number, with no degrees and no length units attached.
  11. Check whether the result is less than, equal to, or greater than 1. Below 1 means the triangle is wider than it is tall; exactly 1 means equal legs; above 1 means the opposite side is longer.
  12. Use Reset when you want to clear the inputs and begin another calculation. Fresh inputs deserve a fresh start, not leftover numbers from the previous problem.

The calculator does not require the hypotenuse or an angle input. It performs one operation, the division a/ba/b, and it performs it on exactly the two legs you identify.

Step-by-Step Examples of Calculating Tangent

Four worked examples build the core skill before the practical applications. Each one follows the same rhythm: write the formula, substitute, divide, interpret.

Example 1: A 3-4-5 Right Triangle

Given a=3 cma=3\,\text{cm}, b=4 cmb=4\,\text{cm}, and c=5 cmc=5\,\text{cm}:

tan⁡(A)=34\tan(A)=\frac{3}{4}

tan⁡(A)=0.75\boxed{\tan(A)=0.75}

The opposite side is 75 percent as long as the adjacent side. Because the opposite side is the shorter leg here, the ratio sits below 1, describing a triangle wider than it is tall.

Example 2: A 5-12-13 Right Triangle

Given an opposite side of a=5 ma=5\,\text{m}, an adjacent side of b=12 mb=12\,\text{m}, and a hypotenuse of c=13 mc=13\,\text{m}:

tan⁡(A)=512\tan(A)=\frac{5}{12}

tan⁡(A)≈0.4167\boxed{\tan(A)\approx0.4167}

The opposite side is approximately 41.67 percent as long as the adjacent side. The 5-12-13 triple is another Pythagorean triple, so 52+122=1325^2+12^2=13^2 confirms a genuine right triangle.

Example 3: A 45-45-90 Triangle

Given an opposite side of a=1 cma=1\,\text{cm}, an adjacent side of b=1 cmb=1\,\text{cm}, and a hypotenuse of c=2 cmc=\sqrt{2}\,\text{cm}:

tan⁡(45∘)=11\tan(45^\circ)=\frac{1}{1}

tan⁡(45∘)=1\boxed{\tan(45^\circ)=1}

Equal legs produce a tangent ratio of 1. This is the natural midpoint of the tangent scale and a value worth memorising: whenever the two legs match, the acute angles are 45 degrees each.

Example 4: A 30-60-90 Triangle

For reference angle A=60∘A=60^\circ, use an opposite side of a=3 cma=\sqrt{3}\,\text{cm}, an adjacent side of b=1 cmb=1\,\text{cm}, and a hypotenuse of c=2 cmc=2\,\text{cm}:

tan⁡(60∘)=31\tan(60^\circ)=\frac{\sqrt{3}}{1}

tan⁡(60∘)≈1.7321\boxed{\tan(60^\circ)\approx1.7321}

The opposite side is longer than the adjacent side, so the ratio exceeds 1, as it should for a 60-degree angle. Compare with the complementary angle:

tan⁡(30∘)=13≈0.5774\tan(30^\circ)=\frac{1}{\sqrt{3}}\approx0.5774

Complementary acute angles have reciprocal tangent values, because swapping the reference angle swaps the opposite and adjacent labels. 0.5774×1.7321≈10.5774 \times 1.7321 \approx 1, which confirms the reciprocal relationship.

Real-Life Examples of Using the Tangent Ratio

Tangent earns its place in the working world because so many real problems are really rise-over-run problems in disguise. Twelve worked examples show the pattern repeating across ramps, roofs, ladders, and surveying lines.

Example 5: Calculating a Ramp's Slope

A simplified ramp rises 0.6 m over a horizontal run of 8 m. The vertical rise is the opposite side, a=0.6 ma=0.6\,\text{m}, and the horizontal run is the adjacent side, b=8 mb=8\,\text{m}:

tan⁡(A)=0.68\tan(A)=\frac{0.6}{8}

tan⁡(A)=0.075\boxed{\tan(A)=0.075}

The percentage grade is 0.075×100%=7.5%0.075 \times 100\%=7.5\%, and the angle is A=tan⁡−1(0.075)≈4.29∘A=\tan^{-1}(0.075)\approx4.29^\circ. The ramp rises 7.5 units vertically for every 100 units horizontally. The calculation does not establish accessibility or building-code compliance.

Example 6: Calculating Roof Pitch

A roof rises 3 m over a horizontal run of 4 m. The vertical rise is the opposite side, a=3 ma=3\,\text{m}, and the horizontal run is the adjacent side, b=4 mb=4\,\text{m}:

tan⁡(A)=34\tan(A)=\frac{3}{4}

tan⁡(A)=0.75\boxed{\tan(A)=0.75}

The roof rises 0.75 units for each horizontal unit, a 75 percent slope, and the pitch angle is A=tan⁡−1(0.75)≈36.87∘A=\tan^{-1}(0.75)\approx36.87^\circ. Roof pitch is also expressed as rise over run in traditional units, such as inches of rise per 12 inches of run, which is the same ratio in different clothing. This ratio does not constitute a complete roof-design assessment.

Example 7: Finding the Angle of a Ladder

A ladder reaches 4 m up a wall, and its base is 3 m horizontally from the wall. The angle AA is between the ladder and the ground. The vertical height is the opposite side, a=4 ma=4\,\text{m}, and the ground distance is the adjacent side, b=3 mb=3\,\text{m}:

tan⁡(A)=43\tan(A)=\frac{4}{3}

tan⁡(A)≈1.3333\boxed{\tan(A)\approx1.3333}

The angle is A=tan⁡−1(4/3)≈53.13∘A=\tan^{-1}(4/3)\approx53.13^\circ. The vertical height is greater than the horizontal distance, which is why the ratio exceeds 1. The example explains geometry and does not establish whether the ladder is safely positioned.

Example 8: Estimating the Angle of Elevation to a Tree

A tree is 12 m tall, and its shadow is 9 m long on level ground. Assume the sun's rays create a simplified right-triangle model. The tree height is the opposite side, a=12 ma=12\,\text{m}, and the shadow length is the adjacent side, b=9 mb=9\,\text{m}:

tan⁡(A)=129\tan(A)=\frac{12}{9}

tan⁡(A)≈1.3333\boxed{\tan(A)\approx1.3333}

The height is approximately 1.3333 times the shadow length, and the corresponding geometric angle is about 53.13∘53.13^\circ. The example assumes level ground, a vertical tree, and a straight-line shadow model.

Example 9: Surveying an Elevation Difference

A surveying measurement shows a vertical elevation difference of 15 m over a horizontal distance of 20 m. The elevation difference is the opposite side, a=15 ma=15\,\text{m}, and the horizontal distance is the adjacent side, b=20 mb=20\,\text{m}:

tan⁡(A)=1520\tan(A)=\frac{15}{20}

tan⁡(A)=0.75\boxed{\tan(A)=0.75}

The elevation difference is 0.75 times the horizontal separation, and the corresponding angle is about 36.87∘36.87^\circ. Actual surveying can require instrument-height adjustments, corrections, and additional measurements beyond this simplified model.

Example 10: Calculating a Road's Percentage Grade

A simplified road section rises 1.2 m over a horizontal distance of 24 m. The vertical rise is the opposite side, a=1.2 ma=1.2\,\text{m}, and the horizontal run is the adjacent side, b=24 mb=24\,\text{m}:

tan⁡(A)=1.224\tan(A)=\frac{1.2}{24}

tan⁡(A)=0.05\boxed{\tan(A)=0.05}

The percentage grade is 0.05×100%=5%0.05 \times 100\%=5\%, and the angle is A=tan⁡−1(0.05)≈2.86∘A=\tan^{-1}(0.05)\approx2.86^\circ. A 5 percent grade does not mean a 5-degree angle; this distinction is a common source of confusion, and the two numbers should never be used interchangeably.

Example 11: Calculating a Staircase's Steepness

A simplified staircase has a total vertical rise of 2.4 m and a horizontal run of 3.2 m. The vertical rise is the opposite side, a=2.4 ma=2.4\,\text{m}, and the horizontal run is the adjacent side, b=3.2 mb=3.2\,\text{m}:

tan⁡(A)=2.43.2\tan(A)=\frac{2.4}{3.2}

tan⁡(A)=0.75\boxed{\tan(A)=0.75}

The vertical rise is 75 percent of the horizontal run, and the angle is about 36.87∘36.87^\circ. The calculation does not verify stair dimensions, comfort, or building-code compliance.

Example 12: Understanding a Guy Wire's Angle

A guy wire attaches to a pole 12 m above the ground, while its ground anchor is 5 m horizontally from the pole. The attachment height is the opposite side, a=12 ma=12\,\text{m}, and the ground distance is the adjacent side, b=5 mb=5\,\text{m}:

tan⁡(A)=125\tan(A)=\frac{12}{5}

tan⁡(A)=2.4\boxed{\tan(A)=2.4}

The angle is A=tan⁡−1(2.4)≈67.38∘A=\tan^{-1}(2.4)\approx67.38^\circ. The vertical height is 2.4 times the horizontal anchor distance, a steep wire by any measure. The tangent ratio does not determine wire tension, anchor strength, or structural safety.

Example 13: Calculating a Crane Boom's Direction

A simplified crane boom has a vertical component of 8 m and a horizontal projection of 6 m. The vertical component is the opposite side, a=8 ma=8\,\text{m}, and the horizontal projection is the adjacent side, b=6 mb=6\,\text{m}:

tan⁡(A)=86\tan(A)=\frac{8}{6}

tan⁡(A)≈1.3333\boxed{\tan(A)\approx1.3333}

The corresponding angle is about 53.13∘53.13^\circ. The vertical component is approximately 1.3333 times the horizontal projection. This is a simplified geometric example and does not establish crane capacity or operating safety.

Example 14: Estimating a Hiking Trail's Gradient

A simplified straight hiking section has a vertical elevation gain of 120 m and a horizontal distance of 800 m. The elevation gain is the opposite side, a=120 ma=120\,\text{m}, and the horizontal distance is the adjacent side, b=800 mb=800\,\text{m}:

tan⁡(A)=120800\tan(A)=\frac{120}{800}

tan⁡(A)=0.15\boxed{\tan(A)=0.15}

The percentage grade is 15 percent, and the corresponding angle is about 8.53∘8.53^\circ. This simplified model represents a constant straight-line gradient, not an entire winding hiking trail.

Example 15: Evaluating a Mechanical Brace

A diagonal mechanical brace has a vertical component of 1.5 m and a horizontal component of 2 m. The vertical component is the opposite side, a=1.5 ma=1.5\,\text{m}, and the horizontal component is the adjacent side, b=2 mb=2\,\text{m}:

tan⁡(A)=1.52\tan(A)=\frac{1.5}{2}

tan⁡(A)=0.75\boxed{\tan(A)=0.75}

The vertical component is 75 percent of the horizontal component. The ratio does not determine the brace's strength, load capacity, or suitability.

Example 16: Finding the Angle of Elevation to a Building

An observer is standing 24 m horizontally from a building. The top of the building is 18 m above the observer's eye level. The vertical difference is the opposite side, a=18 ma=18\,\text{m}, and the horizontal distance is the adjacent side, b=24 mb=24\,\text{m}:

tan⁡(A)=1824\tan(A)=\frac{18}{24}

tan⁡(A)=0.75\boxed{\tan(A)=0.75}

The angle of elevation is about 36.87∘36.87^\circ under the simplified geometry. This is the angle to the top relative to the observer's horizontal eye level, not necessarily the total building height.

Tangent is a dimensionless ratio, but its practical value comes from comparing vertical rise with horizontal run, describing the steepness of a straight incline, calculating angles of elevation, and solving for missing sides when the angle is known. Three related quantities are easy to confuse, so keep them straight: the tangent ratio is vertical rise divided by horizontal run; the percentage grade is the tangent ratio multiplied by 100 percent; the angle is the result of applying inverse tangent to the ratio. Tangent alone never determines structural safety, load capacity, accessibility, or engineering compliance.

Situation Opposite aa Adjacent bb Formula Ratio Grade Meaning
Ramp0.6 m8 m0.6/80.0757.5%Gentle slope, rises 7.5 per 100 run
Roof pitch3 m4 m3/40.7575%Rise is 75% of run
Ladder4 m3 m4/31.3333n/aHeight exceeds base distance, angle 53.13 deg
Tree elevation12 m9 m12/91.3333n/aHeight is 1.3333 times shadow length
Surveying15 m20 m15/200.7575%Elevation is 75% of horizontal distance
Road grade1.2 m24 m1.2/240.055%5% grade, not a 5-degree angle
Staircase2.4 m3.2 m2.4/3.20.7575%Rise is 75% of run
Guy wire12 m5 m12/52.4n/aSteep wire, angle 67.38 deg
Crane boom8 m6 m8/61.3333n/aVertical is 1.3333 times horizontal
Hiking trail120 m800 m120/8000.1515%Steady 15% gradient
Mechanical brace1.5 m2 m1.5/20.75n/aVertical is 75% of horizontal
Building elevation18 m24 m18/240.75n/aAngle of elevation 36.87 deg
Four panels: ramp 0.075, roof pitch 0.75, ladder 1.3333, surveying 0.75, each with a labeled triangle
Four practical calculations: ramp, roof pitch, ladder, and surveying, each with its triangle, formula, and ratio.

Understanding the Relationship Between Tangent and Angle Size

Tangent increases as the reference angle increases, and the geometry explains why. When angle AA is small, the opposite side is short relative to the adjacent side, so the ratio sits near 0. As the angle widens, the opposite side becomes a longer share of the adjacent side, and the ratio climbs: past 1 at 45∘45^\circ, then without bound as the angle approaches 90∘90^\circ. The table below uses illustrative side lengths; the ratio, not the absolute size of the triangle, determines the angle.

Angle AA Opposite side aa Adjacent side bb Tangent ratio
30∘30^\circ13\sqrt{3}Approximately 0.5774
45∘45^\circ111
60∘60^\circ3\sqrt{3}1Approximately 1.7321
75∘75^\circApproximately 3.73211Approximately 3.7321

The pattern is simple: tangent is small when the opposite side is short relative to the adjacent side, equals 1 at 45∘45^\circ, exceeds 1 for larger acute angles, approaches zero as the angle approaches 0∘0^\circ, and grows without bound as the angle approaches 90∘90^\circ. Triangles with the same angle have the same tangent ratio even when their side lengths differ, because the ratio captures shape, not size.

Three triangles at 30, 45, 60 degrees with tangent values 0.5774, 1, 1.7321; tangent rises with angle
As angle A grows, the opposite side becomes a longer share of the adjacent side, so tan(A) rises.

How to Find the Opposite Side Using Tangent

The tangent formula can be rearranged to find the opposite side when the adjacent side and angle are known. Start with tan⁡(A)=a/b\tan(A)=a/b and multiply both sides by bb:

a=btan⁡(A)\boxed{a=b\tan(A)}

The opposite side equals the adjacent side multiplied by the tangent of the angle. Given an adjacent side of b=10 mb=10\,\text{m} and an angle of A=30∘A=30^\circ, and knowing tan⁡(30∘)=1/3≈0.5774\tan(30^\circ)=1/\sqrt{3}\approx0.5774:

a=10×0.5774a=10\times0.5774

a≈5.774 m\boxed{a\approx5.774\,\text{m}}

The vertical rise is approximately 5.774 m for a 10 m horizontal run at this angle.

The adjacent side can be found the same way by rearranging again:

b=atan⁡(A)\boxed{b=\frac{a}{\tan(A)}}

With an opposite side of a=6 ma=6\,\text{m} and A=45∘A=45^\circ: since tan⁡(45∘)=1\tan(45^\circ)=1, b=6/1b=6/1, so b=6 m\boxed{b=6\,\text{m}}. These are mathematical rearrangements of the same formula. The calculator on this page returns the tangent ratio from side lengths; it does not directly calculate missing sides.

How to Find an Angle From a Tangent Ratio

The tangent ratio and the angle are different quantities: one is a dimensionless comparison of sides, the other is measured in degrees. When the ratio is known and the angle is required, inverse tangent can be used:

A=tan⁡−1(ab)\boxed{A=\tan^{-1}\left(\frac{a}{b}\right)}

Inverse tangent is also called arctangent. Given tan⁡(A)=0.75\tan(A)=0.75:

A=tan⁡−1(0.75)A=\tan^{-1}(0.75)

A≈36.87∘\boxed{A\approx36.87^\circ}

The angle is approximately 36.87∘36.87^\circ when the calculator is set to degrees.

Why the Calculator's Angle Mode Matters

Angles can be measured in degrees or radians, and a scientific calculator must be set to the intended mode before inverse tangent is applied. A full circle is 360 degrees or 2π2\pi radians, so 45∘=π/445^\circ=\pi/4 radians. The tangent ratio itself has neither degree nor radian units; those units apply to the angle recovered from it. The tangent ratio calculator on this page returns the ratio directly and does not return an angle.

Common Mistakes When Calculating Tangent

Most tangent errors come from a flipped fraction, a mislabeled side, or confusing the ratio with the angle. Run through this list before trusting a result.

  1. Reversing the formula and calculating b/ab/a instead of a/ba/b. This returns cotangent, not tangent. With a=3a=3 and b=4b=4, the reversed fraction gives 1.3333; the correct one gives 0.75.
  2. Confusing tangent with sine. Tangent divides the opposite side by the adjacent side; sine divides the opposite side by the hypotenuse. If the hypotenuse is in the denominator, the answer is sine, not tangent.
  3. Confusing tangent with cosine. Cosine divides the adjacent side by the hypotenuse. Tangent never uses the hypotenuse at all, so a hypotenuse in either position signals the wrong ratio.
  4. Confusing tangent with cotangent. Cotangent is the reciprocal, adjacent over opposite. The similar names cause real errors, but the fraction order is exactly reversed.
  5. Including the hypotenuse in the primary tangent formula. The hypotenuse plays no role in a/ba/b. If it appears in the calculation, the wrong formula was used.
  6. Mixing up the opposite and adjacent sides. Both are legs, so the labels are easy to swap. Always trace from the reference angle: across from it is opposite, touching it is adjacent.
  7. Identifying the sides relative to the wrong reference angle. Switching from angle AA to angle CC swaps the opposite and adjacent labels, which flips the ratio to its reciprocal.
  8. Assuming tangent must be less than 1. That rule belongs to sine and cosine. Tangent has no upper limit for acute angles, and a result above 1 is perfectly valid.
  9. Reporting the tangent ratio as an angle in degrees. A result of 0.75 is a ratio, not 0.75∘0.75^\circ. Treating it as degrees feeds nonsense into any follow-up calculation.
  10. Reporting the tangent ratio with measurement units. The units cancel in the division, so "0.75 m" is wrong. Write the plain number and keep the units in the input measurements where they belong.
  11. Entering zero or negative side lengths. A triangle cannot have a zero or negative side, so these inputs signal a data entry error or a missing measurement, not a valid edge case.
  12. Mixing incompatible measurement units. An opposite side of 3 m with an adjacent side of 40 cm gives 7.5, a meaningless number. Convert to a single unit first: 3 m and 4 m give the correct 0.75.
  13. Rounding too early. Rounding an intermediate division to two decimals and then continuing the calculation compounds the error. Keep full precision through every step and round only the final answer.
  14. Confusing percentage grade with angle in degrees. A 5 percent grade comes from a 0.05 tangent, but the angle is tan⁡−1(0.05)≈2.86∘\tan^{-1}(0.05)\approx2.86^\circ, not 5 degrees. Grade and angle are different quantities.
  15. Assuming the tangent ratio determines the absolute size of a triangle. Tangent describes shape, not size: infinitely many triangles share a tangent of 0.75, from a 3 cm opposite side to a 3 km one. The ratio fixes the proportions; actual lengths need at least one side measurement.

Wrong Versus Correct: A Worked Comparison

Given an opposite side of a=3a=3 and an adjacent side of b=4b=4:

Incorrect: 4/3≈1.33334/3\approx1.3333. This is the cotangent ratio for angle AA, not the tangent ratio. The numerator and denominator are reversed.

Correct: tan⁡(A)=3/4=0.75\tan(A)=3/4=0.75

Verify using sine and cosine: with c=5c=5, sin⁡(A)=3/5=0.6\sin(A)=3/5=0.6 and cos⁡(A)=4/5=0.8\cos(A)=4/5=0.8. Therefore sin⁡(A)/cos⁡(A)=0.6/0.8=0.75\sin(A)/\cos(A)=0.6/0.8=0.75, which confirms the tangent calculation.

How to Check Whether Your Tangent Result Is Valid

A valid, non-degenerate right triangle requires two positive legs, a>0a \gt 0 and b>0b \gt 0, measured in compatible units, so the tangent result must be positive:

tan⁡(A)=ab>0\boxed{\tan(A)=\frac{a}{b} \gt 0}

There is no requirement for the opposite side to be shorter than the adjacent side, so the result may sit below, at, or above 1. A result that is zero or negative usually indicates invalid inputs or reversed labels.

Method 1: Check the Ratio

Re-verify tan⁡(A)=a/b\tan(A)=a/b directly. With a=3a=3 and b=4b=4: tan⁡(A)=3/4=0.75\tan(A)=3/4=0.75. Because the opposite side is shorter than the adjacent side, the ratio should land below 1; if a second hand calculation disagrees, a side was mislabeled or a unit was mixed.

Method 2: Check the Pythagorean Theorem

Calculate the hypotenuse when needed: c=a2+b2c=\sqrt{a^2+b^2}. For a=3a=3 and b=4b=4: c=9+16=5c=\sqrt{9+16}=5, and 32+42=523^2+4^2=5^2. This confirms the dimensions of the 3-4-5 right triangle. The hypotenuse is a verification value here, not part of the primary tangent formula.

Method 3: Check Using Inverse Tangent

For a tangent ratio of 0.75: A=tan⁡−1(0.75)≈36.87∘A=\tan^{-1}(0.75)\approx36.87^\circ. Because the ratio sits below 1, the angle should land below 45∘45^\circ; if it does not, the side labels are probably swapped. Small differences may arise from rounding.

Tangent vs. Sine, Cosine, and Cotangent

Each ratio compares a different pair of sides, using the same reference angle and side labels:

Ratio Formula What it compares
Sinesin(A) = a/cOpposite side to hypotenuse
Cosinecos(A) = b/cAdjacent side to hypotenuse
Tangenttan(A) = a/bOpposite side to adjacent side
Cosecantcsc(A) = c/aHypotenuse to opposite side
Secantsec(A) = c/bHypotenuse to adjacent side
Cotangentcot(A) = b/aAdjacent side to opposite side

Tangent and cotangent are the reciprocal pair: cot⁡(A)=1/tan⁡(A)\cot(A)=1/\tan(A). If tan⁡(A)=0.75\tan(A)=0.75, then cot⁡(A)≈1.3333\cot(A)\approx1.3333. Reach for tangent when both legs are known or when a problem involves rise over run; reach for sine or cosine when the hypotenuse enters the work, and cotangent when the comparison runs the other way. Keep tangent central: the neighbouring ratios have their own pages with full treatments.

For the neighbouring ratios, see the Sine Ratio Calculator, the Cosine Ratio Calculator, the Cotangent Ratio Calculator, the Secant Ratio Calculator, and the Cosecant Ratio Calculator.

Frequently Asked Questions

Answers to the most common right-triangle solving questions.

01 What is the tangent ratio formula for a right triangle?

tan(A) = a / b: divide the opposite side a by the adjacent side b. With an opposite side of 3 cm and an adjacent side of 4 cm, the result is 3/4 = 0.75. That decimal is the complete answer, a dimensionless ratio, not an angle.

02 How do you calculate tangent from two side lengths?

Identify the reference angle A, measure the opposite side a and the adjacent side b in the same unit, confirm both are positive, then divide: tan(A) = a / b. On this page, enter the opposite side in the first field and the adjacent side in the second, then click Calculate tan(A).

03 Why does tangent not use the hypotenuse?

Tangent compares the two perpendicular legs directly: vertical against horizontal. The hypotenuse adds no new information to that comparison, so the primary formula needs only the opposite and adjacent sides. The Pythagorean theorem can recover the hypotenuse later if another calculation needs it.

04 Can tangent be greater than 1?

Yes. Tangent has no upper limit for acute angles. When the opposite side is longer than the adjacent side, the ratio exceeds 1: with a = 6 and b = 3, tan(A) = 6/3 = 2. A result above 1 is mathematically valid and does not indicate a calculator error.

05 What does a tangent value of 0.75 mean?

The opposite side is 75 percent of the adjacent side. In a 3-4-5 triangle, the side across from angle A is 3 units while the side next to angle A is 4 units, so tan(A) = 3/4 = 0.75. It describes the triangle shape and is not an angle of 0.75 degrees.

06 What is the difference between tangent and cotangent?

They are reciprocals. Tangent divides the opposite side by the adjacent side (a/b); cotangent divides the adjacent side by the opposite side (b/a). If tan(A) = 0.75, then cot(A) = 1/0.75, about 1.3333. The fraction order is exactly reversed.

07 How can I calculate an angle from a tangent ratio?

Apply inverse tangent to the ratio: A = tan^-1(a/b). For tan(A) = 0.75, A = tan^-1(0.75), about 36.87 degrees. Set your scientific calculator to degrees mode first. This page's calculator returns the ratio, not the angle.

08 How can I find the opposite side using tangent?

Rearrange the formula to a = b * tan(A). If the adjacent side is 10 m and angle A is 30 degrees, tan(30 deg) is about 0.5774, so a = 10 * 0.5774, about 5.774 m. This is a manual rearrangement; this page's calculator returns the ratio from side lengths, not missing sides.

09 How can I find the adjacent side using tangent?

Rearrange the formula to b = a / tan(A). If the opposite side is 6 m and angle A is 45 degrees, tan(45 deg) = 1, so b = 6/1 = 6 m. This is a mathematical rearrangement of the same formula, not a separate mode of this page's calculator.

10 Is tangent the same as slope?

They are closely related. Slope as rise over run is the same comparison tangent makes: vertical change divided by horizontal change. A road engineer who writes slope 0.05 and a trigonometry student who writes tan(A) = 0.05 are describing the same ratio. The terms differ by context, not by mathematics.

11 What is the difference between percentage grade and angle in degrees?

Percentage grade is 100 times the tangent ratio: a 0.05 tangent gives a 5% grade. The angle is the inverse tangent of the ratio: tan^-1(0.05) is about 2.86 degrees. A 5% grade is therefore not a 5-degree angle. Confusing the two is one of the most common tangent mistakes.

12 How is tangent used in construction and surveying?

Tangent compares vertical rise with horizontal run, which is exactly what roof pitch, ramp slope, road grade, and stair steepness describe. Surveyors use it to turn an elevation difference and a horizontal distance into an angle of elevation. In every case the ratio alone never certifies structural safety or code compliance.

Use the Tangent Ratio With Confidence

Tangent is the ratio of the two legs: divide the opposite side by the adjacent side and you have described how many units of vertical rise come with each unit of horizontal run. The formula tan⁡(A)=a/b\tan(A)=a/b needs only two measurements, the answer is always a dimensionless number that can sit below, at, or above 1, and it grows as the reference angle grows. When a missing side is needed, a=btan⁡(A)a=b\tan(A) recovers the opposite side; when the angle is needed, A=tan⁡−1(a/b)A=\tan^{-1}(a/b) recovers it. Ramp, roof, ladder, or textbook 3-4-5, the method never changes: identify the opposite side, identify the adjacent side, divide, and verify with the positive-ratio check.