Number pyramids and magic squares

Printable Math Puzzles

Sheets of number pyramids and magic squares with the answers on a separate page. Pick the size of the numbers your class is working with, from sums within 10 up to three-digit column arithmetic, and pick the level separately: whether every gap is two numbers added, whether some have to be worked backwards, or whether the sheet needs a missing number called n.

Number pyramidsMagic squaresNumbers up to 10 to 1,000Answer keys
Math PuzzlesPyramid and square
A Medium number pyramid with a base of four bricks and 4 bricks printed414433
Medium pyramid, up to 100
An Easy 3 by 3 magic square with a total of 18 and 3 squares printedTotal = 18368
Easy magic square, up to 20

Worksheet builder

Choose the puzzle, the size of the numbers, and the step it asks for.

Each sheet holds up to eight puzzles with an instruction line at the top, and the answer key prints the whole pack on as few pages as it will fit. Every puzzle is generated in your browser and solved before it is shown.

Try before printing

Solve one on screen.

Type into the empty boxes. Hint fills in the next number you could find from what is already right, and says which sum gave it away, so it teaches the step rather than only the answer. This is a separate puzzle from the builder, so nothing here changes your sheet.

Show every answer?

This fills in every box. It will not count as a solve.

How these are built

The range sets the arithmetic. The level sets the thinking.

Two controls on this builder look as if they do the same job and do not. Numbers up to decides which sums a child has to do: at up to 20, 33% of the sums in a pyramid cross a ten, and at up to 1,000 it is 69%. Difficulty decides what a child has to notice: whether every gap is two numbers added, whether some have to be worked backwards, or whether the sheet can only be finished by calling a missing number n. Either can be turned up without the other.

Each level is named after the step its sheets force

A pyramid says each brick is the two below it added together. A magic square says every row, column and diagonal makes the same total. Underneath, both are a set of sums with numbers missing, so one solver grades both, and it works the way a pupil does: it looks for a sum with a single gap and fills it. There are three kinds of step, and each level is named after the hardest one its sheets cannot be finished without.

LevelNumber pyramidsMagic squaresNumbers printed
EasyAdd up. The whole bottom row is printed. Every other brick is two numbers added together.Work backwards. The total is printed and every gap is found from a line with one number missing.4 of 10 bricks · 3 of 9 squares
MediumWork backwards. Some bricks can only be found backwards, as the brick above minus its neighbour.Work backwards. No total is printed. Add up the one complete line to find it, then work as on Easy.4 of 10 bricks · 4 of 9 squares
HardCall it n. At some point no brick has a single gap. Call one missing brick n and follow it until a sum says what n is.Call it n. The total is printed, but no line can be finished on its own. Call one square n and follow it through the lines.4 of 10 bricks · 2 of 9 squares

Read from the engine at build time: 12 sheets per cell, pyramids with a base of 4 and squares 3 × 3, both with numbers up to 100. Every number left on a sheet is one it cannot be finished without; the generator removes the rest.

100%of Medium pyramids cannot be finished by adding alone
100%of Hard pyramids cannot be finished without calling a brick n
4 vs 3numbers printed on a Medium square against an Easy one
2numbers printed on a Hard 3 × 3 square, plus its total

Numbers up to changes the sums, and squares ask for more carrying

The range is the arithmetic control. It caps every number on the finished sheet, answers and totals included, so a sheet set to 20 never asks a child to write 21 anywhere. What it changes is how often a sum crosses a ten, which is where most mistakes in written addition come from.

Share of the sums on a finished sheet whose adding carries into the next column: pyramids up to 10, 14 per cent; pyramids up to 20, 33 per cent; pyramids up to 100, 53 per cent; pyramids up to 1000, 69 per cent; magic squares up to 20, 61 per cent; magic squares up to 100, 86 per cent; magic squares up to 1000, 94 per cent.Pyramids, up to 1014%Pyramids, up to 2033%Pyramids, up to 10053%Pyramids, up to 1,00069%Squares, up to 2061%Squares, up to 10086%Squares, up to 1,00094%050100Sums that cross a ten, per cent
Sums that cross a ten, by range. Measured at build time over 12 Medium sheets per bar, pyramids with a base of 3 and 3 × 3 squares, counting every sum on the finished sheet. At every range a square carries more often than a pyramid, because each line adds three numbers rather than two. Squares start at 20 because no magic square of different numbers has a total below 15.

A wide pyramid cannot stay under 20

The top brick of a pyramid is its base added up with weights, and the weights are a row of Pascal's triangle. With a base of 5, the middle base brick is counted 6 times in the top and each corner once, so a base of all ones already gives a top of 16. Size and range are separate controls, but they are not independent.

A pyramid with a base of 5, each base brick labelled with how many times it counts towards the top: 1, 4, 6, 4, 1top×1×4×6×4×1
How much each base brick counts. With a base of 5 the weights are 1, 4, 6, 4, 1, adding to 16.
BaseSmallest topUp to 10Up to 20Up to 100Up to 1,000
345052579,62583 million
486330401,0165 billion
516None17583,78084 billion
632NoneNone193,410506 billion

Different pyramids whose every brick is a whole number from 1 to the range, counted exactly at build time. The generator draws from all of them with equal chance, which was checked by drawing until every one at the smallest settings had appeared. Shaded cells are the ones the builder will not use.

The Hard step is algebra, and every Hard sheet needs it

On a Hard sheet there comes a point where no sum has a single gap. The way through is to give one missing number a name. Call it n, write each neighbour in terms of n, and carry on until a sum that is already complete can be checked: that check is an equation, and it says what n is. The figures below are two real Hard sheets from this builder, stopped at the moment the letter resolves, with the working the solver wrote.

A Hard number pyramid mid-solve, with one missing brick called n and its neighbours written in terms of n75n75 − n2n − 4444 − n312137 − n724
Hard pyramid, mid-solve. 4 bricks printed, no brick with a single gap. Written in terms of n, 4 sums fill in, and the next one gives n = 34. Real output.
A Hard magic square mid-solve, with one missing square called n and the lines through it written in terms of nTotal = 99364815n84 − n51 − n63 − n
Hard magic square, mid-solve. 2 squares and the total printed. The letter goes in the middle, and the lines through it show that the middle of any 3 × 3 magic square is a third of the total: n = 33. Real output.

A Hard pyramid is an algebra lesson that never uses the word.

The letter has further to travel on bigger sheets. On a pyramid with a base of 6 at up to 1,000 it passes through 6.6 sums on average before it resolves, and on a 4 × 4 square through 4.4. The solver was first written with general elimination, which could combine seven or eight sums at once into a single step; that is a proof, not something anybody does with a pencil, so the Hard step is one letter carried through single gaps, and a sheet that would need two letters at once is never printed.

What every sheet is checked for before it prints

  • One answer, proved. The solver only ever writes a number that follows from the ones already on the sheet, so reaching the end proves nothing else could go there. The engine was also checked against a separate rank calculation that does not use the solver at all.
  • Every printed number is needed. The generator starts from a finished puzzle and removes numbers in a random order for as long as the level's own steps still finish it. Take any printed number away and the sheet stops working.
  • The level is real. A Medium pyramid is checked to be impossible by adding alone, and a Hard sheet to be impossible without the letter step. When a sheet is not, one printed number is moved to another square and the check runs again, which is what rescues the three-wide Hard pyramid: it has exactly one pattern that needs the letter, both bottom corners and the top.
  • No pack repeats a puzzle while different ones are left. At the smallest settings they can run out, and the builder says how many repeated rather than printing them quietly.

Which settings suit which sums

Year groups and grade levels do not line up between countries, so this is organised by the sum being practised. The right-hand column is measured, not estimated.

PractisingSettingsWhat the sheet actually asks
Adding within 10Pyramids, base of 3, up to 10, EasyOnly 50 different pyramids exist at this setting, and 14% of their sums make exactly ten.
Number bonds to 20 and missing addendsPyramids, base of 4, up to 20, MediumMedium means some bricks have to be worked backwards, which is the missing-addend question in disguise. 19% of the sums cross a ten.
Adding three small numbersMagic squares, 3 × 3, up to 20, EasyEvery line is three numbers to one total, 83% of lines cross a ten, and only 32 different squares fit under 20, so the variety comes from which squares are left blank.
Two-digit adding and subtracting with regroupingPyramids, base of 4, up to 100, Medium40% of the sums on these sheets carry, across six sums to a pyramid.
Three-digit column arithmeticPyramids, base of 5, up to 1,000, Medium63% of the sums carry, and a base of 5 means ten sums to a pyramid.
A first taste of algebraPyramids, base of 3, up to 20, HardSmall numbers on purpose, so the only new idea is calling a missing brick n. At this size the letter resolves after 3 sums: both bottom corners and the top are printed, and the middle is what is left.

How to solve a pyramid, if you never have

  1. Look for two bricks side by side that are both filled in. The brick resting on them is their total.
  2. Look for a filled brick with one filled brick under it. The other brick under it is the difference.
  3. Every number you write opens up a neighbour, so go back over the pyramid after each one.
  4. If no brick has a single gap, call one missing brick n and write the bricks around it as n plus or minus something.
  5. Keep going until a brick you already know has an expression next to it. Set them equal, and that gives n.

What this page does not do yet

Only whole numbers, only addition, and only these two puzzles. Multiplication pyramids, decimals and negative numbers are the obvious next options, and cross-number puzzles and target-number sheets were considered and left out of this first version: a target-number sheet usually has many right answers, and every sheet here is built around there being exactly one.

The magic squares do not use the classic rule that each number appears once from 1 to 9, because that allows almost no variety. Every square does hold different numbers. The 4 × 4 squares are built by scaling and shifting the 7,040 arrangements of 1 to 16, so their numbers are always evenly spaced, which a sharp-eyed solver can use.

How this page is made and checked

Print Puzzles is part of the Hamilton Digital Media Limited puzzle network. This page is written and reviewed by Brian Hamilton and Karan Hamilton. The engine was checked with a harness that generated puzzles of both kinds at every size, range and level, and confirmed for each one that every sum holds, every number is inside the range, the solver reaches the printed answer exactly, every printed number is needed, the level cannot be finished one step lower, and an independent rank calculation agrees the answer is unique. It also counted every 3 × 3 square and every small pyramid by brute force to check the figures in the tables above. Read more about how we make puzzle packs, or tell us about a sheet that misbehaves through the contact page.

Nothing here costs anything and there is no account. Puzzles are made in your own browser, and the terms of use let teachers, tutors, clubs and families print and copy these sheets and their answer keys for a whole class.