WhatsApp us
Maths Planning

Variables and Constants in Maths: Definition, Examples and How to Spot Them (Class 7 to 9)

A variable is a letter that stands for a number that can change or is not yet known; a constant is a value that stays fixed. Clear definitions, a labelled expression showing terms, coefficients and constants, three worked examples and the mistakes to avoid.

Variables and Constants in Maths: Definition, Examples and How to Spot Them (Class 7 to 9)

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:

  1. The number is unknown and we want to find it. In x + 5 = 12, x stands for one particular number. Solving gives x = 7.
  2. 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.
  3. 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.

TermVariable partCoefficientWhat it is
5x²x²5a variable term
−3xyxy−3a variable term
+yy1a variable term
−8none–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:

  1. An invisible 1. x means 1x, and −x means −1x. The coefficient of −x is −1, not 0.
  2. 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:

FormulaVariablesConstants
Perimeter of a square: P = 4sP, s4
Area of a rectangle: A = l × bA, l, bnone
Circumference of a circle: C = 2πrC, r2, π
Speed: s = d ÷ ts, d, tnone

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

  1. Missing the invisible 1. Saying the coefficient of y is 0, or of −x is 1. It is 1 and −1.
  2. Dropping the sign. Saying the constant term in 2x − 7 is 7. It is −7.
  3. Calling the coefficient a constant term. In 6x + 6, only the second 6 is the constant term.
  4. Adding unlike terms. Writing 3x + 2 = 5x. Test with x = 10: 3 × 10 + 2 = 32, not 50.
  5. Treating π as a variable. π is a constant, even though it is written as a symbol.
  6. Forgetting brackets when substituting negatives. Write 2 × (−3)², not 2 × −3².
  7. 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.
Variables and constantsClass 7 algebraTerms and coefficientsAlgebra basicsMaths home tutor Gurgaon

Related guides

Keep exploring this maths topic

Maths Planning5 Jun 2026

Algebra Basics for Class 7 to 9: Build Strong Maths Concepts

Learn Algebra basics for Classes 7 to 9 with simple explanations of variables, constants, expressions, and equations. Build strong Maths confidence with concept-based learning.

Algebra BasicsClass 7 MathsClass 8 MathsClass 9 Maths

By Maths Bodhi Team

Read guide

Maths Planning5 Jun 2026

Linear Equations in One Variable for Class 7 to 9: From Concept to Clarity

A clear guide to linear equations in one variable for Classes 7 to 9: what makes an equation linear, the balance method, transposing, equations with brackets and fractions, turning word problems into equations and checking answers, with four worked examples.

Linear equationsLinear equations in one variableClass 8 mathsAlgebra Class 7 to 9

By Maths Bodhi Team

Read guide

Maths Planning11 Nov 2026

Class 8 Algebraic Identities and Factorisation: (a + b)², (a − b)², (a + b)(a − b) Explained

The four algebraic identities every Class 8 student needs, why each one is true (with an area picture), how to use them to expand, factorise and do quick mental maths, with worked examples and the mistakes to avoid.

Class 8 algebraic identitiesfactorisation Class 8Class 8 algebraalgebra mental maths

By Maths Bodhi Team

Read guide

Maths Planning11 Nov 2026

Class 7 Integers: Rules for Signs in Addition, Subtraction, Multiplication and Division

The rules for signs with integers, explained with a number line and simple patterns rather than tricks to memorise. Why a negative times a negative is positive, four worked examples and the mistakes Class 7 students make most often.

Class 7 integersrules for signsnegative numbersClass 7 maths

By Maths Bodhi Team

Read guide

Maths Planning11 Nov 2026

HCF and LCM Word Problems for Class 7: How to Tell Which One to Use

How to find HCF and LCM by prime factorisation, and how to read a word problem to decide which one it needs. Four fully worked word problems, a quick check that catches wrong answers, and common mistakes.

HCF and LCMClass 7 word problemsprime factorisationClass 7 maths

By Maths Bodhi Team

Read guide

Maths Planning11 Nov 2026

Class 7 Congruence of Triangles: SSS, SAS, ASA, AAS and RHS Explained

What congruent means, the five tests (SSS, SAS, ASA, AAS and RHS) that prove two triangles are congruent, why SSA and AAA do not work, and how to name corresponding parts correctly. Four worked examples and common mistakes.

Class 7 congruencecongruent trianglesSSS SAS ASA RHSClass 7 geometry

By Maths Bodhi Team

Read guide