Syntax
| Parameter | Description |
|---|---|
| number | Parameter of the TAN function. |
Examples
Tangent of 45 degrees
=TAN(PI()/4)
Height from angle
=100*TAN(RADIANS(35))
Roof pitch
=DEGREES(ATAN(6/12))
Common Errors
Non-numeric input returns #VALUE!.
TAN approaches infinity near π/2 (90°). While it won't error at exactly PI()/2 due to floating point, the result will be extremely large.
Tips
A line's slope equals the tangent of its angle with the horizontal. A 45° line has slope = TAN(45°) = 1.
TAN is undefined at 90° (and 270°, etc.) because COS is zero there. Results near these angles will be extremely large numbers.
Height = distance × TAN(elevation_angle). Distance = height / TAN(elevation_angle). These are the basic surveying formulas.
Try TAN in Viztab
Import your data and use TAN with 370+ other formulas. No signup required.
Open Viztab