Advertisement

Arctan calculator (inverse tangent)

Convert a slope or tangent ratio to an angle, reverse that angle on its principal branch, and see the second solution one half-turn away.

Calculator

Principal inverse angle
45
Function ratio
1.00000000
Principal branch
(-90°, 90°)
Distinct equation solutions in [0°, 360°)
SolutionAngle (degrees)
Principal angle, reduced to one turn45.00000000
Other solution in one turn225.00000000
Reference inverse values
Input ratioPrincipal angle (degrees)
-1.73205081-60.00000000
-1.00000000-45.00000000
0.000000000.00000000
1.0000000045.00000000
1.7320508160.00000000

Advertisement

How this calculator works

Tangent is one-to-one between its asymptotes at -90° and 90°. Arctangent uses this interval and accepts any finite real ratio. Larger positive ratios give steeper positive angles, approaching 90° without reaching it. Negative ratios produce negative principal angles. Adding 180° preserves tangent, giving the second solution in a full turn. For a coordinate pair with a negative horizontal component, use atan2 rather than arctan(y/x) to retain the quadrant.

Formula

y=arctan x means tan y=x with -π/2<y<π/2. tan θ=x has θ=y+kπ. The endpoints ±π/2 are limits, not finite-input outputs.

Worked example

arctan(1)=45° and arctan(-1)=-45°. A rise/run ratio of 0 gives 0°. A ratio of √3 gives 60° and has another tangent-equation solution at 240°.

Advertisement

Frequently asked questions

Can the input exceed one?

Yes. Unlike sine and cosine, tangent is unbounded. For example arctan(√3)=60°.

Does arctan infinity equal 90° here?

Infinity is not a finite input. The limit approaches 90°, but the principal branch excludes that endpoint.

Is arctan(y/x) enough to find a direction?

It loses the signs of x and y separately. Use an atan2-based direction calculation when the quadrant matters.

Sources

Advertisement