Mathematics calculator

Tangent Calculator

Calculate tangent for an angle in degrees and inspect its sine-over-cosine relationship.

Calculator inputs

Enter your values

Trigonometry

Reduce large rotations and check exact undefined angles. The current numerical zero check can miss a zero denominator after many full turns.

°
Calculated output

Result summary

Your result will appear here

Complete the required fields and select the calculate button.

What Is Tangent in Trigonometry?

Tangent is the ratio sin(θ)/cos(θ). For an acute angle in a right triangle, it is the opposite side divided by the adjacent side. The tangent calculator evaluates that ratio from an angle entered in degrees.

Enter a known angle to see its tangent, sine, cosine, normalized angle and radian equivalent. Tangent describes a ratio or a slope, so its value has no angle unit. Finding an angle from a tangent value requires inverse tangent, which is a different operation.

How to Calculate Tangent in Degrees

  1. Enter a signed number in Angle in degrees, within −1,000,000,000 to 1,000,000,000 degrees. For π/4 radians, convert first and enter 45.
  2. Select Calculate. The tool converts the input to radians and divides sine by cosine.
  3. Read the featured tangent rounded to six decimals. The sine, cosine and radian reference values round to ten decimals.
  4. Check the domain before using the answer: tangent is undefined at 90° plus any integer multiple of 180°.

The denominator check rejects a cosine magnitude below 10⁻¹². This is a numerical safeguard, not exact symbolic angle recognition. Very large rotations can slip through it even at a mathematically undefined angle. Reduce large inputs modulo 180° first, and do not accept a finite result for a reduced odd multiple of 90°.

If an error follows a successful calculation, previous result cards can remain visible. They belong to the earlier input. Correct the angle or reset the form before using the cards again.

Tangent Formula and Undefined Angles

Radians r = θ × π/180

tan(θ) = sin(θ)/cos(θ), with cos(θ) ≠ 0

Right triangle: tan(θ) = opposite side / adjacent side

tan(θ + 180°) = tan(θ)

The triangle ratio compares the side across from θ with the non-hypotenuse side touching θ. Both lengths must use the same unit. For a known horizontal run, rise = run × tan(θ); this is a follow-on calculation, not a separate input mode here.

On the unit circle, tangent is y/x. When x is zero, that quotient has no finite value. At 90°, the correct result is undefined rather than zero or a particular very large number. At 0° and 180°, y is zero while x is nonzero, so tangent is zero.

See OpenStax: Tangent and Other Trigonometric Functions for the underlying mathematical definitions. Tangent as sine divided by cosine, its domain and its period. The input range, rounding and numerical domain-check limits described here come from this tool’s implementation.

Angle Input and Tangent Results

Angle in degrees θ
Original signed numeric angle. There is no input unit selector.
Tangent value
Featured ratio rounded to six decimals. It can be positive, negative or zero, or the form can report an undefined-angle error.
Normalized angle
Equivalent angle in one 0° to less than 360° rotation, rounded to ten decimals. Tangent itself repeats every 180°.
Angle in radians
Original input × π/180, rounded to ten decimals.
Sine and cosine
Numerator and denominator references, rounded to ten decimals. The calculation uses unrounded values.
Identity
sin(θ)/cos(θ), valid only when cosine is nonzero.

Tangent Worked Example

Illustrative example. Evaluate tan(135°). The reference angle is 45°, with sine √2/2 and cosine −√2/2.

Divide sin(135°) by cos(135°): (√2/2)/(−√2/2) = −1. Enter 135 in the degree field to reproduce the answer. The sine and cosine cards display 0.7071067812 and −0.7071067812.

As a separate coordinate check, the line from the origin to (−1,1) has slope 1/(−1) = −1 and points toward 135°. Moving another 180° to 315° keeps the same tangent, although the unit circle point moves to the opposite quadrant.

Calculation check. These illustrative values were checked independently against the formula and calculator response. Retain unrounded intermediate values when checking approximations.

Tangent Worked Example
QuantityValue
Angle135°
Sine√2/2 ≈ 0.7071067812
Cosine−√2/2 ≈ −0.7071067812
Tangent−1
Equivalent tangent at 315°−1
Radians3π/4 ≈ 2.3561944902

Tangent Values, Slope and Percentage Grade

Tangent expresses a ratio, while percentage grade expresses that same rise/run ratio multiplied by 100. Neither is the angle itself. The table illustrates this mathematical relationship; the form does not certify a design or a measurement.

For a general directed angle, the tangent sign follows y/x. The acute examples below use positive rise and positive horizontal run, matching the usual grade interpretation.

Tangent Values, Slope and Percentage Grade
AngleExact tangentRatio approximationPercentage grade
0°000%
30°1/√30.577350…57.7350…%
45°11100%
60°√31.732050…173.2050…%
90°UndefinedNo finite ratioNo finite grade

What Your Tangent Value Means

Tangent is positive in quadrants I and III and negative in quadrants II and IV. Its value can exceed 1 because the opposite component can be larger than the adjacent component. It has no finite maximum or minimum.

As a slope, tangent is rise/run. A value of 0.25 means a rise of 0.25 units for each horizontal unit. Multiplying the ratio by 100 gives a percentage grade of 25%; it does not mean an angle of 25°. An angle of 45° has tangent 1, corresponding to a 100% grade.

Near a vertical direction, tiny changes in angle can cause large changes in tangent. Keep unrounded values for later calculations, and distinguish a true zero from a small number rounded to zero. A rounded cosine reference of zero is not enough to reproduce the backend’s denominator check.

Common Tangent Calculation Mistakes

  • Using degrees and radians interchangeably.
  • Dividing adjacent by opposite, which gives cotangent.
  • Treating tan⁻¹ as the reciprocal of tangent rather than inverse tangent.
  • Confusing a slope ratio, percentage grade and degree angle.
  • Assigning a finite value to tan(90°) or tan(270°).
  • Copying an older result after the current calculation has reported an error.

Frequently Asked Questions

What is the tangent formula?

tan(θ) = sin(θ)/cos(θ), provided cosine is nonzero. For an acute right triangle angle, tangent is opposite side divided by adjacent side.

What is tan(135 degrees)?

tan(135°) = −1. Sine and cosine have equal magnitudes there, but their signs differ because 135° is in quadrant II.

Why is tangent undefined at 90 degrees?

Cosine is zero at 90°, so sin(θ)/cos(θ) divides by zero. No finite tangent value exists there.

Is tangent the same as slope?

For a line at angle θ from the positive horizontal direction, tangent is the signed slope rise/run when run is nonzero. A vertical line has no finite slope or tangent.

How do I convert tangent to percentage grade?

Multiply the rise/run ratio by 100. A tangent of 0.25 corresponds to 25% grade. This does not mean an angle of 25°.

Is tan⁻¹ the same as 1/tan?

Usually no. tan⁻¹ denotes inverse tangent, arctan, which returns an angle from a ratio. The reciprocal 1/tan is cotangent where both are defined.

Does tangent repeat after 180 degrees?

Yes. tan(θ + 180°) = tan(θ). Sine and cosine both change sign after a half turn, so their quotient remains the same.

Why can an undefined large angle return a number?

The implementation checks a numerically computed cosine against a small threshold. Large rotations can introduce enough error to miss an exact zero. Reduce the angle and reject odd multiples of 90° before using the result.

Sources and References