Arctan Calculator (Inverse Tangent)

Calculate the inverse tangent (arctan) of any value. Supports both atan(x) and atan2(y,x) modes for full 360° angle resolution. Returns degrees, radians, quadrant, and related trig values.

Any real number
Angle (degrees)
45.000000°
Principal value (−90° to 90°)
Angle (radians)
0.785398
Principal value (−π/2 to π/2)
Angle (0–360°)
45.000000°
Positive equivalent for navigation/compass bearings
Fraction of π
0.250000π
Angle as a multiple of π
Quadrant
I
Which quadrant the angle falls in
Reference Angle
45.000000°
Acute angle to the nearest axis
sin(θ)
0.707107
Sine of the resulting angle
cos(θ)
0.707107
Cosine of the resulting angle

Angle Position

Angle
45.0°
sin θ
0.7071
cos θ
0.7071

Common Arctan Values

x (input)DegreesRadians
00
1/√3 ≈ 0.577430°π/6
145°π/4
√3 ≈ 1.732160°π/3
→ ∞90°π/2
−1/√3 ≈ −0.5774−30°−π/6
−1−45°−π/4
−√3 ≈ −1.7321−60°−π/3
→ −∞−90°−π/2
atan2 Quadrant Reference
QuadrantSign of xSign of yatan2 Range
I++0° to 90°
II+90° to 180°
III−180° to −90°
IV+−90° to 0°
Planning notes, formulas, and examples

About the Arctan Calculator (Inverse Tangent)

The **Arctan Calculator** computes the inverse tangent (tan⁻¹) of any real number, returning the angle whose tangent equals your input. Unlike arcsin and arccos, arctangent accepts all real numbers — its output smoothly sweeps from −90° to 90°. Switch to atan2(y, x) mode to resolve the full 360° angle using the signs of both components, which is essential for navigation, robotics, and game development.

Arctangent is arguably the most commonly used inverse trig function in applied fields. Programmers use it to calculate the angle of a 2D vector (via atan2). Engineers use it to find phase angles in AC circuit analysis. Surveyors use it to convert rise-over-run into slope angles. Physicists apply it in optics, orbital mechanics, and electromagnetic field calculations.

The single-argument form, atan(x), returns the principal value in (−90°, 90°) and cannot distinguish between opposite quadrants — for example, atan(1) = 45° whether the point is (1, 1) or (−1, −1). The two-argument form, atan2(y, x), solves this by considering the signs of both components, giving a unique angle in (−180°, 180°] that covers all four quadrants. This calculator supports both modes and shows the 0–360° positive equivalent for compass-style applications.

Eight presets cover standard values and both modes, visual bars track angle and trig coordinates, and reference tables list common arctan values and the atan2 quadrant convention.

When This Page Helps

Use this calculator when you need the angle from a tangent ratio or from x/y components without manually sorting out quadrants and unit conversion. It is especially useful for vector work, coordinate geometry, and coding tasks where `atan` and `atan2` behave differently.

How to Use the Inputs

  1. Enter the required inputs (Mode, tan⁻¹(x) — Input Value, y (numerator)).
  2. Complete the remaining fields such as x (denominator), Decimal Precision.
  3. Review the output cards, especially Angle (degrees), Angle (radians), Angle (0–360°), Fraction of π.
  4. Compare the result with the formula, diagram, or example values to catch sign, unit, or rounding mistakes.
Formula used
atan(x): θ = tan⁻¹(x), range (−π/2, π/2). atan2(y, x): θ = the angle from the positive x-axis to the point (x, y), range (−π, π]. Conversion: degrees = radians × 180/π.

Example Calculation

Result: 45°

Using value=1, unit=degrees, the calculator returns 45°. This example mirrors the calculator's live computation flow and is useful for checking manual steps and unit handling.

Tips & Best Practices

  • Use atan2(y, x) instead of atan(y/x) to avoid division-by-zero and quadrant ambiguity.
  • atan(x) + atan(1/x) = 90° for x > 0 (the complementary-tangent identity).
  • As x → ±∞, arctan approaches ±90° — it never actually reaches those values.
  • In programming, atan2 typically takes (y, x) — note the argument order.
  • For navigation bearings, convert atan2 output to 0–360° by adding 360° if negative.

atan vs atan2

The single-input arctangent uses only a ratio, so it cannot tell whether a point is in the first or third quadrant when the ratio is the same. The two-input form, atan2(y, x), resolves that ambiguity by using the signs of both coordinates and returning the full directional angle.

Common Use Cases

Arctan shows up whenever a slope, rise-over-run value, or vector direction must be converted into an angle. That includes triangle problems, 2D game movement, AC phase analysis, bearings, and robotics. In most programming contexts, atan2 is the safer choice because it handles zero denominators and quadrants correctly.

Interpreting the Output

When you use the degree output for bearings or headings, negative angles are often converted into the 0–360° range. When you use the radian output for math or code, keep the principal-value range in mind and check that the returned angle matches the quadrant implied by your inputs.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • atan(x) takes a single ratio and returns an angle in (−90°, 90°). atan2(y, x) takes two separate values and returns the full-circle angle in (−180°, 180°], correctly handling all four quadrants.