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

Arc Tan Calculator

Enter a value โ€” get the angle in both degrees and radians.

From x
From sides
From x,y (atan2)

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 โ€” side lengths of a right triangle relative to ฮธ
  • 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). For a positive angle measured counterclockwise, use atan2 or add 180ยฐ/360ยฐ as appropriate.

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) loses the sign information and collapses quadrants II and IV onto I and III.

What if the adjacent side is zero? The ratio is undefined and the angle is exactly 90ยฐ. The "From sides" mode will flag this; switch to atan2 mode and enter x = 0 with your y value.

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 formula