Container Packing (SQA National 5 Applications of Mathematics): Revision Note

Exam code: X844 75

Dan Finlay

Written by: Dan Finlay

Reviewed by: Roger B

Updated on

Container packing

What is the container packing problem?

  • You will be given:

    • a container with dimensions

    • a box with dimensions

  • You need to find the maximum number of boxes that fit in the container

  • All boxes need to be aligned in the same direction

  • Consider the direction orientations for the boxes

    • There are 6 different orientations

    • However, there will be restrictions in a question to reduce this to 2 or 3

Yellow gift box with red ribbon inside an open grey locker, surrounded by closed lockers.

How do I find the number of boxes that will fit in a container using a given orientation?

  • Change any necessary lengths so that they are all in the same units

  • STEP 1
    Find how many boxes you can fit on top of each other

    • Divide the height of the container by the height of a box

    • Round down to the next whole number

  • STEP 2
    Find how many boxes you can fit on next to each other in one direction

    • Divide the width of the container by the width of a box

    • Round down to the next whole number

  • STEP 3
    Find how many boxes you can fit on next to each other in the other direction

    • Divide the breadth of the container by the breadth of a box

    • Round down to the next whole number

  • STEP 4
    Multiply the number of boxes in the three directions together

Rectangular prism composed of smaller, stacked cubes, forming a stepped structure on one end.

What are the options if the boxes need to be packed upright?

  • There are two orientations if the boxes need to be packed upright

  • It is easier to visualise these using a bird's eye view

  • The two options are:

    • the longer side of the box sits alongside the longer side of the container

    • the shorter side of the box sits alongside the longer side of the container

Diagram showing two containers: top has a rectangular box on the right, bottom has a taller box on the right. Both are labelled "Container" and "Box."

Examiner Tips and Tricks

Don't forget to still divide the heights for these options when calculating the number of boxes.

What are the options if the boxes have a square base?

  • There are three orientations if the boxes have a square base

    • Two of the lengths are equal and the third is different

  • The three options are:

    • the third length is used as the height of the box

    • the third length is used as the width of the box

    • the third length is used as the breadth of the box

Three peach-coloured 3D shapes: a tall rectangular prism, a smaller cuboid, and another cuboid, all with visible top and side faces.

Worked Example

A small box has dimensions 7.2 cm × 2.8 cm × 4.3 cm.

Rectangular box labelled "This way up" with dimensions: length 7.2 cm, height 4.3 cm, and width 2.8 cm, depicted in monochrome.

The small boxes are packed into a bigger box with dimensions 1.6 m × 0.8 m × 1.0 m.

A labelled rectangular box with dimensions 1.6m length, 0.8m width, and 1.0m height, marked with "This way up" text on the side.

The small boxes must be aligned in the same direction.

Calculate the maximum number of small boxes that can be packed into the bigger box.

Answer:

Convert metres into cm by multiplying by 100

1.6 m = 160 cm

0.8 m = 80 cm

1.0 m = 100 cm

The 4.3 cm side of the small box must align with the 1.0 m side of the big box

  • This is to keep the boxes the right way up

Calculate the number of boxes that can fix on top of each other

up down arrow space 100 divided by 4.3 equals 23.25... equals 23 space boxes

23 boxes

Option 1 -the 7.2 cm side aligns with the 1.6 m side

Calculate the number of boxes that can fit next to each other in each direction

left right arrow space 160 divided by 7.2 equals 22.22... equals 22 space boxes
⤢ space 80 divided by 2.8 equals 28.57... equals 28 space boxes

Calculate the number of small boxes

23 cross times 22 cross times 28 equals 14168

Option 2 -the 2.8 cm side aligns with the 1.6 m side

Calculate the number of boxes that can fit next to each other in each direction

left right arrow space 160 divided by 2.8 equals 57.14... equals 57 space boxes
⤢ space 80 divided by 7.2 equals 11.11... equals 11 space boxes

Calculate the number of small boxes

23 cross times 57 cross times 11 equals 14421

Choose the maximum number

14,421

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Dan Finlay

Author: Dan Finlay

Expertise: Maths Subject Lead

Dan graduated from the University of Oxford with a First class degree in mathematics. As well as teaching maths for over 8 years, Dan has marked a range of exams for Edexcel, tutored students and taught A Level Accounting. Dan has a keen interest in statistics and probability and their real-life applications.

Roger B

Reviewer: Roger B

Expertise: Maths Content Creator

Roger's teaching experience stretches all the way back to 1992, and in that time he has taught students at all levels between Year 7 and university undergraduate. Having conducted and published postgraduate research into the mathematical theory behind quantum computing, he is more than confident in dealing with mathematics at any level the exam boards might throw at you.