Tangent Ratio Calculator
Find the tangent ratio and acute angle of a right triangle from its opposite and adjacent side lengths.
Triangle inputs
Use the same unit for both side lengths. The ratio itself is unitless.
Length across from the acute angle; zero is allowed.
Positive length beside the acute angle, excluding the hypotenuse.
Live results
Results update as soon as both inputs form a valid right-triangle ratio.
Tangent
0.750000
tan(α) = 3 ÷ 4 = 0.750000
Angle (α)
36.869898°
Calculated with the inverse tangent function.
The tangent ratio is 0.750000 and angle α is 36.869898 degrees.
How to use this tangent ratio calculator
What this calculator does
This calculator evaluates the tangent ratio for an acute angle in a right triangle. It divides the side opposite the selected angle by the adjacent leg, then applies the inverse tangent function to recover the angle in degrees. It does not verify a drawing, identify which physical side is opposite or adjacent, or determine whether a real-world structure is safe.
When to use it
Use it to check trigonometry exercises, estimate an angle of elevation from a measured rise and horizontal run, convert a slope ratio into an angle, or confirm calculations used in surveying, construction layout, navigation, and physics. Both side lengths must describe the same right triangle and must use the same unit.
How to calculate
- The calculator opens with the ready-to-use demonstration values Opposite (a) = 3 and Adjacent (b) = 4. The displayed results and a validated example Excel workbook are available immediately.
- Replace Opposite (a) with the length across from the acute angle you are studying. Replace Adjacent (b) with the non-hypotenuse side touching that angle.
- Read Tangent as the unitless ratio opposite ÷ adjacent. Read Angle (α) as the corresponding acute angle in degrees.
- Select Download Excel to export the current inputs, outputs, formula notes, and typed numeric values to a real XLSX workbook. Select Reset to clear the demonstration and all calculated content. After Reset, Excel export remains disabled until both fields again form a valid state.
Input guide
Opposite (a) is a required nonnegative decimal length. Enter a plain number such as 3, 2.5, or a correctly grouped value such as 1,250.5. Zero is accepted and produces a tangent and angle of zero; negative values, scientific notation, unit symbols, and ambiguous decimal-comma forms are rejected. Increasing the opposite side while holding the adjacent side fixed increases both the tangent ratio and the angle. A common mistake is choosing the hypotenuse instead of the side opposite α.
Adjacent (b) is a required positive decimal length in the same unit as the opposite side. A realistic example is 4. It cannot be zero because division by zero makes the tangent ratio undefined and corresponds to the limiting 90-degree direction. Increasing the adjacent side while holding the opposite side fixed decreases the tangent ratio and angle. The adjacent side is the leg touching α, not the hypotenuse.
Output guide
Tangent is the unitless value opposite ÷ adjacent, shown to six decimal places. A value of zero means the opposite side is zero. Values below 1 correspond to angles below 45 degrees, a value of 1 corresponds to 45 degrees, and values above 1 correspond to angles above 45 degrees but below 90 degrees. Angle (α) is the inverse tangent of that ratio, shown in degrees to six decimal places. It is driven by the proportion between the two legs, so scaling both lengths by the same positive factor does not change either output.
Worked example
With the startup values, the tangent ratio is 3 ÷ 4 = 0.75. Applying the inverse tangent gives arctan(0.75) = 36.8698976458...°, which is displayed as 36.869898°. The first-open Excel workbook uses the same typed values and calculation checkpoints. For a full textbook treatment of side identification and right-triangle functions, see OpenStax right-triangle trigonometry.
Formula and interpretation
tan(α) = opposite ÷ adjacent and α = arctan(opposite ÷ adjacent)The labels “opposite” and “adjacent” depend on which acute angle you choose. In the same right triangle, swapping from one acute angle to the other swaps the roles of the legs. This is why a 3-4-5 triangle produces tangent ratios 3/4 and 4/3 for its two acute angles. OpenStax's trigonometric key equations provides the standard opposite-over-adjacent identity alongside sine and cosine.
The tangent ratio behaves like rise over run. Because it is a ratio of two lengths measured in the same unit, the units cancel. A triangle with legs 3 cm and 4 cm has the same tangent and angle as a similar triangle with legs 3 m and 4 m.
The angle approaches 90 degrees as the adjacent side becomes very small compared with the opposite side, but the tangent is undefined when the adjacent side is exactly zero. The broader analytic definition and periodic behavior of tangent are documented in the NIST Digital Library of Mathematical Functions.
Common mistakes and practical limits
- Using the hypotenuse: tangent compares the two legs only. If one entered side is the hypotenuse, the result does not describe the intended angle.
- Mixing units: convert both lengths to the same unit before entry. Dividing 3 meters by 400 centimeters without conversion gives the wrong ratio.
- Choosing the wrong angle: a side can be adjacent to one acute angle and opposite the other. Mark α before assigning the side labels.
- Rounding too early: preserve measured precision through the division and inverse tangent, then round the final result for reporting.
- Treating a model as a safety decision: mathematical slope and angle calculations do not replace engineering design standards, field verification, or professional judgment.