COC

Tan⁻¹ (Arctangent) Calculator — Inverse Tangent, Right Triangle & Coordinate Angle Tool

Tan⁻¹ (Arctangent) Calculator

Find an angle from a tangent value, solve a right triangle from two sides, get the angle of any coordinate point, convert between degrees and radians, or verify a tangent calculation — all instantly, with step-by-step results and interactive diagrams.

✓ Five calculators in one   ✓ Degrees & radians   ✓ Works on mobile

If you have ever typed "tan inverse calculator," "arctangent calculator," "atan calculator," or "how to find an angle from a tangent value" into a search bar, this page is built to answer all of those questions at once — with a live tool, not just a definition.

Tan⁻¹ Calculator

Enter any real number
Enter a positive number
Enter a positive number
Enter any real number (not both 0)
Enter any real number (not both 0)
Enter any real number
Enter any real number

The Complete Guide to the Arctangent Function

Everything students, engineers, surveyors, and programmers ask about tan⁻¹, atan, and atan2 — in one place.

What is arctangent (tan⁻¹)?

Arctangent — written as tan⁻¹(x), arctan(x), or atan(x) depending on the textbook, calculator, or programming language you're using — is the inverse of the tangent function. Where tangent takes an angle and returns a ratio, arctangent takes a ratio and returns an angle. This single distinction is the source of most of the confusion people search for when they type "what is tan inverse" or "arctan meaning": tan⁻¹ does not mean "1 divided by tan," even though the superscript looks exactly like a reciprocal. It means "the angle whose tangent is this number." If tan(45°) = 1, then tan⁻¹(1) = 45°. The calculator on this page performs exactly that operation, along with four related calculations — right triangle solving, coordinate angle detection, unit conversion, and tangent verification — because in practice almost nobody needs "just" an arctangent value in isolation; they need it as part of a larger geometry, engineering, or coding problem.

Difference between tan(x) and tan⁻¹(x)

It helps to think of tangent and arctangent as a pair of doors that swing in opposite directions. Tangent's job is: give me an angle, and I'll tell you the ratio of the opposite side to the adjacent side in a right triangle (or, on the unit circle, the ratio of sine to cosine). Arctangent's job is the reverse: give me that ratio, and I'll tell you the angle that produced it. People searching "difference between tan and tan inverse" are usually trying to figure out which direction they need for their specific problem — if you already know an angle and want a ratio, you need tan(); if you know a ratio (or two side lengths, or a rise and run, or a slope) and want the angle, you need tan⁻¹(), atan(), or arctan(). This calculator's "Tan⁻¹ Value" mode handles the second case directly, while its "Tangent Verification" mode lets you go both directions and see how they relate.

Domain and range of the inverse tangent function

Because tangent is periodic and repeats every 180°, it is not a one-to-one function across all real numbers, so a true inverse can only be defined over a restricted slice of it — this restricted version is called the principal branch. For arctangent, the domain (valid inputs) is every real number from negative infinity to positive infinity, and the range (possible outputs) is restricted to angles strictly between −90° and 90° (or −π/2 and π/2 radians). This is one of the most searched clarifications about the function: "why does tan inverse only give answers between -90 and 90," or "range of arctan calculator." The answer is that any tangent value corresponds to infinitely many angles 180° apart, so the principal value convention picks the one in that half-open interval and calls it "the" answer, even though 45°, 225°, −135°, and so on all share the same tangent.

Degree output vs radian output

Depending on the field, an angle answer is expected in degrees (common in surveying, navigation, and everyday geometry) or radians (the default in most programming languages and in calculus). This calculator always shows both, because the most common single frustration people report with "atan calculator" tools online is getting an answer in the wrong unit for their use case. The conversion is simple once you have one of the two: degrees = radians × (180 ÷ π), and radians = degrees × (π ÷ 180). The Degree ↔ Radian Converter mode above performs this conversion directly and also shows the tangent of that angle so you can sanity-check the result.

Arctangent and right triangles

The most classic use of arctangent is solving for a missing angle in a right triangle when you know the two legs (the sides that are not the hypotenuse). If you know the length of the side opposite an angle and the length of the side adjacent to it, that angle equals tan⁻¹(opposite ÷ adjacent). This comes up constantly in real problems phrased as "how do I find an angle if I know two sides," "right triangle angle calculator," or "how to calculate angle from height and distance." The Right Triangle mode above takes exactly those two inputs and returns the angle, the tangent ratio, the complementary angle (90° minus the angle), and a scaled diagram of the triangle so you can visually confirm which side is which.

Coordinate geometry and the angle of a point

A second enormous use case is finding the angle of a line from the origin to a point (x, y) — the kind of question people ask as "how to find the angle of a coordinate," "angle between point and x-axis calculator," or "polar angle calculator." Here the ratio is y ÷ x, and the angle is tan⁻¹(y ÷ x) — but with an important caveat covered in the next section, because a plain arctangent calculation cannot tell the difference between a point in the upper-right of the plane and one in the lower-left, since both can produce the identical ratio. The Coordinate Angle mode above solves this properly using quadrant-aware logic (the atan2 approach described below), not naive division.

atan() vs atan2() — why the difference matters

This is one of the most common points of confusion for programmers, engineers, and students moving from pure math into applied fields like robotics or graphics: "what is the difference between atan and atan2," "why does atan2 take two arguments." A plain atan(y/x) only ever returns a value between −90° and 90°, so it cannot distinguish quadrants — atan(1/1) and atan(−1/−1) both equal 45°, even though the two points sit on opposite sides of the origin. atan2(y, x) fixes this by accepting the y and x values separately (not already divided) and using their individual signs to return the correct angle across the full 360° range, from −180° to 180°. This is exactly why the Coordinate Angle mode of this calculator uses atan2-style logic internally rather than a simple division, so a point in the second, third, or fourth quadrant returns the true angle rather than an angle that's off by 180°.

Quadrants and reference angles

A reference angle is the acute angle (always between 0° and 90°) formed between a line and the nearest x-axis, regardless of which quadrant the line falls in. It's a frequent search because trigonometry courses lean on it heavily: "how to find reference angle," "reference angle calculator," "what quadrant is this angle in." Quadrant I runs from 0° to 90°, Quadrant II from 90° to 180°, Quadrant III from 180° to 270°, and Quadrant IV from 270° to 360° (or equivalently −90° to 0°). The Coordinate Angle mode above reports both the quadrant and the reference angle automatically, so you don't need to work them out by hand every time you plot a point.

Where arctangent shows up in the real world

Beyond the classroom, arctangent is one of the most quietly essential functions in applied science and engineering. Civil engineers and architects use it to calculate roof pitch, ramp incline, and structural slope from a rise and a run. Surveyors use it to convert measured horizontal and vertical distances into bearing angles. Physicists use it to resolve force or velocity vectors into a direction, and to compute the angle of a resultant vector from its components. Robotics and computer-vision engineers use atan2 constantly to compute heading, steering angle, and joint rotation from coordinate data. Game and graphics programmers use it to point a sprite, camera, or projectile toward a target. Pilots, ship navigators, and GPS software use it to compute bearing between two coordinates. Even something as ordinary as a phone's tilt sensor or a robot vacuum's obstacle-avoidance logic leans on an arctangent calculation behind the scenes.

Arctangent in programming languages

Nearly every programming language ships both functions: a plain atan(x) that mirrors the calculator function described above, and an atan2(y, x) that solves the quadrant problem described earlier. Common searches here include "atan2 python," "Math.atan2 javascript," "atan formula excel," and "how to calculate arctan in a spreadsheet." The underlying math is identical across languages — only the syntax changes — which is why understanding the concept on this page transfers directly, whether you're writing Python, JavaScript, C++, or a spreadsheet formula.

How the Tan⁻¹ Calculator Works

Four simple steps take you from raw numbers to a verified angle.

1

Enter Your Values

Type in a tangent value, two triangle sides, an (x, y) coordinate, or an angle to convert — whichever matches what you're trying to solve.

2

Choose a Calculation Mode

Switch between Tan⁻¹ Value, Right Triangle, Coordinate Angle, Degree ↔ Radian, or Tangent Verification using the tabs above the form.

3

Automatic Trigonometric Calculation

The calculator runs the correct formula — arctangent, atan2, or standard tangent — and instantly converts between degrees and radians.

4

Review & Verify Results

See the angle, its reference angle, its quadrant (where relevant), and a tangent-verification check confirming the answer is internally consistent.

Arctangent & Related Formulas

The five equations behind every calculation mode on this page.

θ = tan⁻¹(x)

Inverse Tangent. Given a ratio x, this returns the angle θ (between −90° and 90°) whose tangent equals x. Example: tan⁻¹(1) = 45°.

tan(θ) = Opposite ÷ Adjacent

Tangent Ratio. In a right triangle, the tangent of an angle equals the opposite leg divided by the adjacent leg — rearranged, θ = tan⁻¹(Opposite ÷ Adjacent).

Degrees = Radians × (180 ÷ π)

Radian → Degree Conversion. Multiply a radian measure by 180 divided by pi to convert it into degrees.

Radians = Degrees × (π ÷ 180)

Degree → Radian Conversion. Multiply a degree measure by pi divided by 180 to convert it into radians.

θ = atan2(y, x)

Coordinate / Polar Angle. Returns the true angle of a point (x, y) from the origin across the full 360°, correctly handling every quadrant.

Step-by-Step Worked Examples

Eight real calculations, shown with every step.

Example 1 — tan⁻¹(1)

θ = tan⁻¹(1) θ = 45° (or π/4 radians) Check: tan(45°) = 1 ✓

This is the most common reference value in trigonometry: a tangent of exactly 1 corresponds to a 45° angle, since the opposite and adjacent sides are equal.

Example 2 — tan⁻¹(0.577)

θ = tan⁻¹(0.577) θ ≈ 30° (or π/6 radians) Check: tan(30°) ≈ 0.577 ✓

0.577 is an approximation of 1/√3, the exact tangent of 30° — a value that shows up constantly in 30-60-90 triangle problems.

Example 3 — tan⁻¹(1.732)

θ = tan⁻¹(1.732) θ ≈ 60° (or π/3 radians) Check: tan(60°) ≈ 1.732 ✓

1.732 approximates √3, the tangent of 60°, and pairs naturally with the previous example since 30° and 60° are complementary angles.

Example 4 — Right Triangle Calculation

A ramp rises 3 metres (opposite) over a horizontal run of 8 metres (adjacent).

θ = tan⁻¹(3 ÷ 8) θ = tan⁻¹(0.375) θ ≈ 20.56°

The ramp's incline is approximately 20.56° — a figure a contractor could compare directly against an accessibility code's maximum allowed slope.

Example 5 — Coordinate Angle Calculation

A point sits at (x = −4, y = 3), in the second quadrant.

Naive: tan⁻¹(3 ÷ -4) = tan⁻¹(-0.75) ≈ -36.87° (wrong quadrant) Correct: atan2(3, -4) ≈ 143.13° Reference angle ≈ 36.87°, Quadrant II

This example shows exactly why atan2 matters: a plain arctangent gives an angle in the wrong quadrant, while atan2 correctly places it at 143.13°.

Example 6 — Degree to Radian Conversion

Convert 45° to radians.

Radians = 45 × (π ÷ 180) Radians ≈ 0.7854 (π/4) tan(45°) = 1, so tan⁻¹(1) = 45° ✓

The round trip confirms the conversion: converting 45° to radians and back through tangent and arctangent returns the original angle.

Example 7 — Engineering Application (Roof Pitch)

A roof rises 6 feet over a horizontal span of 12 feet.

θ = tan⁻¹(6 ÷ 12) θ = tan⁻¹(0.5) θ ≈ 26.57°

A pitch angle of roughly 26.57° corresponds to a common "6-in-12" roof slope used in residential construction.

Example 8 — Navigation Bearing Example

A ship travels 5 nautical miles east and 5 nautical miles north of its start point.

Bearing = atan2(5 east, 5 north) measured from north θ = tan⁻¹(5 ÷ 5) = tan⁻¹(1) = 45° Bearing ≈ 045° (northeast)

A 1:1 ratio of eastward to northward travel gives a bearing of exactly 45°, or due northeast — the same core calculation used in dead-reckoning navigation.

Quick Reference Tables

Common tangent values, degree/radian pairs, and quadrant ranges at a glance.

Common Tangent Values

Tangent ValueAngle
0
0.57730°
145°
1.73260°
Very Large≈ 90°

Degrees & Radians

DegreesRadians
30°π/6
45°π/4
60°π/3
90°π/2
180°π

Quadrants

QuadrantAngle Range
I0°–90°
II90°–180°
III180°–270°
IV270°–360°

Why Use This Tan⁻¹ Calculator

Built for anyone who needs an accurate angle fast — not just a single number.

Five Tools in One

Inverse tangent, right triangle solving, coordinate angle, unit conversion, and tangent verification — no need to hunt for five separate calculators.

Instant Results

Every mode recalculates live, with no page reloads and no manual formula entry.

🎯

Quadrant-Aware

The coordinate angle mode uses atan2-style logic, so results are correct in all four quadrants, not just the first.

📐

Visual Diagrams

Interactive triangle, unit-circle, and coordinate-plane illustrations update automatically with your numbers.

🔁

Degrees & Radians

Every angle result is shown in both units automatically, with no separate converter needed.

📱

Works Everywhere

A fully responsive layout means the same accurate tool works on desktop, tablet, and mobile.

Practical Applications of Arctangent

Real fields where this exact calculation is used every day.

Engineering & Architecture

Calculating roof pitch, ramp incline, structural slope, and load angles from rise-over-run measurements.

Surveying

Converting horizontal and vertical distance measurements into bearing and elevation angles between two points.

Physics

Resolving force and velocity vectors into direction angles from their horizontal and vertical components.

Robotics & Computer Graphics

Computing heading, steering angle, and joint rotation from coordinate and sensor data using atan2.

N

Navigation & GPS

Calculating bearing and heading between two coordinates for ships, aircraft, and GPS routing software.

</>

Programming

Using atan() and atan2() functions in Python, JavaScript, C++, and spreadsheets to compute angles from data.

Common Arctangent Mistakes

Avoid these classic errors when working with tan⁻¹, atan, and atan2.

Confusing tan⁻¹ with 1/tan

tan⁻¹(x) means "the angle whose tangent is x," not "1 divided by tan(x)." The two are completely different operations.

Using the wrong angle unit

Mixing degrees and radians is the single most common source of wrong answers — always confirm which unit your calculator or function expects.

Ignoring quadrants

A plain arctangent calculation only returns angles between −90° and 90°, so it can silently place a point in the wrong quadrant.

Using atan instead of atan2

When working with real (x, y) coordinates, atan2(y, x) should be used instead of atan(y/x) to get a quadrant-correct result.

Reversing the coordinate order

atan2 takes y before x — atan2(y, x), not atan2(x, y). Swapping the order produces a completely different, incorrect angle.

Forgetting reference angles

Reference angles are always acute (0°–90°); forgetting to adjust for the quadrant leads to sign and direction errors.

Rounding too early

Rounding an intermediate ratio before taking the arctangent can shift the final angle by a noticeable amount — round only the final answer.

Mislabeling triangle sides

Opposite and adjacent are relative to the angle you're solving for — swapping them inverts the result to its complementary angle instead.

Frequently Asked Questions

Straight answers to the most common questions about tan⁻¹ and arctangent.

What is Tan⁻¹?

Tan⁻¹, also written arctan or atan, is the inverse of the tangent function. Given a ratio, it returns the angle (between −90° and 90°) whose tangent equals that ratio.

What is arctangent?

Arctangent is another name for the same function as tan⁻¹ — it takes a numeric ratio and returns an angle, in degrees or radians.

What is the difference between tan and tan⁻¹?

Tangent converts an angle into a ratio; tan⁻¹ converts a ratio back into an angle. They perform opposite operations.

How do I calculate inverse tangent?

Enter your ratio, side lengths, or coordinates into the calculator above, choose the matching mode, and the angle is calculated instantly in both degrees and radians.

What is atan()?

atan() is the standard function name for arctangent in most programming languages and calculators, returning a value between −90° and 90°.

What is atan2()?

atan2(y, x) is a two-argument version of arctangent that uses the sign of both y and x to return the correct angle across the full 360° range, avoiding quadrant errors.

Can I convert between degrees and radians?

Yes — use the Degree ↔ Radian Converter mode above, or apply the formulas Degrees = Radians × (180 ÷ π) and Radians = Degrees × (π ÷ 180) directly.

Can this calculator solve right triangles?

Yes. The Right Triangle mode calculates the angle, tangent ratio, and complementary angle from the lengths of the opposite and adjacent sides.

Why are quadrants important?

A plain arctangent calculation cannot tell which quadrant a coordinate is in, since opposite ratios can produce the same result. Quadrant-aware logic (atan2) is needed for a fully correct angle.

What is a reference angle?

A reference angle is the acute angle, always between 0° and 90°, formed between a line and the nearest x-axis — used to relate any angle back to a first-quadrant value.

Is this calculator accurate?

Yes. It uses standard double-precision trigonometric functions and includes a built-in tangent-verification check on every result.

Is it free?

Yes, the calculator and every calculation mode on this page are completely free to use, with no signup required.

Does it work on mobile?

Yes, the entire page — including the calculator, diagrams, and tables — is fully responsive and works on phones and tablets.

Who should use it?

Students, teachers, engineers, architects, surveyors, physicists, programmers, and anyone else who needs to convert a ratio, triangle, or coordinate into an angle.

Where is arctangent used?

In right-triangle geometry, coordinate and polar geometry, engineering and architecture, surveying, physics, robotics, computer graphics, navigation, and virtually every programming language via atan() and atan2().

Solve Inverse Tangent Problems Instantly

Calculate inverse tangent values, solve right triangles, determine coordinate angles, convert between degrees and radians, and verify tangent calculations — all with one professional, free tool.