MathOverflow is a question and answer site for professional mathematicians. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hi all,

I have a cube, sized 39 x 13 x 8. I need to find out how many of them can fit in a cube of 100 x 100 x 100. I need to find the highest number possible.

Do you know of a way to do that without having to draw them, with trial and error?

Many thanks in advance


share|cite|improve this question
I do not have a definite answer, and I am surely no expert on this topic. But I can say that similar problems are hard: In your case, a computer program might be the easiest way out. – jmc May 18 '13 at 14:09
Your latter cube is indeed a cube, but the first-mentioned "cube" is not. Such a rectangular body is called a cuboid. – John Bentin May 18 '13 at 17:42
Do you think trial and error will find the optimal packing? I feel like I have to think "outside the box" to pack 5 unit squares in a 2.8x2.8 square. Hopefully this sort of packing is not necessary for your problem. – Dustin G. Mixon May 18 '13 at 18:59
@John : $\:$ I suspect that what the OP has is a rectangular prism, since a cuboid can be more general. – Ricky Demer May 18 '13 at 20:02
FYI - I asked a follow-up question, and got an answer that might interest you: – Dustin G. Mixon May 19 '13 at 0:25

It might be hard to get an optimal packing, but it looks like this paper can get you close. Page 24 illustrates different instances of their algorithm's solution. For example, this is how they pack 255 rectangles of size 137x95 into a 2530x1320 rectangle:

alt text

For more information, google "manufacturer's pallet loading problem."

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.