Free to Use

Arctangent Calculator

Calculate inverse tangent (arctan) values in degrees, radians, and gradians. Find the angle θ from any tangent ratio with step-by-step results.

/

Real-World Arctangent Examples

🏔️ Finding the Angle of a Ramp

A wheelchair ramp rises 1 meter over a horizontal distance of 12 meters.

Formula: θ = arctan(opposite / adjacent) = arctan(1/12)

arctan(0.0833) ≈ 4.76°

This meets the ADA recommendation of a 1:12 slope ratio for wheelchair ramps.

📐 Calculating the Angle of a Roof Pitch

A roof has a rise of 4 meters over a run of 6 meters.

Formula: θ = arctan(rise / run) = arctan(4/6)

arctan(0.6667) ≈ 33.69°

Roof pitch is commonly expressed as rise over run, and arctangent converts this ratio to the roof angle.

🗺️ Navigation & Bearing Calculation

A ship travels 20 km east and 15 km north. What is the bearing from its starting point?

Formula: θ = arctan(north / east) = arctan(15/20)

arctan(0.75) ≈ 36.87° (bearing 036.9°)

Arctangent is essential in navigation to convert displacement ratios into directional bearings.

📡 Line of Sight & Parallax

An astronomer observes a star at a parallax angle. The star's distance from Earth is 100 AU with a baseline of 1 AU.

Formula: θ = arctan(baseline / distance) = arctan(1/100)

arctan(0.01) ≈ 0.573° (34.4 arcminutes)

Arctangent is key in astronomy for calculating angular measurements from distance and baseline ratios.

Understanding the Arctangent Function

The arctangent function (arctan or tan⁻¹) is the inverse of the tangent function. For a given value x, arctan(x) returns the angle θ whose tangent is x. In a right triangle, this is the angle whose opposite/adjacent ratio equals the input value.

Arctangent Definition

arctan(x) = θ where tan(θ) = x
Arctangent returns the angle whose tangent value equals x.
arctan(opposite / adjacent) = θ
In a right triangle, arctangent gives the angle from the side ratio.

Key Arctangent Values

arctan(0) = 0°  |  arctan(1) = 45° = π/4  |  arctan(√3) = 60° = π/3
These key values are the foundation of inverse trigonometry.
arctan(∞) → 90°  |  arctan(-∞) → -90°
As the input approaches infinity, the arctangent approaches the asymptote at ±90°.

Related Functions

cot(θ) = 1 / tan(θ)  |  arctan(1/x) = π/2 - arctan(x)
Cotangent is the reciprocal of tangent. The arctangent satisfies this complementary identity.
arctan(x) + arctan(y) = arctan((x + y) / (1 - xy))
The arctangent addition formula, useful when |xy| < 1.

How to Calculate Arctangent Step by Step

1
Identify the ratio: Determine the x value (tangent ratio) or the opposite/adjacent sides
2
Understand the range: arctan(x) returns values in (-π/2, π/2) for the principal value
3
Apply the arctan function: Use the inverse tangent to find the angle θ = arctan(x)
4
Convert to desired units: Convert radians to degrees (× 180/π) or gradians (× 200/π)
5
Calculate cot(θ): Find the reciprocal of the tangent: cot(θ) = 1/x

Arctangent Range & Behavior

📐 Range: (-90°, 90°)

arctan(x) always returns an angle between -90° and 90° (exclusive). For x > 0, the angle is in Quadrant I. For x < 0, it is in Quadrant IV.

🔄 Odd Function

arctan(-x) = -arctan(x). The arctangent is an odd function, symmetric about the origin.

⬆️ Asymptotic Behavior

As x → ∞, arctan(x) → 90° (π/2). As x → -∞, arctan(x) → -90° (-π/2). The function approaches but never reaches these limits.

📊 Gradians vs Degrees

90° = 100 gradians. arctan(1) = 45° = 50 gon. arctan(∞) → 90° = 100 gon. Use gradians for metric-based surveying.

📐
Three Angle Units
View arctan results in degrees, radians, and gradians simultaneously. Understand angles in the unit system best for your work.
🔄
Ratio or Direct Input
Enter a tangent value directly as x, or input the opposite/adjacent sides as a ratio for greater flexibility.
🎯
Step-by-Step Solutions
See the complete calculation broken down step by step, from input to angle conversion to cotangent.
🧮
Related Functions
Along with the angle, get the cotangent value (cot θ) and understand the relationship between tangent and its reciprocal.

What is the Arctangent Function?

The arctangent function (abbreviated arctan, tan⁻¹, or atan) is the inverse of the tangent function. While the tangent function takes an angle and returns a ratio, the arctangent function takes a ratio and returns the corresponding angle. It answers the question: "What angle θ has a tangent equal to x?"

In a right triangle, the tangent of an angle θ is the ratio of the opposite side to the adjacent side: tan(θ) = opposite/adjacent. Therefore, arctan(opposite/adjacent) = θ. This makes arctangent essential for determining angles when you know the side lengths of a triangle.

The arctangent function has a range of (-π/2, π/2) radians (or -90° to 90°), meaning it always returns a principal value within this interval. This is the range where the tangent function is one-to-one and thus invertible. Arctangent is an odd function, satisfying arctan(-x) = -arctan(x).

Where Arctangent Appears in the Real World

How to Calculate Arctangent Values

Calculating arctangent values can be done in several ways. The most direct method is using the inverse trigonometric functions available on scientific calculators or in programming languages (atan, Math.atan, or arctan). For common values, the arctangent can be derived from known tangent ratios.

Method 1 — Direct Calculation: Enter the tangent value x into a calculator and press the tan⁻¹ or arctan function. For example, arctan(1) = 45° because tan(45°) = 1.

Method 2 — Ratio Method: If you know the opposite and adjacent sides of a right triangle, divide the opposite by the adjacent to get x, then apply the arctan function. For example, a ramp that rises 2 meters over 5 meters has an angle of arctan(2/5) = arctan(0.4) ≈ 21.8°.

Method 3 — Special Values: For the common angles (0°, 30°, 45°, 60°), the tangent values are exact: tan(0°) = 0, tan(30°) = 1/√3 ≈ 0.5774, tan(45°) = 1, tan(60°) = √3 ≈ 1.732. The arctangent of these values gives the corresponding angle.

Common Arctangent Values

These exact values are the building blocks of inverse trigonometry:

Applications of Arctangent in Daily Life

The arctangent function may seem like a purely mathematical concept, but it has numerous practical applications that affect our everyday lives. Understanding arctangent helps in fields ranging from construction to robotics, from navigation to game development.

🏗️ Ramp & Stair Design

Building codes specify maximum slope ratios for ramps (1:12) and stairs (1:2). Arctangent converts these ratios to angles, helping architects and builders ensure compliance.

🗺️ GPS & Mapping

When you get turn-by-turn directions, arctangent (as atan2) calculates the bearing angle between your current position and the next waypoint, converting latitude/longitude differences into compass directions.

🎮 Video Games

In game development, arctan2 is used to rotate a character or object to face the mouse cursor or another game object. It's also used for aiming mechanics and camera controls.

🤖 Robotics

Robotic arms use inverse kinematics, heavily relying on arctangent to calculate joint angles required to reach a specific (x, y) position in space.

Frequently Asked Questions

What is the difference between arctan and tan?
Tangent (tan) takes an angle as input and returns a ratio (opposite/adjacent). Arctangent (arctan or tan⁻¹) does the inverse: it takes a ratio as input and returns the corresponding angle. For example, tan(45°) = 1, and arctan(1) = 45°. They are inverse functions: arctan(tan(θ)) = θ (within the principal range) and tan(arctan(x)) = x.
What is the range of the arctangent function?
The arctangent function has a range of (-π/2, π/2) in radians, or (-90°, 90°) in degrees. This is the principal value range, meaning the result is always an angle between -90° and 90° (exclusive). The range is open because tan(θ) approaches ±∞ as θ approaches ±90°, so arctan(±∞) approaches but never reaches ±90°.
How do I convert arctan radians to degrees?
To convert radians to degrees, multiply the radian value by 180/π. For example, arctan(1) = π/4 ≈ 0.7854 radians. To convert: 0.7854 × 180/π = 45°. To convert degrees to radians, multiply by π/180. Most scientific calculators have a mode switch to return results in either degrees or radians.
What is the atan2 function?
atan2(y, x) is a two-argument variant of arctangent that returns the angle whose tangent is y/x, but crucially it uses the signs of both x and y to determine the correct quadrant of the result. Unlike arctan(y/x) which always returns a value in (-π/2, π/2), atan2 returns a value in (-π, π] (full circle: -180° to 180°). This makes atan2 essential in programming, navigation, and computer graphics for converting 2D Cartesian coordinates to polar angles.
What is the cotangent function and how is it related?
The cotangent function (cot) is the reciprocal of the tangent function: cot(θ) = 1 / tan(θ) = adjacent/opposite. Since tan(θ) = x, we have cot(θ) = 1/x. Cotangent is defined for all angles where tan(θ) ≠ 0 (i.e., θ ≠ 0°, 180°, etc.). It is useful in calculus and certain trigonometric identities.
What are gradians and why would I use them?
Gradians (also called gons or grads) are a unit of angle measurement where a full circle is divided into 400 gradians. So 90° = 100 gon, and arctan(1) = 45° = 50 gon. Gradians were introduced as part of the metric system and are still used in some fields like surveying and civil engineering in parts of Europe, where decimal subdivisions of right angles make calculations cleaner.

⚠️ Important Note: This Arctangent Calculator is for educational and informational purposes only. While every effort has been made to ensure accuracy, results should be verified independently for critical applications such as engineering, construction, navigation, or medical devices. Always consult a qualified professional for decisions involving trigonometric calculations in high-stakes contexts.