stemezy← Back to home
  1. stemezy
  2. /
  3. Thinking Maths by Topic
  4. /
  5. Tree-Planting and Interval Problems

Tree-Planting and Interval Problems

Grades5

Tree-planting problems are a small topic with a big trap in Grades 4–5: planting along a road, staking out a plot, or spacing objects evenly along a line — the answer is always off by exactly one from a straight division, and which way it leans depends on whether one end, both ends, or a closed loop is planted. There is one key: count the gaps first and derive the number of trees second. This page teaches the type on an animated road that counts every gap and every tree, so children stop guessing whether to add or subtract one.

How to recognise this type

Spot the planting family whenever objects are spaced evenly along a line: trees along a road, fence posts, nails, or a ribbon cut into equal pieces. The question always turns on three quantities — the total length, the length of one gap, and the number of objects — and knowing two of the three is exactly when the plus-or-minus-one care is needed.

One problem, solved in full

A road is 20 m long with trees every 5 m (including both ends). How many trees are there?

Key idea: Find the intervals first: intervals = length ÷ spacing.

Recognise

Trees along a 20 m road every 5 m, with trees at BOTH ends.

The idea

Count the intervals first — the trees come one step later.

Steps

  1. 1

    Intervals: 20 ÷ 5 = 4.

  2. 2

    Trees = intervals + 1 = 4 + 1 = 5.

So: So there are 5 trees.

Worked solutions: Tree Planting Problems

More worked examples

If there are 6 fence posts in a straight line, how many gaps (intervals) are between them?

  • 5
  • 6
  • 7
  • 4

Key idea: Running backwards: intervals = posts − 1 when both ends are planted.

So: So there are 5 gaps.

Worked solutions: Tree Planting Problems

A 30 m path has trees planted every 6 m, starting from both ends. How many trees are planted?

Key idea: Find the intervals first: intervals = length ÷ spacing.

So: So 6 trees are planted.

Worked solutions: Tree Planting Problems

A straight road is 100 m long. Trees are planted every 10 m with trees at both ends. How many trees are there?

Key idea: Find the intervals first: intervals = length ÷ spacing.

So: So there are 11 trees.

Worked solutions: Tree Planting Problems

Learning path by level

Grades5

  • FoundationsTree Planting ProblemsA classic olympiad and entrance-exam trap: count the gaps first — with trees at both ends, trees = gaps + 1. An animated road counts each gap and tree, so the rule is seen, not memorised. Free.Worked solutions: Tree Planting Problems

Learn it with the animated lesson

The problem

A straight road is 60 meters long. Trees are planted at equal intervals of 5 meters, with a tree at both ends. How many trees are planted?

Progress
NaN%
Shortcuts: Space (play), Arrow keys (step), R (reset), F (fullscreen)
Problem overview

The Road and the Big Question

Total distance = 60 m

The straight road is 60 m long. Trees will be planted at equal 5 m intervals, with a tree at both ends. The big question of this lesson: will there be as many trees as intervals, more, or fewer?

Key idea

Keep the question in mind — we will answer it by counting, not guessing.

Solution steps

0 / 7 steps

Try Your Own Numbers

Sandbox

Change the numbers and watch the diagram redraw itself:

Questions parents ask

Why do both-end plantings have exactly one more tree than gaps?

Because the first tree stands before the first gap, and each later gap adds exactly one tree at its far end. Counting the gaps first and then adding the opening tree is the order that never goes wrong.

When do trees equal gaps, and when are they one fewer?

On a closed loop (around a pond or a yard) trees equal gaps, and planting at only one end does too. On an open line whose far end stays empty, trees are one fewer than gaps. A quick sketch of the road with both ends marked separates the cases at once.

Which grades cover tree-planting problems?

The type appears in Grades 4–5 and is a regular guest in olympiad papers and selective Grade 6 entrance exams — small, quick, and used to reward candidates who are careful rather than fast.

More thinking-maths topics

  • Finding Two Numbers (Sum & Difference, Sum & Ratio, Difference & Ratio)
  • Fractions and Percentages
  • Motion Problems: Meeting, Pursuit and River Currents
  • The Assumption Method
  • Comparison and replacement
stemezy

Math you can see, move, and understand.

Thinking Maths by Topic
  • Finding Two Numbers (Sum & Difference, Sum & Ratio, Difference & Ratio)
  • Fractions and Percentages
  • Motion Problems: Meeting, Pursuit and River Currents
  • Tree-Planting and Interval Problems
  • The Assumption Method
  • Comparison and replacement
  • Back to home
  • Privacy Policy
  • Terms of Use

© 2026 stemezy