Logo

MonoCalc

Tangent Calculator

Angle Unit
Angle (°)

Note: Tangent is undefined at ±90°, ±270°, etc.

Result

Tangent Value:

1.000000

Formula:

Step-by-Step Solution:

Common Angles & Tangent Values

Angle (Degrees)Angle (Radians)Tangent ValueExact ValueAction
0°00.00000
30°π/60.5774√3/3
45°π/41.00001
60°π/31.7321√3
90°π/2undefinedundefined
120°2π/3-1.7321-√3
135°3π/4-1.0000-1
150°5π/6-0.5774-√3/3
180°π0.00000
270°3π/2undefinedundefined
360°0.00000

💡 Quick Facts

• tan(θ) = sin(θ) / cos(θ) = opposite / adjacent

• Tangent is undefined when cos(θ) = 0 (at ±90°, ±270°, etc.)

• The range of tan is (-∞, +∞), covering all real numbers

• arctan returns angles in the range -90° to 90° (-π/2 to π/2)

About the tool

📐 Tangent Calculator – Calculate Tan, Arctan with Degrees & Radians

The Tangent Calculator is a comprehensive tool for calculating tangent (tan) and inverse tangent (arctan) values for any angle. Whether you're working in degrees or radians, this calculator provides instant results with step-by-step solutions and common angle references.

This guide explains what the tangent function is, how it's calculated, and provides practical applications for trigonometry in mathematics, physics, engineering, navigation, and computer science.

📘 What is the Tangent Function?

The tangent function (tan) is one of the six fundamental trigonometric functions. In a right triangle, tangent is defined as the ratio of the length of the opposite side to the length of the adjacent side:

tan(θ) = opposite / adjacent

The tangent function can also be expressed in terms of sine and cosine:

tan(θ) = sin(θ) / cos(θ)

Unlike sine and cosine, which are bounded between -1 and 1, the tangent function can take any real value from negative infinity to positive infinity. However, it has vertical asymptotes (is undefined) at odd multiples of 90° (π/2 radians), where the cosine equals zero.

🔄 Degrees vs Radians

Angles can be measured in two primary units:

  • Degrees (°): A full circle is 360 degrees. This is the most common unit in everyday applications and navigation.
  • Radians (rad): A full circle is 2π radians (approximately 6.28). Radians are preferred in advanced mathematics, calculus, and scientific computing.

Conversion formulas:

  • Degrees to radians: radians = degrees × (π / 180)
  • Radians to degrees: degrees = radians × (180 / π)

Example: 45° = 45 × (π / 180) = π/4 radians ≈ 0.7854 rad

🔢 Common Tangent Values

Certain angles have exact tangent values that are frequently used in trigonometry and engineering:

  • tan(0°) = 0
  • tan(30°) = √3/3 ≈ 0.577
  • tan(45°) = 1
  • tan(60°) = √3 ≈ 1.732
  • tan(90°) = undefined (approaches ±∞)
  • tan(135°) = -1
  • tan(180°) = 0
  • tan(270°) = undefined (approaches ±∞)

These values are derived from the special right triangles (30-60-90 and 45-45-90 triangles) and are essential for solving trigonometric problems efficiently. Note that tangent is undefined at 90° and 270° because at these angles, the cosine equals zero, resulting in division by zero.

🔙 Inverse Tangent (Arctan)

The inverse tangent function, written as arctan, atan, or tan⁻¹, does the opposite of the tangent function. Given a tangent value, it returns the corresponding angle:

θ = arctan(value)

Unlike inverse sine and inverse cosine, arctan can accept any real number as input since tangent values range from negative infinity to positive infinity. The range of arctan is typically -90° to 90° (or -π/2 to π/2 radians), which represents the principal value.

Example: If tan(45°) = 1, then arctan(1) = 45°

⚙️ How the Tangent Calculator Works

Our tangent calculator offers two calculation modes:

  1. Calculate Tangent: Enter an angle to find its tangent value
  2. Calculate Inverse Tangent (Arctan): Enter a tangent value (any real number) to find the corresponding angle

Both modes support degrees and radians, with automatic unit conversion and detailed step-by-step solutions. The calculator also handles special cases like angles where tangent is undefined.

🧩 Key Features

  • ⚡ Instant calculations for tangent and inverse tangent
  • 🔄 Support for both degrees and radians with automatic conversion
  • 📊 Step-by-step solution showing all calculation steps
  • 📋 Common angles reference table with exact values
  • ⚠️ Clear warnings for undefined values (at ±90°, ±270°, etc.)
  • 📱 Mobile and desktop-friendly responsive interface
  • 🔐 Client-side only — all calculations are done in your browser
  • 📝 Copy results to clipboard for easy sharing
  • 🌙 Dark mode support for comfortable viewing

🌟 Practical Applications of Tangent

  • 🏗️ Engineering: Calculating slopes, inclines, and structural angles in civil engineering
  • 📐 Surveying: Determining heights of buildings and distances using angle measurements
  • 🎯 Physics: Analyzing projectile motion, forces on inclined planes, and wave interference
  • 🗺️ Navigation: Computing bearings, courses, and position fixes in marine and aviation
  • 🎮 Computer Graphics: Calculating camera angles, perspective projections, and field of view
  • 🏔️ Geography: Measuring mountain slopes, terrain gradients, and elevation changes
  • 📷 Photography: Understanding lens angles and calculating optimal shooting angles
  • 🌞 Astronomy: Computing celestial object elevations and altitude angles

🔄 How to Use the Tangent Calculator

To Calculate Tangent:

  1. Select "Calculate Tangent" mode
  2. Choose your angle unit (degrees or radians)
  3. Enter the angle value
  4. View the instant tangent value result
  5. Review the step-by-step solution and formula used
  6. Use the "Copy Result" button to save your calculation
  7. Check the warning if your angle is at ±90°, ±270°, etc.

To Calculate Inverse Tangent (Arctan):

  1. Select "Calculate Inverse Tangent (Arctan)" mode
  2. Choose your desired result unit (degrees or radians)
  3. Enter any tangent value (positive, negative, or zero)
  4. View the resulting angle in your chosen unit
  5. Review the step-by-step solution showing the calculation

✅ Tips for Working with Tangent

  • Remember that tangent can be any real number, unlike sine and cosine
  • Tangent is undefined at odd multiples of 90° (±90°, ±270°, ±450°, etc.)
  • Use the common angles table for quick reference of exact values
  • When working with inverse tangent, remember the result will be in the range -90° to 90° (-π/2 to π/2 rad) — this is the principal value
  • For angles beyond 360° (or 2π), tangent values repeat with a period of 180° (π radians)
  • Tangent is positive in the first and third quadrants, negative in the second and fourth quadrants
  • Small angles (near 0°) have tangent values approximately equal to the angle in radians

🎓 Understanding the Unit Circle

The unit circle provides a geometric interpretation of the tangent function. For any angle θ:

  • Draw a line from the origin at angle θ
  • Extend this line until it intersects the vertical tangent line at x = 1
  • The y-coordinate of this intersection point equals tan(θ)

This visualization helps explain why tangent approaches infinity as the angle approaches 90° — the intersection point moves infinitely far up or down along the tangent line.

⚠️ Special Cases and Undefined Values

The tangent function has vertical asymptotes at angles where cos(θ) = 0. At these angles:

  • tan(90°) = tan(π/2) → undefined (approaches +∞ from the left, -∞ from the right)
  • tan(270°) = tan(3π/2) → undefined
  • Generally undefined at: θ = ±90° + n×180° where n is any integer

Our calculator detects these cases and provides clear warnings along with explanations of why the tangent is undefined at those angles.

❓ Frequently Asked Questions

Can I use this calculator for any angle value?

Yes! The tangent calculator works with any angle value in degrees or radians, except for angles where tangent is undefined (odd multiples of 90°). For these special angles, the calculator will show a warning and explain why the value is undefined.

Why doesn't arctan have domain restrictions like arcsin?

Since the tangent function can produce any real number as output, the inverse tangent function can accept any real number as input. There are no restrictions on the input value for arctan.

How accurate are the calculations?

The calculator uses JavaScript's built-in Math.tan() and Math.atan() functions, which provide double-precision floating-point accuracy (approximately 15-17 decimal digits). For most practical applications, this level of precision is more than sufficient.

What's the difference between tan⁻¹ and 1/tan?

tan⁻¹(x) (arctan) is the inverse function that finds the angle given a tangent value, while 1/tan(x) is the reciprocal called cotangent (cot). They are completely different operations. For example, tan⁻¹(1) = 45°, but 1/tan(45°) = 1/1 = 1.

How is tangent related to slope?

In coordinate geometry, the tangent of an angle equals the slope of a line making that angle with the positive x-axis. If a line has slope m, then the angle θ it makes with the x-axis satisfies tan(θ) = m. This relationship is extremely useful in engineering, physics, and computer graphics.

Frequently Asked Questions

  • Is the Tangent Calculator free ?

    Yes, Tangent Calculator is totally free :)

  • Can i use the Tangent Calculator offline ?

    Yes, you can install the webapp as PWA.

  • Is it safe to use Tangent Calculator ?

    Yes, any data related to Tangent Calculator only stored in your browser(if storage required). You can simply clear browser cache to clear all the stored data. We do not store any data on server.

  • What is the tangent function in trigonometry?

    The tangent function (tan) is one of the fundamental trigonometric functions. In a right triangle, tangent is defined as the ratio of the length of the opposite side to the length of the adjacent side: tan(θ) = opposite / adjacent. The tangent value can range from negative infinity to positive infinity, and it has periodic asymptotes at odd multiples of 90° (or π/2 radians).

  • What is inverse tangent (arctan)?

    Inverse tangent, also called arctan or tan⁻¹, is the inverse function of tangent. It takes any real number (tangent value) and returns the corresponding angle. For example, if tan(45°) = 1, then arctan(1) = 45°. The range of arctan is typically -90° to 90° (or -π/2 to π/2 radians), which represents the principal value.

  • What are the tangent values for common angles?

    Common angles and their tangent values are: tan(0°) = 0, tan(30°) = √3/3 ≈ 0.577, tan(45°) = 1, tan(60°) = √3 ≈ 1.732, and tan(90°) is undefined (approaches infinity). These values are frequently used in trigonometry, geometry, and engineering calculations.

  • Why is tangent undefined at 90° (π/2 radians)?

    Tangent is undefined at 90° because at this angle, the adjacent side of a right triangle becomes zero, and division by zero is undefined. Mathematically, tan(θ) = sin(θ) / cos(θ), and cos(90°) = 0. The tangent function has vertical asymptotes at 90°, 270°, and all odd multiples of 90° (or π/2 radians).

  • How is tangent related to sine and cosine?

    Tangent is directly related to sine and cosine through the formula: tan(θ) = sin(θ) / cos(θ). This relationship means you can calculate tangent if you know both sine and cosine values. It also explains why tangent is undefined when cosine equals zero.

  • What is the difference between tan and arctan?

    Tan (tangent) takes an angle as input and returns a ratio (which can be any real number). Arctan (inverse tangent) does the opposite—it takes a ratio as input and returns the corresponding angle. For example, tan(45°) = 1, and arctan(1) = 45°. They are inverse operations of each other.