Last verified · v1.0
Calculator · math
Arctangent (Arctan) Calculator
Compute arctan(x) — the inverse tangent — for any real number. Get the resulting angle in degrees, radians, or gradians instantly.
Inputs
Arctangent (angle)
—
Explain my result
Get a plain-English breakdown of your result with practical next steps.
The formula
How the
result is
computed.
What Is the Arctangent Function?
The arctangent — written as arctan(x) or tan⁻¹(x) — is the inverse trigonometric function of the tangent. Given any real number x, the arcus tangent calculator returns the unique angle θ whose tangent equals x. The defining relationship is:
θ = arctan(x) if and only if tan(θ) = x
Because the tangent function repeats every 180°, it is not one-to-one across its full domain. Arctangent resolves this by restricting output to the principal value branch: the open interval (−90°, 90°), equivalently (−π/2, π/2) radians or (−100 grad, 100 grad). Every real-number input maps to exactly one output angle within that range.
Formula and Derivation
The formula at the core of every arctan calculation is:
θ = arctan(x)
For a right triangle, if the opposite side measures a units and the adjacent side measures b units, then:
θ = arctan(a / b)
This follows directly from the tangent ratio: tan(θ) = opposite / adjacent. Inverting that relationship yields arctangent. In calculus, the derivative plays a central role:
d/dx [arctan(x)] = 1 / (1 + x²)
Integrating 1 / (1 + x²) from 0 to 1 yields exactly π/4 ≈ 0.7854, a result that underpins Machin-type inverse tangent series for computing π to arbitrary precision.
Understanding the Variables
- Input Value (x): Any real number on (−∞, +∞). Positive values of x produce first-quadrant angles between 0° and 90°; negative values produce fourth-quadrant angles between −90° and 0°. As x grows toward ±∞, arctan(x) approaches the horizontal asymptotes at ±90° but never reaches them.
- Output Unit: Results can be expressed in degrees (°), radians (rad), or gradians (grad). Radians are standard in calculus, physics, and most programming libraries. Degrees appear in navigation and everyday geometry. Gradians divide a full right angle into exactly 100 equal parts, common in surveying.
Key Reference Values
- arctan(0) = 0° = 0 rad
- arctan(1) = 45° = π/4 rad ≈ 0.7854 rad
- arctan(−1) = −45° = −π/4 rad
- arctan(√3) = 60° = π/3 rad ≈ 1.0472 rad
- arctan(1/√3) = 30° = π/6 rad ≈ 0.5236 rad
- arctan(x) → 90° as x → +∞ (horizontal asymptote)
Real-World Applications
Navigation and Bearing
Pilots and surveyors use arctangent to compute bearing angles. An aircraft traveling 300 km east and 400 km north from its origin flies at a bearing of arctan(300 / 400) = arctan(0.75) ≈ 36.87° measured from north toward east.
Civil Engineering: Road Grade
A road that rises 5 m for every 100 m of horizontal run has a grade angle of arctan(5 / 100) = arctan(0.05) ≈ 2.86°. Engineers apply this angle when designing safe slopes and drainage gradients.
Physics: Force Vector Resolution
A 30 N horizontal force combined with a 40 N vertical force produces a resultant directed at arctan(40 / 30) ≈ 53.13° above horizontal. Resolving and reconstructing force vectors in this way is fundamental to structural and mechanical engineering.
Computer Graphics and Robotics
The two-argument variant atan2(y, x) extends arctangent to all four quadrants by using the individual signs of both coordinates, returning angles across the full (−180°, 180°] range. This function is indispensable in 2D/3D graphics engines and robotic motion planning.
Arctangent in Calculus and Mathematical Analysis
Beyond its geometric interpretation, arctangent appears frequently in advanced mathematics. The derivative 1 / (1 + x²) enables rapid convergence of infinite series approximations. Taylor series expansions and asymptotic methods rely on arctangent's well-behaved derivatives and predictable behavior at infinity. In complex analysis, the arctangent function extends into the complex plane, revealing deeper connections between inverse trigonometric functions and logarithmic expressions.
Using This Calculator
Enter any real number into the input field, select degrees, radians, or gradians, and the calculator applies θ = arctan(x) instantly. For equations of the form tan(θ) = k, the inverse trig equation method detailed by Paul's Online Math Notes shows that arctan gives the principal solution; additional solutions follow by adding integer multiples of 180° (or π rad) due to the tangent's periodicity. The theoretical basis for these calculations is covered in depth by the Xavier University of Louisiana inverse trig function reference.
Reference