Pre Algebra

Variables and Algebraic Expressions

Last updated: March 2026 · Beginner
Before you start

You should be comfortable with:

Real-world applications
πŸ’°
Retail & Finance

Discounts, tax, tips, profit margins

πŸ’Š
Nursing

Medication dosages, IV drip rates, vital monitoring

Up to this point, every math problem you have worked with contained only specific numbers. Algebra introduces a powerful new idea: using letters to stand for numbers we do not know yet. These letters are called variables, and they let us write general rules and solve problems where information is missing.

What Is a Variable?

A variable is a letter β€” most often xx, yy, or nn β€” that represents a number whose value can change or is not yet known. Think of it as a blank space in a sentence that you plan to fill in later.

For example, if a store charges $8 per item, the total cost for nn items is:

TotalΒ cost=8Γ—n\text{Total cost} = 8 \times n

We do not know how many items the customer will buy, so nn is a variable. Once the customer brings 5 items to the counter, we substitute n=5n = 5 and get 8Γ—5=408 \times 5 = 40.

Algebraic Expressions vs. Numeric Expressions

A numeric expression contains only numbers and operations:

3+7Γ—23 + 7 \times 2

An algebraic expression contains at least one variable:

3+7x3 + 7x

Both follow the same order of operations rules, but an algebraic expression cannot be reduced to a single number until every variable has a known value.

The Vocabulary: Terms, Coefficients, and Constants

Every algebraic expression is built from terms joined by addition or subtraction.

Consider the expression:

5x+3yβˆ’95x + 3y - 9

PartNameExplanation
5x5xTerm with variable55 is the coefficient, xx is the variable
3y3yTerm with variable33 is the coefficient, yy is the variable
βˆ’9-9Constant termA number with no variable attached

Coefficients

A coefficient is the number multiplied by a variable. If no number is written, the coefficient is 11:

x=1β‹…xx = 1 \cdot x

Similarly, βˆ’y-y has a coefficient of βˆ’1-1.

Constants

A constant is a term with no variable. Constants keep the same value no matter what the variables equal.

Example 1: Identify the parts of 4aβˆ’7b+124a - 7b + 12

TermCoefficientVariableConstant?
4a4a44aaNo
βˆ’7b-7bβˆ’7-7bbNo
1212β€”β€”Yes

There are three terms. Two have variables; one is a constant.

Example 2: Identify the parts of βˆ’m+6-m + 6

TermCoefficientVariableConstant?
βˆ’m-mβˆ’1-1mmNo
66β€”β€”Yes

The coefficient of mm is βˆ’1-1, not 11.

Writing Expressions from Word Descriptions

One of the most practical skills in algebra is turning a word description into a mathematical expression.

Example 3: β€œFive more than a number”

Let nn represent the unknown number.

n+5n + 5

Example 4: β€œThree times a number, decreased by two”

3nβˆ’23n - 2

Example 5: β€œThe quotient of a number and four, increased by seven”

n4+7\frac{n}{4} + 7

Notice that the order matters. β€œFive more than a number” gives n+5n + 5, while β€œfive less than a number” gives nβˆ’5n - 5.

Expression vs. Equation

An expression is a phrase β€” it has no equals sign:

2x+72x + 7

An equation is a complete sentence β€” it says two things are equal:

2x+7=152x + 7 = 15

Expressions are simplified. Equations are solved. This distinction matters throughout all of algebra.

Multiplication Conventions in Algebra

Algebra uses shorthand to keep things clean:

Written formMeaning
5x5x5Γ—x5 \times x
xyxyxΓ—yx \times y
3(x+2)3(x + 2)3Γ—(x+2)3 \times (x + 2)

The multiplication sign (Γ—\times) is almost never written between a number and a variable or between two variables, because it could be confused with the letter xx.

Real-World Application: Retail β€” Calculating a Discounted Total

A retail associate needs to calculate the final price for a customer buying nn shirts at $24 each with a $10 coupon applied to the total. The algebraic expression for the total is:

24nβˆ’1024n - 10

If the customer buys n=3n = 3 shirts:

24(3)βˆ’10=72βˆ’10=6224(3) - 10 = 72 - 10 = 62

The total is $62. Notice how the expression lets the associate handle any number of shirts β€” just substitute the new value for nn.

Real-World Application: Nursing β€” IV Drip Rate Expression

A nurse uses the formula for IV flow rate:

Rate=VΓ—dt\text{Rate} = \frac{V \times d}{t}

where VV is the volume in mL, dd is the drop factor (drops per mL), and tt is the time in minutes. This is an algebraic expression with three variables. Once the specific prescription values are known, the nurse substitutes them to find the drip rate in drops per minute.

Common Mistakes to Avoid

  1. Forgetting the invisible coefficient of 1. The expression xx means 1β‹…x1 \cdot x, and βˆ’x-x means βˆ’1β‹…x-1 \cdot x. When combining like terms later, this distinction is essential.

  2. Confusing terms and factors. Terms are separated by ++ or βˆ’- signs. Factors are things being multiplied within a single term. In 3xy3xy, the term is 3xy3xy, and its factors are 33, xx, and yy.

  3. Misreading subtraction order. β€œTen less than a number” is nβˆ’10n - 10, not 10βˆ’n10 - n. The phrase β€œless than” reverses the order compared to how you read it.

  4. Assuming an expression equals something. An expression like 4x+14x + 1 does not equal a specific value. It is not an equation until you write an equals sign and a second side.

Practice Problems

Test your understanding with these problems. Click to reveal each answer.

Problem 1: Identify the coefficient, variable, and any constants in the expression 8mβˆ’38m - 3.
  • Term 8m8m: coefficient is 88, variable is mm
  • Term βˆ’3-3: constant (no variable)

Answer: Coefficient = 8, variable = mm, constant = βˆ’3-3

Problem 2: Write an algebraic expression for β€œsix times a number, plus eleven.”

Let nn represent the unknown number.

6n+116n + 11

Answer: 6n+116n + 11

Problem 3: How many terms does the expression 2a+5bβˆ’c+42a + 5b - c + 4 have? Identify each term.

Count the parts separated by ++ or βˆ’-:

  • 2a2a, 5b5b, βˆ’c-c, 44

Answer: Four terms β€” 2a2a, 5b5b, βˆ’c-c, and 44

Problem 4: Is 7xβˆ’37x - 3 an expression or an equation?

There is no equals sign, so it is an expression.

Answer: Expression

Problem 5: Write an expression for β€œthe product of a number and nine, decreased by the number itself.”

Let nn represent the number.

9nβˆ’n9n - n

This could also be simplified to 8n8n, but both forms are correct answers.

Answer: 9nβˆ’n9n - n (or equivalently, 8n8n)

Problem 6: A store sells notebooks for $4 each and pens for $2 each. Write an expression for the total cost of nn notebooks and pp pens.

4n+2p4n + 2p

Answer: 4n+2p4n + 2p

Key Takeaways

  • A variable is a letter that represents an unknown or changing number
  • An algebraic expression contains at least one variable, while a numeric expression has only numbers
  • Terms are the building blocks of expressions, separated by addition or subtraction
  • The coefficient is the number multiplying a variable; a constant has no variable
  • An expression has no equals sign β€” it is simplified, not solved
  • An equation has an equals sign β€” it states that two expressions are equal
  • Converting word descriptions into algebraic expressions is a foundational skill for all of algebra

Return to Pre-Algebra for more topics in this section.

Last updated: March 29, 2026