How Many Equal Circles Fit in a Rectangle?

← Back to Engineering Library

A 100 × 90 mm tray holds 20 discs of diameter 20 mm in a square grid. Offset every other row by half a diameter and 23 fit. Enter your sheet dimensions to compare both patterns, rotate the staggered rows and see exactly where the extra pieces fit.

Lay out equal circles on a rectangular sheet

Enter all five lengths in one unit, such as millimetres or inches. The edge margin is measured from the sheet boundary to the outside of a circle. The gap is measured between adjacent circle edges.

How the row count is calculated

For diameter d, edge margin m and gap g, the first center sits m + d/2 from each boundary. The available center span along the width is W − 2m − d. Divide this span by the pitch p = d + g, round down, and add one for the first circle. A negative span means zero circles. Apply the same rule along the height for a square grid.

Staggering offsets alternate rows by p/2. Adjacent centers form an equilateral triangle, so the vertical step is √(p² − (p/2)²) = 0.866025p. Count the offset rows using the remaining horizontal span after subtracting p/2. Repeat with width and height exchanged to test staggered columns.

Sheet height comparison for 20 mm discs

Each sheet is 100 mm wide with zero gap and edge margin. The counts are feasible regular arrangements. Irregular or mixed patterns can sometimes fit more.

Height (mm) Square grid Staggered rows Staggered columns
60 15 14 13
70 15 14 15
80 20 18 18
90 20 23 20
100 25 23 23
110 25 27 25
120 30 27 28

Download the sheet layout comparison (PDF)

Worked example for a tray insert

For 100 × 90 mm and 20 mm discs, the available spans are 80 and 70 mm. The square grid gives 5 columns × 4 rows = 20 discs. With staggered rows the step is 17.321 mm, so 1 + floor(70/17.321) = 5 rows fit. The rows contain 5, 4, 5, 4 and 5 pieces, totaling 23. Their combined area is 23 × π × 10² ≈ 7,226 mm², or 80.3% of the sheet.

Applications and common questions

How do I allow for clearance around bottles or parts?

Use the largest outside diameter that must fit, including any rim. Enter the required part-to-part gap separately from the perimeter clearance. A bottle tray may need clearance for removal beyond the physical fit.

Can I use this to estimate blank yield before laser cutting?

Yes. For example, specify the finished blank diameter and the required separation between blank outlines. Confirm the separation and edge margin with the cutting process, including kerf compensation, clamping and any required web between cuts.

Is the highest count guaranteed to be the absolute maximum?

The calculator compares three regular layouts. Research on finite rectangles also finds hybrid and irregular arrangements. The visualizer provides a layout you can reproduce for the displayed count. Lubachevsky and Graham, circle packings in rectangles.

Does staggering always help?

A narrower row step can fit an extra row. If the sheet height falls just short of the next row, the alternating offset may simply remove pieces. Compare all three counts before choosing a pattern.

What happens if I rotate the rectangle?

Width and height exchange roles. The square count stays the same, and the two staggered counts swap. Testing both directions matters on long strips.

Why is area divided by disc area too optimistic?

That quotient counts empty corners and spaces between circles as usable disc material. It gives an upper bound. Complete discs must also satisfy pairwise spacing and boundary constraints.

Can the circles touch?

Zero gap allows tangency. Zero margin lets a disc touch the sheet edge. For physical parts, enter the worst-case diameter and the required assembly clearance to account for tolerance.

Related Engineering Calculators

Share This Article
Tags: