About Arithmetic Calculator
An expression-based calculator powered by the math.js library’s evaluate() function. Type full mathematical expressions with parentheses, operators, and functions—sin, cos, tan, sqrt, log, ln, pi, e—and get evaluated results. Includes an on-screen keypad for mouse/touch input and persists your last 20 calculations in localStorage across browser sessions.
- Expression evaluation via math.js supports operator precedence, nested parentheses, and implicit multiplication
- Built-in functions: sin, cos, tan, sqrt, log (base 10), ln (natural log), plus constants pi and e
- On-screen calculator pad with digit buttons, operators, parentheses, and function keys for mouse or touch input
- Calculation history stored in localStorage (last 20 entries), survives page refreshes and browser restarts
- Copy results to clipboard or export full history
Frequently Asked Questions
- Does it follow standard order of operations?
- Yes. math.js implements full operator precedence: parentheses first, then exponentiation, then multiplication/division, then addition/subtraction. It handles implicit multiplication too (e.g., 2pi = 6.283…).
- Are trigonometric functions in degrees or radians?
- Radians, which is the math.js default. For degrees, wrap your value: sin(45 deg) or convert manually with pi/180.
More Calculators Tools
All Calculators toolsCalculators
Discount Calculator
Calculate sale prices and savings from percentage discounts.
Calculators
Unit Price Calculator
Compare prices per unit to find the best deal.
Calculators
Graphing Calculator
Plot mathematical functions and equations on a graph.
Calculators
Fuel Economy Calculator
Calculate MPG or L/100km from distance and fuel used.