SQL RADIANS()
Published Aug 31, 2025
Contribute to Docs
The SQL RADIANS() function converts an angle in degrees to its equivalent in radians.
Syntax
RADIANS(angle_in_degrees)
Parameters:
angle_in_degrees: A numeric expression representing the angle in degrees to be converted.
Return value:
- Returns a numeric value representing the corresponding angle in radians.
Example 1
The following query converts 180 degrees to radians:
SELECT RADIANS(180) AS radians_value;
The output will be:
| radians_value |
|---|
| 3.141593 |
It shows that 180 degrees is equal to 3.141593 radians.
Note: The exact output may vary slightly depending on the database system’s floating-point precision.
Example 2
Convert a column of degree values to radians:
Suppose there is a table named angles with the following data:
| angle |
|---|
| 30 |
| 45 |
| 60 |
The following query converts this data to radians:
SELECT angle, RADIANS(angle) AS radians_valueFROM angles;
The output will be:
| angle | radians_value |
|---|---|
| 30 | 0.523599 |
| 45 | 0.785398 |
| 60 | 1.047198 |
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.17 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