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.
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.
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.
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/π.
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.
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.
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.
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.
Last updated:
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.
The tangent function approaches infinity as the angle nears 90°, so its inverse asymptotically approaches 90° but never equals it for any finite input.
Yes. Unlike arcsin and arccos, arctan accepts any real number. Its output is always between −90° and 90° (exclusive).
If atan2 returns a negative angle, add 360° to get the positive equivalent. This calculator shows both representations.
Mathematically undefined, but most programming languages return 0 for atan2(0, 0) by convention.
If a slope is given as rise/run = m, the angle of inclination is arctan(m). For example, a 1:1 slope is arctan(1) = 45°.