Free Algebra Solver
Evaluate

Evaluate the Expression Calculator

Write the expression, then @ and the value, like 2x² + 3x − 1 @ x = 4. Each term is worked out in order.

Preview 2x^2 + 3x - 1 @ x = 4 (Evaluate) Ready
Examples
Solution

Worked example: 2x^2 + 3x - 1 @ x = 4

Worked example. Edit the problem above and press Evaluate to solve your own.

Problem2x^2 + 3x - 1 @ x = 4
  1. Identify the expression and assigned value

    Keep the expression unchanged and record the exact value that replaces x.

    2x² + 3x − 1
    Expression
    x = 4
    Assigned value

    Parentheses around the substituted value protect negative signs and fractions.

  2. Substitute, evaluate powers, and combine

    Evaluate powers before multiplication, then add the signed term values.

    2(4)² + 3(4) − 1
    Replace every x with 4
    2 × (4)^2 = 32
    Evaluate the degree-2 term
    3 × (4)^1 = 12
    Evaluate the degree-1 term
    −1 × (4)^0 = −1
    Constant term
    43
    Add the evaluated terms

    Direct exact substitution provides an independent value check for the parsed polynomial.

Answer43

Evaluating guide

Evaluate expression calculator: plug in a value and find the answer

Give the evaluate expression calculator an expression and a value, like 2x^2 + 3x - 1 @ x = 4. It substitutes the value and works out the result, showing every step. The guide covers how to evaluate expressions by hand.

How do you evaluate an expression?

To evaluate an expression, replace the variable with the given number, put that number in parentheses, and follow the order of operations: powers first, then multiplication, then addition and subtraction. For example, 2x² + 3x − 1 at x = 4 is 2(16) + 12 − 1 = 43.

How do you evaluate expressions step by step?

Substitute, then calculate in order. Write each substitution in parentheses so signs and powers apply to the whole value.

  1. Rewrite the expression with the number in place of the variable, inside parentheses. Copy every other part exactly as it was.
  2. Work out any powers.
  3. Do multiplication and division from left to right.
  4. Finish with addition and subtraction from left to right.

Worked example: 2x² + 3x − 1 at x = 4

The value is 43. Square first, then multiply, then add and subtract.

Substitute
2(4)² + 3(4) − 1
Powers
2(16) + 3(4) − 1
Multiply
32 + 12 − 1
Add and subtract
43

In the calculator, type this as 2x^2 + 3x - 1 @ x = 4. The @ sign separates the expression from the value.

Why do you need parentheses when you plug in a negative number?

Without parentheses, the power applies only to the digit and you lose the negative sign. (−3)² is 9, but −3² is −9.

Take x³ − 2x at x = −3. With parentheses it reads (−3)³ − 2(−3). The cube is −27 and −2 × −3 is +6, so the result is −27 + 6 = −21.

Substitute
(−3)³ − 2(−3)
Power and multiply
−27 + 6
Result
−21

One more to watch: x² + 4x + 4 at x = −5 is 25 − 20 + 4 = 9. An even power of a negative is positive; an odd power stays negative.

What order of operations do you use when evaluating?

Use PEMDAS: parentheses, exponents, multiplication and division, then addition and subtraction. Multiplication and division share a level, as do addition and subtraction, and you go left to right within each.

ExpressionValueWhy
3x² at x = −212Square first: 3 × 4
−x² at x = 3−9Square 3, then apply the minus
3(x + 4) at x = 218Bracket first: 3 × 6
x² − 3x + 2 at x = −161 + 3 + 2

The second row trips up many students. In −x², the power belongs to x only, so you square 3 and then make it negative.

Brackets in the expression change the order. In 3(x + 4) you add first because the bracket comes first, then multiply. If you multiplied 3 by x alone, you'd get 3(2) + 4 = 10 instead of 18.

How do you evaluate an expression with a fraction?

Substitute the fraction in parentheses and use fraction arithmetic. For 5a − 7 at a = 1/2, you get 5(1/2) − 7 = 5/2 − 14/2 = −9/2.

The calculator keeps fractions exact, so it returns −9/2 and not −4.5. Type it as 5a - 7 @ a = 1/2. Decimals work as well: 4x − 2 at x = 0.5 gives 0.

A fraction bar in the expression itself is a division. For x/2 + 3 at x = 4, divide first to get 2, then add 3 for a final value of 5.

What does f(4) mean, and how do you find it?

f(4) means the value of the function f when x is 4. You find it by evaluating the rule for f at x = 4, which is exactly what this page does.

Read f(4) as "f of 4". It does not mean f times 4. The letter f is the name of the rule, and the number in the parentheses is the input you plug in.

If f(x) = x² − 5x + 6, then f(4) = 16 − 20 + 6 = 2. To get this from the calculator, type only the right side with the value: x^2 - 5x + 6 @ x = 4.

How do you make a table of values by evaluating?

Evaluate the same expression at several x values and list the results. That table is what you plot when you graph by hand.

Here is x² − 5x + 6 for x from 0 to 4. Each row is one evaluation.

xx² − 5x + 6
x = 06
x = 12
x = 20
x = 30
x = 42

The two zeros at x = 2 and x = 3 are where the graph crosses the x-axis. They are also the solutions of x² − 5x + 6 = 0, so evaluating can confirm the zeros a solver gives you.

What mistakes should you avoid when plugging in values?

Leaving out the parentheses around a negative is the big one. Another is multiplying before squaring: 2x² at x = 4 is 2 × 16 = 32, not 8² = 64.

Also watch implied multiplication. 3x at x = 4 is 3 × 4 = 12, not 34. Writing 3(4) instead of 34 keeps that straight.

Frequently asked questions

Short answers to the questions people ask most about this topic.

What is a plug in calculator?

It is a tool where you plug in a number for the variable and get the value of the expression. This one shows the substituted line, then each order-of-operations step.

Is the evaluate the expression calculator the same as a substitution calculator?

Yes, for a single variable. Evaluating means substituting a value and simplifying. Substitution in a system of equations is a different method; for that, use the system of equations calculator.

How do I type a function like f(x) into the calculator?

Enter only the rule and the value, without the f(x) = part. For f(x) = x² − 5x + 6 and f(4), type x^2 - 5x + 6 @ x = 4 and you get 2.

Can I evaluate an expression with two variables?

Not with this calculator, which takes one variable at a time. You can substitute one value yourself first and enter the rest, or work it by hand.

How do I check if a value is a solution to an equation?

Evaluate both sides at that value. If the two sides are equal, it is a solution. Say you solved 3(x − 4) + 2x = 13 and got x = 5: the left side becomes 3(1) + 10 = 13, which matches. This check catches most sign errors before you hand in your work.

What is the difference between evaluating and simplifying?

Simplifying rewrites an expression in a shorter form and still has x in it. Evaluating replaces x with a number, so the result is a single number. You can simplify first to make the arithmetic easier, and the value comes out the same.

Why did I get a different answer from my calculator app?

Usually a missing parenthesis around a negative. Typing −3^2 into many apps gives −9, while (−3)^2 gives 9. Put negative values in brackets.

Does the evaluate expression calculator give exact answers?

Yes. Whole numbers and fractions stay exact, so a result like −9/2 is shown as a fraction. You can convert it with the fraction to decimal calculator if you need −4.5.

Math keypad

Evaluate mode

Use the keypad below or tap the expression to use your phone keyboard.

Keyboard tips

Ctrl + Enter
Run the selected operation
a/b key
Select part of the problem first to wrap it in a fraction, root, power, or bars
sin(30)
Scientific functions work in Calculate mode; angles are in degrees unless you use π
^
Enter a power, such as x^2
sqrt(
Calculate an exact or simplified square root
a:b
Separate quantities in a ratio
12, 18
Separate integers in an LCM and GCD calculation
@ x =
Assign x when evaluating an expression
y =
Enter a polynomial function to graph
|
Wrap an absolute-value expression