Scratch maths: fraction animations
Use Scratch projects to animate pizzas, bars and number lines to show equal parts.
Quick answer
You can use Scratch to create fun animations that show fractions like 1/2, 1/4, and 3/4 by dividing shapes into equal parts and moving them around the screen.
Learning outcome
By the end of this page, you will be able to create a Scratch project that shows fractions using animated shapes like pizzas or bars, and you will understand how to divide shapes into equal parts to represent fractions.
- You can split a shape into equal parts
- You can animate parts of a shape to show a fraction
- You can explain what a fraction means using Scratch
- You can use Scratch to create a fraction story or game
Why this matters
Fractions are everywhere in real life – like when you share a pizza, split a cake, or divide a group of friends. Using Scratch to make fraction animations helps you understand how fractions work by seeing them move and change on the screen. This makes learning fractions more fun and easier to remember. When you know how to use Scratch to show fractions, you're not just coding – you're also learning math in a creative way.
How it works
Scratch uses sprites (like characters or shapes) and blocks (like instructions) to make things move. To make a fraction animation:
- Choose a shape or sprite to show a fraction (like a pizza or a bar)
- Split the shape into equal parts using Scratch blocks
- Use loops and movement to show how parts come together
- Add sound or text to explain what fraction you are showing
You can use the repeat block to make a shape split into equal parts, and the move block to show how those parts move around the screen.
Examples you can see
Let’s imagine you want to show 1/4 of a pizza in Scratch. Here’s how you could do it:
- Draw a circle to look like a pizza
- Split the pizza into 4 equal parts by drawing lines from the center
- Use the repeat block to make 4 slices
- Use the move block to move one slice to the side
- Add a text box that says “1/4”
Another example: Show 3/4 of a bar of chocolate:
- Draw a rectangle to look like a chocolate bar
- Divide it into 4 equal parts
- Use repeat to make 4 pieces
- Move 3 pieces to one side to show 3/4
You can also use a number line to show fractions:
- Draw a line with numbers 0 to 1
- Divide it into 4 equal parts
- Use a sprite to move along the line to show 1/4, 2/4, 3/4
Try it as a mini adventure
Adventure: The Fraction Pizza Party
You are planning a pizza party for your friends. You want to show how to share a pizza using fractions. You will create a Scratch project where:
- Start with a whole pizza
- Split it into 4 equal slices
- Move 1 slice to the side to show 1/4
- Move 2 slices to show 2/4
- Move 3 slices to show 3/4
- Move all slices to show 4/4 (or 1 whole pizza)
Challenge: Can you make a pizza with 8 slices and show 1/8, 2/8, 3/8, and 4/8?
Common mistakes
- Mistake: Making parts that are not equal.
Why it happens: Not using the same size for each part.
Fix: Use the stamp block to copy the same shape or use the repeat block with the same steps. - Mistake: Forgetting to use the wait block.
Why it happens: The animation happens too fast to see.
Fix: Add a wait block after each move to slow it down. - Mistake: Not using a number line or clear labels.
Why it happens: The fraction is hard to understand without a guide.
Fix: Add a text box or label to show the fraction.
Parent and carer guide
Help your child by:
- Encouraging them to start with a simple shape like a circle or rectangle
- Letting them try different ways to split the shape (like using lines or stamps)
- Using real-life examples like sharing a cake or pizza to explain the fraction
- Playing the animation together to see how the parts change
- Asking questions like: “What fraction is shown now?” or “How many parts are there?”
Don’t worry if the project takes time – that’s part of learning. It’s okay if the first few attempts don’t look perfect. The goal is to understand how fractions work through visual learning.
Practice questions
- How do you split a circle into 3 equal parts in Scratch?
- What block helps you repeat actions in Scratch?
- Why is it important to make parts equal when showing fractions?
- How can you show 2/5 of a bar in Scratch?
- What is one way to make your fraction animation easier to understand?
Answers:
- Use the turn block to rotate and the stamp block to make equal parts
- The repeat block
- Because equal parts help show what the fraction means
- Split the bar into 5 parts and move 2 parts
- Add text or labels to show the fraction
FAQ
What is a fraction?
A fraction shows how many parts of something you have compared to the total number of parts.
Can I make more than one fraction in one Scratch project?
Yes! You can make a project that shows 1/2, 1/4, 2/4, and 3/4 all on the same screen.
Do I need to know math before using Scratch to learn fractions?
No, you can learn fractions through Scratch even if you don’t know them yet. It’s a fun way to understand math.
How can I make my fraction animation more interesting?
Add sounds, colors, or characters to make it more fun. You can also make a story around the fractions.
Can I use Scratch to show mixed numbers or improper fractions?
Yes! You can show 1 1/2 or 5/4 by using more than one shape or by showing extra parts.