Examples for the atan2 formula
Copy these examples into a spreadsheet and adjust the ranges for your own data.
ATAN2 syntax pattern
=ATAN2(x, y)Use this ATAN2 pattern as the starting point for your spreadsheet formula.
ATAN2 in a worksheet
=ATAN2(x, y)Returns the counterclockwise angle, in radians, from the X axis to the point (x, y).
When to use ATAN2
Use ATAN2 when you need to return the counterclockwise angle, in radians, from the X axis to the point (x, y).
- Convert and calculate angles.
- Model geometry, waves, and other trigonometric relationships.
How ATAN2 works in Quadratic
In Quadratic, ATAN2 follows the syntax ATAN2(x, y). The function works inside Quadratic formulas and can be combined with spreadsheet ranges, tables, and other formulas.
Common ATAN2 mistakes
Most ATAN2 issues come from mismatched argument types, ranges that do not cover the intended data, or optional parameters being omitted when the default behavior is not what you expected.
- Check each required parameter before copying the formula across a sheet.
- Confirm that ranges line up with the rows or columns you intend to analyze.
- Use Quadratic AI to explain or debug the formula when the result looks wrong.