Patio and garden calculators

Plant spacing calculator

Enter your bed size and pick a plant or type your own spacing. You get how many plants fit, on a square or staggered grid.

Open on PatioFinds

This embed was switched off for this website. Open on PatioFinds

Add this tool to your siteFree embed code, no sign-up. Keep the credit link.

Embed this tool

Copy this code into your website, blog or class page. The tool runs inside your page.

Optional settings, added to the address after embed=1: &accent=0f6b5c (colour, 3 or 6 hex digits). Other parameters are ignored.

Please keep the credit link below the tool.

A plant spacing calculator works out how many plants fit in a garden bed, or how long a bed must be to hold a set number of plants. This one does both, using either a spacing you type or one of 27 vegetable presets taken from two university extension tables. You can lay the plants out on a square grid or a staggered grid, and see the count and the plants per square foot. It suits a home gardener planning a bed before buying seedlings or transplants. It runs in your browser, nothing you type is uploaded, it is free, and no sign-up is needed. Results are calculated from the sizes and spacing you enter, so treat them as a planning estimate.
Plant spacing calculator example

How to use the Plant spacing calculator

  1. Under “What do you want to know?”, choose “How many plants fit my bed” or “How big a bed I need”.
  2. Type “Bed length” and “Bed width” in feet, inches, meters or centimeters. The bed-size mode needs only the width.
  3. Under “Layout”, pick “Square grid (rows and columns)” or “Staggered (triangular) grid”.
  4. Under “Plant”, choose one of the 27 vegetables, or “My own spacing” and type “Space between plants (inches)”. On a square grid, also type “Space between rows (inches)”.
  5. If a preset shows a range, read both ends. The tool counts plants at the closest spacing and at the widest.
  6. In the bed-size mode, type “Number of plants wanted”. It must be a whole number.
  7. Read the results. The first mode shows “Plants that fit”, “Spacing used (plant × row)”, “Plants per square foot” and “Spacing source”. The second shows “Bed length needed” and “Bed area needed”, the shortest bed that holds your number.
  8. Read any warning. One appears when no plant fits, and another when a staggered layout is used with a crop preset.

If a size is blank, zero, negative or not a number, or you ask for a fractional number of plants, an error appears instead of a result.

Presets are the quickest route for vegetables. For herbs and flowers, type your own spacing, because no extension table with reliable figures for them was found. A table on the page lists every preset figure and its source.

How does a plant spacing calculator count plants?

A plant spacing calculator treats the bed as a grid of cells, one plant per cell. On a square grid, the count is the number of in-row spacings that fit the length, multiplied by the number of row spacings that fit the width. The formula is floor(length ÷ in-row spacing) × floor(width ÷ row spacing). “Floor” means you round down to a whole number, because a partial plant does not fit. The first plant sits half a spacing in from the edge, so the spacing is measured cell by cell rather than from the edge to the edge.

Plants per square foot is also worked out from the spacing. On a square grid it is 144 ÷ (spacing × row spacing), where the spacing is in inches. The 144 comes from the 144 square inches in one square foot.

Take leaf lettuce in an 8 ft × 4 ft bed on a square grid. At 6 inches apart, you get 16 plants per row across 2 rows, which is 32 plants. At 3 inches apart, you get 32 plants per row across 2 rows, which is 64. Rows are 18 inches apart in this example. The result is therefore a range of 32 to 64 plants, depending on which spacing you choose.

What is a staggered grid, and does it fit more plants?

A staggered grid, also called a triangular grid, shifts alternate rows by half a spacing so each plant sits between two plants in the row above. The row spacing is set by the plant spacing multiplied by 0.866, which is the sine of 60 degrees. Alternate rows then hold floor(length ÷ spacing − 1/2) plants.

Plants per square foot on a staggered grid is 144 ÷ (spacing² × 0.866). The staggered layout does not always give more plants. In a 4 ft × 4 ft bed with 12 inch spacing, a staggered grid fits 14 plants, while a square grid fits 16. The result depends on the bed size and the spacing, so it is worth running both layouts and comparing.

Results are calculated from your inputs. Plant sizes vary by variety, so use the count as a planning estimate.

Sources (checked 15 October 2026): blogs.cornell.edu · extension.missouri.edu

Worked examples

InputResult
Lettuce, leaf, 8 × 4 ft, Square grid (rows and columns)32 to 64 plants
Tomato, staked, 12 × 4 ft, Square grid (rows and columns)8 plants
12 in spacing, 4 × 4 ft, Staggered (triangular) grid14 plants
Carrot, 2.4 × 1.2 m, Square grid (rows and columns)62 to 141 plants
12 × Pepper, bed 4 ft widebed 18 to 18 ft long, 72 to 72 sq ft

Calculated by the tool above; open it with the same values to see each step.

Frequently asked questions

Why does the tool show a range for some vegetables?

Cornell Cooperative Extension and the University of Missouri Extension do not always give the same spacing for a crop. Where they differ, the page shows the range and counts plants at both ends. The table on the page lists each figure and its source.

Which units can I type for the bed size?

You can type the bed length and width in feet, inches, meters or centimeters. The tool works out the count from those measurements. Blank, zero, negative or non-numeric sizes show an error instead of a result.

Can I use this for herbs and flowers?

Yes. Type your own spacing in inches, because the presets cover vegetables only. No extension table with reliable herb or flower figures was found, so the spacing you enter is the one the tool uses.

Why does a warning appear when I use a staggered layout with a crop preset?

A staggered layout sets the row spacing itself, so the between-row figure in the preset is ignored. The warning tells you this so you are not misled about the row spacing.

What does “no plant fits” mean?

It means the spacing you chose is wider than the bed in one or both directions, so the count is zero. Try a smaller spacing, a longer bed, or a wider bed.

Does the plant spacing calculator send my measurements anywhere?

No. Everything runs in your browser, and nothing you type is uploaded. The tool is free, and no sign-up is needed.