Excel TAN Function: Syntax, Examples & Tips

The TAN function calculates the tangent of an angle in radians, aiding in accurate trigonometric calculations in Excel.
Excel
=TAN(angle)

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

Need more than a single TAN formula? Try our free AI for Excel — it reads your entire spreadsheet, answers questions in plain English, and builds charts and analysis in the same chat.

On this page
  1. Parameters
  2. What is a TAN Formula in Excel?
  3. A Practical Example
  4. TAN Formula
  5. Result of the Formula
  6. Why Use TAN?
  7. Key Takeaways:
  8. Example use case

Parameters

angle:
The angle in radians for which you want to calculate the tangent. This can be a number, a cell reference, or a formula that returns a numeric value representing the angle in radians.

What is a TAN Formula in Excel?

The TAN function in Excel is a mathematical tool that calculates the tangent of an angle provided in radians. The tangent function is one of the fundamental trigonometric functions and is widely used in various fields such as engineering, physics, and mathematics.

In simpler terms, the TAN function helps you find the ratio of the opposite side to the adjacent side of a right triangle, making it essential for solving problems involving angles and distances.

A Practical Example

Imagine you are working on a project that involves calculating angles in a right triangle, and you have the following data in an Excel spreadsheet:

Triangle Data Table:

Angle (Degrees)Angle (Radians)
30=RADIANS(A2)
45=RADIANS(A3)
60=RADIANS(A4)
90=RADIANS(A5)

You want to find the tangent of each angle in radians.

TAN Formula

To calculate the tangent for the angle in radians, you would use the TAN formula as follows:

Excel
=TAN(B2)

Breakdown of the Formula:

  • B2: This is the cell that contains the angle in radians for which you want to calculate the tangent.

Result of the Formula

When you apply the formula for each angle, you will get the following results:

Angle (Degrees)Angle (Radians)Tangent Value
300.52360.5774
450.78541.0000
601.04721.7321
901.5708#DIV/0!

Here, the tangent values are calculated as follows:

  • TAN(30°) = 0.5774
  • TAN(45°) = 1.0000
  • TAN(60°) = 1.7321
  • TAN(90°) results in an error (#DIV/0!) because the tangent of 90 degrees is undefined.

Why Use TAN?

The TAN function is particularly useful when you need to perform calculations involving angles in trigonometry. It allows you to quickly determine the relationships between the sides of a right triangle, making it easier to solve real-world problems in various scientific and engineering contexts.

Key Takeaways:

  • TAN: Calculates the tangent of an angle in radians.
  • Essential for Trigonometry: Helps in solving problems involving angles and distances.
  • Common Use Cases: Ideal for engineering calculations, physics problems, and any scenario involving right triangles.

Understanding how to use the TAN function can significantly enhance your mathematical capabilities in Excel, enabling you to perform trigonometric calculations with ease.

Happy calculating!

Example use case

You have a table where Column A contains angles in degrees, and you want to calculate the tangent of each angle in Column B. By using the TAN function, you can easily compute the tangent values for all angles listed, which is useful for trigonometric calculations in engineering or physics applications. This simplifies the process of analyzing relationships between angles and their tangent values without needing to perform manual calculations or use a scientific calculator.

Beyond the TAN function: Better Analyst is a full Excel AI that goes well past individual formulas. Upload any spreadsheet and ask questions in plain English — you'll get formulas, data analysis, and charts back in seconds. It's a free AI Excel assistant that works with any .xlsx, .xls, or .csv file — no plugins, no Microsoft 365 required.

Don't have a spreadsheet yet? Use our free AI spreadsheet generator to turn a text prompt into a downloadable Excel file — a full AI Excel sheet maker that builds headers, columns, and formulas from your description.

Need more help with Excel formulas?

Create a free account for formula help, explanations, and spreadsheet analysis. Usage limits depend on your plan.

Explore all Excel formulas

Browse our complete library of Excel formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.