Arctan Calculator
Calculate arctangent (inverse tangent) in radians and degrees. Supports atan(x) and atan2(y,x) with interactive graph and full precision control.
About
Arctangent maps a ratio back to the angle that produced it. Given x = tan(θ), the function arctan(x) returns θ constrained to the interval (−π2, π2). This single-argument form loses quadrant information. A surveyor measuring bearing from two displacement components, or a robotics engineer resolving joint angles, needs atan2(y, x) which preserves the full (−π, π] range across all four quadrants. Confusing the two forms is a common source of 180° errors in navigation and computer graphics pipelines.
This calculator computes both arctan(x) and atan2(y, x) to arbitrary display precision. Results are given simultaneously in radians, degrees, and as a fraction of π. The interactive graph plots θ = arctan(x) so you can visually confirm the asymptotic behavior approaching ±π2. Note: numerical precision is bounded by IEEE 754 double-precision (~15 significant digits).
Formulas
The primary definition of arctangent for a single argument:
Degree conversion from radians:
The two-argument form atan2(y, x) resolves the correct quadrant:
The Taylor series expansion around x = 0 (convergent for |x| ≤ 1):
Where θ is the resulting angle, x is the tangent value (input), y and x are Cartesian coordinates in atan2 mode, and n is the summation index.
Reference Data
| x | arctan(x) radians | arctan(x) degrees | Fraction of π |
|---|---|---|---|
| −∞ | −π2 | −90° | −12 |
| −√3 | −π3 | −60° | −13 |
| −1 | −π4 | −45° | −14 |
| −1√3 | −π6 | −30° | −16 |
| 0 | 0 | 0° | 0 |
| 1√3 | π6 | 30° | 16 |
| 1 | π4 | 45° | 14 |
| √3 | π3 | 60° | 13 |
| +∞ | π2 | 90° | 12 |
| 0.5 | 0.46365 | 26.565° | 0.14758 |
| 2 | 1.10715 | 63.435° | 0.35242 |
| 5 | 1.37340 | 78.690° | 0.43710 |
| 10 | 1.47113 | 84.289° | 0.46828 |
| 100 | 1.56080 | 89.427° | 0.49682 |
| 0.1 | 0.09967 | 5.711° | 0.03172 |