What is logical reasoning?

Part ofComputingComputer science

What is logical reasoning?

A cartoon girl with pink hair and a star clip thinking

Logical reasoning is a way of thinking that uses rules. It helps us to:

  • solve problems

  • give instructions to make something happen

  • explain why things happen

  • predict what might happen next

Being logical means thinking sensibly about something using rules that everyone agrees with.

A cartoon girl with pink hair and a star clip thinking
Back to top

Different types of rules

A cartoon girl with bunches in her hair thinking

We use rules in different areas of learning and in our everyday lives.

Rules are often instructions that tell us what to do. They can also be statements that explain or predict how something will behave.

Sometimes we are taught the rules. Grammatical rules help us when we learn about languages, including English. Mathematical rules show us how to work with numbers and shapes in Maths.

A cartoon girl with bunches in her hair thinking
Back to top

Rules in everyday life

A cartoon girl with pink hair holding a TV remote at a television

Sometimes we can work rules out for ourselves by looking at the world around us and seeing what happens.

  • We notice that when we drop a pencil it falls to the ground.
  • We work out what button to press on the TV remote control to watch our favourite program.

When we know the rules for a particular situation, we can use them to help us with logical reasoning.

A cartoon girl with pink hair holding a TV remote at a television
Back to top

Using logical reasoning to explain how to play a game

Jo and Amina are playing a card game called Snap. Amina has never played Snap and doesn’t know what to do. She asks Jo questions about the rules of the game.

  • Who puts their card down first?
  • Do we take turns to shout SNAP!?
  • How do we know who wins?
Snap playing cards with animals on them

Jo thinks about Amina’s questions. She needs to think logically about the rules of the game and what order they go in.

Jo carefully explains the rules to Amina step-by-step.

  1. Start with our stack of cards face down, so we can't see the pictures.
  2. We take it in turns to turn our top card over and place it on the pile in the middle.
  3. If the picture on your card matches the card in the middle, it's a race to see who can shout SNAP! first.
  4. The winner keeps the pile of cards.
  5. We play until one of us runs out of cards.

Amina listens carefully to the rules Jo is explaining. Hearing them step-by-step makes everything easy to understand.

She can use logical reasoning to think about the rules and work out how to play the game.

And guess what? She wins!

Back to top

Using logical reasoning to solve a problem

A cartoon boy thinking

In computing, we create lists of instructions, or algorithms, to solve a problem or complete a task.

The instructions act like rules. They describe what should happen, step-by-step.

We can use logical reasoning to help plan and organise the instructions to make sure they are accurate and in the right order.

A cartoon boy thinking
Back to top

Let's look at an example

We are making a computer game with balloons.

A pixelated yellow balloon, pink balloon and red balloon.

We have decided that when a player clicks on different coloured balloons they will score points. The number of points will depend on the colour of the balloon.

We can use logical reasoning to work out what the instructions would look like for our game. We can then create a list of rules or algorithm:

  • When the player clicks on a yellow balloon, they will score ten points.
  • When the player clicks on a pink balloon, they will score five points.
A pixelated yellow balloon, pink balloon and red balloon.
Back to top

Writing a logical computer program

A yellow pixelated balloon with a pink number ten on it and a pink pixelated balloon with a yellow number five on it

Now we need to turn the algorithms into a computer program using a coding language.

This coding language uses different blocks for each type of instruction.

We can use logical reasoning again, to work out which blocks to use in our program.

Do you think that we have chosen the right blocks?

A yellow pixelated balloon with a pink number ten on it and a pink pixelated balloon with a yellow number five on it
A green coding tab saying "When yellow balloon clicked" and underneath in an orange coding tab, it says "Change Score by 10". Next to them another green coding tab saying "When pink balloon clicked" and underneath in an orange coding tab, it says "Change Score by 5"
Back to top

Activity: Logical reasoning quiz

Back to top

Dance Mat Typing game! game

Build and test your computing skills with different levels of touch type challenges.

Dance Mat Typing game!
Back to top

More on Computer science

Find out more by working through a topic