Basic Math Solver
Enter a supported arithmetic expression and get the answer with the order of operations shown step by step. Choose one of the supported tools for algebra or specialised problems — this solver handles arithmetic only.
Enter an expression
Supports + − × ÷, parentheses, ^, sqrt(), %, decimals and negatives.
How this calculator works
The Basic Math Solver evaluates a single arithmetic expression made up of numbers and the operators +, −, ×, ÷, exponents (^), square roots sqrt(), parentheses and percentages. It does not solve for unknown variables — for algebra with x, use the Linear or Quadratic Equation Solver instead.
Every expression is evaluated using the standard order of operations, often remembered as PEMDAS or BODMAS. Parentheses are resolved first, then exponents and roots, then multiplication and division from left to right, and finally addition and subtraction from left to right. Applying this fixed order guarantees that everyone reaches the same answer for the same expression.
Behind the scenes the input is parsed into a structured tree of operations by a custom safe parser — no JavaScript eval or Function constructor is ever used. Each node is evaluated in precedence order, and the steps shown in the result mirror the order in which the parser actually collapses the tree, so the working you see is the working the computer performs.
Percentages are handled as decimals: "20% of 350" is read as 0.2 × 350. Roots use the sqrt() function, and the caret ^ raises a base to a power. If an expression contains unsupported characters, unbalanced parentheses or variables, the solver rejects it with a clear message rather than guessing.
Worked example
Input: 12 + 8 × 3
Multiplication before addition: 8 × 3 = 24, then 12 + 24 = 36.
Common uses
- Checking homework arithmetic
- Evaluating expressions with parentheses
- Working out percentages of a number
- Powers and square roots
Common mistakes
- Forgetting that multiplication and division come before addition and subtraction
- Using unsupported letters or variables (use the algebra tools instead)
- Leaving parentheses unbalanced
Frequently asked questions
Does this solve algebra with variables?
No. This tool evaluates numeric arithmetic. For equations with x, use the Linear or Quadratic Equation Solver.
Is it safe?
Yes. Expressions are parsed with a custom safe parser — no JavaScript eval or Function is ever used, and unsupported characters are rejected.
What does "20% of 350" return?
It converts 20% to 0.2 and multiplies by 350, giving 70.