Updated · By Pete Bromfield, former Head of Maths with IB examining experience

IA idea · Optimisation & linear programming

Square or hexagonal? Packing tins into a box

AA SLAA HLAI SL Solid Also in: Geometry & Voronoi, Pure maths

Research question

For a given number of cylindrical tins, which arrangement (square grid, hexagonal rows or a mix) needs the smallest box, and at what number of tins does hexagonal packing start to win?

Make it yours, then agree it with your teacher.

Next step: plan this IA free — the planner opens with this question filled in. For feedback on your own draft, the IA package (€39 once) gives you 5 AI feedback credits and every annotated exemplar in full.

Why it makes a good exploration

Everyone 'knows' hexagonal packing is more efficient, but in a small box it often isn't. Finding the crossover is a satisfying mix of geometry, algebra and case-by-case thinking.

The mathematics you'll need

  • Packing density: π/4 for square and π/(2√3) for hexagonal (derived)
  • Box dimensions as functions of the number of rows and columns
  • Trigonometry and Pythagoras for offset rows
  • Comparing discrete cases; finding a crossover

Where the data comes from

Measure real tins and boxes from a supermarket, and test your predicted arrangements with coins or bottle tops.

  • GeoGebra — Free geometry and graphing software — Voronoi diagrams, loci and regression built in.

A possible outline

  1. Derive the two densities.
  2. Write the box area for n tins in each arrangement.
  3. Compare for n = 1 to 60 and find the crossover.
  4. Test predictions physically with coins.
  5. Reflect on why real cases use square packing (strength, handling, labelling).

Pitfalls that cost marks

  • Quoting the densities without deriving them.
  • Comparing only large n, where the answer is obvious.
  • Ignoring the box's wall thickness.

Showing personal engagement

  • Use the tins your family buys.
  • Test with coins and photograph the arrangements.
  • Ask why your supermarket's boxes are packed the way they are.

See Criterion C: personal engagement for what examiners look for.

Which course is it for?

CourseFitMaths to lean on
AA SLGood fitPacking density: π/4 for square and π/(2√3) for hexagonal (derived); Box dimensions as functions of the number of rows and columns
AA HLGood fitPacking density: π/4 for square and π/(2√3) for hexagonal (derived); Box dimensions as functions of the number of rows and columns
AI SLGood fitPacking density: π/4 for square and π/(2√3) for hexagonal (derived); Box dimensions as functions of the number of rows and columns
AI HLNot a natural fitThe mathematics is mainly from the AA course; an AI HL version would need modelling with technology, statistics or networks at HL level.

Level: Solid. Needs some independent work beyond class examples. See how the IA differs between AA and AI, SL and HL.

How this idea reaches the top bands

Reflection (D)

For this idea, start with the weak points: quoting the densities without deriving them; and comparing only large n, where the answer is obvious. Say how each one affects your answer.

Use of mathematics (E)

SL: packing density: π/4 for square and π/(2√3) for hexagonal (derived); box dimensions as functions of the number of rows and columns; trigonometry and Pythagoras for offset rows; comparing discrete cases; finding a crossover, each explained in your own words and carried out correctly.

How optimisation explorations reach the top bands in general: Optimisation & linear programming IA ideas. Guides: A · B · C · D · E · self-grade sheet.

Taking it further

Extend to three dimensions (stacking oranges) or to tins of two different sizes.

Extending it for HL

Add an HL technique the question genuinely needs: what an HL optimisation exploration adds.

Frequently asked questions

Which IB Maths course is this IA idea for?

It works for AA SL, AA HL and AI SL. We rate it Solid: it needs some independent work beyond class examples.

What mathematics does this IA use?

Packing density: π/4 for square and π/(2√3) for hexagonal (derived), box dimensions as functions of the number of rows and columns, trigonometry and Pythagoras for offset rows and comparing discrete cases; finding a crossover.

Where can I get data for this IA?

Measure real tins and boxes from a supermarket, and test your predicted arrangements with coins or bottle tops. Checked sources and tools: GeoGebra.

Turn this idea into your IA

The planner opens with “Square or hexagonal? Packing tins into a box” filled in: the question, the maths and the data sources.

Plan this IA free

Your plan is kept in this browser. A free account keeps it with your drafts on any device: Join free · Sign in

Also: free IA self-check · A–E checklist (PDF) · have a draft? AI feedback or a review with Pete (€100)

Writing it up: how to write a Maths IA, step by step · structure and format · mistakes that cost marks · IA modelling, step by step

Similar ideas

All optimisation ideas · AA SL ideas · AA HL ideas · AI SL ideas · All 239 IA ideas