Calculators.Life Calculator
Math

Tangent & Arctangent Calculator

Input Parameters

Scenarios
Choose whether to calculate tangent tan(θ) or inverse tangent arctan(x)
Unit for the angle (input for tan, output for arctan)
Enter the angle θ for tan or the ratio value x for tan⁻¹

Computed Results

Result
1
Angle in Degrees45°
Angle in Radians0.785398 rad
Radians in terms of π0.25π rad

The tan calculator determines the tangent of a given angle or the inverse tangent (arctangent) of a specific ratio. It supports inputs and outputs in degrees, radians, and gradians, providing precise conversions and automatically identifying undefined asymptotes.

Practical Use Cases

Tangent and arctangent calculations are fundamental in geometry, physics, and engineering. Common applications include finding the angle of elevation or depression, calculating the slope of a line, and resolving vector components in physics problems. By switching between tangent and arctangent modes, you can solve for either an unknown side ratio or an unknown angle.

Formula & Explanation

In a right-angled triangle, the tangent of an angle (θ) is the ratio of the length of the opposite side to the length of the adjacent side. The inverse tangent, or arctangent, reverses this process to find the angle when the ratio is known.

tan(θ) = Opposite ÷ Adjacent
θ = arctan(x) = tan⁻¹(x)

The calculator automatically handles unit conversions before applying the trigonometric functions. For example, to convert degrees to radians, the formula multiplies the angle by π and divides by 180. Gradians are converted by multiplying by π and dividing by 200.

Verified Scenario Walkthroughs

Here are examples of how the calculator processes different inputs and units:

How to Use the Calculator

  1. Select the Calculation Type: Choose "tan" to find the ratio from an angle, or "arctan" to find the angle from a ratio.
  2. Select your preferred Angle Unit (Degrees, Radians, or Gradians). For arctangent, this determines the unit of your final answer.
  3. Enter the Input Value. This will be the angle θ if you are calculating tangent, or the ratio x if you are calculating arctangent.
  4. Review the results, which include the primary answer as well as conversions into degrees, radians, and radians in terms of π.

Inputs & Outputs

Field Type Description
Calculation Type Input Choose whether to calculate tangent tan(θ) or inverse tangent arctan(x).
Angle Unit Input Unit for the angle (input for tan, output for arctan). Options include degrees, radians, and gradians.
Input Value Input Enter the angle θ for tan or the ratio value x for tan⁻¹.
Result Output The primary calculated tangent ratio or arctangent angle.
Angle in Degrees Output The angle expressed in standard degrees.
Angle in Radians Output The angle expressed in decimal radians.
Radians in terms of π Output The angle expressed as a multiple of pi (π).

Frequently Asked Questions

What is the difference between tangent and arctangent?

Tangent calculates the ratio of the opposite side to the adjacent side for a given angle. Arctangent (or inverse tangent) does the reverse: it calculates the angle that corresponds to a given ratio.

What happens if I calculate the tangent of 90 degrees?

The tangent of 90 degrees (or π/2 radians) is mathematically undefined because the cosine of 90 degrees is zero, creating a division by zero. The calculator will output 'Undefined (Asymptote)' for this boundary case.

How does the calculator handle gradians?

A gradian is a unit of angle measure where a full circle is 400 gradians (making a right angle 100 gradians). The calculator converts gradians to radians internally by multiplying the value by π and dividing by 200 before performing the trigonometric calculation.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.