Tool guide
About this tool.
- An arithmetic expression combines numbers with operators. Parentheses group operations; multiplication, division and remainder run before addition and subtraction.
- This tool parses arithmetic locally, without eval or running JavaScript. It accepts decimal numbers, scientific notation, unary signs, parentheses and + - * / %.
- The % operator means remainder, not percentage. Use Percentage Calculator for questions such as 25% of 200.
- Check short arithmetic expressions while coding.
- Compare operator precedence with explicitly grouped calculations.
- Evaluate decimal or scientific-notation examples without a spreadsheet.
Enter an expression or apply a sample.
Use explicit * for multiplication and parentheses for grouping.
Run the calculation. Invalid syntax, division by zero and non-finite results produce an error.
Copy or download the exact displayed result.
- (12 + 8) * 3 / 4 → 15.
- 2 + 3 * 4 → 14; (2 + 3) * 4 → 20.
- .5 + 1.5 → 2.
- 1e3 / 4 → 250.
- -7 % 3 → -1 (remainder retains the dividend sign).
- 0.1 + 0.2 → 0.30000000000000004 with binary floating-point arithmetic.
- No variables, functions, assignments, implicit multiplication, power operator or JavaScript execution.
- Use an ASCII minus sign and decimal dot. Commas and grouping separators are not accepted.
- All values use JavaScript floating-point arithmetic, not exact decimal money arithmetic.
- Maximum input is 10,000 characters and 128 nested parentheses/unary signs.
- A finite rounded result is not evidence of exact arithmetic; very large or very small values can lose precision.
- Percent calculations use a separate tool; 25 % 200 evaluates to the remainder 25.