What is a Variable?
The single most important idea in all of algebra — and simpler than you think.
The Big Idea
Before you can solve a single equation, you need to understand what algebra actually is. Algebra is the mathematics of unknowns — a tool for describing relationships and finding missing values. And the key that makes all of it possible is a single idea: the variable.
A variable is a symbol — almost always a letter — that stands in place of a number we either don’t know yet, or a number that can change. That’s it. One letter, standing in for a number.
You’ve been working with the concept of variables your entire life without realising it. Every time you’ve asked “how much do I still need?” or “what’s the missing piece?” — that missing piece was a variable.
Imagine a box sitting on a table. You know the box contains some number of items, but you can’t see inside. In everyday language you’d say “some number of items.” In algebra, you give that mystery number a name — you call it x. The box is x. When you eventually open the box and count 7 items, you’ve solved for x. x = 7.
Letters let us write general rules that work for any number, not just one specific case. Consider this fact about numbers: any number plus zero equals itself. You could write that for specific cases forever:
Or, with a variable, we write it once and cover every possible number simultaneously:
This is the power of variables — they let us make statements about all numbers at once.
Common Variables & Their ConventionsAny letter works as a variable, but mathematics has developed conventions — informal rules — about which letters tend to be used in which contexts. Knowing these makes reading algebra much less confusing.
| Variable | Typical Use | Example |
|---|---|---|
| x, y, z | General unknowns — the most common in equations | Solve for x in: x + 5 = 12 |
| a, b, c | Constants or coefficients (numbers attached to variables) | ax² + bx + c = 0 (the quadratic formula) |
| n, k | Counting numbers — whole number quantities | “n objects in the sequence” |
| t | Time | Distance = speed × t |
| r | Rate or radius | Interest = principal × r |
| P, V, T | Physical quantities (Pressure, Volume, Temperature) | PV = nRT (ideal gas law) |
Two types of quantities exist in algebra. It’s essential to distinguish them from the very start.
In the expression 2x + 5, the 2 and 5 are constants (fixed values), while x is the variable (the unknown).
Variables That Change — Not Just UnknownsSo far we’ve talked about variables as unknowns we need to find. But variables can also represent quantities that naturally vary — values that change depending on the situation. Consider the cost of buying apples:
If you buy 1 apple: Cost = 3 × 1 = R3. If you buy 4: Cost = 3 × 4 = R12. The variable n takes different values in different situations. This is the idea behind functions, which we’ll reach in Lesson 39.
Worked ExamplesIn each expression, identify the variable(s) and the constants.
Assign a variable to represent the unknown quantity in each sentence.
12 → constant (it is a fixed, known value)
π → constant (≈ 3.14159… — it never changes, even though it looks like a letter)
(b) Constant (standing alone): −4
(c) The number attached to y is 7 (this is called the coefficient — we’ll cover it fully in Lesson 2)
Constants: 3 (attached to a), 2 (attached to b), 1 (attached to c — hidden, means “one c”), 10 (standalone)
Expression: 5n (or 5 × n — in algebra we usually drop the × sign) Any letter works here. 5x, 5k, 5t — all equally correct.
h is the variable (changes based on how long you park). 15 is the constant (fixed rate).
x here represents an unknown spending amount. The expression models a real situation using a variable.
- A variable is a letter that represents an unknown or changing number
- A constant is a fixed, known value that does not change
- Variables allow us to write rules that apply to all numbers simultaneously
- Any letter can be a variable — the convention depends on the context
- Variables can represent unknowns to solve for, or quantities that naturally vary
- Writing an expression is the first step to translating real-world problems into algebra