TAN function
TAN returns the tangent of an angle given in radians. Convert degrees with RADIANS first, since the function expects radians rather than degrees, and results can show tiny rounding errors.
Example
Read it as a sentence: take pi, divide it by 4, then find the tangent, which gives 1.
A
B
C
D
1
1
2
3
Syntax
TAN(number)
-
number(required) - An angle in radians.
Returns: The tangent of the angle.
What Excel actually returns
Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.
| Formula | Excel shows | Case |
|---|---|---|
=TAN(0.5) | 0.54630249 | Positive |
=TAN(0) | 0 | Zero |
=TAN(-0.5) | -0.54630249 | Negative |
=TAN(2) | -2.185039863 | Larger value |
=TAN("0.5") | 0.54630249 | Text number "0.5" |
=TAN(TRUE) | 1.557407725 | TRUE |
=TAN("abc") | #VALUE! | Non-numeric text |
=TAN(2^27+1) | #NUM! | Beyond 2^27 |
Watch out for
- Convert degrees with RADIANS.
- Tiny rounding error possible near 1.
Where it works
- Excel
- TAN is in every version of Excel from 2007 on.
- Google Sheets
- Same name, same behaviour for everyday use.
Part of Math and trig functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .