How do you substitute a number into an algebraic expression?

To substitute a number into an algebraic expression, all you need to do is re-write the expression in exactly the same way, except replacing the variable (letter) with the number. It always makes it clearer to put the number in brackets too. Then you can simplify your new expression and you have your answer!

Let's have a look at an example.

3x+7 where x = 5

So here, x is the variable and you are substituting in the number 5. All you do is write back the expression but with 5 instead of x. And don’t forget those brackets!

3(5) + 7

Now to simplify, just multiply out the brackets and add the 7:

3 x 5 + 7

= 15 + 7

= 22

And that’s your answer!

How about a harder example:

2y2 – 3y + 4 where y = 2

You do this one in exactly the same way, but this time the variable is y and the number is 2. So, write back the expression with 2 (in brackets!) instead of y:

2(2)2 – 3(2) + 4

And simplify… remember, always do the brackets first:

2 x 22 – 3 x 2 + 4

= 2 x 4 – 3 x 2 + 4

Multiplication always comes before addition and subtraction:

= 8 – 6 + 4

= 6

One more example, this time with two variables.

4x2 – y2 + 2xy where x = - 3 and y = 4

You have to be a bit more careful with this one – make sure you include the negative sign in the brackets when you replace x with (-3) and instead of y, write 4.

4(-3)2 – (4)2 + 2(-3)(4)

Start simplifying…

= 4 x (-3)2 – (4)2 + 2 x -3 x 4

Remember when you square a negative number you get a positive solution:

= 4 x 9 – 16 + 2 x -3 x 4

= 36 – 16 + (-24)

= - 4

Bethany H. A Level History tutor, GCSE Maths tutor, GCSE History tuto...

2 years ago

Answered by Bethany, a GCSE Maths tutor with MyTutor

Still stuck? Get one-to-one help from a personally interviewed subject specialist


£30 /hr

Vicky H.

Degree: Dentistry (Masters) - Leeds University

Subjects offered:Maths, Science+ 12 more

Human Biology
English Literature
English Language
.BMAT (BioMedical Admissions)
-Personal Statements-
-Oxbridge Preparation-
-Medical School Preparation-

“Hi I'm Vicky, I'm a 2nd year dental student at the University of Leeds. I am friendly and patient and have a love for science, maths and teaching.”

£18 /hr

Ayokansola A.

Degree: Civil and Structural Engineering with a Year in Industry (Masters) - Sheffield University

Subjects offered:Maths, Spanish+ 4 more


“About Me: Hello! I am a Civil Engineering student at the University of Sheffield. I have always had a natural incline towards all things Maths and Science, so without a doubt, my genuine passion for the subjects’ I am offering will be...”

£30 /hr

Rachel H.

Degree: Physics and Astronomy with a Year Abroad (Bachelors) - Durham University

Subjects offered:Maths, Science+ 3 more


“Hey, I'm Rachel and I'm Physics graduate from Durham University. My best subjects at school were always science and maths but I also loved languages and art”

About the author

Bethany H.

Currently unavailable: for new students

Degree: History (Bachelors) - Durham University

Subjects offered:Maths, History+ 1 more


“Experienced, patient and friendly tutor, keen to help with Maths, French and History”

You may also like...

Posts by Bethany

How do you conjugate verbs in the pluperfect tense in French?

How do you substitute a number into an algebraic expression?

Other GCSE Maths questions

Expand and simplify 3(m + 4) – 2(4m + 1)

Given 6x+2y=4 and 5x+y=8, solve the simultaneous equations to find x and y.

Expand and simplify (x+4)(x-5).

How do I solve an equation where there are unknowns on both sides of the equation?

View GCSE Maths tutors

We use cookies to improve your site experience. By continuing to use this website, we'll assume that you're OK with this. Dismiss