Scientific Calculator

Evaluate arithmetic and functions like sin, cos, log and sqrt safely. Supports parentheses and powers.

Enter details

e.g. sqrt(16) + sin(0) * 2 ^ 3

Result

14

Updates live as you type

Frequently asked questions

Arithmetic (+, −, ×, ÷), powers (^), parentheses, the constants pi and e, and functions sin, cos, tan, sqrt, log (base 10), ln and abs.

Yes. It follows standard precedence — powers, then multiplication and division, then addition and subtraction — with parentheses overriding the rest. So 2 + 3 × 4 = 14.

Radians. To use degrees, convert first by multiplying by pi/180, for example sin(30 * pi / 180).

Yes. It uses a purpose-built parser, never JavaScript’s eval, so it cannot run arbitrary code. Anything that is not valid maths is rejected with an error.

A safe scientific calculator

Type a whole expression and get the answer in one step — this scientific calculator evaluates arithmetic and common functions in one go, rather than forcing you to work through a long calculation button by button. It supports +, −, ×, ÷, powers (^), parentheses, the constants pi and e, and the functions sin, cos, tan, sqrt, log, ln and abs.

It follows standard order of operations, so "2 + 3 * 4" is 14 — the multiplication 3 × 4 resolves first to give 12, then the addition gives 14, exactly as a maths class would teach rather than evaluating strictly left to right — and you can nest parentheses freely, as in "sqrt((3 + 4) ^ 2)", which computes (3+4)² = 49 first, then its square root, back to 7. Trigonometric functions work in radians; for degrees, multiply by pi/180, so a right-angle sine check would be entered as sin(90 * pi / 180) rather than sin(90) directly.

Crucially, it is safe by design. Many naïve web calculators pass your input directly to JavaScript's eval, which can execute arbitrary code if the input contains anything beyond pure arithmetic — a real security risk on any site that echoes user input back through eval. This one uses a custom, purpose-built parser that understands only mathematics — anything else, like a stray function name or an attempted code snippet, is rejected with a clear error rather than run. No input ever leaves your device, and nothing is logged or transmitted.

Use it for quick maths, homework, engineering checks and any time you want to evaluate a full expression instead of tapping it out button by button on a physical or on-screen calculator, one operation at a time.