Inverse Tangent Calculator
The inverse tangent, arctan or tan⁻¹, gives the angle whose tangent is x. In a 3-4-5 triangle the angle across from the 3 is tan⁻¹(3/4) ≈ 36.87° (see it drawn), and tan⁻¹(1) = 45°.
Find the angle from its tangent
Type the tangent value x. The angle θ = arctan(x) updates as you type.
Decimals, fractions and roots work: 0.75, 3/4, √3, 1/√3, sqrt(3)/3. Type inf for ∞, or 12% for a grade.
The two legs of a right triangle, next to and across from the angle. Any unit, as long as both match.
y comes first, as in atan2(y, x). The angle is measured from the positive x-axis, so it knows the quadrant.
Check your input
On the unit circle
On the arctan curve
How to Use This Calculator
-
Pick what you know
A tangent value, two sides of a right triangle, or a point for atan2.
-
Type the numbers
Roots and fractions work: √3, 1/√3, 3/4. Type inf for infinity or 12% for a grade.
-
Read the angle
You get degrees and radians (exact for special angles), every solution, and the angle drawn.
What is the inverse tangent?
The tangent of an angle in a right triangle is the opposite side divided by the adjacent side. The inverse tangent runs the other way: give it that ratio and it returns the angle. Since tan 45° = 1, arctan(1) = 45°. The three names arctan, tan⁻¹ and atan all mean the same function.
The −1 in tan⁻¹ means "inverse function", not "1 divided by". One over the tangent is a different function, the cotangent, so check which of the two a problem asks for.
The arctan formula
To find an angle in a right triangle, divide the side across from it by the side next to it (not the hypotenuse), then take the inverse tangent. For a ramp that rises 3 m over 4 m of ground, 3 ÷ 4 = 0.75 and tan⁻¹(0.75) ≈ 36.87°. In radians that is about 0.6435. Many calculators and every spreadsheet answer in radians first, so multiply by 180 and divide by π to get degrees.
Surveyors and maps often split the decimal part into minutes and seconds. 36.8699° is 36 degrees, then 0.8699 × 60 = 52.19 minutes, then 0.19 × 60 ≈ 11.6 seconds: 36° 52′ 12″. The calculator shows this form under every answer.
Arctan table of values
Exact angles come only from a short list of values: 0, ±(2 − √3), ±1/√3, ±1, ±√3 and ±(2 + √3), plus the limit at infinity. They come from the 30-60-90 and 45-45-90 triangles (and 15° and 75° from halving them). Every other value gives a decimal, shown here to two places. Each value opens in the calculator.
| x | arctan x (degrees) | Radians |
|---|---|---|
| −√3 | −60° | −π/3 |
| −1 | −45° | −π/4 |
| −1/√3 (≈ −0.5774) | −30° | −π/6 |
| 0 | 0° | 0 |
| 2 − √3 (≈ 0.2679) | 15° | π/12 |
| 1/2 | ≈ 26.57° | ≈ 0.4636 |
| 1/√3 (≈ 0.5774) | 30° | π/6 |
| 3/4 | ≈ 36.87° | ≈ 0.6435 |
| 1 | 45° | π/4 |
| √3 (≈ 1.7321) | 60° | π/3 |
| 2 | ≈ 63.43° | ≈ 1.1071 |
| 2 + √3 (≈ 3.7321) | 75° | 5π/12 |
| 10 | ≈ 84.29° | ≈ 1.4711 |
| ∞ (the limit) | 90° | π/2 |
Two patterns help you remember them. arctan(−x) = −arctan(x), so a negative value just flips the sign of the angle. And for any positive x, arctan(x) + arctan(1/x) = 90°: arctan(2) ≈ 63.43° and arctan(1/2) ≈ 26.57° add up to 90°, because they are the two acute angles of the same right triangle.
The arctan graph, domain and range
The domain of arctan is every real number: any ratio of two sides is allowed, however large. The range is −90° to 90° with both ends left out, or −π/2 to π/2 in radians. The curve passes through the origin, climbs fastest there, and then flattens toward two horizontal asymptotes. arctan(10) is already about 84.29°, and arctan(1,000) is about 89.94°.
That is why arctan of infinity is written as a limit, 90°, and not as a value. The tangent itself has no value at 90°: the opposite side would have to be infinitely long next to a zero-length adjacent side.
Solving tan θ = x: all the solutions
arctan gives one angle, but tangent repeats every 180°, so tan θ = x has one solution in every half turn. Write them as θ = arctan(x) + 180°·k, where k is any whole number (in radians, + πk). Between 0° and 360° there are always exactly two.
For tan θ = −1, arctan gives −45°. Adding 180° gives 135°, and adding 360° gives 315°. So the answers from 0° to 360° are 135° and 315°: one in the second quadrant and one in the fourth, the two quadrants where tangent is negative.
atan2 and quadrants
To find the direction of a point (x, y), the first idea is arctan(y ÷ x). It works for points on the right of the y-axis, but not on the left. The points (1, 1) and (−1, −1) have the same ratio, 1, so arctan gives 45° for both, even though (−1, −1) points the opposite way. Dividing throws away the signs.
atan2(y, x) keeps them. It takes the two coordinates separately and answers from −180° to 180°, in the correct quadrant. By hand, the rule is: if x > 0, use arctan(y/x); if x < 0, add 180° when y ≥ 0 or subtract 180° when y < 0; if x = 0, the angle is 90° or −90°. For (−3, 4), arctan(4/−3) ≈ −53.13°, and adding 180° gives about 126.87°.
The argument order differs. Excel and Google Sheets write ATAN2 with x first, while Python, JavaScript, C and most other programming languages write atan2 with y first. All of them answer in radians, hence the DEGREES and math.degrees wrappers.
Slope and grade to degrees
A slope is rise over run, which is exactly a tangent. A grade in percent is that ratio times 100. So the angle of a slope is tan⁻¹(rise ÷ run), or tan⁻¹(grade ÷ 100). A 100% grade is 45°, not 90°: it rises as much as it runs.
Angles are rounded to two places. The 8.33% row is a 1 in 12 slope, the steepest running slope the US ADA Standards allow for a wheelchair ramp, about 4.76°. Type a grade with its % sign in the calculator and it is read as rise over run.
Frequently Asked Questions
What is arctan of 1?
arctan(1) = 45°, which is π/4 radians. In a right triangle with two equal legs, the opposite side divided by the adjacent side is 1, and both acute angles are 45°.
What is arctan of infinity?
arctan(∞) = 90°, or π/2 radians, as a limit. The tangent grows without bound as the angle approaches 90°, so arctan x gets closer and closer to 90° as x grows but never reaches it. In the same way, arctan(−∞) = −90°.
Is tan⁻¹ the same as 1/tan?
No. tan⁻¹(x) is the inverse function: the angle whose tangent is x. 1/tan(x) is the reciprocal, which is the cotangent, cot(x). For example, tan⁻¹(1) = 45°, but 1/tan(1°) is about 57.29.
What is the range of arctan?
The range of arctan is −90° < θ < 90°, or −π/2 < θ < π/2 in radians. Its domain is every real number. The ends are left out because tan 90° and tan(−90°) have no value.
How do you find the inverse tangent on a calculator?
Press SHIFT or 2nd, then the tan key, to get tan⁻¹, then type the value and press equals. Check the mode first: DEG gives degrees, RAD gives radians. On a phone calculator, turn it sideways to see the tan⁻¹ key.
What is the difference between arctan and atan2?
arctan takes one number, the ratio y/x, and answers between −90° and 90°. atan2 takes y and x separately, so it knows the signs and answers between −180° and 180°, in the right quadrant. For the point (−1, −1), arctan(1) gives 45°, while atan2(−1, −1) gives the correct −135°.
How do I convert a slope to degrees?
Take the inverse tangent of rise ÷ run. A 10% grade rises 10 for every 100 across, so the angle is tan⁻¹(0.1) ≈ 5.71°. A roof with a 6 in 12 pitch is tan⁻¹(0.5) ≈ 26.57°.