Key Takeaways
Thirty degrees and thirty radians are different angles. Since 180° equals π radians, 30° equals π/6 radians. A radian-based function therefore needs sin(30 × π/180), which is approximately 0.5. Check units before numerical tolerances, and do not convert a value that is already in radians a second time.
- Multiply degrees by π/180 to obtain radians; multiply radians by 180/π for degrees.Read the supporting section: Derive the direction from half a turn
- Math.sin(30) means thirty radians. Thirty degrees must first become π/6.Read the supporting section: The same number can describe different angles
- A result near −0.988 instead of 0.5 signals a unit mismatch here, unlike a tiny residue near zero.Read the supporting section: Separate the mode error from near-zero residue
In this article
Derive the direction from half a turn
The OpenStax angles chapter relates one full turn to 360° and 2π radians. Halving both expressions gives 180° = π radians. A degree value multiplied by π/180 describes the same angle in radians; the reverse factor is 180/π.
Authored check: 60° × π/180 = π/3 radians. Multiplying π/3 by 180/π returns 60°. If the original input already says π/3 radians, multiplying by π/180 again changes the angle instead of merely changing its representation.
The same number can describe different angles
MDN specifies radians for Math.sin. The editor executed this authored code in Node.js 22.23.2 on December 2, 2026. This is a JavaScript function check, not a test of a physical calculator or a KitNelo trigonometry tool.
const sinDegrees = degrees => Math.sin(degrees * Math.PI / 180);
console.log(Math.sin(30)); // -0.9880316240928618: 30 radians
console.log(sinDegrees(30)); // 0.49999999999999994
console.log(sinDegrees(90)); // 1
console.log(Math.sin(Math.PI)); // 1.2246467991473532e-16| Input meaning | Value passed to Math.sin | Interpretation |
|---|---|---|
| 30 radians | 30 | About −0.9880316 |
| 30 degrees | π/6 | Close to 1/2 |
| 90 degrees | π/2 | 1 in the observed run |
Separate the mode error from near-zero residue
For software with DEG/RAD modes, record the mode and test a known angle with an explicit unit. To calculate 30°, enter 30 in DEG or π/6 in RAD. More decimal places cannot repair entering 30 in RAD when the intended angle is 30°. Check the specific application for its actual controls.
Mathematically sin(π) is zero; this run of Math.sin(Math.PI) returned about 1.22 × 10⁻¹⁶. The angle is now correctly specified, and the tiny residue belongs to finite-precision numerical computation. That differs from the large degree–radian mismatch. A generous tolerance should not conceal a unit error.
For an exact textbook answer, retain the symbolic relationship sin(π/6) = 1/2 before displaying a decimal. The intermediate-rounding guide covers precision decisions, which cannot correct an incorrect angle mode.
Test both conversion directions
Exercise A: a radian-based function must evaluate 150°. Supply 150 × π/180 = 5π/6; its sine is 1/2. Exercise B: express −π/2 radians in degrees. It is −90°, with sine −1. Keep the negative sign while changing units.
Write the unit, conversion and expected sign yourself before comparing answers. Memorizing “multiply by π” is insufficient when the direction changes. Use the unit-cancellation exercise for checking direction while establishing the specific relationships for angles, lengths and areas separately.


