Basic Calculator: Simple addition
{
"expression": "12 + 8"
}
{
"result": 20,
"expression": "12 + 8"
}
Math
Evaluate everyday arithmetic and percentage expressions, with the final value and a normalized expression to check.
Published Last reviewed
Evaluate everyday arithmetic and percentage expressions, with the final value and a normalized expression to check. It evaluates the entered expression or measurements using the operation selected on the page. Enter expression to calculate expression, then review calculated value and normalized expression. Parse and evaluate a safe arithmetic AST without eval. Operators follow standard precedence. Check the values you entered before relying on the result, especially when a rounding choice or omitted detail would change your decision.
Workspace
Use the keypad for the active expression field, or type directly in the form.
Complete the fields to prepare a result.
Choose the values that apply, then calculate expression.
Parse and evaluate a safe arithmetic AST without eval. Operators follow standard precedence.
Parse and evaluate a safe arithmetic AST without eval. Operators follow standard precedence. Check the values you entered before relying on the result, especially when a rounding choice or omitted detail would change your decision.
{
"expression": "12 + 8"
}
{
"result": 20,
"expression": "12 + 8"
}
This tool does not store your inputs or results on UtilityPages.org.
Use + for addition, − for subtraction, × or * for multiplication, ÷ or / for division, decimals, negative numbers, and parentheses. The keypad inserts supported symbols directly.
Parentheses are evaluated first, followed by multiplication and division, then addition and subtraction. Operations at the same precedence are evaluated from left to right.
Yes. Decimal operands and unary negative values are supported. Division by zero and incomplete expressions produce an error rather than an invented result.
No. It tokenizes and evaluates the supported arithmetic grammar without eval. The visible tape belongs to the current page session and ordinary calculations are not stored as account history.