Mathematics calculator

Arctan Calculator

Convert a tangent ratio into its principal angle in radians and degrees.

Calculator inputs

Enter your values

Inverse tangent
For a slope, enter rise divided by horizontal run; enter 0.25 for a 25% grade.
Calculated output

Result summary

Your result will appear here

Complete the required fields and select the calculate button.

A right triangle showing tangent as rise divided by horizontal run and arctangent returning the angle
Arctan turns the rise-to-run ratio into the principal angle at the base of the triangle.

What Is Arctan or Inverse Tangent?

This arctan calculator turns a tangent ratio into an angle. If a ramp rises 1 metre over a horizontal distance of 4 metres, its tangent ratio is 1/4, and inverse tangent gives its inclination. The same operation appears when comparing vertical and horizontal components of a vector or solving a trigonometric equation.

The input is a number, not an angle. The page returns the principal angle in radians and degrees, rounded to four decimal places. Unlike inverse sine, inverse tangent accepts every finite real number. Its answer remains strictly between −90° and 90°, which is useful but also explains why a single ratio cannot identify every possible compass direction.

How to Find an Angle from a Tangent Ratio

  1. Identify the opposite quantity and adjacent quantity, or the vertical change and horizontal run. Express both in the same unit before dividing.
  2. Calculate their ratio and enter it in the Tangent ratio field. A rise of 25 cm across a run of 100 cm becomes 0.25. If the slope is given as 25%, divide by 100 first.
  3. Choose Calculate to see radians and degrees. Match the output unit to the formula, drawing or angle convention used in the rest of your work.
  4. Check signs and the required quadrant before applying the result. Use Reset when starting a new example so an earlier ratio is not mistaken for the current one.

Arctan Formula in Degrees and Radians

θ in radians = arctan(r)

θ in degrees = arctan(r) × 180 ÷ π

For a slope: r = rise ÷ horizontal run = percentage grade ÷ 100

The principal output range is −π/2 < θ < π/2 radians, equivalent to −90° < θ < 90°. Every finite real ratio has one angle in that interval. The calculator computes both units from the unrounded inverse tangent, then rounds each to four decimals. Very large ratios may display as 90° or −90° after rounding, even though their exact principal angles remain inside the interval.

The OpenStax inverse trigonometry chapter explains why tangent needs this restricted interval to have an inverse. Arctan is not cotangent and does not determine a vector’s full quadrant from one quotient.

Tangent Ratio and Angle Results

Tangent ratio r
Dimensionless number, such as rise divided by horizontal run. Use the same length unit before dividing.
Principal angle in degrees
Main answer in degrees, rounded to four decimals. A straight angle is 180°.
Angle in radians
Same principal angle expressed in radians, rounded independently to four decimals.
Entered tangent ratio
Reference copy of the ratio entered. A grade of 40% corresponds to ratio 0.4, not 40.

Slope to Angle Calculation Example

Illustrative example. A line rises 2 m across a horizontal run of 5 m. Its tangent ratio is 2 ÷ 5 = 0.4, or a 40% grade. Enter 0.4.

The calculator returns 21.8014° and 0.3805 radians. Both describe the same principal inclination after four-decimal rounding. Taking the tangent of the unrounded angle recovers 0.4.

Using −0.4 instead gives −21.8014° and −0.3805 radians. The sign reverses the principal inclination under the same axis convention; it does not identify a full compass bearing.

Calculation check. These illustrative values were checked independently against the formula and the calculator response. Keep intermediate precision when repeating the steps.

Slope to Angle Calculation Example
QuantityValue
Rise ÷ horizontal run0.4
Equivalent percentage grade40%
Principal angle in degrees21.8014°
Principal angle in radians0.3805 rad

Slope Percentage, Degrees and Radians

A percentage grade describes rise per horizontal run, not an angle measured on a degree scale. Convert the percentage to a decimal ratio before entering it. This table shows principal angles rounded to four decimals.

Slope Percentage, Degrees and Radians
GradeEntered ratioDegreesRadians
0%00°0
40%0.421.8014°0.3805
100%145°0.7854
−40%−0.4−21.8014°−0.3805

Principal Angles and Quadrant Limits

The sign tells you whether the principal angle lies above or below zero under your chosen convention. The magnitude describes how steep the ratio is. However, reversing both vector components leaves their quotient unchanged. A vector with components (1, 1) and another with components (−1, −1) both produce a ratio of 1, although they point in opposite directions.

When both coordinates and the full direction matter, use a two-argument atan2 function with the documented argument order. This page receives only one ratio and cannot recover the missing quadrant information. For a tangent equation, all solutions differ by integer multiples of 180°: θ = α + 180°k, where α is the principal answer. For positive right-triangle sides, the acute result usually resolves the geometry directly.

Common Inverse Tangent Mistakes

  • Divide a percentage grade by 100 before entering it. Entering 25 instead of 0.25 describes a dramatically steeper slope.
  • Use horizontal run, rather than the sloping length, in rise/run. Rise divided by sloping length belongs to sine instead.
  • Do not divide by zero to describe a vertical line. Its angle must be handled from the geometry or vector components.
  • Do not round a small rise/run ratio to zero before using arctan; that can erase a shallow but meaningful inclination.

Frequently Asked Questions

Why can I enter values outside −1 to 1?

Tangent can take any real value between its vertical asymptotes, so inverse tangent accepts any finite real ratio. The restricted −1 to 1 domain applies to real inverse sine and inverse cosine, not inverse tangent.

What is the difference between arctan and reciprocal tangent?

Arctan reverses the tangent function on its principal interval. Reciprocal tangent is cotangent, equal to 1/tan θ. The notation tan⁻¹ can mean inverse tangent in many textbooks, so read the surrounding context carefully.

How do I turn the answer back into a percentage slope?

Take the tangent of the angle using the proper degree or radian setting, then multiply the result by 100. For example, tan(45°) × 100 = 100%. A 100% grade is a 45° slope, rather than a vertical face.

Why does another program show 135°?

It may be resolving a vector in a different quadrant or giving a different branch of a tangent equation. Arctan(−1) returns −45° here; 135° has the same tangent but points in a different direction. Check the intended interval and signs.

Can arctan return exactly 90°?

For a finite real ratio, the exact principal angle stays strictly between −90° and 90°. Four-decimal display rounding can nevertheless show an endpoint for a very large ratio.

Can I type a fraction directly into the ratio field?

Enter a numeric ratio rather than text such as 2/5. Divide first and enter 0.4 for that example.

What does arctan(0) equal?

It is zero radians, or 0°, because the tangent of zero is zero.

How precise are the degree and radian results?

Each output rounds to four decimal places from the unrounded inverse tangent. Converting the rounded radian display back to degrees can give a slightly different last digit.

Sources and References