TAN Function

Returns the tangent of an angle given in radians.

Category

Math & Trig

Available in

All versions, Microsoft 365

Returns

A number

Want to practice TAN in a real spreadsheet? Open a blank sheet in our Practice Sandbox and try it with live data, with the AI Excel tutor beside you. No Excel needed — just a free account.Try it free in the Sandbox

Overview

TAN returns the tangent of an angle — the opposite side divided by the adjacent side, or the slope of a line at that angle.

Excel's trig functions work in radians. Convert degrees with RADIANS, or multiply by PI()/180.

Syntax

=TAN(number) Explain

Arguments

ArgumentRequired?What it does
numberYesThe angle in radians.

Examples

Example 1 — Slope from an angle

Rise per metre of run for each angle.

B2fx=TAN(RADIANS(A2))
AB
1DegreesSlope
200
3451
4300.5774
=TAN(RADIANS(A2)) Explain

Example 2 — Height of a building

Standing 40 m away, the top is at a 35° angle.

=40*TAN(RADIANS(35)) Explain

About 28 m.

Common mistakes

  • 90 degrees. The tangent of 90° is undefined; Excel returns a huge number instead of an error.

Notes

Kyle Stott

Author

Kyle Stott

Certified Microsoft Excel Expert

Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.