Plant Spacing Calculator

Find out how many plants fit in a garden bed before you buy seedlings. Enter the size of the bed and the spacing from the seed packet, or pick a vegetable to use the spacing in the University of Maine Cooperative Extension planting chart. The calculator counts plants in rows, in a square grid or in offset rows.

Enter your bed and spacing

Units

A crop uses the spacing in the University of Maine Extension planting chart and shows the closest and widest spacing.

Square and triangular layouts use the same spacing in every direction.

From the seed packet, the plant tag or your extension service.

Center of one row to the center of the next.

This bed holds

12 plants

2 rows · 40 sq ft

Plant spacing
Bed10 ft × 4 ft
LayoutRows
Spacing between plants18 in
Spacing between rows24 in
Rows2
Plants per row6
Plants in the bed12
Plants per sq ft at this spacing0.33

Method: each plant gets its own spot, with the first plant half a spacing in from the edge. Plants per row = ⌊bed length ÷ spacing between plants⌋ and rows = ⌊bed width ÷ spacing between rows⌋. In a triangular layout the rows are 0.866 × the spacing apart and every other row is shifted by half a spacing.

How plants are counted in a bed

Each plant gets its own spot, and the first plant sits half a spacing in from the edge of the bed. The number of plants in a row is the bed length divided by the spacing between plants, rounded down. The number of rows is the bed width divided by the spacing between rows, also rounded down.

Plants per row = ⌊bed length ÷ spacing between plants⌋
Rows = ⌊bed width ÷ spacing between rows⌋
Plants = plants per row × rows

Rounding down matters in a small bed. A plant that does not get its full spacing crowds its neighbors, so the calculator never squeezes in a partial spot.

Rows, square grid or offset rows

Rows suit crops that need a path or a wide gap between rows. A square grid uses the same spacing in both directions, which is common in raised beds. Offset rows, also called a triangular layout, shift every other row by half a spacing, so the rows can sit 0.866 times the spacing apart and every plant is still the full spacing from its neighbors.

Offset rows only gain plants when the bed is big enough. In a 10 by 4 foot bed at 12 inches, a square grid holds 40 plants and offset rows hold 38, because the shifted rows lose a plant at the end. In a 20 by 8 foot bed at the same spacing, the square grid holds 160 plants and offset rows hold 176.

Spacing from an extension chart

The crop list uses the planting chart for the home vegetable garden published by the University of Maine Cooperative Extension. It gives a range for most crops, so the calculator shows the count at the closest spacing and at the widest spacing. Crops grown in hills, such as cucumbers, squash and pumpkins, are counted as hills.

Spacing in the University of Maine planting chart (inches)
CropBetween rowsBetween plants in the row
Beans, snap242 to 4
Beets12 to 182 to 3
Broccoli24 to 3624 to 30
Cabbage24 to 3612 to 18
Carrots12 to 182 to 3
Corn24 to 366 to 8
Cucumbers (hills)48 to 7248
Eggplant24 to 3618
Onions12 to 181 to 3
Peppers18 to 2418
Potatoes30 to 368 to 12
Spinach12 to 183 to 4
Squash, summer (hills)3648
Tomatoes24 to 4818 to 36

Seed packets and plant tags give spacing for a given variety, and your local extension service knows what grows well where you live. Choose your own spacing when you have better numbers.

Worked example: a 10 by 4 foot bed

The bed is 10 feet long (120 inches) and 4 feet wide (48 inches). The plants go 18 inches apart in rows 24 inches apart.

  • Plants per row: ⌊120 ÷ 18⌋ = 6
  • Rows: ⌊48 ÷ 24⌋ = 2
  • Plants: 6 × 2 = 12

Choosing tomatoes from the crop list gives 3 to 12 plants. At the closest spacing in the chart, 18 inches in rows 24 inches apart, the bed holds 12. At the widest, 36 inches in rows 48 inches apart, it holds 3, in a single row.

From plant count to the bed itself

Once you know how many plants fit, fill the bed. The raised bed soil calculator gives the soil for the frame, and the compost calculator gives the compost to spread before planting. For containers, use the potting soil calculator.

Plant Spacing Calculator FAQ

How many plants fit in a 4 by 8 raised bed?

It depends on the spacing. At 12 inches in a square grid, a 4 by 8 foot bed holds 32 plants: 8 along the length and 4 across. Enter your own spacing for other crops.

What is the difference between plant spacing and row spacing?

Plant spacing is the distance between plants in the same row. Row spacing is the distance from the center of one row to the center of the next.

Do offset rows always fit more plants?

No. Offset rows sit closer together, but every other row loses a plant at the end, so in a small bed a square grid can hold more.

Why does the crop list show a range?

The University of Maine chart gives a range for most crops. The calculator counts the bed at both ends of that range.

How does the calculator handle a bed narrower than one row spacing?

It still counts one row down the middle, and one plant if the bed is shorter than one spacing, because a single plant always fits.

Guides

Last updated . Free to use, no sign-up. How we check our numbers.