MySQL RADIANS() Function: Convert degrees into radians

RADIANS() converts an angle measured in degrees into radians for trigonometric calculations.

RADIANS(): Quick SQL Example

Run this SELECT query directly in MySQL or phpMyAdmin. It uses fixed inputs so you can verify the result without creating a table.

SELECT ROUND(RADIANS(180), 4) AS radian_value;
radian_value
3.1416
On this page — Show page sectionsHide page sections

More SQL Examples and Explanations

SELECT RADIANS(180);  -- 3.141592653589793
SELECT RADIANS(90);   -- 1.5707963267948966
We can use round() to limit the decimal places.
SELECT ROUND(RADIANS(45), 2);  -- 0.79
Syntax
SELECT RADIANS(X);
Value of X is in degree.

RADIANS with SIN(), COS()

SIN(), COS() and other functions take radian are input. So we can convert any degree value by converting radians first and then get the output.
SELECT SIN(RADIANS(90));              -- 1
SELECT SIN(RADIANS(0));               -- 0
SELECT ROUND(SIN(RADIANS(180)), 2);   -- 0.00
SELECT COS(RADIANS(0));               -- 1
SELECT COS(RADIANS(180));             -- -1

How to Interpret the Result

Use DEGREES() for the reverse conversion. SIN(), COS() and TAN() expect radians.

Common Question

Does RADIANS(90) equal 90?
No. It equals approximately π/2, or 1.5708 radians.

Further Reading

All Math Functions DEGREES()

Related: SIN()

More related tutorials: All math functions

↑ Back to top




Subscribe to our YouTube Channel here



plus2net.com




SQL Video Tutorials










✖
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
© 2000-2026 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer