Skip to content

Learn Scratch

Learn Scratch: a beginner's guide

Scratch is the friendliest way to start coding. This guide takes you from opening Scratch for the first time to building your first game.

A child learning to code in Scratch

What Scratch is

Scratch is a free, visual programming language made by the MIT Media Lab. Instead of typing code, you snap coloured blocks together like puzzle pieces. There are no spelling mistakes or missing brackets, so learners can focus on logic.

The ideas in Scratch, such as loops, decisions and variables, are the same ones used in Python and on the GCSE Computer Science course.

Getting started

  1. Go to scratch.mit.edu and click Create. An account is free and lets you save projects online.
  2. The stage on the right is where your project runs. The cat is a sprite.
  3. The block palette on the left holds the blocks, sorted by colour.
  4. Drag blocks into the code area in the middle and snap them together.
  5. Click the green flag to run your project and the red stop sign to stop it.

The block colours

CategoryWhat it doesExample
MotionMoves and turns spritesmove (10) steps
LooksSpeech, costumes and effectssay [Hello!]
SoundPlays soundsstart sound [Meow]
EventsStarts scriptswhen green flag clicked
ControlLoops, waits and decisionsrepeat (10), if then
SensingDetects touching, keys and answerstouching [edge]?
OperatorsMaths, random numbers and comparisonspick random (1) to (10)
VariablesStores values such as a scorechange [score] by (1)

Your first project: the bouncing cat

when green flag clicked
forever
  move (10) steps
  if on edge, bounce
end
  1. Drag when green flag clicked from Events.
  2. Add forever from Control underneath.
  3. Put move (10) steps and if on edge, bounce inside the forever loop.
  4. Click the green flag. Change 10 to 20 to make it faster.

Five things to try next

  • Add a second sprite and make them talk to each other.
  • Use the arrow keys to control a sprite.
  • Add a score variable that goes up when you click.
  • Paint your own sprite or backdrop.
  • Make a sprite change colour when it touches another.

Ready for more? Try the Scratch coding challenges.

For parents

You do not need to know how to code to help. Sit alongside, ask “what happens if you change that number?”, and celebrate when something works. Short, regular sessions of 20 to 30 minutes work better than long ones. Scratch's online community is moderated, and you can keep projects private if you prefer.

Questions

Common questions

What age is Scratch for?

Scratch is designed for about 8 to 16, and ScratchJr suits 5 to 7. Many older beginners also start with Scratch.

When should my child move to Python?

When they can plan and build a small game with variables, loops and if blocks on their own. See the beginner coding pathway.

Does Scratch help with GCSE Computer Science?

Yes. It builds the logic behind algorithms, which GCSE students then write in Python or pseudocode.

Want help with this one to one?

Dee replies personally to every enquiry, usually within two working days.

Send an enquiry