Math Calculator

Scientific calculator with expression input, persistent history, unit conversions, and full keyboard support. Type complete expressions or use the button grid.

DEG
0
Scientific Functions
Result
Start calculating
Decimal
Scientific Notation
Fraction (approx)
Binary
Hexadecimal
Octal
Calculator notice: Results are computed client-side in your browser using JavaScript floating-point arithmetic. Very large or very small numbers may have rounding errors inherent to IEEE 754 double-precision. For critical calculations, verify results independently.
Calculation History
0 calculations

History is saved automatically to your browser's localStorage. Click any entry to restore it to the calculator.

No calculations yet. Make some calculations and they'll appear here.
📏 Length
⚖️ Weight / Mass
🌡️ Temperature
Speed
Area
🧊 Volume

Frequently Asked Questions

How do I type a full math expression? +

Click or tap the expression input bar at the top of the calculator and type your expression directly — for example: 2*(3+4)^2 or sin(30)*cos(45). Press Enter or click = to evaluate. The calculator fully supports standard operator precedence and parentheses nesting.

What scientific functions are available? +

The calculator includes: sin, cos, tan, asin (arcsin), acos (arccos), atan (arctan), log (base 10), ln (natural logarithm), sqrt (square root), cbrt (cube root), x² (square), x³ (cube), xʸ (power), n! (factorial), |x| (absolute value), floor, ceil, round, and constants π (pi) and e (Euler's number).

How is calculation history saved? +

Every calculation is automatically saved to your browser's localStorage — no account, no server, no sign-up needed. History persists between sessions. Click any history entry to restore that expression to the calculator. Use "Clear All" to wipe the history. Up to 200 entries are retained.

What keyboard shortcuts are available? +

Type numbers and operators directly. Enter or = evaluates the expression. Escape clears everything. Backspace deletes the last character. All numpad keys work (0–9, /, *, -, +, ., Enter). Parentheses can be typed directly with ( and ). ^ is used for powers.

Does it use degrees or radians for trig functions? +

Toggle between DEG and RAD modes using the button in the scientific functions panel. In DEG mode, sin(90) = 1. In RAD mode, sin(π/2) = 1. The current mode is always visible in the display area and on the toggle button.

What is the parentheses balancing indicator? +

When you have unclosed parentheses in your expression, an orange badge appears in the top-right of the display showing how many are open. For example "( 2" means 2 more closing parentheses are needed. This helps you avoid "unexpected end of expression" errors.