Skip to content
FreeToolsKit.app

Converters & Utilities guide

Why Your Calculator Gives the Wrong Sine: Degrees vs. Radians

6 min read · Updated 20 November 2026 · Uses Scientific Calculator

Quick answer

If sin(30) gives about −0.988 instead of 0.5, your calculator is in radian mode. It read 30 as 30 radians, an angle of about 1,719°, not 30°. There are two fixes:

  • Switch to degree mode (often labelled DEG) and calculate again. sin(30) then gives 0.5.
  • Or convert the angle to radians first. Multiply degrees by π/180, so 30° becomes 30 × π/180 = π/6. One degree is defined as π/180 radians (NIST SP 811: Units outside the SI).

To see which mode you're in, calculate sin(90). An answer of 1 means degrees, and about 0.894 means radians.

In FreeToolsKit's Scientific Calculator, the angle mode is the DEG / RAD switch at the top of the display. DEG is selected when the page opens. Type sin(30) and press = to get "= 0.5".

Scientific CalculatorFree to use · No account required · Calculated in your browserOpen Scientific Calculator

Match the wrong answer to the cause

Each of these came from the test below:

  • sin(30) ≈ −0.988, cos(60) ≈ −0.952, tan(45) ≈ 1.620: degrees typed in radian mode.
  • sin(π/6) ≈ 0.00914: the opposite mistake. A radian value was typed in degree mode, so it was read as about 0.52°.
  • asin(0.5) ≈ 0.5236 instead of 30: an inverse function in radian mode. The answer is correct, but it's in radians.
  • SIN(30) ≈ −0.988 in a spreadsheet, or in code: there's no mode to fix. Common spreadsheets and languages always use radians, so convert the angle (see "Where else radians catch people out").
  • A tiny number such as 1.22e-16 where you expected 0: not a mode problem. It's how computers store π (see "Why sin(π) isn't always exactly 0").

What the test showed

The test was run in the Scientific Calculator in Chromium on 19 November 2026, at the default Result precision of 10 significant digits. Each expression was typed into the calculator and finished with =. The display marks a result with ≈ when the digits shown are rounded.

The same keys in each mode:

  • sin(30): DEG "= 0.5". RAD "≈ -0.9880316241".
  • cos(60): DEG "= 0.5". RAD "≈ -0.9524129804".
  • tan(45): DEG "= 1". RAD "≈ 1.619775191".
  • sin(90): DEG "= 1". RAD "≈ 0.8939966636".

Python's math module, JavaScript's Math in Node 22 and LibreOffice Calc gave the same radian values. For example, Python's math.sin(30) returned −0.9880316240928618.

On a phone, the sin key is under Scientific functions. You can also type the expression.

Fix it: switch the mode or convert the angle

Switching is simplest when all your angles are in one unit. Select DEG for degrees or RAD for radians, then press = again.

Converting works in any mode, and it's the only option in spreadsheets and code:

  • Degrees to radians: multiply by π/180. In RAD mode, sin(30×π/180) showed "≈ 0.5", and so did sin(π/6).
  • Radians to degrees: multiply by 180/π.

The ≈ before 0.5 stayed even at 15 significant digits. The stored result is 0.49999999999999994, the same value Python and Node returned, because π can't be stored exactly. The display rounds it to 0.5 and the ≈ tells you it was rounded. In DEG mode, sin(30) is exactly 0.5, because the tool uses exact values for multiples of 30° and 45°.

For a whole list of angles, the Unit Converter has an Angle category. In the test, 30 degrees converted to "≈0.5235987756 rad".

Inverse functions answer in the current mode

sin⁻¹, cos⁻¹ and tan⁻¹ work backwards: you give a ratio and get an angle. That angle comes back in whichever mode is selected:

  • asin(0.5) in DEG: "= 30".
  • asin(0.5) in RAD: "≈ 0.5235987756", which is π/6 radians, the same angle as 30°.
  • asin(0.5)×180/π in RAD: "≈ 30", converted back to degrees by hand.

The spreadsheets and languages in the last section return radians. Python's math.asin returns "the arc sine of x, in radians" (Python: math). LibreOffice Calc's help suggests DEGREES around the result, so =DEGREES(ASIN(0.5)) returns 30 (LibreOffice Help: Mathematical Functions).

Switching mode doesn't convert stored numbers

An angle mode tells the trig keys how to read the angle you give them. HP's manual for its 35s says: "The mode does not convert numbers already present" (HP 35s user's guide, PDF).

Two tests show what this tool does:

  1. A finished result. sin(30) gave "= 0.5" in DEG, and the display showed "Ans = 0.5". Clicking RAD recalculated the same expression on screen as "≈ -0.9880316241", with the note "Preview — press = or Enter to finish." Ans still read "Ans = 0.5". Only pressing = changed it to "Ans = -0.9880316241". Clicking DEG again brought back a 0.5 preview, but Ans stayed at the radian result.
  2. A stored number. 30 was stored as Ans in DEG. After switching to RAD, sin(Ans) gave "≈ -0.9880316241". Ans is just the number 30. It doesn't remember that you meant degrees.

So choose the mode before you start a chain of calculations. Afterwards, open Calculation history: each trig result is marked (DEG) or (RAD), so you can see which mode produced it.

Why sin(π) isn't always exactly 0

Mathematically, sin(π) is 0. Many programs show a tiny number instead:

  • Python: math.sin(math.pi) returned 1.2246467991473532e-16 in the cross-check.
  • JavaScript: MDN's own example multiplies Math.sin(Math.PI) by 10 and gets 1.2246467991473533e-15, not 0 (MDN: Math.sin()).
  • Spreadsheets: Microsoft describes =SIN(PI()) as "Sine of pi radians (0, approximately)" (Microsoft Support: SIN function). LibreOffice Calc returned 1.22464679914735E-016.

The sine is fine. The stored π isn't exact. Python's math.pi is "the closest approximation representable" as a floating-point number, and the leftover 1.22e-16 is "approximately equal to the difference" between it and true π. As the same Python developer reply notes, "It's not due to gross inaccuracy in sine" (Python bug tracker: issue 27440).

This calculator handles that case for you. In RAD mode, sin(π) and cos(π/2) both showed "= 0". tan(π/2) showed an error: "tan(1.57079632679) is undefined — that angle is an odd multiple of π/2 (within floating-point precision)." The code treats a value within a few rounding steps of a multiple of π/2, up to 4π, as that exact multiple. A hand-typed 3.14159 isn't π, though: sin(3.14159) showed "≈ 0.000002653589793".

In code, compare a result to 0 with a small tolerance, not with an exact equality test.

Where else radians catch people out

These spreadsheets and programming languages have no degree mode. Their trig functions always read angles in radians:

  • Excel: the SIN argument is "The angle in radians", and "If your argument is in degrees, multiply it by PI()/180 or use the RADIANS function" (Microsoft Support: SIN function). So use =SIN(RADIANS(30)), not =SIN(30).
  • Google Sheets: "The SIN function returns the sine of an angle provided in radians" (Google Docs Editors Help: SIN).
  • LibreOffice Calc: SIN "Returns the sine of the given angle (in radians)". In the cross-check, =SIN(30) returned -0.988031624092862 and =SIN(RADIANS(30)) returned 0.5.
  • JavaScript: "The Math.sin() static method returns the sine of a number in radians" (MDN: Math.sin()). Multiply degrees by Math.PI / 180 first.
  • Python: math.sin(x) will "Return the sine of x radians", and math.radians(x) converts "angle x from degrees to radians" (Python: math).

Handheld calculators let you choose. Casio's fx-991ES PLUS manual, for example, sets the default angle unit to Deg, Rad or Gra (gradians) in its setup menu (Casio: Configuring the Calculator Setup). The mode isn't always obvious on screen: HP's 35s shows RAD in radian mode but no indicator at all in degree mode (HP 35s user's guide, PDF). Check the mode rather than assuming it.

Before you trust a trig answer

  1. Mode test: sin(90) gives 1 in degrees and about 0.894 in radians.
  2. Your angles' unit: angles written with ° need degree mode. Angles written with π usually need radian mode.
  3. Inverse answers: you know whether sin⁻¹, cos⁻¹ or tan⁻¹ gave degrees or radians, and you've converted if needed.
  4. Stored values: you pressed = again after switching mode, and Ans shows the result you expect.
  5. Spreadsheets and code: degrees are converted with RADIANS() or × π/180 before SIN, COS or TAN.
  6. Rounding: a tiny value such as 1.22e-16, or a ≈ before 0.5, is floating-point rounding, not a wrong mode.