Skip to content
CalculatorZilo Logo
  • Home
  • CalculatorsExpand
    • Browse all calculators
    • Education
    • Real Estate
    • Chemistry
  • Finance
  • Math
  • Health & Fitness
  • Science
  • About
  • Contact
CalculatorZilo Logo
Home / Algebra Calculators / Inverse Tan Calculator
Algebra Calculators

Inverse Tan Calculator

Published onOctober 2, 2025 Updated onOctober 22, 2026 3:05 pm

Enter a tangent value and this inverse tan calculator returns the angle in degrees and radians, with step-by-step working, the exact pi form, the degrees-minutes-seconds breakdown, and the sine and cosine of the angle. Four modes cover the ways inverse tan actually comes up: a plain tangent value, opposite over adjacent for right triangles and slopes, a reverse mode that computes tan of an angle so you can check your answer both ways, and atan2(y, x) for quadrant-aware angles from vector components.

Inverse Tan Calculator
arctan(x), slope angles, reverse tan and atan2(y, x), in degrees and radians

arctan(x) result

Angle in degrees
Angle in radians
Exact pi form
Degrees, minutes, seconds
sin(angle)
cos(angle)

Quick Answer

arctan(1) = 0.78539816 radians, which is 45 degrees exactly: pi/4 in exact form, 45 deg 0′ 0.00″ in DMS, with sin and cos both 0.707107. The calculator is pre-filled with that example, so press Calculate to see the full panel, then switch tabs for a slope angle from rise over run, a reverse tan check, or a quadrant-aware atan2 angle such as atan2(-1, -1) = -135 degrees in Quadrant III.

Key takeaways

  • arctan answers one question: which angle, between -90 and 90 degrees, has this tangent?
  • Opposite / Adjacent mode divides rise by run first, so a 3 over 4 slope gives arctan(0.75) = 36.86989765 degrees.
  • Only atan2 sees quadrants: the ratios 1/1 and -1/-1 share arctan 45 degrees, but atan2 separates them by 180 degrees.
  • The panel always shows degrees, radians, pi form, DMS, sin and cos together, so no second conversion tool is needed.
On this page
  • Quick Answer
  • How to use the inverse tan calculator, mode by mode
  • The math: what arctan really means
  • Worked examples, verified against the tool
  • Common arctan values worth memorizing
  • arctan or atan2: choosing the right one
  • What other inverse tan calculators miss
  • Limitations and quirks, stated plainly
  • Frequently asked questions
  • Add This Calculator to Your Website
  • References

How to use the inverse tan calculator, mode by mode

Pick the tab that matches the form your problem arrives in, enter the values, and press Calculate. Results stay hidden until you calculate, and switching tabs hides the previous result so a stale answer never sits next to new inputs.

Tangent value mode

Type any real number: positive, negative, decimal or zero. Choose whether the large main result displays in radians or degrees. The unit choice changes only that headline figure; the panel below it always lists both units, the pi form, the DMS breakdown, and the sine and cosine of the angle. If you are working through the rest of a triangle, the cosine calculator covers the adjacent-over-hypotenuse side of the same angle.

Opposite / Adjacent mode

Enter the two side lengths and the tool divides opposite by adjacent, then applies arctan. This is the fastest route from a slope to its angle: a ramp, a roof pitch, a road grade. Rise 3 over run 4 gives the worked example below. The adjacent side cannot be zero, because a vertical slope has no finite ratio; the tool reports “undefined” with an explanation instead of a made-up angle. For the gradient itself rather than its angle, an average slope calculator works in rise-over-run terms over a whole route.

Reverse: tan(angle) mode

Enter an angle and its unit, and the tool computes tan of that angle, then shows a check line: arctan of the answer, back in degrees. Run an arctan result through this mode and you should land where you started, which catches degree/radian mix-ups before they reach your homework or drawing.

atan2(y, x) mode

Enter the vertical and horizontal components of a point or vector. The tool returns the angle in degrees, from -180 to 180, names the quadrant (or the axis, when x is 0), and shows the radian value in the steps. Use this mode for bearings, rotations, and any coordinate work where direction, not just steepness, matters.

The math: what arctan really means

Arctan is the inverse of tangent on a restricted branch: if theta = arctan(x), then tan(theta) = x, with theta kept inside the principal range -90 to 90 degrees (-pi/2 to pi/2 radians), endpoints excluded. The NIST Digital Library of Mathematical Functions, in its inverse trigonometric functions chapter, defines the principal values the same way, and the calculator follows that definition through JavaScript’s Math.atan, converting with degrees = radians x 180/pi.

1. Ratio
Start from a tangent value, or divide opposite by adjacent to get one.
→
2. arctan
theta = arctan(x), computed in radians, always inside -pi/2 to pi/2.
→
3. Convert
Multiply by 180/pi for degrees; read the pi form and DMS from the same angle.
→
4. Check
sin and cos of the result sit in the panel; tan of the angle returns your x.

Three properties do most of the practical work. Arctan is an odd function, so arctan(-x) = -arctan(x): flip the sign of the input and the answer flips with it. Round trips are exact, so tan(arctan(x)) = x for every real x. And for positive x, arctan(x) + arctan(1/x) = pi/2, which is why arctan(0.75) and arctan(1.333…) sum to 90 degrees: they are the two acute angles of the same right triangle. The companion inverses follow the same pattern on their own branches: this site’s inverse sine calculator and inverse cosine calculator handle the ratios built from the hypotenuse.

Worked examples, verified against the tool

Every figure in this section was produced by running the calculator’s own code, not copied from a table. Enter the same inputs and you will get the same eight-decimal output.

Example 1: arctan(1), the pre-filled run

Step 1: x = 1. Step 2: theta = arctan(1) = 0.78539816 radians. Step 3: 0.78539816 x 180/pi = 45.00000000 degrees. The pi form is pi/4, the DMS readout is 45 deg 0′ 0.00″, and sin and cos both print 0.707107. Equal opposite and adjacent sides, a 45-45-90 triangle, is exactly the geometry behind this answer.

Example 2: a ramp angle from rise and run

A ramp rises 3 m over a horizontal run of 4 m. In Opposite / Adjacent mode the tool divides 3 / 4 = 0.75, then computes arctan(0.75) = 36.86989765 degrees (0.64350111 radians, DMS 36 deg 52′ 11.63″). The panel’s sin 0.600000 and cos 0.800000 are the giveaway that this is the 3-4-5 triangle in disguise: 3/5 and 4/5.

Example 3: atan2(-1, -1), where plain arctan is not enough

The ratio -1 / -1 is 1, so plain arctan reports 45 degrees, pointing up and to the right. The point (-1, -1) actually sits down and to the left. atan2 mode returns -135.00000000 degrees (-2.35619449 radians, exact form -3pi/4) and labels it Quadrant III. That 180 degree difference is the entire reason atan2 exists.

Common arctan values worth memorizing

These seven reference points let you sanity-check any arctan result at a glance. If your input sits between two rows, your answer must sit between their angles; if it does not, a unit or sign error has crept in.

Tangent (x)arctan(x) in degreesarctan(x) in radiansExact form
-√3 ≈ -1.73205081-60°-1.04719755-pi/3
-1-45°-0.78539816-pi/4
-1/√3 ≈ -0.57735027-30°-0.52359878-pi/6
00°00
1/√3 ≈ 0.5773502730°0.52359878pi/6
145°0.78539816pi/4
√3 ≈ 1.7320508160°1.04719755pi/3

One typing caution: the table’s angles are exact for the exact values. If you type the truncated decimal 1.73205081 instead of the full √3, the tool honestly reports 60.00000003 degrees, because that is the arctan of the number you actually entered. Type more digits (1.7320508075688772) when the last decimals matter.

arctan or atan2: choosing the right one

Use arctan when you already hold a single ratio and only need its angle: a tangent value, a slope, a grade. Its -90 to 90 degree range is a feature there, because a slope angle steeper than 90 degrees is not a slope any more. Use atan2 when you hold the two components separately and direction matters: vectors, bearings, rotations, screen coordinates, robotics. Programmers meet the same split in code, where, as the MDN documentation for Math.atan2 puts it, the two-argument form returns the angle of the point (x, y) from the positive x-axis, quadrant included.

Spreadsheet users get both as well: =ATAN(value) returns radians, =DEGREES(ATAN(value)) returns degrees, and =ATAN2 takes its arguments in the spreadsheet order (x first, then y), the reverse of the mathematical atan2(y, x) order used here and in most programming languages. Swapping them is a classic silent error; the quadrant label in this tool’s steps makes the swap visible.

What other inverse tan calculators miss

Most rival tools take one value and print one angle in one unit. After checking the top-ranking pages for this keyword, here is what they leave out, and what this page combines:

  • Four modes, not one. The strongest rival we found pairs plain arctan with an atan2 mode, and one adds a graph. None of the top results combines value, opposite/adjacent, reverse tan checking, and atan2 with a quadrant readout on a single page.
  • Worked answers that expose bad rival examples. One widely ranked rival states arctan results to only six decimals and gives no steps at all; another restricts its opposite/adjacent discussion to positive lengths without saying what a negative ratio does. Here, negative inputs are accepted, explained, and shown: -3 over 4 returns -36.86989765 degrees.
  • The full panel. Degrees, radians, exact pi form, DMS, and sin/cos of the angle arrive together. Rivals typically stop at degrees plus radians, so the pi form students must quote, and the DMS surveyors use, need a second tool.
  • Honest edges instead of giant numbers. A zero adjacent side and a 90 degree reverse input both print “undefined” with the reason. Several rival tools print numbers like 16331239353195370 for tan(90 degrees) because their code never checks the cosine.
  • Steps you can copy. Every mode prints its arithmetic line by line, including the ratio division in slope mode and the quadrant line in atan2 mode.

Limitations and quirks, stated plainly

The tool returns the principal value only: arctan(1) is always 45 degrees, never 225 degrees, even though tan(225 degrees) also equals 1. For full-circle answers, add or subtract multiples of 180 degrees yourself, or use atan2 mode with the actual components. The result can approach but never equal 90 or -90 degrees, since that would need an infinite tangent.

Slope mode is ratio-only. A negative adjacent side flips the sign of the ratio exactly as a negative opposite side does (3 over -4 and -3 over 4 both return -36.86989765 degrees); it does not place the angle in another quadrant. If the direction of the vector matters, that is atan2’s job, and the atan2 quadrant label has one rough edge of its own: a point on the negative x-axis, such as (x, y) = (-3, 0), is labelled “Quadrant II” because the code groups y = 0 with the upper half-plane, even though the point sits on the axis itself at 180 degrees.

Two display quirks are preserved from the original tool and worth knowing. At x = 0 the exact pi form prints as “0pi” rather than “0”. And the DMS readout rounds seconds to two decimals without carrying a 60.00 into the minutes: 89.999999 degrees displays as 89 deg 59′ 60.00″. The angle and the other readouts are unaffected; only the seconds field shows the uncarried rounding. In reverse mode, the undefined test is |cos(angle)| below 0.0000000001, so 89.9999999999 degrees reports “undefined” while 89.999999 degrees returns the genuine, enormous tan value 57295779.81445014.

Frequently asked questions

No. The superscript -1 marks the inverse function, not a reciprocal: inverse tan returns the angle whose tangent is x. The reciprocal 1/tan(x) is a different function, the cotangent. So the inverse tan of 1 is 45 degrees, while 1/tan(1 degree) is about 57.29.

No. The range of arctan is the open interval from -90 to 90 degrees. As x grows, arctan(x) approaches 90 degrees as a horizontal asymptote but never reaches it, because reaching it would require the tangent to be infinite. The same holds for -90 degrees on the negative side: enter 1000000 and the tool returns 89.99994270 degrees, close but not equal.

Because arctan is an odd function: a negative ratio always produces a negative angle between -90 and 0 degrees, so arctan(-1) = -45 degrees. If your application needs a bearing from 0 to 360 degrees, add 360 degrees to the result, turning -45 degrees into 315 degrees.

arctan(x) takes one ratio and returns an angle between -90 and 90 degrees. atan2(y, x) takes the two components separately and returns the full angle between -180 and 180 degrees, correctly identifying the quadrant. Use atan2 for vectors, bearings and rotations; use arctan when you already have a single tangent ratio, such as a slope.

Divide the grade percent by 100 to get the rise-over-run ratio, then take arctan of that ratio, or enter the rise and run directly in Opposite / Adjacent mode. A 7 percent grade is a ratio of 0.07, and arctan(0.07) = 4.00417294 degrees, much shallower than the 7 degrees many people guess.

Use =ATAN(value), which returns radians. For degrees, wrap it: =DEGREES(ATAN(value)). Both programs also offer ATAN2 for the quadrant-aware version, but note the spreadsheet argument order is ATAN2(x, y), the reverse of the mathematical atan2(y, x) order this calculator uses.

The tool only prints a fraction when the angle is a simple multiple of pi with denominator 1, 2, 3, 4, 6 or 12, matched to within a billionth. Other angles, such as arctan(0.75), are not simple pi fractions, so it prints the pi multiple to four decimals instead: 0.2048pi. That is the honest answer; a forced fraction would be wrong.

It is a display quirk preserved from the original tool: the seconds are rounded to two decimals without carrying a 60.00 up into the minutes, so 89.999999 degrees displays as 89 deg 59′ 60.00″. Read it as 90 degrees minus a hair. The degree and radian readouts are computed independently and are not affected.

The tool sets the main result to “undefined” and explains why in the steps box: with an adjacent side of 0, opposite / adjacent cannot be computed, and the slope is vertical, its angle approaching 90 degrees without a finite ratio ever producing it. Enter any non-zero run, however small, and you get a real angle back.

Add This Calculator to Your Website

Embed this calculator on your own site with the code below. Pick a size to preview it live, then copy the code.

Powered by Calculator Zilo

References

  1. National Institute of Standards and Technology. Digital Library of Mathematical Functions, Section 4.23: Inverse Trigonometric Functions. Accessed October 22, 2026.
  2. MDN Web Docs (Mozilla). Math.atan(): the single-argument arctangent in radians. Accessed October 22, 2026.
  3. MDN Web Docs (Mozilla). Math.atan2(): the quadrant-aware two-argument arctangent. Accessed October 22, 2026.
  4. MDN Web Docs (Mozilla). Math.tan(): the tangent function arctan inverts. Accessed October 22, 2026.
  5. Weisstein, Eric W. Inverse Tangent, from MathWorld: A Wolfram Resource. Accessed October 22, 2026.

Related calculators

Algebra CalculatorsMissing Variable Calculator: Solve Any Formula FastPick a formula, tell the tool which value you are missing, and enter the values you know.Algebra CalculatorsZero CalculatorThis Zero Calculator finds the zeros of a polynomial: the values of x that make the equation equal to zero, also called roots or x-intercepts.Algebra CalculatorsGraph Inequalities CalculatorGraphing an inequality means turning a statement such as y > x into a picture: a boundary line on a coordinate plane with every point that satisfies the inequality shaded on one side.Algebra CalculatorsRadical CalculatorA radical like √72 or ∛250 is exact but hard to read, while its decimal (8.485 or 6.300) is readable but rounded.Algebra Calculators Indicated Variable Calculator An indicated variable is the letter an equation is solved for: in 2x + 5 = 15, x is indicated, and the answer is 5.Algebra CalculatorsThree Step Linear Equations CalculatorA three-step linear equation is a single equation with one variable, like 2(x + 3) = 18, that takes three moves to crack: clear the parentheses, move the numbers, then divide.

We use cookies to analyze traffic. You can accept or decline cookies below. Learn more

calculatorzilo

CalculatorZilo

Free calculators for everyday life. No signup, no cost, just answers.

Categories

Finance Math Health & Fitness Education Science Real Estate Chemistry Browse all calculators

Popular tools

Mortgage Payment Calculator BMI Walking Calculator Salary Per Minute Calculator Percentage Off Calculator

Company

About Us Contact Us Privacy Policy Terms and Conditions
Disclaimer Cookie Policy DMCA Policy Affiliate Disclosure FAQ Accessibility Statement

© 2026 CalculatorZilo • Free calculators for everyone

  • Home
  • Calculators
    • Browse all calculators
    • Education
    • Real Estate
    • Chemistry
  • Finance
  • Math
  • Health & Fitness
  • Science
  • About
  • Contact
Search