Basic calculator
Evaluate arithmetic with parentheses, signs, and the usual operation order.
Use explicit × or * for multiplication. Up to 1,024 characters and 32 nested levels. Supports +, −, ×, ÷, parentheses, signs, and scientific notation. Multiplication and division come before addition and subtraction.
Result
5
How it’s calculatedCalculated on your device
(12 + 8) / 4
Displayed values may be rounded. Calculations keep the underlying precision.
Up to 1,024 characters, 256 tokens and 32 nested levels. Supports decimals and e notation. Division by zero and nonfinite results are rejected. Use * or × explicitly; percentages and implicit multiplication are not part of this grammar.
The formula, made simple
Use the four arithmetic operations with explicit multiplication and parentheses. Results update while you type.
Parentheses first, then unary signs, multiplication/division, and addition/subtraction. Operations at the same level run left to right.
A worked example
(12 + 8) / 4 = 5, while 12 + 8 / 4 = 14.
A few useful answers
Does this execute code?
No. A bounded arithmetic parser recognizes only numbers, parentheses and allowed operators. Names, property access and arbitrary function calls are rejected.