Geometry & Trigonometry Trigonometric Functions & Angle Measure Principal-value conventions of ISO 80000-2

Inverse Trig Functions Calculator (arcsin, arccos, arctan)

Give this calculator a ratio and it gives you back the angle. Choose arcsin, arccos, arctan, arccsc, arcsec or arccot, type the value of the ratio, and read the principal angle in degrees or radians together with every angle in one full revolution that produces the same ratio. Inverse trigonometric functions are what you reach for whenever you know two sides of a right triangle and want the angle between them — a roof pitch from rise and run, a bearing from northings and eastings, a phase from a voltage ratio. Because sine, cosine and tangent each repeat forever, the inverse must pick one answer from infinitely many, and the range it picks from is shown alongside every result.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Inverse functionPick the function that matches the ratio you have: opposite over hypotenuse is sine, adjacent over hypotenuse is cosine, opposite over adjacent is tangent.arcsin (sin⁻¹)
Ratio value xThe numeric value of the trigonometric ratio; arcsin and arccos need it between −1 and 1, arccsc and arcsec need a magnitude of at least 1.0.5
Report the angle inChoose degrees for surveying, construction and classroom work; radians for calculus and code.Degrees

It returns

  • Principal angle — The single angle the inverse function returns, inside its principal range.
  • Principal angle in degrees
  • Principal angle in radians
  • All solutions in one revolution — Every angle from 0 up to 360° that gives the same ratio for the function you chose.
  • Principal range of this function

The formula

θ=arcsinx,π2θπ2
arccotx=π2arctanx
θ=180°arcsinx+360°n

In plain text: θ = arcsin x means sin θ = x with −90° ≤ θ ≤ 90°

  • θThe angle the inverse function returns (° or rad)
  • xThe value of the trigonometric ratio you already know (dimensionless)

Each inverse function is defined by restricting its parent function to an interval on which that parent is strictly monotonic, so the inverse exists and is single-valued.

Updated Category Trigonometric Functions & Angle Measure Verified against published test cases Reading time 10 min

What an inverse trigonometric function does

An inverse trigonometric function runs the trigonometry backwards: you hand it a ratio of sides and it hands you the angle that produces that ratio. If you measure a ramp that rises 1 metre over a 12-metre run, the tangent of its inclination is 1/12 = 0.08333, and arctan(0.08333) = 4.7636° tells you the angle. Sine, cosine and tangent turn angles into ratios; arcsin, arccos and arctan turn ratios back into angles.

The complication is that no trigonometric function is one-to-one. Sine takes the value 0.5 at 30°, at 150°, at 390°, at −210°, and at infinitely many other angles spaced 360° apart. A function cannot return infinitely many answers, so mathematicians restrict the domain of the forward function to a stretch on which it climbs or falls without repeating, and define the inverse only on that stretch. The single answer that comes back is called the principal value.

Those restricted stretches are not arbitrary. For sine the choice is −90° to 90°, the interval containing zero on which sine rises steadily from −1 to 1. For cosine, zero is a maximum rather than a crossing, so the interval that works is 0° to 180°, on which cosine falls steadily from 1 to −1. For tangent it is −90° to 90° with the endpoints excluded, because tangent blows up there. Those three ranges are what the principal range output reports, and they are why arccos never returns a negative angle while arcsin frequently does. They are also the ranges fixed by ISO 80000-2, the international standard for mathematical signs and symbols, which is the convention this page follows for arcsin, arccos and arctan.

Domains, ranges and the reciprocal functions

The domain of an inverse function is the set of ratios it can accept, and it is inherited from the range of the forward function. A sine or cosine is a ratio of a leg to the hypotenuse, and the hypotenuse is always the longest side, so the ratio can never exceed 1 in magnitude. That makes −1 ≤ x ≤ 1 the domain of both arcsin and arccos; ask for arcsin(1.5) and there is no real angle to return, which is exactly what the calculator reports.

Tangent is a ratio of two legs, and either can be arbitrarily larger than the other, so arctan accepts every real number. Its output is squeezed into −90° to 90° and approaches those limits asymptotically: arctan(1000) = 89.9427° and arctan(1,000,000) = 89.99994°.

The three reciprocal inverses are defined through the first three. Since csc θ = 1/sin θ, the angle whose cosecant is x is the angle whose sine is 1/x, so arccsc x = arcsin(1/x). Likewise arcsec x = arccos(1/x). Both require a ratio of magnitude at least 1, because the reciprocal of something no bigger than 1 is never smaller than 1. Arccotangent is the odd one out: this calculator uses arccot x = π/2 − arctan x, giving a continuous function with range 0° to 180°, which is the convention in most calculus textbooks and the one that makes arccot(0) = 90°. Several programming environments instead compute arctan(1/x), which returns −45° where this page returns 135°. Check which convention your tool uses before comparing answers.

Worked example: the angle of a 7:12 roof

A rafter rises 7 inches for every 12 inches of horizontal run. Find the roof's angle above horizontal, then find every angle in one revolution with the same tangent.

  1. Identify the ratio. Rise over run is the opposite leg divided by the adjacent leg, which is the tangent: tan θ = 7/12 = 0.5833333.
  2. Apply the inverse. θ = arctan(0.5833333) = 0.528074 rad.
  3. Convert to degrees. 0.528074 × 180/π = 30.2564°. A 7:12 pitch is therefore just over 30 degrees.
  4. Find the second solution. The tangent repeats every 180°, so the other angle inside one revolution is 30.2564° + 180° = 210.2564°.
  5. Check by going forward. tan(30.2564°) = 0.583333, which is the ratio you started with, and tan(210.2564°) = 0.583333 as well.

Now try a sine instead. A 4-metre ladder reaches 3.6 metres up a wall, so sin θ = 3.6/4 = 0.9. Then θ = arcsin(0.9) = 64.1581°, and the second solution inside one revolution is 180° − 64.1581° = 115.8419°. The second answer is geometrically impossible for a ladder — an obtuse angle to the ground would put the top behind the wall — which is a reminder that the mathematics returns every solution and you must discard the ones your problem forbids.

Choosing the right answer from the list

Start from the principal value, then decide whether your physical situation permits the second solution. In a right triangle, every angle other than the right angle is acute, so only a principal value between 0° and 90° can be correct and the second solution is always spurious. That is why right triangle work almost never needs the full solution set.

In an oblique triangle solved with the law of sines, the second solution is often the real one. Given two sides and a non-included angle, both an acute and an obtuse triangle can fit the data — the classic ambiguous case — and the arcsine will only ever hand you the acute answer. You have to test the obtuse candidate yourself by checking that its angles still sum to 180°. The law of sines calculator flags that case explicitly.

In periodic problems — alternating-current phase, a rotating shaft, a tide model — all solutions matter, and you usually need the general form rather than the two inside one revolution: add 360°n to each listed answer, where n is any integer. For bearings and screen coordinates, prefer a two-argument arctangent, which uses the signs of both the numerator and the denominator to place the angle in the correct quadrant instead of collapsing that information into a single ratio.

Domain, range and behaviour of the six inverse functions

Ranges are the principal-value intervals used on this page. Every entry follows from restricting the forward function to an interval on which it is strictly monotonic.
FunctionAccepts x inReturns θ inValue at x = 0Value at x = 1
arcsin x−1 to 1−90° to 90°90°
arccos x−1 to 10° to 180°90°
arctan xall real x−90° to 90° (open)45°
arccsc xmagnitude at least 1−90° to 90°, excluding 0°undefined90°
arcsec xmagnitude at least 10° to 180°, excluding 90°undefined
arccot xall real x0° to 180° (open)90°45°

arcsin x + arccos x = 90° for every x in the domain, and arctan x + arccot x = 90° for every real x on this page's arccot convention. Both identities are quick checks on any answer.

Errors that turn a correct ratio into a wrong angle

  • Reading sin⁻¹ as 1/sin. The superscript −1 on a function name means inverse, not reciprocal. sin⁻¹(0.5) = 30°, while 1/sin(0.5 rad) = 2.0858.
  • Accepting the principal value in an ambiguous-case triangle. Given two sides and a non-included angle, check whether the obtuse partner also closes the triangle before discarding it.
  • Using a one-argument arctangent for a bearing. The ratio −3/4 and the ratio 3/−4 are the same number but point in opposite directions; only a two-argument arctangent can tell them apart.
  • Mixing arccot conventions. This page returns 135° for arccot(−1); a tool defined as arctan(1/x) returns −45°. They differ by exactly 180° for every negative input.
  • Feeding a ratio outside the domain. An arcsin input above 1 usually means the opposite side and the hypotenuse were swapped, since a leg can never exceed the hypotenuse.

Key terms

Principal value
The single angle an inverse trigonometric function returns, chosen from the restricted interval on which the forward function is one-to-one.
Ambiguous case
A triangle specified by two sides and a non-included angle, where both an acute and an obtuse angle can satisfy the law of sines and both triangles may be valid.
General solution
The complete infinite family of angles sharing a given ratio, written by adding 360°n to each solution inside one revolution, or 180°n for tangent and cotangent.

Where inverse trigonometry shows up in practice

Surveying and construction use arctangent constantly, because grade, pitch and batter are all rise-over-run ratios waiting to be turned into angles. A 1:12 accessible ramp, the maximum running slope permitted by the 2010 ADA Standards for Accessible Design, is arctan(1/12) = 4.7636°. A 6:12 roof is arctan(0.5) = 26.5651°. Our slope calculator does the same conversion from two coordinates.

Machining and metrology use arcsine through the sine bar, a fixture with two rollers a known distance apart: stack gauge blocks of height h under one roller of a bar of length L and the bar tilts by arcsin(h/L). A 5-inch sine bar with a 2.5-inch stack sits at arcsin(0.5) = 30° exactly, which is why 5-inch and 10-inch bars are the standard sizes.

Navigation and graphics use the two-argument arctangent to recover a heading from displacement components, and physics uses arccosine to recover the angle between two vectors from their dot product. In each case the inverse function is the step that converts a measured ratio into a usable direction. When you need to go the other way, from a known angle to its ratios, use the sin cos tan calculator, and use the degrees to radians calculator when a library needs the angle in radians. For triangle geometry given three sides, the law of cosines calculator applies arccosine for you.

Frequently asked questions

How do I find the angle if I know the sine?

Apply the arcsine: θ = arcsin(x), which this calculator returns in degrees or radians. For sin θ = 0.5, arcsin(0.5) = 30°. Remember that the arcsine only ever gives you an angle between −90° and 90°; if your triangle could be obtuse, the other candidate is 180° minus that answer, which the all solutions field lists for you.

Why does my calculator say arcsin is an error?

Because you entered a value outside −1 to 1. The sine of a real angle is a leg divided by the hypotenuse, and the hypotenuse is always the longest side, so the ratio can never exceed 1. An out-of-range input almost always means two sides were swapped, or that a length was mistyped. Check that the number you divided by really is the hypotenuse.

Is sin⁻¹ the same as 1/sin?

No. The −1 superscript written on a function name means the inverse function, so sin⁻¹(0.5) is the angle whose sine is 0.5, namely 30°. The reciprocal 1/sin θ is the cosecant, a completely different quantity. The notation is genuinely ambiguous, which is why arcsin, arccos and arctan are the safer names and the ones used throughout this page.

What is the difference between arctan and atan2?

Arctan takes one number, the ratio y/x, and can only return an angle in the right half plane, −90° to 90°. atan2 takes y and x separately, so it can see that (−3, −4) points into the third quadrant while (3, 4) points into the first, even though both have the same ratio. Use atan2 for any bearing, heading or screen-coordinate angle.

Which range does this calculator use for arccot?

It uses 0° to 180°, computing arccot x = 90° − arctan x. That convention keeps arccot continuous everywhere and gives arccot(0) = 90°, and it is the one used in most calculus texts. Some software libraries instead evaluate arctan(1/x), whose range is −90° to 90°; the two agree for positive x and differ by exactly 180° for negative x.

How do I get all the angles with the same sine, not just one?

Take the principal value θ, then the complete family is θ + 360°n together with 180° − θ + 360°n for any integer n. Inside a single revolution that leaves two answers, which is what the all solutions output shows. For cosine the pair is θ and 360° − θ; for tangent the second solution is θ + 180°.

Can an inverse trig function return a negative angle?

Arcsin and arctan return negative angles for negative inputs, since their ranges straddle zero. Arccos and arcsec never return a negative angle: their range is 0° to 180°, so a negative input produces an obtuse angle instead. arccos(−0.5) = 120°, not −60°. Arccot on this page's convention also stays between 0° and 180°.

What angle does a 1-in-12 ramp make?

arctan(1/12) = 4.7636°, or 0.08314 radians. The 1:12 ratio is the maximum running slope allowed for a new accessible ramp under the 2010 ADA Standards for Accessible Design, which express the limit as a ratio rather than an angle precisely because a ratio is what a builder can measure directly with a level and a tape.

References