Skip to content
CalculatorAtlas

Tangent Calculator

Tested

tan of an angle in degrees or radians.

Tested, not yet published. The formula for this calculator is implemented and passes its automated checks. This page stays non-indexable until it is reviewed and published.

Results

Enter your values and press Calculate. Results appear here.

  • • Result

Quick answer

tan(θ) = opposite ÷ adjacent in a right triangle. tan(45°) = 1.

Enter an angle and choose degrees or radians. The calculator returns tan(θ). Use this tangent calculator to check your own figures.

Related tools: Inverse Tangent Calculator: arctan (inverse trigonometric function) with the result in degrees and radians. Trigonometry Calculator: All six trigonometric functions of an angle. SOHCAHTOA Calculator: Find the other two sides of a right triangle from one side and an acute angle.

How to use the Tangent Calculator

  1. Enter angle.
  2. Choose unit: Degrees and Radians.
  3. Press Calculate to see the result, and use Reset to start again.
Inputs of the Tangent Calculator
InputWhat to enterAllowed values
AngleA number—
UnitChoose one: Degrees; RadiansStarts at Degrees

Formula and method

Formula

tan(θ)

IEEE-754 double precision; shown to at most 6 decimal places.

Angle is converted to radians and evaluated with IEEE-754 math functions. Values where the function is undefined are rejected.

Worked examples

These examples are verified: each one is an automated test case that the live calculator must reproduce exactly.

Example 1

Inputs: Angle = 45; Unit = Degrees.

Results of example 1
ResultValue
tan(45°)1

Example 2

Inputs: Angle = 0; Unit = Degrees.

Results of example 2
ResultValue
tan(0°)0

Example 3

Inputs: Angle = -45; Unit = Degrees.

Results of example 3
ResultValue
tan(-45°)-1

The first line is the headline result (tan(45°)). IEEE-754 double precision; shown to at most 6 decimal places.

What it means

Tangent is sine divided by cosine and is the slope of the line at angle θ. tan 45° = 1 because the legs of a 45-45-90 triangle are equal; tan 90° is undefined.

Domain and checks

tan θ is undefined at 90° and 270° where cos θ = 0, and the calculator says so. Angles may be negative or larger than 360°; they repeat every 360° (every 180° for tangent).

The reciprocal of tan is cotangent, available on its own page. Inverse functions (arcsin, arccos, arctan) turn a ratio back into an angle.

What happens with invalid input

These messages are produced by the calculator itself, so you know what to fix.

  • Angle: entering "90" shows "tan is undefined at this angle." beside that field and no result.

Choosing between the Tangent Calculator and similar calculators

Each row shows what a related calculator on this site asks for and what it returns, so you can pick the one that matches your question.

Choosing between the Tangent Calculator and similar calculators
CalculatorYou enterIt returns
[Inverse Tangent Calculator](/math/inverse-tangent-calculator/)valuearctan(1)
[Trigonometry Calculator](/math/trigonometry-calculator/)angle and unitsin
[SOHCAHTOA Calculator](/math/sohcahtoa-calculator/)acute angle, known side length and known side is theOpposite
[Reference Angle Calculator](/math/reference-angle/)angleReference angle
[Inverse Sine Calculator](/math/inverse-sine/)valuearcsin(0.5)

Background: trigonometry

In a right triangle, sin θ is the opposite side over the hypotenuse, cos θ the adjacent side over the hypotenuse and tan θ the opposite over the adjacent. Their reciprocals are cosecant, secant and cotangent. At 30° the values are sin = 0.5, cos = 0.866025 and tan = 0.577350.

Check the angle unit before you calculate: degrees convert to radians by multiplying by π/180, so 30° is about 0.5236 rad. Some values are undefined, for example tan 90°, because the cosine is zero there and the ratio would divide by zero.

Assumptions and limitations

  • Undefined at some angles (for example tan 90°)
  • Angles may be negative or larger than 360°

If a required value is empty, not a number, or outside its allowed range, the form marks that field with a message and shows no result instead of a misleading number. The automated checks deliberately try invalid entries for angle to confirm this.

Frequently asked questions

What is tan(45°)?

tan 45° = 1, because the two legs of a 45-45-90 triangle are equal.

How do I convert degrees to radians?

Multiply by π/180; 30° is π/6 ≈ 0.5236 rad.

Which quadrants are positive?

Tangent is positive in quadrants I and III.

Is the calculator exact?

It uses double-precision arithmetic, so values such as sin 30° appear as 0.5 up to the displayed rounding.

What does the Tangent Calculator calculate?

tan of an angle in degrees or radians. It returns tan(45°).

What formula does the Tangent Calculator use?

tan(θ). Angle is converted to radians and evaluated with IEEE-754 math functions.

What does the “Unit” option change?

It sets how the tangent is worked out. The choices are Degrees and Radians.

What is an example of a tangent result?

With angle 45 and unit Degrees, the tan(45°) is 1.

Sources

  • Standard trigonometric definitions on the unit circle (NIST DLMF §4.14)

Content last reviewed 2026-11-04. Formulas and worked examples are checked by automated tests against independently computed values.