Plant Spacing Calculator
Last Updated:
Find out how many plants actually fit your garden bed — real grid math by length, width, and spacing, with presets for 8 common vegetables.
Quick answer: Plants along a bed's length = floor(length ÷ spacing) + 1, times the same for width — a real grid count, not naive area ÷ spacing². A 10×4 ft bed spaced 24 inches (tomatoes) fits 6 × 3 = 18 plants. Recommended spacing for 8 common vegetables comes from K-State Research and Extension's intensive raised-bed spacing guide.
Plants That Fit
📐 Formula
Plants along length = floor[Length(in) ÷ Spacing(in)] + 1. Plants along width = floor[Width(in) ÷ Spacing(in)] + 1. Total plants = plants along length × plants along width — a real grid count, not area ÷ spacing².
How to Use the Plant Spacing Calculator
Enter your bed dimensions
Input the length and width of your garden bed in feet. If your bed isn't rectangular, measure its longest length and widest width for a close estimate.
Pick a vegetable preset or enter a custom spacing
Choose one of 8 common vegetables with a research-based spacing default, or switch to Custom and enter your own spacing in inches for any crop not listed.
Read the grid-based plant count
The calculator instantly shows how many plants fit along each direction and the total count, using an actual grid rather than a naive area-division shortcut.
Compare vegetables or adjust spacing
Switch between presets, or dial in a custom spacing figure, to compare plant density before you commit to buying seedlings.
Why a Grid Count Beats Area ÷ Spacing²
The simplest way to guess how many plants fit a bed is to divide the bed's total area by the spacing squared — a 40 sq ft bed at 2 sq ft per plant "should" fit 20 plants, the thinking goes. In practice that shortcut consistently overcounts, because it assumes plants tile the bed with zero leftover space at the edges, which almost never happens once you actually measure and mark spots on the ground.
This calculator instead counts plants the way you'd actually place them: convert the bed's length and width to inches, divide each by the spacing in inches, and round down to a whole number, since you can't fit a fraction of a plant. Then add one: that's the plant that sits right at the very first edge of the row, with every subsequent plant spaced out from it. Multiply the plants-along-the-length count by the plants-along-the-width count, and you get the true grid total. For a 10 ft × 4 ft bed spaced 24 inches apart: 120 in ÷ 24 = 5, plus the edge plant = 6 along the length; 48 in ÷ 24 = 2, plus the edge plant = 3 along the width; 6 × 3 = 18 plants — not the 20 a naive area-division shortcut would suggest for the same numbers.
This "plant sits at the edge, count outward" convention is a deliberate choice, not the only valid one. Some gardeners prefer to leave a small margin from the bed's actual edge for airflow or access, which would mean dropping the "+1" and using the floor result on its own instead. Either convention is defensible; this calculator uses the edge-inclusive version because it matches how most people actually plant a bed by hand — starting a tape measure at the corner and marking every N inches from there, rather than leaving an unplanted gap at the start.
Recommended Spacing for 8 Common Vegetables
These defaults reflect intensive/grid spacing for raised beds — tighter than the row-and-furrow numbers printed on most seed packets, which assume a traditional single-row garden with walking paths between rows. Pick a preset below, or switch to Custom spacing for any vegetable not on this list.
| Vegetable | Recommended Spacing | Note |
|---|---|---|
| Tomatoes | 18–24 in (default 24 in) | Indeterminate/vining types need the full range; determinate/bush types can go tighter |
| Peppers | 12–15 in (default 15 in) | Compact, bushy plants — less room needed than tomatoes |
| Lettuce (head) | 10–12 in (default 12 in) | Loose-leaf lettuce can go as tight as 3–6 in |
| Carrots | 2–3 in (default 3 in) | Thin seedlings after germination to hit this spacing |
| Squash / Zucchini | 18–24 in (default 24 in) | Large sprawling leaves need real room even in a grid |
| Corn | 8–10 in (default 9 in) | Plant in blocks, not a single line, for reliable pollination |
| Beans (bush/snap) | 3–4 in (default 4 in) | Pole beans on a trellis can go tighter than bush types |
| Cucumbers | 12–18 in (default 15 in) | Trellised vines can be spaced tighter than sprawling ones |
Every default sits inside the cited range from K-State Research and Extension's published intensive-spacing chart for raised beds — see the Sources section below for the full citation.
Two Worked Examples, By Hand
Example 1 — custom spacing: a 10 ft × 4 ft bed with a custom spacing of 12 inches. Convert to inches: 120 in long, 48 in wide. Plants along the length: floor(120 ÷ 12) + 1 = 10 + 1 = 11. Plants along the width: floor(48 ÷ 12) + 1 = 4 + 1 = 5. Total: 11 × 5 = 55 plants.
Example 2 — tomato preset: the same 10 ft × 4 ft bed, this time at the tomato preset's default 24 inches. Plants along the length: floor(120 ÷ 24) + 1 = 5 + 1 = 6. Plants along the width: floor(48 ÷ 24) + 1 = 2 + 1 = 3. Total: 6 × 3 = 18 plants — fewer than the tightly-spaced Example 1, since tomatoes need roughly twice the room of a generic 12-inch spacing.
Enter either example's numbers into the calculator above and you should see the same totals — that's the check worth running before trusting any grid-spacing tool with your own bed.
Custom Spacing for Vegetables Not in the Preset List
Not every vegetable, herb, or flower belongs to the eight presets above. Switch the dropdown to Custom spacing… and the calculator reveals a spacing field in inches — enter the in-row spacing figure from your seed packet, nursery tag, or a Cooperative Extension planting guide for whatever you're growing, and the same grid formula runs against it. The custom field accepts anywhere from 1 to 48 inches, covering everything from tightly-spaced radishes to a full-size pumpkin vine.
Once You Know What Fits
Plant count answers one part of planning a bed; the other two are what to fill it with and when to put things in the ground. If you're building the bed itself, our raised garden bed soil calculator works out how much soil to buy for the same length and width. Once it's filled, our garden soil & mulch calculator covers topping up an existing bed or adding a protective mulch layer. And once you know how many tomato or lettuce plants will fit, our vegetable planting calendar calculator tells you when to actually start seeds or transplant them outdoors, by USDA hardiness zone.
Frequently Asked Questions
Convert your bed's length and width to inches, then divide each by your spacing in inches and round down (floor), adding 1 for the plant that sits right at the edge. Multiply the two results together for total plants. A 10×4 ft bed spaced 24 inches apart, for example, fits 6 plants along the length and 3 along the width — 18 plants total, using this floor-plus-edge-plant grid method rather than a naive area-division shortcut.
Dividing total area by spacing squared assumes plants tile perfectly with no leftover space, which doesn't happen in practice — a real bed almost always has a remainder along each edge that a pure area calculation ignores. Counting plants as an actual grid (how many fit along the length, times how many fit along the width) accounts for that edge remainder and matches what you'd get measuring and marking spots by hand, which is why this calculator uses a grid count instead of area ÷ spacing².
Plant spacing (also called in-row spacing) is the distance between individual plants; row spacing is the distance between separate rows, historically left wide enough for a person or tiller to walk through. This calculator uses intensive/grid spacing, common in raised beds, where plants are spaced the same distance apart in every direction with no walking rows in between — that's why the spacing figures here run tighter than the row-and-furrow numbers on a seed packet meant for a traditional single-row garden.
In an intensive raised-bed layout, tomatoes are commonly spaced 18–24 inches apart in every direction, with this calculator defaulting to 24 inches to give indeterminate (vining) varieties enough room for airflow and staking. Compact determinate varieties can be spaced toward the tighter end of that range; if you're growing a smaller patio or dwarf variety, switch to Custom spacing and enter a tighter number instead.
You can, but tighter spacing trades yield-per-plant for more plants overall — crowded plants compete harder for light, water, and nutrients, and reduced airflow between them raises the risk of fungal disease in humid weather. The spacing figures in this calculator's preset list reflect commonly published intensive-gardening ranges, not a hard limit; use the Custom spacing field to model tighter or looser spacing and compare the resulting plant count before committing seedlings to the ground.
Sources & Methodology
Recommended plant-spacing figures are drawn from K-State Research and Extension's (Johnson County) published intensive raised-bed spacing guide, cross-checked against general USDA and state Cooperative Extension horticultural guidance. Grid-count math is basic arithmetic — floor division plus one edge plant, per direction: