Tangent Calculator
Calculate the tangent of any angle in degrees or radians with this free online tangent calculator.
Tangent Calculator
Enter an angle, choose degrees or radians, then calculate its tangent.
What Is a Tangent Calculator?
A tangent calculator is a mathematical tool that calculates the tangent, written as tan(x), of a supplied angle. Tangent is one of the three fundamental trigonometric functions and describes the relationship between the opposite and adjacent sides of a right triangle.
Tangent can also be defined using the unit circle and as the ratio of sine to cosine. A tangent calculator is useful for trigonometry, geometry, physics, engineering, mathematics homework and other calculations involving angles and triangles.
Why Use a Tangent Calculator?
This free tangent calculator provides a quick way to calculate tan(x) without manually performing the trigonometric calculation. It supports both common angle units and identifies angles where tangent is undefined.
Degrees and Radians
Switch between degrees and radians depending on the format of your angle.
Instant Tangent Results
Calculate the tangent of your angle immediately with a single button.
Negative Angles
Calculate tangent for positive and negative finite angle values.
Undefined Angles Detected
The calculator identifies angles where tangent is undefined because cosine is zero.
Clear Decimal Output
Results are formatted into a clear numerical value that is easy to read and use.
Browser-Based
The calculation is performed directly in your web browser without requiring an external calculator service.
How to Use the Tangent Calculator
Using the tangent calculator only requires an angle and its corresponding unit. Follow these steps to calculate tan(x).
- Enter an angle — Type the angle you want to calculate into the Angle field.
- Choose the unit — Select Degrees or Radians to identify how the angle is expressed.
- Calculate the tangent — Click the Calculate Tangent button to perform the calculation.
- Read the result — The calculated value of tan(x) will be displayed in the result area. If tangent is undefined for the selected angle, the calculator will tell you.
Calculate Tangent Online
This free tangent calculator makes it easy to calculate tan(x) for an angle expressed in either degrees or radians. Tangent is widely used in mathematics and science, particularly when calculating the relationship between the sides of a right triangle or analysing angles and slopes.
For angles measured in degrees, the calculator converts the value to radians before calculating the tangent because JavaScript's built-in trigonometric functions use radians. For example, 45 degrees is converted to π/4 radians, producing a tangent value of 1.
Tangent in Degrees and Radians
Degrees and radians are two standard ways of measuring angles. A full circle contains 360 degrees or 2π radians. To convert an angle from degrees to radians, multiply the degree value by π/180. When an angle is already expressed in radians, it can be used directly in the tangent calculation.
Understanding the Tangent Function
In a right triangle, tangent is defined as the opposite side divided by the adjacent side. It can also be expressed as sin(θ) ÷ cos(θ). Unlike sine and cosine, tangent does not have a fixed maximum or minimum value. It is undefined whenever cosine equals zero, producing vertical asymptotes in its graph.
Tangent Calculator Accuracy and Limitations
The calculator uses JavaScript floating-point arithmetic to evaluate tangent values. Results are suitable for ordinary mathematical and technical calculations, although extremely precise calculations can sometimes contain tiny rounding differences because decimal numbers cannot always be represented exactly in binary floating-point arithmetic.
Tangent is undefined when the cosine of the angle is zero. In degrees, these angles include 90°, 270°, 450° and equivalent values separated by 180°. More generally, tangent is undefined at 90° + 180°n, where n is an integer. The calculator detects these points rather than presenting an ordinary numerical result.
James William Steven Parker
Creator & Developer of YesTools
James William Steven Parker is a web developer and technology professional with extensive experience in web development, web design, SEO, web hosting, systems analysis and cybersecurity. He created YesTools to provide fast, practical and free online tools for everyday tasks and technical work.
Learn more about James and YesToolsFrequently Asked Questions
Explore More Free Tools
Explore the YesTools collection of free online tools, calculators, converters, generators and utilities.
Browse All Categories

