Resources · Education
What Is a Variable in Math?
A variable is a symbol, usually a letter, standing in for a value that can change or is not yet known. In 5x + 3 the variable is x. This guide covers why letters are used at all, how a variable differs from a constant, the independent and dependent pair, and the conventions that decide which letter gets used where. The simplify calculator works with expressions in any variable.
6 min read
What is a variable in math?
A variable is a symbol, usually a letter, standing in for a value that can change or is not yet known. In 5x + 3 the variable is x.
The expression has a different value for every value x takes: 8 when x = 1, 13 when x = 2, and so on. The variable is what makes it a rule rather than a single sum.
Variable vs constant
The four words that describe the parts of an algebraic expression are best learned together, because each is defined partly by the others. Take 5x + 3:
| Part | In 5x + 3 | What it is |
|---|---|---|
| Term | 5x and 3 | A piece separated by + or − |
| Coefficient | 5 | The number multiplying the variable |
| Variable | x | The letter standing for an unknown |
| Constant | 3 | A fixed number with no variable |
The variable is the part this page is about. The companion guides cover what a term is, what a coefficient is, what a variable is and what a constant is — between them they name every piece of 5x + 3 exactly once.
Why algebra uses letters at all
The letter is not there to be mysterious. It is there so that one statement can cover every number at once.
“Double it and add three” is a rule you could demonstrate on a hundred specific numbers and never actually state. 2x + 3 states it, once, for all of them. Everything algebra can do that arithmetic cannot follows from that one move.
It also lets you write down what you do not yet know and work with it anyway. Calling the unknown x and then manipulating the equation until x stands alone is the whole method of solving.
Independent and dependent variables
When two variables are related, one is usually chosen and the other follows.
- The independent variable is the one you set. In y = 2x + 3 that is x.
- The dependent variable is the one determined by it, here y. Its value depends on what you chose.
By convention the independent variable goes on the horizontal axis and the dependent one on the vertical, which is why graphs are described as “y against x”. The same pair appears in any function, where the input is independent and the output dependent.
Which letter to use
Any symbol can serve, but the conventions are strong enough that breaking them makes work harder to read.
- x, y, z for unknowns and variables.
- a, b, c for constants, which is why ax² + bx + c needs no explanation.
- n for a count, and i, j, k for index positions.
- Meaningful initials in applied work: t for time, r for rate, d for distance.
This is also where the constant-versus-variable distinction shows itself clearly. In y = mx + b the letters m and b are constants and x and y are variables, even though all four are letters. what a constant is covers that side.
How to spot the variable
Look for the symbol whose value is not fixed by the problem. Usually it is a letter, but not every letter qualifies.
- 5x + 3 → variable x
- y = mx + b → variables x and y; m and b are constants
- πr² → variable r; π is a constant
- 2a + 3b = 12 → two variables, a and b
The third line is the test case. Both symbols are letters, and only one of them varies: a circle's radius changes from circle to circle, while π is the same for every circle there has ever been.
Common mistakes
- Assuming every letter is a variable. In y = mx + b, m and b are constants.
- Reading a variable as a unit. In 5x, x is a number, not a label like metres.
- Changing which letter means what partway through a problem.
- Treating x and X as the same symbol. Case matters, and mixing them silently creates two variables where you meant one.
Quick summary
- A variable is a symbol standing for a value that can change.
- It lets one statement cover every number at once.
- Independent variables are chosen; dependent ones follow.
- A letter can be a constant — the difference is role, not appearance.




