Evaluating Expressions Calculator
This evaluating expressions calculator puts a value in for each letter and shows every operation that follows, one at a time.
Type 3x^2 + 2x - 5, x = 4 and the first line back is 3(4)² + 2(4) − 5 — brackets and all — before anything is worked out.
To evaluate an expression is simply to find what it comes to once you know the letters. No solving, no rearranging, no tidying up.
Two Moves, and Only Two
Evaluating algebraic expressions is two moves, and only two. Substituting values into an expression means exactly that — replace each letter with the number you were given. Then work out what is left, obeying brackets, powers, times and divide, plus and minus, in that order.
The first move is where the marks go missing, and it goes missing for one reason.
The Brackets Are Not Optional
Substitute x = −3 into 2x. Written properly it is 2(−3) = −6. Written without the brackets it becomes 2 − 3 = −1, which is a different question with a different answer.
That is why every teacher says the same thing: put brackets round the number as it goes in. It costs nothing when the value is positive and it saves you every time it is negative.
This page does it for you on every substitution, positive or not, so you can see the habit rather than be told about it.
x² and −x² Are Not the Same Thing
Here is the one that catches almost everybody. Take x = −5.
| Expression | What it becomes | Value |
|---|---|---|
| x² | (−5)² | 25 |
| −x² | −(−5)² | −25 |
| 2x | 2(−5) | −10 |
| 5 − x | 5 − (−5) | 10 |
Same letter, same value, opposite answers in the first two rows. The square attaches to the −5 in one and to the 5 alone in the other, and the minus is applied afterwards. Nothing but the brackets tells them apart.
Try both in the calculator above and watch where the brackets land.
Worked Through, Line by Line
Take 3x² + 2x − 5 at x = 4. Most tools hand back 51 and stop. Here is what actually happens:
3(4)² + 2(4) − 5
= 3(16) + 2(4) − 5 the power first
= 48 + 8 − 5 then the two multiplications
= 51 then add and subtract, left to right
Four lines, and every one of them is a line you would be expected to write. The answer on its own teaches nothing; the middle two are the work.
The One Line Most Students Never Write
Ask any teacher which line loses the most marks in this topic and you will hear the same answer. It is not the arithmetic.
It is the substitution line — or rather, the fact that most students never write one. They read 3x² + 2x − 5, think "x is 4", and start calculating in their head. Somewhere between the square and the second term a sign slips, and there is nothing on the page to check against. Write 3(4)² + 2(4) − 5 first and the mistake has nowhere to hide, because every subsequent line has something to be compared with.
That single habit is worth more than any calculator.
An Exponent Attaches to Exactly One Thing
Look at 3x² again with x = 4. The square belongs to the x, not to the 3.
So it is 3(16) = 48, never (12)² = 144. Written out with the brackets in place this is obvious; done in your head it is a coin toss. The same rule is what makes −x² and (−x)² different, and it is why this page prints the power step on its own line rather than folding it in with the multiplication.
More Than One Letter
Add another comma. 3x + 2y, x = 4, y = -1 becomes 3(4) + 2(−1) = 12 − 2 = 10.
Give a value for a letter that is not in the expression and the page says so rather than quietly ignoring it — a mismatch there usually means you copied the wrong line.
Miss a letter out and it says that too, and names the one it is waiting for. Neither case is treated as a guess. A calculator that silently assumes an unstated value is worse than one that stops, because you find out at the bottom of the page rather than the top.
Fractions Stay Fractions
x/2 + 1 at x = 7 is 9/2. Not 4.5.
They are the same number, but 9/2 is exact and 4.5 is a decimal that happens to terminate. Plenty do not. Evaluate 1/x at x = 3 and the honest answer is 1/3 — write 0.333 and you have already lost something, and if that value feeds into the next line the loss compounds quietly.
This page keeps the fraction, and shows the decimal underneath so you have both.
An Expression Is Not an Equation
3x + 5 has no equals sign. There is nothing to solve and no x to find — you are given x and asked what the whole thing comes to.
That confusion is common and understandable, because algebra is usually taught through equations first. If your line does have an equals sign and an unknown, the linear equation calculator is the page you want. If it is a formula you need to turn round rather than evaluate, that is the literal equation calculator.
How to Use This Evaluating Expressions Calculator
Write the expression, then a comma, then the value: 3x^2 + 2x - 5, x = 4. Use ^ for a power, and a number in front of a bracket multiplies on its own, so 2(x+1) needs no times sign. Negative values are typed as you would say them: x = -3.
The pad carries x and y; for any other letter tap My keyboard and type it. Fractions can go in as values too — x = 1/2 works and stays exact.
Evaluating Expressions Calculator FAQ
What does it mean to evaluate an expression?
Why do I need brackets round the substituted number?
Why is x² positive when x is negative?
Then why is −x² negative?
What order do the operations go in?
Can I evaluate with two or three letters?
Should I round the answer?
Is evaluating the same as simplifying?
Two moves, in this order: put the numbers in with their brackets, then obey the order of operations. Skip the brackets and the second move cannot save you.