degrees() and radians() in Python Last Updated : 12 May, 2025 Comments Improve Suggest changes Like Article Like Report In geometry and trigonometry, we often switch between degrees and radians. Python’s math module provides two simple functions to handle these conversions:math.radians() – Converts degrees to radiansmath.degrees() – Converts radians to degreesLet’s explore both with examples:math.radians()This function takes a degree value and returns its equivalent in radians.Syntaxmath.radians(x)Parameters:x: Angle in degrees (float or int)Returns: Angle in radians (float)Example 1: Convert Degrees to Radians Python import math x = 180 print("Radians:", math.radians(x)) OutputRadians: 3.141592653589793 Explanation: 180 degrees is exactly π radians.Example 2: Convert 1 Degree and Fractional Degree Python import math a = 1 b = 180 / math.pi print("1° in Radians:", math.radians(a)) print("180/π° in Radians:", math.radians(b)) Output1° in Radians: 0.017453292519943295 180/π° in Radians: 1.0 Explanation: 180/π degrees equals exactly 1 radian.math.degrees()This function takes a radian value and returns its equivalent in degrees.Syntaxmath.degrees(x)Parameters:x: Angle in radians (float or int)Returns: Angle in degrees (float)Example 3: Convert Radians to Degrees Python import math x = math.pi print("Degrees:", math.degrees(x)) OutputDegrees: 180.0 Explanation: π radians is exactly 180 degrees.Example 4: Convert 1 Radian and π/180 Radians Python import math a = 1 b = math.pi / 180 print("1 Radian in Degrees:", math.degrees(a)) print("π/180 Radians in Degrees:", math.degrees(b)) Explanation: 1 radian ≈ 57.3°, and π/180 radians equals 1 degree.ApplicationsGeometry and trigonometry problemsAstronomical computationsGraphing and simulationsRotational transformations in graphicsRelated Articles:Python Math ModulePython Tutorial Comment More infoAdvertise with us Next Article degrees() and radians() in Python M manjeet_04 Follow Improve Article Tags : Misc Python Python-Built-in-functions Practice Tags : Miscpython Similar Reads numpy.radians() and deg2rad() in Python The numpy.radians() is a mathematical function that helps user to convert angles from degree to radians. Syntax : numpy.radians(x[, out]) = ufunc 'radians') Parameters : array : [array_like] elements are in degrees. out : [ndaaray, optional]Output array of same shape as x. 2pi Radians = 36o degrees 2 min read numpy.degrees() and rad2deg() in Python The numpy.degrees() is a mathematical function that helps user to convert angles from radians to degrees. Syntax : numpy.degrees(x[, out]) = ufunc 'degrees') Parameters : array : [array_like] elements are in radians. out : [ndaaray, optional] Output array of same shape as x. 2pi Radians = 360 degree 2 min read turtle.degrees() function in Python The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses tkinter for the underlying graphics, it needs a version of Python installed with Tk support. turtle.degrees() This method is used to set angle measurement units to degrees. By 1 min read Convert angles from radians to degrees in a NumPy array In this article, we will discuss how to convert array elements consisting of different angles as radian to degree. To convert an angle from radians to degrees we need to simply multiply the radians by 180°/Π?. We can also use the numpy.rad2deg() method to perform the same operation. Now suppose w 2 min read Program to Convert Radian to Degree Before moving to the actual solution, let's try to find out what is a degree, a radian, and their relations. Radian: The radian is the standard unit of angular measure, used in many areas of mathematics. The length of an arc of a unit circle is numerically equal to the measurement in radians of the 5 min read Like