Skip to main content
All resources

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

Blake Boege
Blake BoegeFounder, Calculator AnswersPublished August 23, 2026

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:

The four parts of the expression 5x + 3
PartIn 5x + 3What it is
Term5x and 3A piece separated by + or −
Coefficient5The number multiplying the variable
VariablexThe letter standing for an unknown
Constant3A 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.

Run the numbers

Frequently asked questions

A variable is a symbol, usually a letter, that stands for a value which can change or is not yet known. In 5x + 3 the variable is x, and the expression has a different value for every value x takes.

Because a letter lets you state a rule that holds for every number at once. Writing 2x + 3 says something true for all x, which no single arithmetic statement can do. The letter is a placeholder, not a mystery.

A variable stands for a value that can change; a constant holds one fixed value. In 5x + 3, x is the variable and 3 is the constant. In y = mx + b the letters m and b are constants, which shows the difference is about role rather than about being a letter.

The independent variable is the one you choose; the dependent variable is the one that follows from it. In y = 2x + 3 you pick x and y is determined, so x is independent and y is dependent. On a graph the independent variable goes on the horizontal axis.

Over the life of a problem, yes: that is what makes it variable. At any single moment within one equation it holds one value, which is why solving for x produces specific answers rather than a range.

Convention rather than necessity. Letters near the end of the alphabet - x, y, z - conventionally denote unknowns, and letters near the start - a, b, c - denote constants. That is why ax squared plus bx plus c reads unambiguously to anyone who knows the pattern.

No. Any symbol can be a variable, and problems often use letters that mean something: t for time, r for rate, n for a count. In a physics formula the variables are frequently the initials of the quantities they measure.

To rearrange an equation until the variable stands alone on one side, so its value is stated directly. Solving 2x + 3 = 11 gives x = 4, which is the one value making the original statement true.