Variables and Algebraic Expressions

Learn what variables are and how to write, read, and evaluate algebraic expressions.

Intermediate25 minLesson

Definition

A variable is a letter (like , , or ) that represents an unknown number or a number that can change.
An algebraic expression is a mathematical phrase that combines:
  • Numbers (constants like , , )
  • Variables (letters like , , )
  • Operations (like , , , )
Examples of algebraic expressions:
Unlike equations, expressions do not have an equals sign.

Try it now

Which of the following is a variable?

Worked Examples

Write an algebraic expression for: "five more than a number"

1

Choose a variable for the unknown number

Let represent the unknown numberVariable:

2

Identify the operation

"More than" means additionOperation:

3

Write the expression

Five more than means

Common Mistakes

Writing as instead of

Why it's wrong: In algebra, when a number is written next to a variable without a sign, it means multiplication. means "3 times ", not "3 plus ".

Correct: . So if , then (not ).

Forgetting order of operations when evaluating

Why it's wrong: When substituting values, you must still follow PEMDAS/BODMAS. Multiplication comes before addition.

Correct: For with : First , then .

Using the same variable for different unknowns

Why it's wrong: If you have two different unknown quantities, they need different variables.

Correct: If age and height are both unknown, use for age and for height, not for both.

Interactive Visual

Balance Scale

x + 3=7
x
3
7
Apply to both sides:

Solution: x = 4

Interactive Sandbox

Expression Calculator

Try these:

History

No calculations yet

Practice Problems

15 problems
Problem 1 of 15
Easy

Which of the following is a variable?

Why It Matters

Variables and expressions are the foundation of algebra and appear everywhere:
  • Formulas: The area of a rectangle is (length times width)
  • Real life: If a movie ticket costs 12 dollars, the cost for people is dollars
  • Science: Distance equals speed times time:
  • Computer programming: Variables store changing values in every program
Once you understand variables, you can describe patterns, solve problems, and create formulas that work for ANY numbers!

Real World Applications

Shopping and Discounts

Stores use expressions to calculate prices. If jeans cost 40 dollars and shirts cost $s$ dollars each, buying 2 shirts with jeans costs $40 + 2s$ dollars.

Example:

If shirts are 25 dollars each: dollars total.

1Try It Yourself

A pizza shop charges 12 dollars for a pizza plus 2 dollars per topping.

Write an expression for the cost with toppings, then find the cost of a pizza with 5 toppings.

Step 1: Write the mathematical expression

Cost = base price + (price per topping × number of toppings):

Distance and Travel

If you drive at $s$ kilometers per hour for $t$ hours, you travel $s \times t$ kilometers.

Example:

Driving at 60 km/h for 3 hours: km.

2Try It Yourself

A train travels at 80 kilometers per hour.

Write an expression for the distance after hours, then find how far it goes in 4 hours.

Step 1: Write the mathematical expression

Distance = speed × time:

Savings and Money

Expressions help track money over time. If you have 50 euros and save $w$ euros each week, after one week you have $50 + w$ euros.

Example:

Saving 15€ per week: After 1 week: .

3Try It Yourself

You have 100€ and spend 8€ each day on lunch.

Write an expression for the money left after days.

Step 1: Write the mathematical expression

Money left = starting amount - (daily spending × days):

Key Takeaways

  • 1A variable is a letter representing an unknown or changing number
  • 2An algebraic expression combines numbers, variables, and operations (no equals sign)
  • 3When a number is next to a variable (like ), it means multiplication:
  • 4To evaluate an expression, substitute values for variables and calculate
  • 5Always follow order of operations (PEMDAS) when evaluating

Frequently Asked Questions

Letters are clearer and allow us to write rules. For example, tells us exactly how to find area, while "Area = ___ times ___" is ambiguous.
Letters are clearer and allow us to write rules. For example, tells us exactly how to find area, while "Area = ___ times ___" is ambiguous.
Usually no, but some letters have common meanings: for unknowns, for time, for distance, for number of items. Choose letters that make sense for your problem.
An expression is a mathematical phrase without an equals sign (like ). An equation has an equals sign and shows two things are equal (like ).

Glossary

Variable
A letter that represents an unknown or changing number (e.g., , , )
Algebraic expression
A combination of numbers, variables, and operations without an equals sign
Constant
A number that does not change (e.g., , , )
Coefficient
The number multiplied by a variable (in , the coefficient is )
Term
A single part of an expression separated by or (in , the terms are and )
Evaluate
To find the value of an expression by substituting numbers for variables

More in This Topic