Calculators.Life Calculator
Math

Tangent and Inverse Tangent Calculator

Input Parameters

Scenarios
Enter the angle θ for tan(θ) or the ratio x for arctan(x)

Computed Results

Calculated Result
1
Angle in Degrees (°)45°
Angle in Radians (rad)0.78539816 rad
Angle in Radians (× π)0.25π rad

This tangent calculator determines the tangent of a given angle or the inverse tangent (arctan) of a specific ratio. It helps you solve trigonometric problems by computing the ratio of the opposite side to the adjacent side in a right triangle, while also converting angles between degrees, radians, and pi radians.

Practical Use Cases

The tangent function is a fundamental part of trigonometry used across mathematics, physics, and engineering. Common applications include:

How to Use the Calculator

Follow these steps to calculate the tangent or inverse tangent:

  1. Select the Calculation Mode: Choose either tan to find the tangent of an angle, or atan to find the angle from a ratio.
  2. Select the Angle Unit: If calculating a tangent, specify whether your input angle is in degrees or radians.
  3. Enter the Input Value: Input the angle (θ) or the ratio (x).
  4. Review the Results: The calculator will display the primary result alongside the angle equivalents in degrees, radians, and radians expressed as a multiple of π. You can also view the Angle Equivalents visual chart for a quick comparison.

Formula and Calculation Method

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.

tan(θ) = Opposite ÷ Adjacent

The inverse tangent, or arctangent, reverses this process to find the angle when the ratio is known:

θ = arctan(x)

When calculating the tangent, certain angles (like 90° or 270°) result in a division by zero because the cosine of the angle is zero. In these cases, the calculator will return "Undefined (Asymptote)".

To convert between degrees and radians, the calculator uses the following standard conversions:

Radians = Degrees × (π ÷ 180)
Degrees = Radians × (180 ÷ π)

Verified Calculation Examples

Here are a few examples demonstrating how the calculator processes different inputs:

Example 1: Tangent of a Standard Degree Angle

If you want to find the tangent of a 45-degree angle:

Example 2: Tangent of a Small Radian Angle

If you input an angle of 0.5 radians:

Example 3: Inverse Tangent of a High Value

If you need to find the angle for a ratio of 1000:

Inputs and Outputs Reference

FieldTypeDescription
Calculation ModeInputSelect whether to calculate the tangent (tan) or inverse tangent (atan).
Angle UnitInputThe unit of measurement for the input angle (Degrees or Radians).
Input ValueInputThe angle θ for tan(θ) or the ratio x for arctan(x).
Calculated ResultOutputThe primary mathematical result of the selected function.
Angle in Degrees (°)OutputThe angle expressed in standard degrees.
Angle in Radians (rad)OutputThe angle expressed in decimal radians.
Angle in Radians (× π)OutputThe angle expressed as a multiple of pi (π).

Frequently Asked Questions

What is the difference between tangent and inverse tangent?

The tangent function takes an angle and returns the ratio of the opposite side to the adjacent side in a right triangle. The inverse tangent (arctan) does the reverse: it takes a ratio and returns the corresponding angle.

Why does the calculator say the tangent of 90 degrees is undefined?

The tangent of an angle is equal to the sine of the angle divided by the cosine of the angle. At 90 degrees, the cosine is exactly zero. Because division by zero is mathematically undefined, the tangent at 90 degrees (and 270 degrees) is an asymptote and cannot be calculated.

How do I convert degrees to radians?

To convert degrees to radians, multiply the degree value by pi (π) and divide by 180. The calculator automatically provides this conversion in the results section.

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.