To evaluate a two-variable expression, substitute the assigned value for each variable separately. The two letters do not have to represent the same number.
Printable evaluating two-variable expressions practice:
PDF set 1, PDF set 2, PDF set 3, Additional practice PDF.
Online practice: Topic quiz 1, Topic quiz 2.
The short practice below has step-by-step solutions. The printable files provide additional questions.
How to use these worksheets
Use a two-column input note for x and y beside each worksheet problem. Include negative values and check a denominator before simplifying a fraction.
Write both assignments first. Substitute into every occurrence, evaluate grouped expressions and powers, then finish the arithmetic. In xy, the letters indicate multiplication.
Worked example 1
Evaluate \(3 x + 2 y\) when \(x\) = \(-2\), \(y\) = \(5\).
- Substitute the entire assigned inputs: \(3 \left(-2\right) + 2 \left(5\right)\).
- Multiply or divide: \(3 \left(-2\right) + 2 \cdot 5\) = \(-6 + 2 \cdot 5\).
- Multiply or divide: \(-6 + 2 \cdot 5\) = \(-6 + 10\).
- Add or subtract: \(-6 + 10\) = \(4\).
- The expression has value \(4\).
Worked example 2
Evaluate \(x^{2} + x y\) when \(x\) = \(-3\), \(y\) = \(2\).
- Substitute the entire assigned inputs: \(\left(-3\right) \left(2\right) + \left(-3\right)^{2}\).
- Evaluate the power or reciprocal: \(\left(-3\right) 2 + \left(-3\right)^{2}\) = \(\left(-3\right) 2 + 9\).
- Multiply or divide: \(\left(-3\right) 2 + 9\) = \(-6 + 9\).
- Add or subtract: \(-6 + 9\) = \(3\).
- The expression has value \(3\).
Common mistakes to avoid
Do not replace both variables with the first value given. A fraction with x - y in the denominator excludes x = y even if the numerator is also zero.
Short practice: try before opening the solutions
- Evaluate \(\frac{x - y}{x + y}\) when \(x\) = \(2\), \(y\) = \(-2\).
- Evaluate \(4 x - y\) when \(x\) = \(\frac{1}{2}\), \(y\) = \(-3\).
- Evaluate \(\left(x + 2 y\right)^{2}\) when \(x\) = \(1\), \(y\) = \(-2\).
Show step-by-step solutions
Practice 1
Evaluate \(\frac{x - y}{x + y}\) when \(x\) = \(2\), \(y\) = \(-2\).
- Check the original denominator \(x + y\) first.
- Substitute the entire assigned inputs: \(\left(2\right) + \left(-2\right)\).
- Add or subtract: \(2 - 2\) = \(0\).
- Division by zero is undefined, so these inputs are not allowed. There is no numerical output to round.
Practice 2
Evaluate \(4 x - y\) when \(x\) = \(\frac{1}{2}\), \(y\) = \(-3\).
- Substitute the entire assigned inputs: \(4 \left(\frac{1}{2}\right) - \left(-3\right)\).
- Multiply or divide: \(4 \cdot \frac{1}{2} - \left(-3\right)\) = \(2 - \left(-3\right)\).
- Multiply or divide: \(2 - \left(-3\right)\) = \(2 + 3\).
- Add or subtract: \(2 + 3\) = \(5\).
- The expression has value \(5\).
Practice 3
Evaluate \(\left(x + 2 y\right)^{2}\) when \(x\) = \(1\), \(y\) = \(-2\).
- Substitute the entire assigned inputs: \(\left(\left(1\right) + 2 \left(-2\right)\right)^{2}\).
- Multiply or divide: \(\left(1 + 2 \left(-2\right)\right)^{2}\) = \(\left(1 - 4\right)^{2}\).
- Add or subtract: \(\left(1 - 4\right)^{2}\) = \(\left(-3\right)^{2}\).
- Evaluate the power or reciprocal: \(\left(-3\right)^{2}\) = \(9\).
- The expression has value \(9\).
Related skills and resources
- How to Evaluate Two Variables
- Evaluating One Variable worksheets
- Expressions and Variables worksheets
- The Distributive Property worksheets
- Simplifying Polynomial Expressions worksheets
- Combining like Terms worksheets
- Simplifying Variable Expressions worksheets
- Translate Phrases into an Algebraic Statement worksheets

