Scientific Calculator
A full-featured scientific calculator with trigonometric functions, logarithms, exponents, memory, and more. Click the buttons or use your keyboard.
How to Use the Scientific Calculator
Click the calculator buttons to build an expression, then press "=" to evaluate. You can also type directly using your keyboard: digits, operators (+, -, *, /), parentheses, and Enter to calculate. Use the scientific function buttons for trigonometry (sin, cos, tan), logarithms (log, ln), square root (√), powers (x², xⁿ), factorial (n!), and absolute value (|x|). The display shows your current expression with a history line above it showing the previous calculation.
This scientific calculator runs entirely in your browser and supports the full range of mathematical operations you would find on a physical scientific calculator. It follows standard order of operations (PEMDAS/BODMAS) and supports nested parentheses for complex expressions. The memory functions (MC, MR, M+, M−) let you store and recall intermediate results during multi-step calculations.
Available Functions
| Function | Description | Example |
|---|---|---|
| sin, cos, tan | Trigonometric functions (degrees) | sin(30) = 0.5 |
| log | Base-10 logarithm | log(100) = 2 |
| ln | Natural logarithm (base e) | ln(e) = 1 |
| √ | Square root | sqrt(16) = 4 |
| x² | Square a number | 5^2 = 25 |
| xⁿ | Raise to any power | 2^10 = 1024 |
| n! | Factorial | fact(5) = 120 |
| |x| | Absolute value | abs(-7) = 7 |
| π | Pi constant | 3.14159… |
| e | Euler's number | 2.71828… |
Memory Functions
- MC (Memory Clear): Clears the stored memory value back to zero.
- MR (Memory Recall): Inserts the stored memory value into the current expression.
- M+ (Memory Add): Adds the current display value to the stored memory.
- M− (Memory Subtract): Subtracts the current display value from the stored memory.
Keyboard Shortcuts
Use your physical keyboard for fast input: digits (0–9), operators (+, -, *, /), dot (.) for decimals, parentheses for grouping, Backspace to delete the last character, Escape to clear, and Enter to evaluate the expression. The calculator processes keyboard events in real-time for a smooth, responsive experience.
Frequently Asked Questions
What scientific functions are available?
This calculator includes trigonometric functions (sin, cos, tan and their inverses), logarithms (log base 10 and natural log ln), square root (√), square (x²), power (xⁿ), factorial (!), absolute value (|x|), and constants π and e. It also supports parentheses for grouping and follows standard mathematical order of operations.
How do the memory functions work?
MC clears the memory, MR recalls the stored value and inserts it into the display, M+ adds the current display value to memory, and M- subtracts the current display value from memory. Memory is preserved across calculations within the same session but resets when you reload the page.
Does the calculator follow order of operations?
Yes. The calculator evaluates expressions following standard mathematical order of operations (PEMDAS/BODMAS): parentheses first, then exponents, multiplication and division left-to-right, and finally addition and subtraction left-to-right. You can use parentheses to override the default order.