Scientific Calculator

In short: trig in degrees or radians, logarithms, powers, roots and real factorials — with a proper expression parser, so 2 + 3 × 4 is 14 and −2^2 is −4, exactly as written mathematics intends.

Degrees or radians — the setting behind half of all wrong answers

The DEG/RAD key at the top left is the most consequential button on this page. In degree mode, sin(30) is 0.5, as every school trigonometry lesson expects. In radian mode the same keystrokes give sin(30 radians) — about −0.988 — and nothing about the calculator will warn you, because both answers are correct answers to different questions. Radians are the native unit of mathematics and physics: calculus formulas, rotational motion and wave equations all assume them, and sin(pi/2) is exactly 1 in radian mode. The rule of thumb: angles you can picture on a protractor belong in degrees; angles that arrive from a formula belong in radians. This calculator starts in degree mode and keeps the mode visible on the key itself, which is where your eye should go before any trig result surprises you.

Order of operations, as this calculator applies it

The parser works the way mathematics is written, which is not always the way a basic calculator behaves. Powers bind before multiplication, multiplication before addition, and parentheses override everything: 2 + 3 × 4 is 14 here, not the 20 a simple four-function calculator produces by working left to right. Powers run right to left, so 2^3^2 means 2^(3^2) = 512. A minus sign in front of a power applies after it: −2^2 is −4, while (−2)^2 is 4 — a distinction exam boards love and cheap calculators blur. Postfix keys act on the value immediately before them: 5! is 120, 50% is 0.5, and they combine naturally, so 2^3! is 2^6 = 64 while 3!^2 is 36. Factorials here are the real gamma function, so decimal factorials work too: 0.5! is 0.8862269255, the value behind the normal distribution's mathematics. If an expression is malformed the display says so rather than guessing — an answer you cannot trust is worse than an error message.

Worked examples worth trying

ExpressionResultWhat it is for
2^101024Binary sizes, doubling problems
sqrt(2)1.414213562373The diagonal of a unit square
log(1000)3Orders of magnitude, decibels, pH-style scales
ln(e)1Natural log undoes e exactly
asin(1) in degrees90Recovering an angle from a ratio
12!479001600Arrangements of 12 distinct things

Everything runs locally in your browser. There is no server round trip and nothing you type is stored or sent — the same privacy model as every tool on this site. The memory keys (MC, MR, M+, M−) hold one running value for chaining calculations, and Ans recalls the last result, which is how multi-step problems — a hypotenuse feeding an angle, an angle feeding a height — are meant to be built here.

Frequently asked questions

What is the difference between log and ln?

They are logarithms to different bases. Log is base 10: log(1000) is 3, because 10 to the power 3 is 1000, and it is the scale behind decibels, earthquake magnitudes and pH. Ln is the natural logarithm, base e (2.71828...): ln(e) is 1, and it appears wherever growth and decay are continuous — compound interest in the limit, radioactive decay, population models. The two convert by a constant factor: ln(x) is log(x) times 2.302585. Most school syllabuses use log for base 10 and ln for base e exactly as this calculator does; a few use log for both, which is why checking the base matters before trusting a result.

Why does sin(30) give a negative number?

Almost certainly the mode. In degree mode sin(30) is 0.5. In radian mode the calculator reads 30 as 30 radians — nearly five full turns — and sin of that is about −0.988, a perfectly correct answer to a question you did not mean to ask. This calculator shows its mode on the top-left key (deg or rad) and starts in degrees. The same trap applies in reverse to the inverse functions: asin(1) returns 90 in degree mode and 1.5707963 (pi/2) in radian mode. When a trig result looks absurd, check the mode before you check the maths.

How are factorials of decimals like 0.5! calculated?

Through the gamma function, the continuous extension of the factorial: x! means Γ(x+1). For whole numbers it reproduces the familiar products — 5! is 120, 12! is 479001600 — and between them it gives smooth values, so 0.5! is Γ(1.5) = 0.8862269255, half of the square root of pi. That is not a curiosity: the gamma function sits inside the normal, chi-squared and t distributions, so a calculator that refuses decimal factorials cannot do real statistics. Negative whole numbers have no factorial (the gamma function has poles there), and this calculator will say Error rather than invent a value.

Does this calculator follow BODMAS / PEMDAS?

Yes — it parses expressions the way mathematics is written, not left to right. Parentheses first, then powers (evaluated right to left), then multiplication and division, then addition and subtraction, with postfix factorial and percent applied to the value they follow. So 2 + 3 × 4 is 14, 2^3^2 is 512, and −2^2 is −4 because the power is evaluated before the sign applies. That last case is the one that differs between calculators and causes real exam losses: if you want the square of negative two, write (−2)^2 and you will get 4.

Can I type expressions instead of tapping keys?

Yes — the expression box accepts typed input, and pressing Enter calculates. Type function names as they appear on the keys (sin, cos, tan, asin, acos, atan, ln, log, sqrt), use pi and e for the constants, ans for the last answer, ^ for powers, ! for factorial and % for percent; ×, ÷ and − symbols are also understood if you paste them. Buttons and typing mix freely, and the memory keys keep one stored value across calculations with M+, M−, MR and MC. Nothing is uploaded: the parser runs entirely in your browser.

Related tools

Evaluator last verified against 24 known values in Node: 24 November 2026. Everything is calculated in your browser — nothing you type is sent anywhere.