Introduction
This tangent calculator finds tan(θ) for any angle you type. Pick degrees or radians, press Calculate, and the answer appears. It also shows sin θ, cos θ, cot θ, the quadrant, and the closest asymptote.
Tangent is one of the three main trig ratios. In a right triangle, tan(θ) is the opposite side divided by the adjacent side. You can also write it as sin θ ÷ cos θ. When cos θ is 0, like at 90°, tangent has no value. The tool marks those spots as undefined.
Every answer comes with the steps behind it. You can see the angle change to radians, the cosine check, and the final math. A graph draws the tangent curve around your angle and dots your point, so the shape and the asymptotes are easy to spot.
The second box handles full math expressions like 2*tan(45deg)+1 or tan(30deg)*tan(60deg). It reads sin, cos, atan, sqrt, abs, pi, and e, and it breaks the work into steps. Below that, a reference table lists tangent values for common angles from −90° to 90°, with the matching row highlighted.
Use it for homework, geometry, slope problems, physics, and engineering work. It is free, fast, and needs no sign-up.
How to use our Tangent Calculator
Type an angle, pick degrees or radians, and the tangent calculator shows tan(θ) with step-by-step math, a facts list, a graph, and a reference table.
Angle value: Type the angle you want, like 45 or 1.25. It can be positive, negative, or a decimal.
Angle unit: Choose Degrees (°) or Radians (rad) so the calculator reads your number the right way.
Insert π button: Click it to drop 3.14159265358979 into the angle box and switch the unit to radians.
Quick-select buttons: Tap 0°, 30°, 45°, 60°, 90°, or 180° to fill in a common angle fast.
Calculate and Reset: Press Calculate (or hit Enter) to get your answer. Press Reset to go back to 45°.
Copy button: Click the copy icon to save the tangent result to your clipboard.
Expression box: In the second tool, type a math problem that uses tan, like 2*tan(45deg)+1. You can also use sin, cos, atan, sqrt, abs, the signs + - * / ^ ( ), and pi or e.
Default unit for un-suffixed angles: Pick Degrees, Radians, or Gradians. This unit is used for any angle in your expression that has no unit written after it.
Expression Calculate and Clear: Press Calculate to see the answer and the breakdown. Press Clear to empty the box and start over.
What Is the Tangent?
The tangent, written as tan, is one of the three main trig functions, along with sine and cosine. In a right triangle, the tangent of an angle is the length of the opposite side divided by the length of the adjacent side.
tan(θ) = opposite ÷ adjacent
You can also find it from sine and cosine:
tan(θ) = sin(θ) ÷ cos(θ)
Degrees and Radians
Angles can be measured two ways. Degrees split a full circle into 360 parts. Radians split it into 2π parts. To switch between them:
- Degrees to radians: multiply by π/180
- Radians to degrees: multiply by 180/π
So 45° is the same as π/4 radians. Both give the same tangent value.
When Tangent Is Undefined
Because tangent divides by cosine, it breaks when cosine equals zero. That happens at 90°, 270°, −90°, and every 180° after that. At those angles tan(θ) has no answer. On a graph, the curve shoots straight up or down near these spots. These lines are called vertical asymptotes.
Common Tangent Values
- tan(0°) = 0
- tan(30°) = √3/3 ≈ 0.5774
- tan(45°) = 1
- tan(60°) = √3 ≈ 1.7321
- tan(90°) = undefined
- tan(180°) = 0
Key Facts About tan(θ)
- It repeats every 180° (π radians). So tan(30°) equals tan(210°).
- It is an odd function. tan(−θ) = −tan(θ).
- It is positive in quadrants I and III, and negative in quadrants II and IV.
- Its range has no limit. Unlike sine and cosine, tangent can be any real number.
- Its flip is cotangent: cot(θ) = 1 ÷ tan(θ).
Where Tangent Is Used
Tangent shows up whenever you work with slopes and angles. Builders use it to find roof pitch and ramp angles. Surveyors use it to measure the height of a tall tree or building from a distance. Engineers and game makers use it to aim objects and set camera angles. In math class, it also helps you find a missing side of a right triangle when you know one angle and one side.
The Inverse: Arctangent
If you know the ratio and want the angle, you use the inverse tangent, written as arctan or tan⁻¹. For example, arctan(1) = 45°, because tan(45°) = 1.