Calculate the arctangent angle from x, opposite and adjacent sides, or x and y coordinates, with results in degrees and radians for trig problems.

Find the principal arctangent of any finite real number.

Dimensionless. Negative values are allowed.


Related Calculators

Arc Tan Formula

The calculator uses one of three formulas depending on the input mode:

From x: ฮธ = arctan(x) From sides: ฮธ = arctan(opposite / adjacent) From x,y: ฮธ = atan2(y, x)
  • ฮธ โ€” the resulting angle, returned in both radians and degrees
  • x โ€” any real number (the tangent value)
  • opposite, adjacent โ€” positive side lengths of a right triangle relative to ฮธ, entered in the same unit
  • atan2(y, x) โ€” two-argument arctangent that uses the signs of x and y to place the angle in the correct quadrant

Plain arctan only returns angles in (โˆ’90ยฐ, 90ยฐ). If you need the full angle from a coordinate, use the atan2 mode. Convert between radians and degrees with ฮธยฐ = ฮธrad ร— 180/ฯ€.

Reference Tables

Common arctan values you can use to sanity check a result:

x arctan(x) in degrees arctan(x) in radians
00ยฐ0
1/โˆš3 โ‰ˆ 0.577430ยฐฯ€/6
145ยฐฯ€/4
โˆš3 โ‰ˆ 1.732160ยฐฯ€/3
10โ‰ˆ 84.29ยฐโ‰ˆ 1.4711
โ†’ โˆž90ยฐฯ€/2

For atan2, the quadrant of (x, y) determines the sign and range of the output:

Point (x, y) Quadrant atan2(y, x)
x > 0, y > 0I0ยฐ to 90ยฐ
x < 0, y > 0II90ยฐ to 180ยฐ
x < 0, y < 0IIIโˆ’180ยฐ to โˆ’90ยฐ
x > 0, y < 0IVโˆ’90ยฐ to 0ยฐ

Example

A ramp rises 3 ft over a horizontal run of 8 ft. What angle does it make with the ground?

  1. tan ฮธ = opposite / adjacent = 3 / 8 = 0.375
  2. ฮธ = arctan(0.375) โ‰ˆ 0.3587 rad
  3. ฮธ โ‰ˆ 20.56ยฐ

FAQ

Why does my calculator show a negative angle? Arctan of a negative number is negative. The function is odd: arctan(โˆ’x) = โˆ’arctan(x). The atan2 result is a signed direction from the positive x-axis. To express a negative atan2 direction in the range 0ยฐ to 360ยฐ, add 360ยฐ. Do not add 180ยฐ without knowing the quadrant.

When should I use atan2 instead of arctan? Whenever you have both an x and a y component (vectors, slopes between two points, navigation bearings). Plain arctan(y/x) cannot distinguish opposite directions: it maps quadrant II to quadrant IV, and quadrant III to quadrant I.

What if the adjacent side is zero? A right triangle requires both side lengths to be positive. For a vertical direction, choose Coordinates (atan2) and enter x = 0: positive y gives 90ยฐ, negative y gives โˆ’90ยฐ, and (0, 0) has no direction.

Radians or degrees? Degrees are standard for geometry and construction. Radians are required for calculus and most programming languages. The result panel shows both.

Arctan Calculator screenshot

.

arctan formula