Scientific Calculator
Degrees or radians, log and ln, powers, factorials, Ans, and memory
About Scientific Calculator
Scientific Calculator evaluates a whole expression typed on your keyboard or built with its keys, with the mathjs engine rather than JavaScript's eval. It handles sin, cos, tan, and their inverses in radians or degrees, log (base 10), ln, sqrt, powers with ^, factorials with !, π, e, 1/x and |x|, and implicit multiplication such as 2π or 3(4+1). Results show 12 significant digits; Ans reuses the last one at full precision, M+, MR, and MC keep a value, and the last 10 calculations can be clicked to reuse them.
Example
Expressions and what the result line shows (the page's own evaluateExpression function, run in Node on October 6, 2026).
Expression
sin(30) in Degrees 2π log(1000) 5! 0.1+0.2 1/3e12 tan(90) in Degrees sqrt(-4)
Result
0.5 6.28318530718 3 120 0.3 3.33333333333e-13 tan is undefined here (the cosine is 0). The result is not a real number (for example, the square root or logarithm of a negative number).
How to evaluate an expression
- 1Choose "Radians" or "Degrees" for the trigonometric keys.
- 2Type an expression such as 2^10 + sqrt(16), or build it with keys like "sin()", "x²", and "Ans".
- 3Press "=" or the Enter key to show the result.
- 4Use "M+", "MR", and "MC" for the memory, and click a line under "History (click to reuse)" to load it again.
Formats and limits
- Functions
- sin, cos, tan, sin⁻¹, cos⁻¹, tan⁻¹, log (base 10, or log(x, b) in base b), ln, sqrt, ^, !, 1/x, |x|, π, e, and Ans
- Angles
- Radians or Degrees; tan of 90 degrees is reported as undefined
- Display
- 12 significant digits; scientific notation below 0.000001 and from 1e21 up, so 2^60 shows 1152921504610000000
- Range
- Up to about 1.8e308; 171! and anything larger is reported as too large
- Memory and history
- One memory value; the last 10 calculations
Common uses
- Resolving a force in a physics problem
- A student needs the horizontal part of a 50 N force at 30°: with "Degrees" on, 50cos(30) gives 43.3012701892, and "Ans" carries that value into the next step at full precision.
- Compound interest without a spreadsheet
- $1,000 at 5% a year, compounded monthly for 10 years, is typed as 1000(1+0.05/12)^(12*10) and grows to 1647.00949769.
- Measuring a screen or image diagonal
- The diagonal of a 1920×1080 image is sqrt(1920^2+1080^2), which gives 2202.90717008 pixels by the Pythagorean theorem.
- Chemistry with powers of ten
- Avogadro's number is typed as 6.022e23; multiplied by 2 moles it gives 1.2044e+24, written in scientific notation because it is above 1e21.
Which tool to use
- Percentage Calculator: answers six fixed percentage questions in labeled panels as you type, without writing an expression.
- Fraction Calculator: keeps fractions exact: 1/3 + 1/6 comes out as 1/2 with the steps of the calculation, where this calculator gives the decimal 0.5.
- Statistics Calculator: takes a whole list of numbers at once for its mean, median, standard deviation, and quartiles, which would take many expressions here.
Where your expressions are processed
Expressions are parsed and computed by mathjs inside this page, in your browser, and are not sent anywhere to be calculated. When an error message is shown, its cleaned text goes to our error log with the tool's name and your browser's name and major version, and a message from the expression engine can quote a short word you typed.
Frequently asked questions
Does it work in degrees?
Yes. Press Degrees before calculating: sin(30) gives 0.5 and cos(90) gives 0, while tan(90) is reported as undefined instead of a huge number. The inverse functions sin⁻¹, cos⁻¹, and tan⁻¹ then answer in degrees too.
Is log base 10 or natural?
10. log is the base-10 logarithm, so log(1000) = 3, and ln is the natural logarithm, so ln(e) = 1. The logarithm of a negative number is reported as not a real number, and the logarithm of 0 as infinite.
Does 0.1 + 0.2 show 0.3?
Yes. Results are rounded to 12 significant digits, which hides the tiny binary error behind 0.30000000000000004. Ans and M+ still keep the full value, so a chain of calculations does not lose precision along the way.
Are large results shown in scientific notation?
No, not before 1e21: up to there a result keeps 12 significant digits followed by zeros, so 2^60 shows 1152921504610000000 rather than 1152921504606846976. Results smaller than 0.000001 do switch to notation such as 3.33333333333e-13.
Can I type 2π or 3(4+1)?
Yes. Implicit multiplication works as on a handheld calculator, so 2π gives 6.28318530718 and 3(4+1) gives 15, and Ans can be multiplied the same way, as in 2Ans.
Why does sin(30) give -0.988031624093?
The calculator is in "Radians", where 30 means 30 radians. Press "Degrees" and run it again for 0.5; each trigonometric line in the history ends with (rad) or (deg), the unit it used.
Does it understand the percent sign?
Yes. After a number, % divides it by 100: 80*15% gives 12, and 200 + 10% gives 220, the way a desk calculator adds a percentage. Between two numbers it means the remainder instead, so 7 % 3 gives 1.
How do I take a logarithm in another base, or a cube root?
Give the base after a comma: log(8, 2) gives 3, the base-2 logarithm of 8, and log(8)/log(2) gives the same. Without a base, log is base 10. For roots, cbrt(27) and 27^(1/3) both give 3, and (-8)^(1/3) gives -2.
What does ! do with a decimal, and how large can a factorial be?
A decimal goes through the gamma function, so 3.5! gives 11.6317283966. The largest factorial that fits is 170!, shown as 7.25741561531e+306.
Tips and tricks
- ✓Pressing x², 1/x, or |x| right after a number wraps that number, so 4 then 1/x gives 1/(4), and -3 then x² gives (-3)^2.