Basic Calculator
Evaluate addition, subtraction, multiplication, division, and parentheses.
About this tool
The expression is evaluated in the order parentheses and the usual arithmetic operations require. The keys on the page insert those operators.
A function name is a syntax error on purpose. Open the scientific calculator when you need powers or trigonometry.
How to use it
- Type an expression with the keys or the keyboard.
- Use parentheses where the order matters.
- Choose Equals. sin and other functions are rejected here.
Limitations
- Functions such as sin belong on the scientific calculator. This page accepts + − × ÷ and parentheses.
- Division by zero and a result that is not finite are rejected.
Precedence, powers, and a leading minus
Rank of each operator
Addition and subtraction share the lowest rank. Multiplication and division share the middle rank. The caret is a power and outranks both, so a product never waits for a later sum, and a sum never sneaks inside a power. Parentheses finish their interior before any operator that sits outside them. Take the line 2+34. The product 34 is 12, and only then does the 2 join, giving 14. The printed figure uses an English grouping style and keeps at most ten digits after the decimal point, so a large integer can gain thousands separators. pi stands for the circle constant and e stands for the base of natural growth. Both names are numbers here, even though named functions are not.
Names that this keypad refuses
sin, cos, tan, sqrt, log, ln, and abs are recognized and then stopped, with a notice that functions belong on the scientific calculator. A comma, a percent sign, or any other unexpected character fails the same way: the tokenizer must consume the whole line. Spaces are ignored. Division by a zero right-hand side is refused rather than printed as an infinity. There is no memory key, no unit conversion, and no percent-of shortcut hiding behind the divide key.
Stacked carets and a bare minus
Operators of equal rank associate leftward, and the caret follows that rule too. The tower 2^3^2 is therefore (2^3)^2, which is 64, and not the right-associated 512 that some algebra texts assume. Put parentheses around the upper power when that is the reading you want. A minus is always a binary operator, never a sign glued to the next numeral. A line that opens with -5+2 has an operator missing its left value, and the evaluator calls the expression incomplete. Begin from zero, as in 0-5, when the first term is negative. The same gap appears in 5*-2, which is not a signed factor.
Privacy
Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.

