Algebra guide
Basic Algebra Formulas (Cheat Sheet)
Bookmark the page, or press Ctrl + P (Cmd + P on a Mac) and choose “Save as PDF” to keep a printable copy for homework and exam revision.
Quick answer
Basic algebra formulas are the rules you use again and again to simplify expressions and solve equations. The ones you will need most are the exponent rules, the special products such as (a + b)2 = a2 + 2ab + b2, the difference of squares, the quadratic formula, the slope formula and the equation of a line. This cheat sheet puts every basic formula on one page, each with a short worked example.
The 10 Most Used Algebra Formulas
If you only memorize ten formulas, make it these. Each one is explained in more detail further down the page.
| Formula | Name | Use it to |
|---|---|---|
| (a + b)2 = a2 + 2ab + b2 | Square of a sum | Expand a squared bracket |
| (a − b)2 = a2 − 2ab + b2 | Square of a difference | Expand a squared bracket |
| a2 − b2 = (a + b)(a − b) | Difference of squares | Factor two squares |
| am · an = am+n | Product of powers | Multiply powers with the same base |
| (am)n = amn | Power of a power | Raise a power to a power |
| x = (−b ± √(b2 − 4ac)) ÷ 2a | Quadratic formula | Solve ax2 + bx + c = 0 |
| m = (y2 − y1) ÷ (x2 − x1) | Slope formula | Find the slope of a line |
| y = mx + b | Slope-intercept form | Write the equation of a line |
| a(b + c) = ab + ac | Distributive property | Expand or factor out a common factor |
| d = √((x2 − x1)2 + (y2 − y1)2) | Distance formula | Find the distance between two points |
Properties of Real Numbers
These properties are the reason algebra works. Every simplification you do is one of them in action.
| Property | Addition | Multiplication |
|---|---|---|
| Commutative | a + b = b + a | ab = ba |
| Associative | (a + b) + c = a + (b + c) | (ab)c = a(bc) |
| Identity | a + 0 = a | a × 1 = a |
| Inverse | a + (−a) = 0 | a × (1/a) = 1, for a ≠ 0 |
| Distributive | a(b + c) = ab + ac | |
The distributive property is the one you use most. For example, 3(x + 4) = 3x + 12, and run in reverse it factors 3x + 12 back into 3(x + 4). Remember that a minus sign in front of a bracket changes every sign inside: −(x − 5) = −x + 5.
Exponent Rules
Exponent rules apply when the base is the same. They turn long multiplications into quick additions and subtractions of the exponents.
| Rule | Formula | Example |
|---|---|---|
| Product of powers | am · an = am+n | 23 · 24 = 27 = 128 |
| Quotient of powers | am ÷ an = am−n | 56 ÷ 54 = 52 = 25 |
| Power of a power | (am)n = amn | (32)3 = 36 = 729 |
| Power of a product | (ab)n = an bn | (2x)3 = 8x3 |
| Power of a quotient | (a ÷ b)n = an ÷ bn | (x ÷ 3)2 = x2 ÷ 9 |
| Zero exponent | a0 = 1, for a ≠ 0 | 70 = 1 |
| Negative exponent | a−n = 1 ÷ an | 2−3 = 1/8 = 0.125 |
| Fractional exponent | am/n = (ⁿ√a)m | 82/3 = (∛8)2 = 4 |
Powers of 10 follow the same rules, which is why multiplying numbers in scientific notation means adding their exponents. The scientific notation calculator shows this step by step.
Special Products and Algebraic Identities
These identities are true for every value of a and b. Read left to right they expand brackets, and read right to left they factor expressions.
| Identity | Formula | Example |
|---|---|---|
| Square of a sum | (a + b)2 = a2 + 2ab + b2 | (x + 5)2 = x2 + 10x + 25 |
| Square of a difference | (a − b)2 = a2 − 2ab + b2 | (2x − 3)2 = 4x2 − 12x + 9 |
| Difference of squares | (a + b)(a − b) = a2 − b2 | (x + 4)(x − 4) = x2 − 16 |
| Cube of a sum | (a + b)3 = a3 + 3a2b + 3ab2 + b3 | (x + 1)3 = x3 + 3x2 + 3x + 1 |
| Cube of a difference | (a − b)3 = a3 − 3a2b + 3ab2 − b3 | (x − 1)3 = x3 − 3x2 + 3x − 1 |
| Sum of cubes | a3 + b3 = (a + b)(a2 − ab + b2) | x3 + 8 = (x + 2)(x2 − 2x + 4) |
| Difference of cubes | a3 − b3 = (a − b)(a2 + ab + b2) | x3 − 27 = (x − 3)(x2 + 3x + 9) |
They also make mental math fast. 1032 = (100 + 3)2 = 10,000 + 600 + 9 = 10,609, and 98 × 102 = (100 − 2)(100 + 2) = 10,000 − 4 = 9,996. For a full walkthrough of factoring with these patterns, see how to factor polynomials.
The Quadratic Formula and the Discriminant
Every quadratic equation ax2 + bx + c = 0, with a ≠ 0, can be solved with the quadratic formula:
x = (−b ± √(b2 − 4ac)) ÷ 2a
Example: solve x2 − 5x + 6 = 0. Here a = 1, b = −5 and c = 6. The discriminant is (−5)2 − 4(1)(6) = 25 − 24 = 1, and √1 = 1. So x = (5 ± 1) ÷ 2, which gives x = 3 or x = 2.
| Discriminant b2 − 4ac | Number of real solutions | What the graph does |
|---|---|---|
| Positive | Two different real solutions | Crosses the x-axis twice |
| Zero | One repeated solution | Touches the x-axis once |
| Negative | No real solutions (two complex ones) | Never meets the x-axis |
The vertex of the parabola y = ax2 + bx + c sits at x = −b ÷ 2a. For y = x2 − 5x + 6, that is x = 5 ÷ 2 = 2.5, exactly halfway between the two solutions.
Linear Equations and Lines
A linear equation has no powers above 1. Solve it by doing the same thing to both sides until x is alone. For 3x + 7 = 22, subtract 7 to get 3x = 15, then divide by 3 to get x = 5.
| Formula | What it gives | Example with (2, 3) and (6, 11) |
|---|---|---|
| m = (y2 − y1) ÷ (x2 − x1) | Slope | (11 − 3) ÷ (6 − 2) = 2 |
| y = mx + b | Slope-intercept form | y = 2x − 1 |
| y − y1 = m(x − x1) | Point-slope form | y − 3 = 2(x − 2) |
| Ax + By = C | Standard form | 2x − y = 1 |
| d = √((x2 − x1)2 + (y2 − y1)2) | Distance between points | √80 ≈ 8.94 |
| ((x1 + x2) ÷ 2, (y1 + y2) ÷ 2) | Midpoint | (4, 7) |
Parallel lines have equal slopes, and perpendicular lines have slopes that multiply to −1. The slope calculator works out the slope, equation and distance from any two points.
Inequalities and Absolute Value
Inequalities follow the same steps as equations with one important exception: when you multiply or divide both sides by a negative number, flip the inequality sign. For −2x + 5 > 11, subtract 5 to get −2x > 6, then divide by −2 and flip the sign: x < −3.
| Rule | Formula | Example |
|---|---|---|
| Add or subtract | If a < b, then a + c < b + c | x − 4 < 6 gives x < 10 |
| Multiply by a positive | If a < b and c > 0, then ac < bc | x ÷ 2 < 3 gives x < 6 |
| Multiply by a negative | If a < b and c < 0, then ac > bc | −x < 3 gives x > −3 |
| Absolute value equation | |x| = a means x = a or x = −a | |x − 3| = 5 gives x = 8 or x = −2 |
| Absolute value, less than | |x| < a means −a < x < a | |x| < 4 gives −4 < x < 4 |
| Absolute value, greater than | |x| > a means x < −a or x > a | |x| > 4 gives x < −4 or x > 4 |
Radical Rules
A radical is a root, such as a square root or cube root. These rules work for non-negative numbers under an even root.
| Rule | Formula | Example |
|---|---|---|
| Root as a power | ⁿ√a = a1/n | √9 = 91/2 = 3 |
| Product rule | √(ab) = √a · √b | √50 = √25 · √2 = 5√2 |
| Quotient rule | √(a ÷ b) = √a ÷ √b | √(9 ÷ 16) = 3/4 |
| Multiplying roots | √a · √b = √(ab) | √12 · √3 = √36 = 6 |
| Rationalizing | a ÷ √b = a√b ÷ b | 6 ÷ √3 = 6√3 ÷ 3 = 2√3 |
The square root of a negative number is not a real number. In complex numbers, i is defined so that i2 = −1, which gives √(−9) = 3i.
Logarithm Rules
A logarithm answers the question “what power gives this number?” By definition, logb(x) = y means by = x. So log₁₀(1000) = 3, because 103 = 1000.
| Rule | Formula | Example |
|---|---|---|
| Product rule | log(xy) = log x + log y | log 20 = log 2 + log 10 |
| Quotient rule | log(x ÷ y) = log x − log y | log 5 = log 10 − log 2 |
| Power rule | log(xn) = n log x | log 1000 = log 103 = 3 |
| Change of base | logb(x) = log x ÷ log b | log₃(81) = log 81 ÷ log 3 = 4 |
| Log of 1 | logb(1) = 0 | ln 1 = 0 |
| Log of the base | logb(b) = 1 | log₂(2) = 1 |
On most calculators, “log” means base 10 and “ln” means base e, about 2.71828. There is no rule for log(x + y), so do not split a log of a sum.
Fractions in Algebra
Algebraic fractions follow the same rules as number fractions, with letters in place of some numbers.
| Operation | Formula | Example |
|---|---|---|
| Add | a/b + c/d = (ad + bc) ÷ bd | 2/3 + 1/4 = 11/12 |
| Subtract | a/b − c/d = (ad − bc) ÷ bd | 3/4 − 1/6 = 7/12 |
| Multiply | a/b × c/d = ac ÷ bd | 2/3 × 9/4 = 3/2 |
| Divide | a/b ÷ c/d = a/b × d/c | 1/2 ÷ 3/4 = 2/3 |
| Cancel a common factor | ac ÷ bc = a ÷ b, for c ≠ 0 | (x2 − 9) ÷ (x + 3) = x − 3 |
Only cancel factors, never terms. In (x + 3) ÷ 3 the 3s cannot cancel, because the top is a sum. The fraction calculator checks number fractions step by step.
Everyday Algebra Formulas
Algebra shows up in money and measurement all the time. These formulas use the same rules as everything above.
| Formula | Meaning | Example |
|---|---|---|
| Percent change = (new − old) ÷ old × 100 | How much something rose or fell | 50 to 60 is a 20% increase |
| I = Prt | Simple interest | $1,000 at 5% for 3 years earns $150 |
| A = P(1 + r/n)nt | Compound interest | $1,000 at 5%, monthly, 3 years = $1,161.47 |
| d = rt | Distance, rate and time | 60 mph for 2.5 hours = 150 miles |
| (x − h)2 + (y − k)2 = r2 | Circle with center (h, k) | Center (2, −1), radius 3: (x − 2)2 + (y + 1)2 = 9 |
The percentage calculator and the compound interest calculator run the first and third formulas with every step shown. When an expression mixes several operations, follow the order of operations.
Common Algebra Mistakes
| Wrong | Right | Why |
|---|---|---|
| (a + b)2 = a2 + b2 | (a + b)2 = a2 + 2ab + b2 | The middle term 2ab is easy to forget. Try a = 1, b = 1: 4, not 2 |
| √(a + b) = √a + √b | √(a + b) stays as it is | √(9 + 16) = 5, but √9 + √16 = 7 |
| am · an = amn | am · an = am+n | Multiplying powers adds the exponents |
| −x2 = x2 when x = −3 | −x2 = −9 when x = −3 | The square applies before the minus sign |
| log(a + b) = log a + log b | log(ab) = log a + log b | The product rule is for a product, not a sum |
| Not flipping the sign | Flip the inequality sign | Needed when you multiply or divide by a negative |
Practice Problems With Answers
Use the formulas above to work each one, then check the answer.
- Expand (x + 5)2. Answer: x2 + 10x + 25.
- Simplify x3 · x5. Answer: x8.
- Simplify (2x2)3. Answer: 8x6.
- Factor 9x2 − 16. Answer: (3x + 4)(3x − 4).
- Solve 2x2 + 3x − 2 = 0. Answer: x = 1/2 or x = −2.
- Find log₂(32). Answer: 5, because 25 = 32.
- Simplify √72. Answer: 6√2, because 72 = 36 × 2.
- Solve −2x + 5 > 11. Answer: x < −3. Remember to flip the sign.
Frequently Asked Questions
What are the basic formulas of algebra?
The most important are the special products (a + b)2 = a2 + 2ab + b2, (a − b)2 = a2 − 2ab + b2 and a2 − b2 = (a + b)(a − b), the exponent rules, the quadratic formula, the slope formula and y = mx + b for a straight line.
What is the formula for (a + b)²?
(a + b)² = a² + 2ab + b². For example, (x + 5)² = x² + 10x + 25. The middle term, twice the product of a and b, is the part people most often forget.
What is the quadratic formula?
For ax² + bx + c = 0, the solutions are x = (−b ± √(b² − 4ac)) ÷ 2a. For x² − 5x + 6 = 0, it gives x = 3 or x = 2.
What are the exponent rules?
With the same base, multiplying powers adds the exponents, dividing subtracts them, and raising a power to a power multiplies them. Any nonzero number to the power 0 is 1, and a negative exponent means a reciprocal: 2−3 = 1/8.
What is the difference between an identity and an equation?
An identity is true for every value of the variables, such as (a + b)² = a² + 2ab + b². An equation is true only for certain values, such as 3x + 7 = 22, which is true only when x = 5.
When do you flip the inequality sign?
Whenever you multiply or divide both sides by a negative number. Adding or subtracting, or multiplying by a positive number, never flips it. For −2x > 6, dividing by −2 gives x < −3.
How do I remember algebra formulas?
Understand where each one comes from instead of memorizing letters. Expanding (a + b)(a + b) by hand once shows you why the 2ab appears. Then test any formula with small numbers, such as a = 1 and b = 2, to check you remember it correctly.
Can I print this algebra cheat sheet?
Yes. Press Ctrl + P on Windows or Cmd + P on a Mac, then choose “Save as PDF” or your printer. All the formula tables print on standard paper.
Key Takeaways
- The special products and the difference of squares expand brackets one way and factor them the other way.
- Exponent rules only apply to powers with the same base: multiply means add the exponents, divide means subtract.
- The quadratic formula solves every quadratic, and the discriminant tells you how many real solutions to expect.
- Slope, y = mx + b, distance and midpoint describe any straight line from two points.
- Flip an inequality sign when multiplying or dividing by a negative, and never split a root or a log of a sum.
Further reading: Paul’s Online Math Notes: Algebra and OpenStax College Algebra.
Keep learning