SQL DEGREES()
Published Sep 8, 2025
Contribute to Docs
The DEGREES() function in SQL is a mathematical function used to convert a value expressed in radians to its equivalent in degrees. This function is available in various SQL dialects, including SQL Server, MySQL, and Oracle.
Note: Functions
RADIANS()andPI()are closely related toDEGREES().
Syntax
DEGREES(number)
Parameters:
number: A numeric expression in radians to be converted to degrees.
Return value:
Returns the angle in degrees as a numeric value.
Example 1
This example converts a specific radian value to degrees:
Select DEGREES(1.0) as degrees_value;
The output:
Example 2
This query converts PI*2 radians to degrees:
SELECT DEGREES(PI()*2) as degrees_off_of_pi;
The output:
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.
Learn SQL on Codecademy
- Learn to analyze data with SQL and prepare for technical interviews.
- Includes 9 Courses
- With Certificate
- Beginner Friendly.18 hours
- In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.
- Beginner Friendly.5 hours