Free to Use

Tangent Calculator

Calculate tangent values in degrees, radians, and gradians with unit circle visualization. Find tan, cotangent, sine, and cosine values instantly.

Common angles:

Real-World Tangent Examples

🏔️ Finding the Height of a Mountain

A surveyor stands 500 meters from the base of a mountain and measures an angle of elevation of 30° to the peak.

Formula: tan(30°) = opposite / adjacent

tan(30°) = 0.5774, so the height = 500 × 0.5774 = 288.7 meters

The tangent function relates the angle to the ratio of opposite side over adjacent side in a right triangle.

🛤️ Calculating Road Grade / Slope

A road rises 6 meters vertically over a horizontal distance of 100 meters.

Grade = tan(θ) = rise / run

tan(θ) = 6/100 = 0.06, which gives θ = arctan(0.06) ≈ 3.43°

Road grades are commonly expressed as a percentage: a 6% grade means tan(θ) = 0.06.

🏗️ Ladder Safety Angle

OSHA recommends that a ladder should be placed at a 75° angle from the ground for safety.

If the ladder is 5 meters long, the distance from the wall is:

tan(75°) = opposite / adjacent = height / distance from wall

tan(75°) ≈ 3.7321, so distance = 5 × cos(75°) = 1.29 meters

The tangent function helps determine safe ladder positioning by relating the angle to the height and base distance.

🌓 Calculating Shadow Length

A 10-meter tall building casts a shadow. The sun's angle of elevation is 40°.

Formula: tan(40°) = building height / shadow length

tan(40°) ≈ 0.8391, so shadow length = 10 / 0.8391 = 11.92 meters

Tangent is ideal for finding heights or distances when you know one side and an angle in a right triangle.

Understanding the Tangent Function

The tangent function (tan) is one of the three primary trigonometric functions. For a given angle, tan(θ) equals the ratio of the sine to the cosine of that angle. It represents the ratio of the opposite side to the adjacent side in a right triangle.

Tangent Definition

tan(θ) = opposite / adjacent
In a right triangle, tangent is the ratio of the side opposite the angle to the side adjacent to the angle.
tan(θ) = sin(θ) / cos(θ)
Tangent can be expressed as the ratio of sine to cosine. This is the fundamental definition used in calculations.

Key Tangent Values

tan(0°) = 0  |  tan(30°) = √3/3  |  tan(45°) = 1  |  tan(60°) = √3  |  tan(90°) = undefined
These key angles show the pattern of tangent. Note that tan(90°) is undefined because cos(90°) = 0.

Related Trigonometric Functions

cot(θ) = 1 / tan(θ) = cos(θ) / sin(θ)
Cotangent is the reciprocal of tangent. Defined when tan(θ) ≠ 0 (i.e., sin(θ) ≠ 0).
tan(θ) = sin(θ) / cos(θ)  |  tan(θ) = cot(90° - θ)
Tangent relates to sine and cosine through the ratio identity, and to cotangent through the cofunction identity.

How to Calculate Tangent Step by Step

1
Identify the angle: Note the angle value and its unit (degrees, radians, or gradians)
2
Convert to radians: If in degrees: multiply by π/180. If in gradians: multiply by π/200
3
Normalize the angle: Reduce to [0, 2π) range using modulo arithmetic
4
Evaluate sin(θ) and cos(θ): Find the sine and cosine of the angle first
5
Calculate tan(θ) = sin(θ) / cos(θ): If cos(θ) = 0, tangent is undefined (vertical asymptote)

Tangent Values by Quadrant

📐 Quadrant I (0° - 90°)

tan(θ) > 0, sin(θ) > 0, cos(θ) > 0. Tangent increases from 0 to ∞ as the angle approaches 90°.

📐 Quadrant II (90° - 180°)

tan(θ) < 0, sin(θ) > 0, cos(θ) < 0. Tangent goes from -∞ to 0.

📐 Quadrant III (180° - 270°)

tan(θ) > 0, sin(θ) < 0, cos(θ) < 0. Tangent increases from 0 to ∞.

📐 Quadrant IV (270° - 360°)

tan(θ) < 0, sin(θ) < 0, cos(θ) > 0. Tangent goes from -∞ to 0.

Quick Tips for Working with Tangent

🔄 Range is All Real Numbers

Unlike sine and cosine which are bounded by [-1, 1], the tangent function can take any real value from -∞ to +∞, with asymptotes at odd multiples of 90°.

🔁 Periodic: 180° (π)

tan(θ + π) = tan(θ). The tangent function repeats every 180° (π radians), half the period of sine and cosine. This is because sin and cos both change sign, so the ratio stays the same.

🪞 Odd Function

tan(-θ) = -tan(θ). Tangent is an odd function, symmetric about the origin. This property helps simplify calculations with negative angles.

⚠️ Asymptotes at 90° & 270°

Tangent has vertical asymptotes at θ = 90° + n·180° (where cos θ = 0). At these angles, tan(θ) approaches ±∞ and is considered undefined.

📐
Multiple Angle Units
Calculate tangent in degrees, radians, and gradians. Switch between units instantly and see results in all formats.
🔄
All Related Functions
Get tan, cotangent (cot), sine (sin), and cosine (cos) values all at once for any angle.
🎯
Unit Circle Visualization
See the angle visualised on the unit circle with sine and cosine projections and the quadrant location.
🧭
Common Angles Quick Select
Quickly switch between common angles (0°, 30°, 45°, 60°, 90°) to see their exact tangent values.

What is the Tangent Function?

The tangent function (abbreviated tan) is one of the three primary trigonometric functions in mathematics. It describes the ratio of the opposite side to the adjacent side in a right triangle. Unlike sine and cosine which are bounded between -1 and 1, the tangent function can take any real value and has vertical asymptotes where cosine equals zero.

On the unit circle — a circle with radius 1 centered at the origin — the tangent of an angle θ is the ratio of the y-coordinate to the x-coordinate: tan(θ) = y/x. Geometrically, tan(θ) also represents the length of the line segment from the point (1, 0) to the intersection of the terminal side with the line x = 1, giving rise to the name "tangent" (meaning "touching" the circle).

The tangent function is periodic with a period of π radians (180°), meaning tan(θ + π) = tan(θ). It is also an odd function, satisfying tan(-θ) = -tan(θ). The function has vertical asymptotes at θ = π/2 + nπ (90° + n·180°), where the cosine is zero and the ratio approaches infinity.

Where Tangent Appears in the Real World

How to Calculate Tangent Values

Calculating tangent values is straightforward using the relationship tan(θ) = sin(θ) / cos(θ). The most reliable approach is to first find the sine and cosine of the angle, then divide them. For standard angles (0°, 30°, 45°, 60°, 90°), the tangent values are exact and come from well-known sine and cosine pairs.

Step 1: Convert the angle to radians if necessary. Since most mathematical functions work in radians, convert degrees by multiplying by π/180. For example, 45° = 45 × π/180 = π/4 radians.

Step 2: Normalize the angle to the range [0, 2π) by adding or subtracting multiples of 2π. Since tangent has period π, you can also reduce modulo π.

Step 3: Calculate sin(θ) and cos(θ) for the angle. These can be found using the unit circle or a calculator.

Step 4: Divide sin(θ) by cos(θ) to get tan(θ). If cos(θ) = 0, the tangent is undefined (approaches ±∞).

Tangent Values for Common Angles

These exact values are the building blocks of trigonometry and are worth memorizing:

Applications of Tangent in Daily Life

The tangent function has countless practical applications that affect our everyday lives. From the slope of a wheelchair ramp to the angle of a roof, tangent helps engineers, architects, and designers create safe and functional structures.

🏘️ Roof Pitch Calculations

Roof pitch is commonly expressed as a ratio of rise to run. A 6/12 roof pitch means tan(θ) = 6/12 = 0.5, giving an angle of about 26.6°. Carpenters use tangent to calculate rafter lengths and cutting angles.

🛤️ Ramp Slope Design

ADA guidelines require wheelchair ramps to have a maximum slope of 1:12 (tan(θ) = 0.0833, θ ≈ 4.8°). Tangent helps verify compliance by converting between slope ratios and angles.

🔭 Astronomy & Telescopes

Astronomers use tangent to calculate the angular size of celestial objects. The tangent of the angular diameter times the distance gives the object's physical size: size = distance × tan(angular diameter).

🎮 Game Physics & Ballistics

In video games, projectile motion calculations use tangent to determine the angle of a cannon or the trajectory of a thrown object based on horizontal and vertical velocity components.

Frequently Asked Questions

What is the difference between tangent, sine, and cosine?
Tangent (tan), sine (sin), and cosine (cos) are the three primary trigonometric functions. In a right triangle: tan(θ) = opposite/adjacent, sin(θ) = opposite/hypotenuse, and cos(θ) = adjacent/hypotenuse. On the unit circle, tan(θ) = sin(θ)/cos(θ) = y/x. Unlike sine and cosine which are bounded by [-1, 1], tangent can take any real value and has asymptotes where cos(θ) = 0. They are related by the identity: sin²(θ) + cos²(θ) = 1.
Why is tan(90°) undefined?
tan(90°) is undefined because cos(90°) = 0, and tangent is defined as tan(θ) = sin(θ)/cos(θ). Division by zero is mathematically undefined. On the unit circle, at 90° the point is (0, 1), so the ratio y/x = 1/0, which approaches infinity. As the angle approaches 90° from below, tan(θ) approaches +∞; as it approaches from above, it approaches -∞. This is known as a vertical asymptote.
What is the period of the tangent function?
The tangent function has a period of π radians (or 180°). This means tan(θ + π) = tan(θ) for any angle θ where tangent is defined. This is half the period of sine and cosine (which have period 2π). The reason is that sine and cosine both change sign after π radians (sin(θ + π) = -sin(θ), cos(θ + π) = -cos(θ)), so their ratio remains unchanged. This means tan(θ) completes one full cycle every 180°.
What is the range of the tangent function?
Unlike sine and cosine (which are bounded between -1 and 1), the tangent function can take any real value from -∞ to +∞. The range is all real numbers. This is because as the angle approaches an asymptote (where cos(θ) = 0), tan(θ) approaches ±∞. For example, tan(89.9°) ≈ 573, and tan(89.99°) ≈ 5730. The function covers every real number between each pair of consecutive asymptotes.
What is the cotangent (cot) function?
The cotangent function (cot) is the reciprocal of the tangent function: cot(θ) = 1 / tan(θ) = cos(θ) / sin(θ). It is defined for all angles where tan(θ) ≠ 0 (i.e., sin(θ) ≠ 0, so θ ≠ 0°, 180°, 360°, etc.). Since tan(θ) can be any real number, cot(θ) also has a range of all real numbers. Cotangent has asymptotes where sin(θ) = 0 (0°, 180°, 360°), complementary to tangent's asymptotes at 90° and 270°.
How do I convert radians to degrees for tangent?
To convert radians to degrees, multiply by 180/π. For example, π/3 radians = π/3 × 180/π = 60°, and tan(π/3) = tan(60°) = √3 ≈ 1.7321. To convert degrees to radians, multiply by π/180. For example, 30° = 30 × π/180 = π/6 radians, and tan(30°) = tan(π/6) = √3/3 ≈ 0.5774. Most mathematical analysis uses radians, so converting is an essential skill.

⚠️ Important Note: This Tangent Calculator is for educational and informational purposes only. While every effort has been made to ensure accuracy, results should be verified independently for critical applications such as engineering, construction, medical devices, or navigation. Always consult a qualified professional for decisions involving trigonometric calculations in high-stakes contexts.