BASIC ALGEBRA FORMULAS (CHEAT SHEET)

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.

Updated

10 min read

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.

FormulaNameUse it to
(a + b)2 = a2 + 2ab + b2Square of a sumExpand a squared bracket
(a − b)2 = a2 − 2ab + b2Square of a differenceExpand a squared bracket
a2 − b2 = (a + b)(a − b)Difference of squaresFactor two squares
am · an = am+nProduct of powersMultiply powers with the same base
(am)n = amnPower of a powerRaise a power to a power
x = (−b ± √(b2 − 4ac)) ÷ 2aQuadratic formulaSolve ax2 + bx + c = 0
m = (y2 − y1) ÷ (x2 − x1)Slope formulaFind the slope of a line
y = mx + bSlope-intercept formWrite the equation of a line
a(b + c) = ab + acDistributive propertyExpand or factor out a common factor
d = √((x2 − x1)2 + (y2 − y1)2)Distance formulaFind 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.

PropertyAdditionMultiplication
Commutativea + b = b + aab = ba
Associative(a + b) + c = a + (b + c)(ab)c = a(bc)
Identitya + 0 = aa × 1 = a
Inversea + (−a) = 0a × (1/a) = 1, for a ≠ 0
Distributivea(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.

RuleFormulaExample
Product of powersam · an = am+n23 · 24 = 27 = 128
Quotient of powersam ÷ an = am−n56 ÷ 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 exponenta0 = 1, for a ≠ 070 = 1
Negative exponenta−n = 1 ÷ an2−3 = 1/8 = 0.125
Fractional exponentam/n = (ⁿ√a)m82/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.

IdentityFormulaExample
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 cubesa3 + b3 = (a + b)(a2 − ab + b2)x3 + 8 = (x + 2)(x2 − 2x + 4)
Difference of cubesa3 − 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 − 4acNumber of real solutionsWhat the graph does
PositiveTwo different real solutionsCrosses the x-axis twice
ZeroOne repeated solutionTouches the x-axis once
NegativeNo 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.

FormulaWhat it givesExample with (2, 3) and (6, 11)
m = (y2 − y1) ÷ (x2 − x1)Slope(11 − 3) ÷ (6 − 2) = 2
y = mx + bSlope-intercept formy = 2x − 1
y − y1 = m(x − x1)Point-slope formy − 3 = 2(x − 2)
Ax + By = CStandard form2x − 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.

RuleFormulaExample
Add or subtractIf a < b, then a + c < b + cx − 4 < 6 gives x < 10
Multiply by a positiveIf a < b and c > 0, then ac < bcx ÷ 2 < 3 gives x < 6
Multiply by a negativeIf 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.

RuleFormulaExample
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
Rationalizinga ÷ √b = a√b ÷ b6 ÷ √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.

RuleFormulaExample
Product rulelog(xy) = log x + log ylog 20 = log 2 + log 10
Quotient rulelog(x ÷ y) = log x − log ylog 5 = log 10 − log 2
Power rulelog(xn) = n log xlog 1000 = log 103 = 3
Change of baselogb(x) = log x ÷ log blog₃(81) = log 81 ÷ log 3 = 4
Log of 1logb(1) = 0ln 1 = 0
Log of the baselogb(b) = 1log₂(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.

OperationFormulaExample
Adda/b + c/d = (ad + bc) ÷ bd2/3 + 1/4 = 11/12
Subtracta/b − c/d = (ad − bc) ÷ bd3/4 − 1/6 = 7/12
Multiplya/b × c/d = ac ÷ bd2/3 × 9/4 = 3/2
Dividea/b ÷ c/d = a/b × d/c1/2 ÷ 3/4 = 2/3
Cancel a common factorac ÷ 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.

FormulaMeaningExample
Percent change = (new − old) ÷ old × 100How much something rose or fell50 to 60 is a 20% increase
I = PrtSimple interest$1,000 at 5% for 3 years earns $150
A = P(1 + r/n)ntCompound interest$1,000 at 5%, monthly, 3 years = $1,161.47
d = rtDistance, rate and time60 mph for 2.5 hours = 150 miles
(x − h)2 + (y − k)2 = r2Circle 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

WrongRightWhy
(a + b)2 = a2 + b2(a + b)2 = a2 + 2ab + b2The 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 = amnam · an = am+nMultiplying powers adds the exponents
−x2 = x2 when x = −3−x2 = −9 when x = −3The square applies before the minus sign
log(a + b) = log a + log blog(ab) = log a + log bThe product rule is for a product, not a sum
Not flipping the signFlip the inequality signNeeded when you multiply or divide by a negative

Practice Problems With Answers

Use the formulas above to work each one, then check the answer.

  1. Expand (x + 5)2. Answer: x2 + 10x + 25.
  2. Simplify x3 · x5. Answer: x8.
  3. Simplify (2x2)3. Answer: 8x6.
  4. Factor 9x2 − 16. Answer: (3x + 4)(3x − 4).
  5. Solve 2x2 + 3x − 2 = 0. Answer: x = 1/2 or x = −2.
  6. Find log₂(32). Answer: 5, because 25 = 32.
  7. Simplify √72. Answer: 6√2, because 72 = 36 × 2.
  8. 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.

About the author