Tan Calculator - Tangent, Sine, Cosine, Unit Circle
Use this free tan calculator to find the tangent of any angle in degrees or radians, with the matching sine, cosine, unit-circle point, and quadrant.
Tan Calculator
Results
What Is a Tan Calculator?
A tan calculator is a tool that returns the tangent of any real angle in degrees or radians, together with the matching sine, cosine, unit-circle point, and the quadrant the angle lands in. Tangent is the opposite-over-adjacent ratio in a right triangle and the slope of the line from the origin to the point on the unit circle, so a single tangent value covers triangle problems, slope and angle-of-repose calculations, and graph-plotting checks.
- • Solving right-triangle problems: Read the tangent to get the opposite-over-adjacent ratio, or use the sine and cosine next to it for the other sides.
- • Working in radians with pi notation: Switch the unit toggle to radians and type pi notation such as pi/4 or 5pi/6, or a plain decimal like 0.7.
- • Checking unit-circle slope and quadrant: Use the x and y outputs to confirm the slope from the origin, and the quadrant label to see the sign of the tangent.
- • Plotting tangent graph reference values: Test the tangent for the standard reference angles (0, 30, 45, 60, 90 degrees), then check 120, 135, 150, 210, 225, 240, 300, 315 degrees to follow the curve and asymptotes.
Tangent pairs with sine and cosine, and the tool shows all three so you can read the unit-circle slope y/x in one line. That makes it easy to spot when tangent is undefined, which happens whenever the cosine is zero. The unit toggle is the most common source of confusion: tan(45 deg) and tan(pi/4) both return 1 because pi/4 radians is the same angle as 45 deg.
When the angle you have is in radians but the problem expects degrees, Radians to Degrees Calculator converts the input both ways without changing the underlying tangent value.
How the Tan Calculator Works
The tool reads the angle and the unit toggle, normalizes the input (converting degrees to radians, or expanding pi notation such as pi/4 into a numeric radian value), applies Math.sin and Math.cos to the same radian value, and divides the sine by the cosine to return the tangent. The result is re-expressed as a multiple of pi and the angle is reduced to the 0-360 deg (or 0-2pi rad) range. When |cos(theta)| is within 1e-12, the tangent field shows 'undefined'.
- angle: In degrees mode it must be a plain number; in radians mode it can be a decimal or pi notation such as pi/4, 5pi/6, or 2pi.
- angleUnit: 'degrees' expects a plain number; 'radians' expects a decimal or a pi multiple.
- tanValue: The tangent, returned as a real number. At 90 deg and 270 deg (and every odd multiple of pi/2) the cosine is zero, and the tool returns 'undefined'.
- quadrant: Label I, II, III, or IV indicating which quadrant the angle lands in, or 'axis' for a reference angle.
Every other output (sine, cosine, unit-circle point, pi multiple, reduced angle) is read from the same radian value, so the results stay internally consistent. Reducing the angle to the 0-360 deg (or 0-2pi rad) range before computing makes the result easy to read for very large or negative inputs like 12345 deg or -750 deg.
Worked example: tan(pi/4 radians)
angle = pi/4, angleUnit = radians
pi/4 is parsed as 0.7853981633974483 radians. sin(pi/4) = sqrt(2)/2 = 0.7071068. cos(pi/4) = sqrt(2)/2 = 0.7071068. tan(pi/4) = 0.7071068 / 0.7071068 = 1. The unit-circle point is (0.7071068, 0.7071068) in quadrant I.
tan = 1, sin = cos = 0.7071068, unit-circle (0.7071068, 0.7071068), quadrant I
Pi/4 radians is the 45-45-90 reference value; the tangent at 45 deg is exactly 1 because the opposite and adjacent sides are equal.
According to Wikipedia: Trigonometric functions, tangent is tan(theta) = sin(theta) / cos(theta), with tan(0) = 0, tan(pi/4) = 1, tan(pi/3) = sqrt(3), and tangent undefined at odd multiples of pi/2.
Because the tangent tool returns a real number for most angles, Arctan Calculator is the natural next step when the problem hands you a tangent and asks for the original angle.
Key Concepts Explained
These four concepts come up every time you work with tangent, and they are the building blocks for understanding what the tool shows you.
Slope definition on the unit circle
On the unit circle, every angle corresponds to a point (cos, sin). Tangent equals the y-coordinate divided by the x-coordinate, the slope of the line from the origin to that point.
Degree-to-radian conversion
A full turn is 360 deg or 2 pi radians, so converting degrees to radians uses the factor pi / 180. Pi notation in radians mode is just shorthand for the same math.
Quadrant sign of tangent
Tangent is positive in quadrants I and III (0-90 deg and 180-270 deg) and negative in quadrants II and IV (90-180 deg and 270-360 deg). The sign matches the sign of the ratio y/x at the unit-circle point.
Periodicity and asymptotes of tangent
Tangent repeats every pi radians (180 deg). Vertical asymptotes fall on every odd multiple of pi/2 (90 deg, 270 deg, 450 deg), which is where cos(theta) crosses zero.
Reference values are the easiest way to read the result: tan(0 deg) = 0, tan(30 deg) = 1/sqrt(3) (about 0.5774), tan(45 deg) = 1, tan(60 deg) = sqrt(3) (about 1.7321), and tan(90 deg) is undefined. The identity sin^2 + cos^2 = 1 is a built-in cross-check: square the displayed sin and cos and they should sum to 1. If they do not, the input was probably in the wrong unit.
If you find yourself switching between degrees, radians, and gradians while working through reference angles, Angle Converter is the fastest way to keep the units consistent across problems.
How to Use This Tan Calculator
Working with the tool only takes a few seconds. Type the angle, pick the unit, and read the tangent together with the matching sine, cosine, unit-circle point, and quadrant.
- 1 Enter the angle: Type the angle in the input box. In degrees mode use a plain number; in radians mode use a decimal or pi notation like pi/4 or 5pi/6. The value can be positive, negative, or larger than a full turn.
- 2 Pick the unit: Select 'Degrees' for problems written in 0 to 360, or 'Radians' for pi notation or decimal radians.
- 3 Read the tangent: The tangent appears in the top of the results panel as a real number rounded to 6 decimal places, with the text 'undefined' at 90 deg and 270 deg references.
- 4 Check the unit-circle point: Read the unit-circle x and y values, which match the cosine and the sine, to confirm the slope y/x.
- 5 Verify the quadrant: Use the quadrant label (I, II, III, IV, or 'axis') to confirm the sign. Tangent is positive in I and III, negative in II and IV, and exactly zero on the axis.
- 6 Read the reduced angle: The reduced angle uses deg and the range 0-360 deg in degrees mode, and rad and the range 0-2pi rad in radians mode.
Suppose a right triangle has a 45 deg angle and you need the tangent. Leave the toggle on 'Degrees' and enter 45; the tool returns tan = 1, the unit-circle point (0.7071, 0.7071), and quadrant I.
When the tangent value comes from a real right triangle, Right Triangle Calculator lets you cross-check the tangent against the other sides and the remaining angles of the same triangle.
Benefits of Using This Tan Calculator
A tangent tool that returns the full trig triple, the unit-circle point, and a quadrant label saves time on homework and code reviews.
- • Tangent, sine, and cosine in one pass: Read all three primary trig values from a single calculation.
- • Degrees and radians from one input: Switch the unit toggle without re-entering the angle when a problem moves between 45 deg and pi/4.
- • Unit-circle coordinates for slope checks: The x and y values match the cosine and sine, so the tool doubles as a quick unit-circle reference and confirms the slope y/x equals the tangent.
- • Quadrant label: The quadrant label confirms the sign of the tangent at a glance, catching the most common sign error in trig problems.
- • Reduced angle for very large inputs: Angles larger than 360 deg (or 2pi rad) or negative angles reduce to the standard range.
- • Tangent undefined handled: At 90 deg and 270 deg (pi/2 and 3pi/2 in radians) the tool returns 'undefined' instead of a misleading infinity.
The biggest practical win is keeping the trig values consistent. Reading tangent, sine, and cosine from the same angle removes the chance of mixing up radians and degrees, and the quadrant label makes sign errors easy to spot.
For problems that ask for the full trig triple on the same angle, Sin Calculator pairs naturally with this tangent tool and uses the same unit toggle and pi notation.
Factors That Affect Your Results
A handful of factors control what the tangent tool can give you. Knowing them up front prevents the most common mistakes.
Unit of the input angle
The unit toggle changes how the input is interpreted. tan(45 deg) = 1, but tan(45 radians) is a totally different value.
Angle outside the standard range
Large or negative angles reduce to 0-360 deg (or 0-2pi rad) before computing. The reduced angle is shown next to the result.
Angle on a 90 deg or 270 deg reference
Tangent is undefined at 90 deg and 270 deg (pi/2 and 3pi/2 in radians) and at every odd multiple of pi/2. The tangent field shows 'undefined' instead of a number.
Floating-point rounding near 0
At exact reference angles like 90 deg and 270 deg, the cosine is mathematically 0 but the floating-point result can show a tiny non-zero value (about 6.12e-17).
- • The tangent tool returns a real number for any real angle except the asymptotes. It does not return a complex-valued tangent.
- • Floating-point arithmetic means the displayed tangent is only equal to the true tangent to roughly 15 significant digits, especially for very large angles or angles very close to 90 deg and 270 deg.
If the tangent comes out negative, double-check the quadrant label. A negative tangent is only valid in quadrants II and IV.
According to Wolfram MathWorld: Tangent, tangent is an odd, pi-periodic function with tan(-x) = -tan(x), and tangent is positive in quadrants I and III and negative in II and IV.
If the tangent you get from this tool equals 1 and you want to know which angles produce that value, Arcus Tangent Calculator turns the tangent back into a principal angle in degrees, radians, and pi form, with an arctan2 mode that picks the right quadrant.
Frequently Asked Questions
Q: What is tan?
A: Tan, short for tangent, is a trigonometric function that returns a real number for most real angles. Geometrically, it gives the ratio of the opposite side to the adjacent side in a right triangle, and on the unit circle it is the slope of the line from the origin to the point at the given angle. The result is undefined at every odd multiple of pi/2 (90 deg, 270 deg, and so on).
Q: How do I calculate tan of an angle by hand?
A: For a right triangle, divide the length of the opposite side by the length of the adjacent side. For a unit-circle problem, take the y-coordinate of the point on the circle and divide it by the x-coordinate. The tan calculator handles both cases at once and shows the unit-circle point next to the tangent.
Q: What is the range of tan?
A: The range of tan is the set of all real numbers. Unlike sine and cosine, tangent is not bounded by -1 and 1; it can grow without limit as the angle approaches 90 deg or 270 deg, and it can take any negative value in quadrants II and IV. Tangent is undefined at every odd multiple of pi/2.
Q: What is tan of 0 degrees?
A: Tan of 0 deg is 0. On the unit circle, the point at 0 deg is (1, 0), so the y over x ratio is 0 / 1 = 0. The tan calculator returns 0 together with sine = 0, cosine = 1, and the unit-circle point (1, 0).
Q: What is tan of 45 degrees?
A: Tan of 45 deg is exactly 1, because 45 deg is pi/4 radians and tan(pi/4) = sin(pi/4) / cos(pi/4) = (sqrt(2)/2) / (sqrt(2)/2) = 1. The tan calculator returns 1 and reports the angle as a quarter of pi in Quadrant I with a positive tangent.
Q: At what angles is tan undefined?
A: Tan is undefined at 90 deg and 270 deg, and at every odd multiple of pi/2 (so pi/2, 3pi/2, 5pi/2, and so on in radians). At those angles, cos(theta) = 0, so the ratio sin(theta) / cos(theta) does not exist. The tan calculator returns the text 'undefined' for the tangent and a real number for the matching sine and cosine.