... LIVE
Please enter a valid value.
Enter any real number (arctan accepts all reals, not limited to -1 to 1)

Calculate the inverse tangent (arctan) of any real number. Get the angle in degrees, radians, and gradians. Unlike arcsin and arccos, arctan accepts all real numbers as input.

Arctan Result

Sources & Methodology

Formulas verified against authoritative sources listed below.
📚
NIST Digital Library of Mathematical Functions — Chapter 4.23: Inverse Trigonometric Functions
NIST authoritative reference for arctan definition, properties, range, and identities
📚
Wolfram MathWorld — Inverse Tangent
Comprehensive reference for arctangent properties, series expansions, and applications
Methodology: arctan(x) = inverse of tangent. Domain: all real numbers. Range: -90 to +90 degrees (-pi/2 to pi/2 radians). Computed using JavaScript Math.atan(x). Degrees = radians x (180/pi). Gradians = degrees x (10/9). Verification: tan(arctan(x)) = x for all real x.

⏱ Last reviewed: April 2026

How to Calculate the Inverse Tangent

The inverse tangent function (arctan, also written tan⁻¹ or atan) returns the angle whose tangent equals a given value. Unlike arcsin and arccos which require input in [-1, 1], arctan accepts any real number as input because tangent itself spans all real values. The principal value range is −90° to +90° (exclusive), approaching but never reaching those limits as x approaches ±∞.

The Arctan Function: Domain and Range

arctan(x) accepts all real numbers as input (domain = all reals). The output range is strictly between −90° and +90° (open interval). Key values: arctan(0) = 0°, arctan(1) = 45°, arctan(−1) = −45°, arctan(∞) approaches 90°, arctan(−∞) approaches −90°. The function is odd: arctan(−x) = −arctan(x).

Arctan vs. Arcsin and Arccos — Key Difference

All three inverse trig functions return angles, but they differ in input domain and output range. arcsin and arccos require input in [-1, 1]. arctan accepts any real number. arcsin range: [-90°, 90°]. arccos range: [0°, 180°]. arctan range: (-90°, 90°) — open interval, never reaching exactly ±90°. Arctan is the most commonly used in programming and engineering.

atan2: The Two-Argument Arctangent

atan2(y, x) is a variant that takes two arguments (y, x) and returns the angle in the correct quadrant for all four quadrants, ranging from −180° to +180°. It solves the ambiguity of arctan when both coordinates are needed: atan2(1, −1) = 135° (second quadrant), while arctan(1/−1) = arctan(−1) = −45° (fourth quadrant). atan2 is essential in programming for converting Cartesian to polar coordinates.

Applications of Arctan

Arctan appears in: 1) Slope-to-angle conversion: angle = arctan(rise/run). 2) Vector angle from components: angle = arctan(y/x) or atan2(y,x). 3) Camera/optics: field of view = 2 x arctan(sensor_size / (2 x focal_length)). 4) Electronics: phase angle of RC circuits = arctan(1/(omega x R x C)). 5) Approximations: pi = 4 x arctan(1) = 4 x 45°.

arctan(x) = angle where tan(angle) = x | Domain: all real numbers | Range: -90 to +90 degrees (open)
Conversion: degrees = radians x (180/pi). Identity: arctan(x) + arctan(1/x) = 90 degrees (for x > 0). pi = 4 x arctan(1). Machin formula: pi/4 = 4 arctan(1/5) - arctan(1/239). Verification: tan(arctan(x)) = x always.

Inverse Tangent Common Values

x valuearctan(x) degreesarctan(x) radiansNotes
-∞-90° (limit)-π/2 (limit)approaches but never reaches
-1.732-60°-π/3 (-1.0472)tan(-60°) = -sqrt(3)
-1-45°-π/4 (-0.7854)tan(-45°) = -1
-0.577-30°-π/6 (-0.5236)tan(-30°) = -1/sqrt(3)
00tan(0°) = 0
0.57730°π/6 (0.5236)tan(30°) = 1/sqrt(3)
145°π/4 (0.7854)tan(45°) = 1
1.73260°π/3 (1.0472)tan(60°) = sqrt(3)
+∞90° (limit)π/2 (limit)approaches but never reaches
💡 Programming Tip: In most programming languages, use atan2(y, x) instead of atan(y/x) when working with 2D coordinates. atan2 handles all four quadrants correctly, avoids division by zero when x=0, and returns the correct quadrant angle in the range (-180°, 180°]. JavaScript: Math.atan2(y, x). Python: math.atan2(y, x).
Frequently Asked Questions
Inverse tangent (arctan) returns the angle whose tangent equals a given value. If tan(45 degrees) = 1, then arctan(1) = 45 degrees. Unlike arcsin and arccos, arctan accepts any real number as input. Range: -90 to +90 degrees (exclusive).
arctan(1) = 45 degrees = pi/4 radians. tan(45 degrees) = 1. This is one of the most important arctan values: pi = 4 x arctan(1).
arctan(0) = 0 degrees = 0 radians. tan(0 degrees) = 0.
arctan(-1) = -45 degrees = -pi/4 radians. tan(-45 degrees) = -1.
arctan(x) takes one argument (a ratio y/x) and returns angles only in (-90, 90) degrees. atan2(y, x) takes two arguments and returns angles in (-180, 180] degrees, correctly identifying the quadrant. Always use atan2 when working with 2D coordinates.
The domain of arctan is all real numbers (negative infinity to positive infinity). This differs from arcsin and arccos which are only defined for inputs in [-1, 1]. Tangent spans all real values, so its inverse accepts all reals.
arctan(sqrt(3)) = 60 degrees = pi/3 radians. tan(60 degrees) = sqrt(3) approximately 1.7321.
Angle = arctan(rise/run). For a roof with 4 inches of rise per 12 inches of run: angle = arctan(4/12) = arctan(0.333) = 18.43 degrees. For a 1:1 slope: arctan(1) = 45 degrees.
For x > 0: arctan(x) + arctan(1/x) = 90 degrees (pi/2 radians). For x < 0: arctan(x) + arctan(1/x) = -90 degrees. This is because if angle = arctan(x), then the complementary angle = arctan(1/x), and they sum to 90 degrees for positive x.
Leibniz formula: pi/4 = 1 - 1/3 + 1/5 - 1/7... = arctan(1). Machin formula: pi/4 = 4 arctan(1/5) - arctan(1/239). Modern pi computation uses more efficient arctan series. The Machin formula converges much faster than Leibniz and was used to compute pi to hundreds of digits before computers.
Related Calculators
Popular Calculators
🧮

Missing a Math Calculator?

Can’t find the math calculator you need? Tell us — we build new ones every week.