A variable is a letter or symbol, such as x, y or n, that stands for a number which can change or is not yet known. A constant is a value that stays fixed, such as 7, −3 or π. In the expression 4x + 9, x is the variable, 4 is the coefficient of x, and 9 is the constant term.
That is the whole idea in two sentences. The rest of this guide shows how to spot variables, constants and coefficients in any expression, how they appear in formulas and equations, and the mistakes that cost marks. It is written for Class 7 to 9 students and their parents. If your child finds "letters in maths" confusing, our Class 7 maths tutor in Gurgaon can go back to the exact step that is missing.
Variable: the definition for Class 7
A variable is a letter that stands for a number. The word comes from "vary", meaning change. We use a variable in three situations:
- The number is unknown and we want to find it. In x + 5 = 12, x stands for one particular number. Solving gives x = 7.
- The number can change, and we want a rule. If one notebook costs ₹40, the cost of n notebooks is 40n. Here n can be 1, 2, 10 or any count of notebooks, and the cost changes with it.
- We want to say something true for every number. a + b = b + a is true whatever numbers a and b are.
In NCERT's Ganita Prakash, Class 7 Part I has a chapter titled "Expressions using Letter-Numbers", and Part II ends with "Finding the Unknown", on algebra and simple equations. Our CBSE Class 7 maths syllabus guide shows where both sit in the year.
A letter is a number, not an object. If n is the number of notebooks, then 40n is a cost in rupees. It does not mean "40 notebooks". Students who read letters as short forms for objects get stuck as soon as the question changes.
Constant: a value that never changes
A constant has a fixed value. In school algebra most constants are plain numbers:
- In 2x + 9, the constant term is 9.
- In y = 3x − 4, the constant term is −4.
- In x² − 5x + 6, the constant term is 6.
The constant term is the term with no variable in it. Its sign belongs to it: in 2x − 4, the constant term is −4, not 4.
Some constants are written as letters or symbols because their values are long or special. The most familiar is π, about 3.14159, the ratio of a circle's circumference to its diameter. π looks like a variable, but it is a constant because its value never changes.
Terms, coefficients and constants: a labelled example
An expression is made of terms joined by + and − signs. A term is a number, a variable, or numbers and variables multiplied together.
Take the expression 5x² − 3xy + y − 8.
| Term | Variable part | Coefficient | What it is |
|---|---|---|---|
| 5x² | x² | 5 | a variable term |
| −3xy | xy | −3 | a variable term |
| +y | y | 1 | a variable term |
| −8 | none | – | the constant term |
Reading the table:
- The variables are x and y.
- The coefficient is the number multiplying the variable part. The coefficient of x² is 5, of xy is −3, and of y is 1 (because y means 1 × y).
- The constant term is −8.
- The expression has four terms.
Two points trip students up:
- An invisible 1. x means 1x, and −x means −1x. The coefficient of −x is −1, not 0.
- The sign travels with the term. In 5 − 3y, the coefficient of y is −3.
Coefficient or constant?
Both are numbers, so they are easy to confuse. The test: a coefficient is attached to a variable by multiplication, while a constant stands alone. In 6x + 6, the first 6 is the coefficient of x and the second 6 is the constant term.
Variables and constants in formulas
Every formula your child already knows is made of variables and constants:
| Formula | Variables | Constants |
|---|---|---|
| Perimeter of a square: P = 4s | P, s | 4 |
| Area of a rectangle: A = l × b | A, l, b | none |
| Circumference of a circle: C = 2πr | C, r | 2, π |
| Speed: s = d ÷ t | s, d, t | none |
Change the square and s and P change, but the 4 never does. Pointing this out often removes a child's fear of letters, because they have been using variables for years.
Variables and constants in equations
An expression has no equals sign: 3x + 5. An equation says two expressions are equal: 3x + 5 = 20. In an equation, the variable usually stands for a particular unknown number, and solving means finding it.
In 3x + 5 = 20, x is the variable, 3 is its coefficient, and 5 and 20 are constants. Taking 5 from both sides gives 3x = 15, so x = 5. Check: 3 × 5 + 5 = 20. ✓ Our guide on how to solve simple equations covers this step by step.
Letters that act as constants. In Class 9 your child will meet y = mx + c for a straight line. Here x and y are the variables, but m and c are fixed for any one line. In y = 2x + 3, m = 2 and c = 3 never change along that line, while x and y do. Our guide to linear equations in two variables builds on this idea.
Three worked examples
Example 1: identify every part.
For 7a − 4b + ab − 9, list the variables, the terms, the coefficient of each variable term, and the constant term.
- Variables: a and b.
- Terms: 7a, −4b, ab and −9 (four terms).
- Coefficients: 7a has coefficient 7, −4b has coefficient −4, and ab has coefficient 1.
- Constant term: −9.
To practise reading the signs, evaluate it for a = 2 and b = −1: 7 × 2 − 4 × (−1) + 2 × (−1) − 9 = 14 + 4 − 2 − 9 = 7. Each term is used once, with its own sign.
Example 2: write a formula, then use it.
A tank already holds 40 litres of water. A pipe adds 6 litres every minute. Write a formula for the water W (in litres) after t minutes, name the variables and constants, and find (a) W after 5 minutes and (b) when the tank holds 100 litres.
- Formula: W = 40 + 6t.
- Variables: W and t, because both change as time passes.
- Constants: 40 (the starting amount) and 6, the coefficient of t (the rate).
- (a) t = 5: W = 40 + 6 × 5 = 40 + 30 = 70 litres.
- (b) W = 100: 40 + 6t = 100, so 6t = 60 and t = 10 minutes.
Check (b): 40 + 6 × 10 = 100. ✓
Example 3: substituting negative values.
Find the value of 2p² − 3q + 4 when p = −3 and q = −2.
- Put each negative value in brackets: 2 × (−3)² − 3 × (−2) + 4.
- Square first: (−3)² = 9, so 2 × 9 = 18.
- Next: −3 × (−2) = +6.
- Add: 18 + 6 + 4 = 28.
The brackets matter. Without them, −3² is read as −9 and the answer goes wrong. The sign rules here are explained in our guide to integer rules for signs.
Common mistakes
- Missing the invisible 1. Saying the coefficient of y is 0, or of −x is 1. It is 1 and −1.
- Dropping the sign. Saying the constant term in 2x − 7 is 7. It is −7.
- Calling the coefficient a constant term. In 6x + 6, only the second 6 is the constant term.
- Adding unlike terms. Writing 3x + 2 = 5x. Test with x = 10: 3 × 10 + 2 = 32, not 50.
- Treating π as a variable. π is a constant, even though it is written as a symbol.
- Forgetting brackets when substituting negatives. Write 2 × (−3)², not 2 × −3².
- Reading letters as objects. "3a means 3 apples." Define each letter as a number first.
Where this leads next
Once variables and constants feel natural, your child is ready for like terms, simplifying and expanding brackets. Our algebra basics guide takes those next steps. In Class 8, the same ideas carry into identities and factorisation; see how we support that year on our Class 8 maths tutor page.
How Maths Bodhi helps
Our tutors start algebra from what your child already knows, such as formulas and number patterns, so letters feel like numbers rather than puzzles. We check the small habits (signs, invisible 1s and brackets) every session until they are automatic. For algebra support from Class 7 onwards, see our algebra tutoring.
Home tuition is available in Gurgaon (Gurugram). Students elsewhere in India and abroad learn with us online. You can book a free demo class.
Frequently asked questions
- What is a variable in maths?
- A variable is a letter or symbol, such as x or n, that stands for a number which can change or is not yet known. In 40n, n is the variable.
- What is a constant in maths?
- A constant is a value that stays fixed. In 2x + 9, the constant term is 9. Special constants such as π are written as symbols but never change.
- What is the difference between a variable and a constant?
- A variable can take different values, while a constant has one fixed value. In W = 40 + 6t, W and t are variables, and 40 and 6 are constants.
- What is the difference between a coefficient and a constant term?
- A coefficient multiplies a variable, such as the 6 in 6x. A constant term stands alone, such as the 6 in 6x + 6.
- What is the coefficient of x in −x?
- It is −1, because −x means −1 × x.
- Is π a variable or a constant?
- π is a constant. Its value, about 3.14159, never changes, even though it is written as a symbol.
