Arctangent Calculator
Calculate the inverse tangent (arctan) of any value in degrees or radians, with the principal value
What Is Arctangent?
Arctangent (also written as tan⁻¹ or atan) is the inverse of the tangent function. While tangent takes an angle and returns a ratio, arctangent takes a ratio and returns the angle. If tan(45) = 1, then arctan(1) = 45 degrees. Unlike arcsine and arccosine, arctangent accepts any real number as input (since tangent can produce any value). The output falls between -90 and 90 degrees (-pi/2 to pi/2 radians). Enter any value in the calculator above for instant results in both degrees and radians.
Common Arctangent Values
arctan(0) = 0 degrees. arctan(0.5774) = 30 degrees. arctan(1) = 45 degrees. arctan(1.7321) = 60 degrees. arctan(infinity) = 90 degrees (approaches but never reaches). arctan(-1) = -45 degrees. arctan(-1.7321) = -60 degrees. As the input grows larger, the output approaches 90 degrees asymptotically. As the input grows more negative, it approaches -90 degrees. This bounded output range makes arctangent useful in signal processing and machine learning for squashing unbounded values into a fixed range.
Arctangent and Slope
Since tangent equals slope, arctangent converts a slope back to an angle. A road with a 6% grade has a slope of 0.06, and arctan(0.06) = 3.43 degrees. A roof with a 4/12 pitch (rises 4 inches per 12 inches of run) has a slope of 0.333, and arctan(0.333) = 18.43 degrees. A wheelchair ramp with ADA-compliant 1:12 slope has arctan(1/12) = 4.76 degrees. Builders, architects, and civil engineers use arctangent constantly to convert between slope ratios (rise/run) and angles, which serve different purposes in construction specifications and building codes.
Atan2: The Two-Argument Arctangent
The standard arctan function cannot distinguish between opposite quadrants because tan(angle) and tan(angle + 180) have the same value. The atan2(y, x) function takes both coordinates and returns the correct angle in all four quadrants, from -180 to 180 degrees. atan2(1, 1) = 45 degrees (first quadrant). atan2(1, -1) = 135 degrees (second quadrant). atan2(-1, -1) = -135 degrees (third quadrant). atan2(-1, 1) = -45 degrees (fourth quadrant). Programming languages, game engines, and GPS navigation systems all use atan2 instead of arctan when computing angles from coordinates.
Arctangent in Navigation and Mapping
Computing the bearing (direction) between two GPS coordinates uses arctangent. Given the difference in latitude and longitude between two points, atan2(delta_longitude, delta_latitude) gives the bearing from north. A GPS device or mapping application calls this function every time it displays a direction arrow or calculates a heading. Marine navigation, aviation, and hiking GPS units all depend on arctangent-based bearing calculations to convert coordinate differences into compass directions that users can follow.
Arctangent in Electronics and Signal Processing
Phase angle calculations in AC circuits use arctangent. The phase angle between voltage and current equals arctan(reactance / resistance). In signal processing, demodulating a frequency-modulated (FM) signal requires computing the arctangent of the ratio of in-phase and quadrature components. The arctangent function also appears in PID controller tuning, antenna beam steering, and filter design. Digital signal processors have dedicated hardware for fast arctangent computation because it is called so frequently in real-time signal processing applications.
Arctangent as an Activation Function
In machine learning and neural networks, arctangent serves as a smooth activation function that maps any real number to the range (-pi/2, pi/2) or, when scaled, to (-1, 1). Like the sigmoid function, it squashes extreme values while maintaining sensitivity near zero. The arctangent activation is less commonly used than ReLU or sigmoid in modern deep learning, but it appears in specific architectures and analog neural network implementations. Its smooth, bounded, odd-symmetric shape (arctan(-x) = -arctan(x)) makes it mathematically convenient for theoretical analysis of neural network properties and convergence behavior.
Arctangent and Pi
The arctangent function provides one of the most elegant formulas for computing pi. The Leibniz formula states: pi/4 = 1 - 1/3 + 1/5 - 1/7 + 1/9 - ... = arctan(1). While this series converges too slowly for practical computation, Machin's formula (pi/4 = 4 arctan(1/5) - arctan(1/239)) converges much faster and was used to compute pi to hundreds of digits by hand in the 18th century. Modern record-breaking pi calculations still use arctangent-based formulas with cleverly chosen arguments that accelerate convergence. The connection between arctangent and pi reflects the deep relationship between trigonometry and the geometry of circles.
Arctangent for Angle Measurement
In surveying and construction, arctangent converts measured rise and run values directly into angles. A surveyor measuring a hillside rise of 15 meters over a horizontal distance of 80 meters calculates the slope angle as arctan(15/80) = 10.62 degrees. A carpenter cutting a rafter for a 6/12 pitch roof calculates the cut angle as arctan(6/12) = 26.57 degrees. These calculations are performed dozens of times on every construction site and in every land survey.
Frequently asked questions
What is arctan(1)?
What is the range of arctangent?
What is the difference between arctan and atan2?
How do I convert slope to angle?
Can arctan accept any number?
Where is arctangent used?
Rate This Calculator
Your feedback helps us improve our tools