Quick answer: chocolate bars are molded in square or rectangular segments because flat, even shapes cool uniformly, break cleanly, and pack tightly for wrapping and shipping. A square grid also lets you snap off a portion of a predictable size, which is why most bars land somewhere around 1 inch (2.5 cm) per segment. The shape is really about manufacturing and portioning, not tradition for its own sake.
Think of a standard milk chocolate bar: a flat slab divided into a grid of small squares, thin enough to snap, thick enough not to crumble in the wrapper. Everything about that design follows from how chocolate is made and how it behaves once it is tempered.
Flat Slabs Cool Evenly, and Even Cooling Keeps Chocolate Snappy
Melted chocolate is poured into molds and cooled until it sets. A thin, flat slab cools at the same rate all the way through, so the cocoa butter crystallizes in the stable form that gives chocolate its firm snap and glossy surface. A thick or uneven shape would set at different rates in different spots, and unevenly set chocolate turns dull, soft, or streaky with pale fat bloom.
Most commercial bars are only about 4 to 10 millimeters (roughly 3/16 to 3/8 inch) thick. That thickness is the sweet spot: it cools fast and evenly, sets firmly, and still feels like a solid bite.
Square Segments Snap Along Clean Lines
The grid of squares is not decoration. Chocolate is brittle rather than bendy, so a grooved segment gives the bar a weak line to break along. Press a square against the edge of a table or bend the bar back over a straight edge, and it separates at the groove instead of shattering randomly. That gives you a portion of a predictable size, typically about 5 to 10 grams per square depending on the bar.
Squares and rectangles work better than circles or triangles here because straight grooves running in two directions cover the whole bar with no wasted space and no odd leftover pieces. A standard bar might be divided into a grid of roughly 4 by 6 or 4 by 8 segments, all identical.
Rectangles Pack, Wrap, and Ship Better Than Any Other Shape
Rectangular bars stack flat in boxes with almost no gaps, which keeps shipping simple and reduces breakage. The wrapper is also easier: a flat rectangular bar can be sealed in a simple foil-and-paper sleeve with straight folds, no shaping needed. Odd shapes would need custom packaging and leave empty space in every carton.
Standard bar sizes vary by brand and market, but a common single-serve bar weighs about 40 to 50 grams (1.4 to 1.8 oz) and a large sharing bar about 90 to 100 grams (about 3.2 to 3.5 oz). A rectangular footprint around 6 by 3 inches (15 by 8 cm) for a large bar fits vending spirals, shelf rows, and pocket-sized sleeves alike.
Some Bars Are Not Square, and the Reasons Tell You the Rule
Plenty of chocolate breaks the pattern. Bars aimed at sharing are often longer rectangles with fewer, larger segments. Novelty and seasonal pieces come as balls, eggs, hearts, or figures, and those are usually molded thicker and sold as single pieces rather than portioned bars, so snapping lines matter less. Thin specialty bars are molded in one solid rectangle with no grooves at all, meant to be broken by hand or chopped.
The pattern to remember: the more a chocolate is meant to be portioned and shared, the more likely it is to be a thin grid of squares. The more it is meant to be eaten as one piece, the more freedom the shape has.
Break a Bar Cleanly Every Time
Use the grooves instead of fighting them. Chill the bar in the fridge for 10 to 15 minutes first so it is firm, then score lightly along the groove with a warm knife (dip the blade in hot water and dry it) and snap the bar away from you over a counter edge. For baking, break along the grooves first, then chop the squares to the size the recipe calls for, which melts more evenly than one large chunk.
Store chocolate cool and dry, ideally below about 70°F (21°C), away from light and strong smells. Squares that have gone streaky with fat bloom are still fine to melt or bake with; the texture is affected but not safety. Keep chocolate away from pets, since chocolate is toxic to dogs and cats.