You may need to place several shapes at equal distances inside a specific area of a slide, such as a rectangle you drew or a picture placeholder. PowerPoint has built-in alignment tools, but they distribute shapes across the entire slide, not inside your custom boundary. This article explains how to create a custom bounding box and use a combination of guides, the Align tool, and manual calculations to space shapes evenly within that box. You will learn two practical methods that work in PowerPoint 2016, 2019, 2021, and Microsoft 365.
Key Takeaways: Distributing Shapes Inside a Custom Rectangle
- Draw a temporary rectangle as your bounding box: This defines the exact area where shapes must be evenly spaced.
- Align shapes to the bounding box edges: Use Align Left, Align Right, Align Top, or Align Bottom to snap first and last shapes to the box.
- Distribute shapes horizontally or vertically within the box: Select the bounding box and all shapes, then use Align > Distribute Horizontally or Distribute Vertically.
Why PowerPoint’s Native Distribute Tool Works on the Slide, Not on a Custom Box
PowerPoint’s Distribute Horizontally and Distribute Vertically commands measure distances from the leftmost and rightmost selected objects, or from the topmost and bottommost selected objects. When you select shapes without a bounding box, the distribution is based on the outer edges of the shapes themselves. This means the first and last shapes define the start and end points of the distribution range.
To distribute shapes inside a specific area, you must include a shape that represents the left and right boundaries of that area. The simplest way is to draw a rectangle that matches the desired bounding box. Once you select the rectangle together with your shapes, the Distribute command treats the rectangle as the leftmost and rightmost object, forcing all shapes to space evenly between the rectangle’s edges.
After the distribution is complete, you delete the temporary rectangle. The shapes remain in their new evenly spaced positions. This method works for horizontal and vertical distribution and can be repeated for multiple rows or columns.
Method 1: Distribute Shapes Horizontally Inside a Custom Rectangle
This method uses a temporary rectangle as the bounding box. You can apply the same steps for vertical distribution by substituting Align Top and Align Bottom for the edge alignment steps.
- Draw the bounding box rectangle
On the Insert tab, click Shapes and select Rectangle. Draw a rectangle that matches the area where you want your shapes to be distributed. Set the Shape Fill to No Fill and Shape Outline to a visible color such as blue so you can see the boundary. - Position the first and last shapes on the box edges
Select the first shape. Hold Shift and select the bounding box rectangle. On the Shape Format tab, click Align and choose Align Left. This snaps the left edge of the shape to the left edge of the rectangle. Repeat for the last shape: select the shape and the rectangle, then click Align > Align Right. - Select all shapes and the rectangle
Click and drag to select the bounding box rectangle and all the shapes you want to distribute. Make sure the rectangle is included in the selection. - Apply horizontal distribution
On the Shape Format tab, click Align and select Distribute Horizontally. PowerPoint now treats the rectangle as the leftmost and rightmost object, so the shapes are evenly spaced between the rectangle’s left and right edges. - Delete the temporary rectangle
Click the rectangle and press Delete. Your shapes remain in their new evenly spaced positions inside the original bounding area.
Vertical Distribution Inside a Custom Box
To distribute shapes vertically, follow the same steps but replace Align Left with Align Top for the first shape and Align Right with Align Bottom for the last shape. Then use Distribute Vertically instead of Distribute Horizontally.
Method 2: Distribute Shapes Without a Rectangle Using Smart Guides and Manual Spacing
If you prefer not to use a temporary rectangle, you can rely on PowerPoint’s Smart Guides and a manual spacing calculation. This method works best when you have only two or three shapes to distribute.
- Enable Smart Guides
Right-click an empty area of the slide and select Grid and Guides. Check Display Smart Guides when shapes are aligned. Smart Guides appear as dashed red lines when shapes are aligned or equally spaced. - Place the first and last shapes manually
Drag the first shape to the left edge of your desired bounding area. Drag the last shape to the right edge. Use the Align tool to snap them exactly if needed. - Calculate the spacing interval
Measure the total width between the left edge of the first shape and the right edge of the last shape. Divide that width by the number of shapes minus one. For example, with four shapes, divide the total width by three. This number is the gap you must place between each shape. - Drag the middle shapes into position
Drag each remaining shape into the gap. Smart Guides will show red dashed lines when the shape is aligned vertically with others. They also display equal spacing indicators when the gaps match. - Fine-tune with arrow keys
Use the arrow keys to nudge shapes one pixel at a time for precise alignment. Hold Ctrl while pressing an arrow key to nudge in smaller increments.
Common Mistakes and Limitations When Distributing Shapes Inside a Custom Box
The Distribute command uses the full slide instead of my rectangle
This happens when the rectangle is not selected along with the shapes. Ensure the rectangle is part of the selection before clicking Distribute Horizontally or Distribute Vertically. If the rectangle is behind the shapes, click it once to select it, then hold Shift and click the shapes.
Shapes overlap after distribution
Overlapping occurs when the bounding box rectangle is too narrow for the total width of all shapes combined. Before distributing, verify that the rectangle width is greater than the sum of the widths of all shapes. If not, widen the rectangle or reduce the size of the shapes.
Distribute Vertically does not work with a rectangle selected
The Distribute Vertically command treats the topmost and bottommost selected objects as the boundaries. If you want vertical distribution inside a custom box, you must include the rectangle and ensure it is the topmost and bottommost object. Align the top shape to the top edge of the rectangle and the bottom shape to the bottom edge before running Distribute Vertically.
Shapes move when I delete the temporary rectangle
Shapes do not move when you delete the rectangle because the rectangle is a separate object. If shapes shift, you may have grouped the rectangle with the shapes. Avoid grouping. Keep the rectangle ungrouped and delete it after distribution.
| Item | Method 1: Temporary Rectangle | Method 2: Smart Guides + Manual |
|---|---|---|
| Setup time | Under 30 seconds | 1–2 minutes per row |
| Precision | Exact equal spacing | Approximate, requires nudging |
| Best for | 3 or more shapes, any orientation | 2–3 shapes, quick adjustments |
| Requires | A temporary rectangle | Smart Guides enabled |
| Works in PowerPoint Online | Yes | Yes |
You can now distribute any set of shapes evenly inside a custom bounding box using a temporary rectangle. This technique also works for distributing shapes inside a table cell or a picture placeholder. Try the Align to Slide option first if you want shapes distributed across the entire slide instead of a custom area. For precise control, combine the rectangle method with the Format Shape pane to set exact shape dimensions before distributing.