Scientific Calculator
A full scientific calculator with trig functions (sin, cos, tan), logarithms (log, ln), square roots, powers, factorial (n!), absolute value, and rounding. Includes PI and e constants. Expression input with live evaluation. Keyboard and button support.
FAQ
Trig functions (sin, cos, tan) in radians, log (base-10), ln (natural log), sqrt, powers (a**b), factorial (n!), absolute value (abs), rounding, and constants PI and e. Use parentheses for grouping operations.
Yes, type expressions directly into the input field using your keyboard. Press Enter to evaluate. The on-screen buttons insert functions and operators. The AC button clears everything.
Standard PEMDAS order: Parentheses first, then Exponents (powers), Multiplication and Division (left to right), Addition and Subtraction (left to right). Unary minus (e.g., -3**2 evaluates as -(3**2) = -9) follows exponentiation. Use parentheses to control evaluation order explicitly when chaining complex operations.
JavaScript's Number type can only represent integers up to 2^53 precisely, so factorial results beyond 18! exceed safe integer precision and will be approximate. For exact large factorials, use a big integer library. The calculator will compute factorials for positive integers up to 170, beyond which the result exceeds Number.MAX_VALUE.
All trig functions (sin, cos, tan, asin, acos, atan) use radians. To work in degrees, convert manually: multiply degrees by π/180 before passing to trig functions. For example, sin(45°) is entered as sin(45 * pi / 180). Arc-functions return radians — multiply by 180/π to convert the result back to degrees.
Yes, the last 6 calculations are saved in a history list below the calculator. Click any history entry to reuse that expression. The "=" button evaluates and replaces the expression with the result.
More tools
JSON Formatter
Pretty-print, validate, and minify JSON with syntax highlighting.
RegEx Tester
Write and test regular expressions with real-time match highlighting.
CSS Minifier
Compress stylesheets by stripping whitespace, comments, and redundant declarations.
JavaScript Minifier
Shrink JS payloads with intelligent minification.
Diff Checker
Compare two text blocks side-by-side and see exactly what changed.
Markdown Preview
Write Markdown and see the rendered HTML preview update in real time.