Stow

Pack the shapes into crates so that nothing is left over and nothing is left rattling. A crate with a sliver of room still in it is a crate wasted, so the fit has to be exact rather than merely tidy.

How to play

Every crate holds the same amount, and each item on the quay is labelled with the space it takes.

  1. Add it all up first Total the goods, divide by the crate size and round up. Nothing can beat that number — but it is not always reachable.
  2. Look for exact pairs Two items that together fill a crate exactly are the best thing on the board. Find them before anything else.
  3. Big items first Place the awkward large ones while there is still room to choose. Small ones fill gaps at the end.
Full instructions

In depth

Fitting cargo into the fewest crates possible

How the bin packing puzzle works, why the obvious answer is sometimes impossible, what makes the middling items so dangerous, and the step-by-step method that gets you to par on every board.

Screenshot: How to play Stow
How to play Stow as it appears when the page opens.

The puzzle and why splitting is forbidden

Items sit on a quay, each showing its size as a number. A row of crates waits below, and every crate holds the same amount. Your job is to load all the items into as few crates as possible. The one rule that makes it hard is that nothing may be split between crates. An item must go into a single crate or not at all.

Without that rule, the answer would always be the total of all the items divided by the crate size, rounded up. A crate of size 12 holding items that total 36 would need exactly three crates, and you could chop up the last item to fill the gap. But because items stay whole, the pieces sometimes refuse to fit together neatly, and the true minimum can be one or two crates more than the arithmetic suggests.

Controls and how loading works

Tap an item on the quay to pick it up. It highlights to show it is held. Then tap a crate to drop it in. If the item fits, it appears inside the crate as a coloured bar whose height shows how much of the crate it fills. If the item would overflow the crate, the game refuses the drop and tells you how much room is left.

To remove an item from a crate, tap the item inside the crate. It returns to the quay and can be placed somewhere else. Only the crates in use at the end are counted, so rearranging is free. You can unpack everything and start over as many times as you like without penalty.

The three cargo sizes

The Cargo selector offers three levels. Small gives about seven items and crates that hold ten units each. Medium gives about nine items with crates of twelve. Large gives about eleven items with crates of fourteen. The word about is deliberate: the game varies the exact number of items so that par does not always land on the same figure.

Item sizes range from two up to just under the crate capacity. The game generates items randomly within that range and then checks that the resulting puzzle needs between three and six crates to solve. If the random draw produces something too easy or too hard, it redraws. That means every board is genuinely solvable and has a clear, reachable goal. You will never face a set of items that requires more crates than the game provides.

The stats bar and what par means

Three figures appear above the board. Goods aboard shows how many items are loaded out of the total. Crates used counts only the crates that currently hold at least one item. Fewest crates shows par, the true minimum number of crates that can hold everything.

Par is exact. The game searches every possible packing, skipping arrangements that are the same as ones already tried. On the small boards used here the search finishes instantly, so par is not an estimate or a lower bound. It is the real answer. When you match it, you have found a solution that no cleverer approach could beat.

Strategy: add up the total first

Before touching any item, add up all the sizes and divide by the crate capacity. Round up. That number is the absolute floor. Nothing can ever beat it. If the total is 47 and crates hold 12, the floor is four, because three crates would only cover 36.

Sometimes par equals this floor and sometimes it is one higher. When it is one higher, the game tells you so in the win message. That extra crate exists because the items refuse to fit together to fill every crate exactly. Knowing the floor before you start tells you whether you are aiming at the obvious number or at something one above it. This mental step takes five seconds and saves minutes of fruitless rearranging.

Strategy: look for exact pairs

Two items that together fill a crate exactly are the best thing on the board. A crate of size 12 with items of 5 and 7 is perfectly packed, wasting nothing. Find these pairs before you do anything else, because every pair you lock in is a crate solved with no room lost.

After pairs, look for triples. Three items that together add to exactly the crate size are nearly as good and worth hunting for. The more complete crates you can build early on, the fewer awkward leftover items you have to juggle at the end.

Strategy: place the big items first

After pairing off exact matches, sort the remaining items in your head from largest to smallest and place the big ones first. The reason is that large items are inflexible. An item of size 9 in a crate of 12 leaves only 3 units of room, which can only be filled by a 1, a 2 or a 3. If you leave it until last and the only remaining items are 4 and above, you are stuck with a nearly empty crate.

Small items are flexible. A 2 or a 3 can fit into almost any gap. Saving them for last means you always have something that can fill a crate's remaining space. This largest-first approach is a well-known technique in packing problems, and it gets close to the optimum on its own. On many boards it gives you the exact best answer without any further thought.

The dangerous middle: items just over half

The hardest items to handle are the ones just over half the crate size. In a crate of 12, an item of 7 is the worst possible size, because it cannot share a crate with another 7. Each one nearly costs an entire crate of its own, leaving five units of room that can only be filled by small scraps.

When you see several items in this range, you know the puzzle will be tight. The gap between the arithmetic floor and par is almost always caused by these middling items. If you have three items of 7 and a crate of 12, that is three crates right there, holding 21 out of a possible 36, with 15 units of space wasted. No amount of clever packing can fix that. Recognising it early keeps you from searching for a solution that does not exist and helps you accept the true minimum without frustration.

Common mistakes that cost an extra crate

  • Loading items in the order they appear from left to right on the quay. The quay is not sorted by size, so working in order is random packing. Pick by size, not by position.
  • Filling one crate at a time. It is better to scan for exact pairs across all the items before committing to a single crate.
  • Forgetting that rearranging is free. If you realise a better grouping halfway through, tap items out and repack. There is no penalty.
  • Ignoring the remaining space in a crate. The number under each crate shows how much is filled out of the total. A crate at nine out of twelve has room for a three and nothing bigger.
  • Aiming for the arithmetic floor when it is not reachable. If the total divided by the crate size comes to four but par is five, no arrangement of four crates will work. Accept the five and move on.

Scoring and what a win looks like

When all items are aboard and the number of crates used is at or below par, the game declares a win. If par is higher than the arithmetic floor, the win message points that out. Your best score is the fewest crates used and is saved in your browser on this device.

If everything is aboard but you used more crates than par, the game tells you how many fewer were possible and lets you keep rearranging. You can always take items back out and try a different grouping. There is no move limit and no timer, so you can take as long as you need to find the best arrangement.

The whole puzzle stays on your machine

The items, the crates, the search for par and your score all run inside the page. Nothing is uploaded, there is no account, and the best-score figure lives only in your browser. Once the page has loaded, the game works offline with no difference in behaviour. You can prove it by disconnecting from the network and pressing New game. The items are generated locally and the search for the fewest crates happens entirely in your browser's memory.

Help

How to play Stow

Every crate holds the same amount, and each item on the quay is labelled with the space it takes. Tap an item to pick it up and then a crate to drop it in, and tap one already packed to lift it back out. The score is the number of crates used, so the question is never whether it all fits but how little room you waste fitting it.

Add it all up first

Total the goods, divide by the crate size and round up. Nothing can beat that number — but it is not always reachable.

Look for exact pairs

Two items that together fill a crate exactly are the best thing on the board. Find them before anything else.

Big items first

Place the awkward large ones while there is still room to choose. Small ones fill gaps at the end.

Watch the leftovers

A crate with two units spare is only useful if something is two units big.

Bin packing, and how good the obvious rule is

Take each item in turn and drop it into the first crate it fits in. That is first fit, and it never uses more than about seven crates for every four that are truly necessary. Sort the items largest first and do the same, and the bound improves to eleven for every nine plus a little — a result of David Johnson’s from 1973 that took decades to pin down exactly. Finding the true best is NP-hard, so those bounds are what practical packing actually relies on, from lorries to memory allocators to cutting steel bar. The interesting cases are the ones where adding the sizes up and dividing gives a number that simply cannot be achieved, because the items refuse to fit together. These boards are small enough to search completely, so par here is the real minimum.

Good to know

The middling items are the problem

Anything just over half a crate cannot share with another of its kind, so each one nearly costs a crate of its own.

Largest first is a good rule

Sorting biggest to smallest and dropping each into the first crate it fits gets close to the best, and sometimes exactly there.

Nothing may be split

That single restriction is what makes this hard. Without it the answer would just be the total divided by the crate size.

Unpacking is free

Only the crates in use at the end are counted, so rearrange as much as you like.

Common questions

Can I split an item between crates?
No. That is the whole difficulty.
Do the crates differ?
No, they all hold the same. Only what you put in them matters.
Why is the total divided by the crate size not always the answer?
Because the pieces may not fit together to fill every crate exactly. When that happens the win message says so.
Does the order I load them matter?
Not to the result — only which items end up together.
Is the fewest-crates figure exact?
Yes. Every packing is searched, with equivalent arrangements skipped.