Comparing two uniform orientations in a sheet grid
The sheet grid tool places pieces in the orientation you enter. Running it a second time with width and height swapped tests the other uniform orientation, as in a 10 by 6 sheet with 4 by 3 pieces.
One orientation per run
The rectangular sheet grid tool lays out identical pieces in rows and columns, all facing the same way. The piece width runs along the sheet width and the piece height runs along the sheet height. If a rectangle fits better turned a quarter turn, the tool does not turn it on its own. You test that case by swapping the two piece dimensions and running the calculation again. Each run is a separate trial of one uniform pattern, and comparing trials is the way to pick the better of the two.
The grid formulas
The tool computes columns = max(0, floor((sheetW − 2 × margin + gap) / (pieceW + gap))), rows = max(0, floor((sheetH − 2 × margin + gap) / (pieceH + gap))) and pieces = columns × rows. The margin is kept free on all four edges, which is why it is subtracted twice. The gap is added to the usable length because n pieces have only n − 1 gaps between them: n × p + (n − 1) × g fits in a length L when n is at most (L + g) / (p + g). The max with zero keeps a piece that does not fit at all from producing a negative count.
The first orientation
A sheet 10 wide and 6 high, with pieces 4 wide and 3 high and zero margin and gap, gives columns = floor(10 / 4) = 2 and rows = floor(6 / 3) = 2. That is 4 pieces. Two columns of width 4 use 8 of the 10 units, leaving a strip of width 2 unused, and two rows of height 3 use the full 6. The leftover strip is 2 by 6, or 12 square units of the 60 on the sheet, so the grid covers 48 units of area and wastes the rest.
The swapped orientation
Swap the piece to 3 wide and 4 high on the same sheet. Now columns = floor(10 / 3) = 3 and rows = floor(6 / 4) = 1, for 3 pieces. The columns use 9 of the 10 units across, but the single row uses only 4 of the 6 units up, leaving a strip 10 by 2. Three pieces cover 36 units of area. In this example the first orientation wins, 4 pieces against 3. The result is not a general rule, since another sheet and piece size can favor the swapped orientation. Square pieces make the second trial pointless, because swapping equal sides changes nothing, and a sheet that is itself square makes the two trials mirror images of each other only when the piece is square as well. In every other case the two runs can differ.
A case where rotating wins
Take a sheet 12 by 8 with pieces 3 by 2, a margin of 0.5 and a gap of 0.25. Usable length across is 12 − 1 + 0.25 = 11.25 and each pitch is 3.25, so columns = floor(3.46) = 3. Down, the usable length is 8 − 1 + 0.25 = 7.25 over a pitch of 2.25, so rows = floor(3.22) = 3. That is 9 pieces. Swapped to 2 by 3, the columns are floor(11.25 / 2.25) = 5 and the rows floor(7.25 / 3.25) = 2, for 10 pieces. Here the rotated trial gains one piece, which is why comparing both runs is worthwhile.
A practical card layout
Business cards of 3.5 by 2 inches on a sheet 11 by 8.5 inches with a quarter-inch margin and no gap give columns = floor(10.5 / 3.5) = 3 and rows = floor(8 / 2) = 4, so 12 cards. Swapped to 2 by 3.5, the columns are floor(10.5 / 2) = 5 and the rows are floor(8 / 3.5) = 2, which is 10 cards. The unrotated orientation wins by two pieces. The margin leaves the counts unchanged here, because 10.5 divides evenly by 3.5 and the remaining height still holds four rows. A margin of 0.5 inch would shrink the usable width to 10 inches and cost a column, dropping the first orientation to 2 columns and 8 cards. Small margin changes can matter a great deal when a division lands close to a whole number.
Area is an upper bound, not a plan
Dividing the sheet area by the piece area gives an upper limit on the count. For the default case, 60 divided by 12 is 5. The uniform grids find 4 and 3. Whether any arrangement reaches 5 is a separate question that this tool does not answer, and it should not be assumed. The area bound ignores the shape constraint, and real layouts have to fit whole rectangles into a rectangle. Use the bound only as a reminder that a count above it would be an error. The same bound applies to the larger example: the 12 by 8 sheet has 96 square units and each 3 by 2 piece takes 6, so no layout can exceed 16 pieces, and the grids found 9 and 10. The gap between the count and the bound comes from the margin, the spacing and the leftover strips.
What a uniform grid does not cover
The tool does not mix orientations in one layout, nest pieces in offset rows, rotate by other angles or search for a best arrangement. Layouts that combine rotated and unrotated pieces in separate blocks of the sheet can sometimes beat both uniform grids, and software built for nesting explores such patterns. The two-trial comparison therefore gives the better of two simple options and nothing more. A certified optimum, or a statement that a layout is the best possible, is outside what the calculation shows.
Cutting and production limits
The result counts rectangles on paper in a plane drawing. It does not account for blade width unless you include it in the gap, grain direction, gripper edges, registration marks, bleed or the limits of a particular cutter. If pieces have bleed, include it in the piece size. If the cutter needs a kerf, add it to the gap. Production staff or the printer can tell you which allowances apply, and the numbers from those answers go into the same fields. Keep sheet and piece dimensions in one unit, and keep the margin and gap in that unit too, since the formula adds them to lengths directly. Entering a gap in millimeters for a sheet in inches would add far more space than intended and reduce the count sharply.
Reproduce the checks
First orientation
Open the Rectangular Sheet Grid Calculator and enter:
- Sheet width
10- Sheet height
6- Piece width including bleed
4- Piece height including bleed
3- Margin on each edge
0- Inter-piece gap
0
Expected output:
Columns
2Rows
2Pieces per sheet
4All pieces share the same orientation.
Rotated uniform orientation
Open the Rectangular Sheet Grid Calculator and enter:
- Sheet width
10- Sheet height
6- Piece width including bleed
3- Piece height including bleed
4- Margin on each edge
0- Inter-piece gap
0
Expected output:
Columns
3Rows
1Pieces per sheet
3The second trial does not search mixed arrangements.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.
Sources
- Adobe: Set a print bleed ↗ · 2026-10-08