Basic Algebra Formulas with Examples

Review basic algebra formulas for expanding brackets, squares of sums and differences, and linear equations. Each rule includes a worked example.

Try this method with your own numbers.Use the linear equation solver with steps

The distributive property

Multiply the outside factor by every term inside the brackets. This works in reverse when you factor an expression.

a(b + c) = ab + ac. For example, 3(x + 4) = 3x + 12.

Squares of sums and differences

Squaring brackets means multiplying them by themselves. Include the middle term from both cross-products.

(a + b)² = a² + 2ab + b²; (a − b)² = a² − 2ab + b².

Solve a linear equation

For ax + b = c with a ≠ 0, subtract b from both sides and divide both sides by a.

4x + 3 = 19 → 4x = 16 → x = 4.

Work backward through an equation

For 3(x + 2) = 21, divide both sides by 3 before subtracting 2. This reverses the order in which the operations were applied to x. Each operation affects both sides, so equality is preserved.

3(x + 2) = 21 → x + 2 = 7 → x = 5

A second method: expand first

Distribute 3 to every term to get 3x + 6 = 21. Subtract 6 from both sides, then divide by 3. This route reaches the same solution and provides an opportunity to check the expansion rule.

3x + 6 = 21 → 3x = 15 → x = 5; check: 3(5 + 2) = 21

Solve and check your own linear equation

The starting equation matches this guide. Edit it to immediately update the algebra steps and substitution check. Use one variable x to the first power.

Change the example values

Solution for x

x = 4

Decimal value of x: 4 (rounded to 12 significant digits).

Step by step

  1. Expand brackets and combine like terms on each side4x + 3 = 19
  2. Subtract (0)x from both sides4x + 3 = 19
  3. Subtract (3) from both sides4x = 16
  4. Divide both sides by 4x = (16) / (4) = 4
  5. Check by substituting x = 4 into both sides19 = 19
Use the linear equation solver with steps

Common mistakes to avoid

Omitting the middle term of a square
(x + 3)² is x² + 6x + 9. The product contains two cross-terms, each equal to 3x.
Dividing by a coefficient that might be zero
The formula x = (c − b)/a assumes a ≠ 0. When a is zero, check whether the remaining statement is true or false.

Check your understanding

Try these questions, then compare your reasoning with the worked answers.

01Solve 4x + 3 = 19.

Show answer & reasoning

x = 4 — Subtract 3 to obtain 4x = 16, then divide by 4.

02Which expansion of (x + 3)² is correct?

Show answer & reasoning

x² + 6x + 9 — Multiply (x + 3)(x + 3): the two 3x terms add to 6x.

Sources & further reading

These textbook sections explain the rules used in this guide. The worked examples and practice questions here are published by CalcSolver.

Written and maintained by CalcSolver. See our math checking and correction policy for how examples, rounding and input limits are handled.

Found a mistake? Report a correction on GitHub ↗. The draft includes this page’s address. A GitHub account is required, and submitted reports are public.