The ATAN function in Google Sheets returns the arctangent of a number, giving you the angle in radians whose tangent is that number. To use it, type =ATAN(value) into a cell, replacing value with a number or cell reference. The result will be between -π/2 and π/2 (approximately -1.5708 and 1.5708 radians). This is useful for converting slope ratios into angles, solving trigonometry problems, or working with engineering and geometry data. No special setup is required—just a Google account and a spreadsheet.

What You'll Need

  • A Google account with access to Google Sheets (free with any Google account).
  • A spreadsheet open in Google Sheets (desktop or mobile browser; the mobile app also supports ATAN).
  • Basic familiarity with entering formulas (starting with =).

Step-by-Step

  1. Open your spreadsheet. Go to sheets.google.com and open a new or existing spreadsheet. On mobile, open the Google Sheets app and select a file.
  2. Select the cell where you want the result. Click or tap the cell that should display the angle. This cell will hold the formula.
  3. Start the formula. Type =ATAN( (including the equals sign and opening parenthesis). Google Sheets will show a tooltip with syntax help.
  4. Enter the value or cell reference. Type a number (e.g., 1) or click a cell containing the number (e.g., A1). You can also use an expression like B1/C1 to compute the ratio first. For example, =ATAN(1) returns approximately 0.7854 radians (45 degrees).
  5. Close the parenthesis and press Enter. Type ) and press Enter (or tap the checkmark on mobile). The cell will display the arctangent in radians.
  6. Convert radians to degrees if needed. ATAN returns radians. To get degrees, wrap the result in the DEGREES function: =DEGREES(ATAN(1)) returns 45. Alternatively, multiply by 180/PI().
  7. Copy the formula down or across. Drag the fill handle (small square at the bottom-right of the cell) to apply the formula to other rows. Relative references will adjust automatically.

Note: Menu labels and function names can differ slightly by version, device, or region, but ATAN is consistent across platforms.

Common Mistakes

  • Forgetting to convert radians to degrees. Many users expect degrees; ATAN gives radians. Use DEGREES() or multiply by 180/PI().
  • Using the wrong function for the quadrant. ATAN only returns values between -π/2 and π/2. If you need the full range (-π to π) based on both x and y coordinates, use ATAN2(x, y) instead. Note that ATAN2 takes the y-coordinate first, then x.
  • Typing text instead of a number. If the cell contains text, ATAN returns a #VALUE! error. Ensure the input is numeric.
  • Missing parentheses. Forgetting the closing parenthesis causes a formula parse error.
  • Referencing an empty cell. An empty cell is treated as 0, so =ATAN(A1) returns 0 if A1 is blank. Double-check your references.

Tips

  • Use ATAN2(x, y) when you need the angle from the positive x-axis to a point (x, y), including quadrants. The syntax is =ATAN2(x, y) where x is the x-coordinate and y is the y-coordinate. For example, =ATAN2(1, 1) returns π/4 (45 degrees).
  • Combine ATAN with other functions like ROUND to limit decimal places: =ROUND(ATAN(0.5), 4).
  • Format the result cell as a number with desired decimal places via Format > Number.
  • Use cell references instead of hard-coded numbers so you can update inputs easily.
  • Remember that ATAN is the inverse of TAN, so =ATAN(TAN(angle)) returns the original angle (in radians, within the principal range).

Troubleshooting

  • #VALUE! error: The input is not a number. Check that the cell contains a numeric value or a formula that returns a number. Remove any text or special characters.
  • #NAME? error: The function name is misspelled. Ensure you typed ATAN, not ATANH or something else.
  • Formula parse error: Likely a missing parenthesis or comma. Check the syntax: =ATAN(number).
  • Result seems wrong: Confirm whether you expect degrees or radians. ATAN always returns radians. Use DEGREES() to convert.
  • Unexpected 0: If the input cell is empty, ATAN treats it as 0. Verify the cell reference points to the intended value.
  • Need angles beyond -90 to 90 degrees: Use ATAN2 with both coordinates to get the correct quadrant.

Frequently Asked Questions

What is the difference between ATAN and ATAN2 in Google Sheets?

ATAN takes a single argument (a ratio) and returns an angle between -π/2 and π/2. ATAN2 takes two arguments (x and y coordinates) and returns an angle between -π and π, correctly identifying the quadrant. Use ATAN2 when you have separate x and y values.

How do I get the result in degrees instead of radians?

Wrap the ATAN function in the DEGREES function: =DEGREES(ATAN(1)) returns 45. Alternatively, multiply by 180/PI().

Can I use ATAN with arrays or ranges?

ATAN accepts a single value, not a range. To apply it to a range, use ARRAYFORMULA: =ARRAYFORMULA(ATAN(A1:A10)). This will return an array of results.

Why does ATAN return a negative number?

ATAN returns a negative angle when the input is negative, because the tangent function is odd. For example, =ATAN(-1) returns -0.7854 radians (-45 degrees). This is correct.

Does ATAN work on the Google Sheets mobile app?

Yes, the ATAN function works identically in the Google Sheets mobile app for Android and iOS. You can type the formula directly into a cell.

What is the range of values ATAN can return?

ATAN returns values in the range -π/2 to π/2 radians (approximately -1.5708 to 1.5708). It never returns exactly ±π/2 because the tangent approaches infinity asymptotically.