Plant Spacing Calculator

Optimize your garden layout with our garden spacing calculator.

Determine how many plants you need for an area, the planting grid and spacing, and even estimate the plants' purchase cost in seconds!

Last updated: July 3, 2026
Frank Zhao - Creator
CreatorFrank Zhao

Planting bed

S
S
S
↑ S ↓
S
S
S
↑ S ↓
S
S
S
More info
m
More info
m
More info
More info
cm

Spacing

More info
cm
More info
plants /
More info
USD
USD

Rates updated daily from ExchangeRate-API.

1Bed Area
A=L×WA = L \times W
2Square Grid
Nop=L2BS+1×W2BS+1\text{Nop} = \left\lfloor\frac{L - 2B}{S} + 1\right\rfloor \times \left\lfloor\frac{W - 2B}{S} + 1\right\rfloor
3Square Grid Density
D=1S2D = \frac{1}{S^2}
4Rectangular Grid
Nop=L2BPs+1×W2BRs+1\text{Nop} = \left\lfloor\frac{L - 2B}{\text{Ps}} + 1\right\rfloor \times \left\lfloor\frac{W - 2B}{\text{Rs}} + 1\right\rfloor
5Triangular Grid
Nop=Tr2×Ewr+Tr2×Odr\text{Nop} = \left\lfloor\frac{\text{Tr}}{2}\right\rfloor \times \text{Ewr} + \left\lceil\frac{\text{Tr}}{2}\right\rceil \times \text{Odr}
6Total Cost
Tc=Tp×Cp\text{Tc} = \text{Tp} \times \text{Cp}
LArea length
WArea width
AArea size
BBorder
SPlant spacing
DDensity
PsPlant spacing (rect)
RsRow spacing
TrTriangle rows
OdrOdd row plants
EwrEven row plants
TcTotal cost
TpTotal plants
CpCost per plant

Introduction / overview

The Plant Spacing Calculator is a practical tool that helps gardeners, landscapers, and small-scale farmers figure out exactly how many plants fit into a given area. Instead of sketching layouts on graph paper or doing manual multiplication, you enter your bed dimensions, the spacing you plan to use, and the calculator instantly tells you the number of plants you need, how to arrange them, and even the estimated cost.

It supports three common planting grids — square, rectangular, and triangular — plus a dedicated hedgerow mode for linear plantings like berry bushes or hedge shrubs. You can also include a border offset to account for paths or edge clearance, and a cost-per-plant field to estimate your total budget.

Who is this for?

  • Home gardeners planning a vegetable bed, herb garden, or flower border.
  • Landscapers who need quick quotes for ground-cover or shrub installations.
  • Small-scale farmers estimating seedling orders for a new field or greenhouse.
  • Students and educators learning about planting density and spatial optimization.

✅ The calculator handles all the unit conversions automatically — work in meters, feet, inches, or even composite units like feet/inches without doing any mental arithmetic.

If you're also managing irrigation or fertilizer, this calculator pairs well with a dedicated soil volume tool to estimate how much compost or topsoil you need for the same area.

How to use / quick start

  1. 1Pick your planting type. Choose Garden grid for beds and plots, or Hedgerow for linear plantings along fences or borders.
  2. 2Enter your bed dimensions. Fill in the length and width of your planting area. If you have a known area, you can enter it directly — the calculator will infer the missing dimension.
  3. 3Set the border (optional). If your bed has a path, edging, or clearance around the perimeter, enter the border width. The calculator subtracts it from both sides.
  4. 4Define plant spacing. Enter the distance between plants. For rectangular grids, also enter the row spacing.
  5. 5Read the results. The calculator shows total plants, plants per row, total rows, and planting density (plants per m²). For triangular grids, it also provides a detailed row-by-row guide.
  6. 6Optional: estimate costs. Expand the Plants cost section, enter the cost per plant, and the calculator will compute your total budget. You can even switch between different currencies.
  7. 7Adjust precision if needed. Locate the precision button (a gear icon showing a number, e.g. 10) on the calculator toolbar. Click it to open the Precision Settings panel, then drag the slider to control how many significant figures the results display. For example, if your plant count is 66.6666666666...66.6666666666... plants, setting the slider to 3 shows 66.7, while setting it to 4 shows 66.67. The slider ranges from 1 to 16 significant figures, so you can choose between a clean, rounded readout and full-precision detail.

How to interpret the results

  • Total plants is the number you need to buy or start from seed.
  • Density tells you how intensively you're planting — useful for comparing layouts.
  • Per-row details (plants per row, total rows) help with layout and irrigation planning.

Step-by-step example calculations

Example 1: square grid vegetable bed

You have a 3 m × 2 m raised bed. You want to plant lettuce with 0.25 m spacing between plants, using a square grid. There's no border — the whole bed is usable.

Step 1: Calculate plants per row

Columns=floor(LS)+1\text{Columns} = \mathrm{floor}\left(\frac{L}{S}\right) + 1==floor(30.25)+1\mathrm{floor}\left(\frac{3}{0.25}\right) + 1==13 plants per row13\ \text{plants per row}

Step 2: Calculate number of rows

Rows=floor(WS)+1\text{Rows} = \mathrm{floor}\left(\frac{W}{S}\right) + 1==floor(20.25)+1\mathrm{floor}\left(\frac{2}{0.25}\right) + 1==9 rows9\ \text{rows}

Step 3: Total plants

Plants=13×9\text{Plants} = 13 \times 9==117 lettuce plants117\ \text{lettuce plants}

Result: You need 117 lettuce plants. At $0.50 per seedling, the total cost is $58.50.

Example 2: triangular grid with border

You have a 5 m × 4 m bed with a 0.3 m border on all sides for access. You want to plant strawberries at 0.35 m spacing using a triangular grid, which packs more plants into the same area.

Step 1: Compute usable dimensions after border

Lusable=L2BL_{\text{usable}} = L - 2B==52(0.3)5 - 2(0.3)==4.4 m4.4\ \text{m}
Wusable=W2BW_{\text{usable}} = W - 2B==42(0.3)4 - 2(0.3)==3.4 m3.4\ \text{m}

Step 2: Triangular row spacing

In a triangular grid, rows are closer together because plants are offset.

Row Spacing=S×0.866\text{Row Spacing} = S \times 0.866==0.35×0.8660.35 \times 0.866\approx0.303 m0.303\ \text{m}

Step 3: Calculate plants

Odd rows get floor(4.4/0.35)+1=13\mathrm{floor}(4.4 / 0.35) + 1 = 13 plants; even rows get floor((4.40.175)/0.35)+1=13\mathrm{floor}((4.4 - 0.175) / 0.35) + 1 = 13 plants. With floor(3.4/0.303)+1=12\mathrm{floor}(3.4 / 0.303) + 1 = 12 rows:

Plants=6×13+6×13\text{Plants} = 6 \times 13 + 6 \times 13==156 strawberry plants156\ \text{strawberry plants}

Result: The triangular grid fits 156 plants — about 33% more than a square grid with the same spacing, thanks to the tighter packing.

Real-world examples / use cases

1) Vegetable garden planning

Background: you're designing a 2.4 m × 1.2 m raised bed for carrots (0.05 m spacing).

Result: a square grid gives roughly 1,225 carrot positions — enough for a family of four. Use the cost section to estimate seed packet needs.

2) Commercial hedge installation

Background: a client wants a 20 m hedgerow along a fence, double-row layout, 0.6 m spacing.

Result: the calculator shows 66 shrubs needed. At $12 per shrub, the plant budget is $792. Use this number to prepare the quote confidently.

3) Triangular strawberry patch

Background: you want to maximize berry yield in a 4 m × 3 m plot using triangular packing.

Application: with 0.3 m spacing and 0.2 m border, the calculator fits roughly 130 plants — about 20% more than a square grid. More plants = more berries.

4) Greenhouse bench layout

Background: a greenhouse bench is 1.8 m × 0.9 m. You need to fit 72-cell seedling trays.

Application: enter the bench dimensions with plant spacing equal to the cell pitch. The calculator tells you exactly how many trays fit per bench, helping you plan production cycles.

5) Budget estimation for a community garden

Background: a school is planning a 10 m × 6 m garden with 80 vegetable beds.

Application: input typical bed dimensions and spacing, then use the cost calculator to estimate the total seedling or seed budget. The result helps the school apply for grants with concrete numbers.

Common scenarios / when to use

Square grid beds

Best for most home gardens where rows and columns are at equal spacing. Simple to plant and maintain.

Rectangular grids

Perfect when row spacing differs from plant spacing — common in commercial farming and orchards.

Triangular (hexagonal) packing

Maximizes density by about 15% over square grids. Ideal for high-value crops like strawberries.

Hedgerow planting

Single to five-row hedges for privacy screens, windbreaks, or berry patches. The calculator handles row count automatically.

Border offset planning

When you need pathways, edging, or clearance around garden beds. The border field automatically subtracts from the planting area.

Budget & cost estimation

Combine plant count with cost per plant to get an instant material budget. Switch between currencies for international purchasing.

When this calculator is NOT the right tool:

  • Irregularly shaped beds — the calculator assumes rectangular or square areas. For L-shaped or curved beds, break them into rectangles.
  • Very large farms with multiple crop zones — consider GIS-based tools for field-level planning.
  • When the plant spacing recommendation depends on variety-specific growth habits — always check seed-packet or nursery guidelines alongside the calculator.

Tips & best practices

  • Measure carefully — small errors compound

    A 10 cm mistake in bed length can shift your plant count by dozens. Measure twice, plant once.

  • Use the smart bidirectional engine to switch layouts

    The calculator's smart bidirectional engine instantly recalculates when you switch between square, rectangular, and triangular grids. Try each layout to see which fits your space best without re-entering your measurements.

  • Master the precision control for cleaner numbers

    The precision button (gear icon, showing the current value like 10) is located on the calculator toolbar. Click it to open the Precision Settings popover, then drag the slider to control how many significant figures the results display.

    Understanding significant figures

    This precision setting controls the number of significant figures (sig figs), not decimal places. Significant figures count all digits starting from the first non-zero digit. For example, if a result is 9.9849.984:

    • Precision = 3 → 9.98 (3 sig figs)
    • Precision = 4 → 9.984 (4 sig figs)

    The slider ranges from 1 (most compact) to 16 (most precise). The default is 10, which works well for most gardening tasks.

    Example with the plant spacing calculator

    Say your plant count is 66.6666666666...66.6666666666...:

    • Precision = 2 → 67 (rounded)
    • Precision = 3 → 66.7
    • Precision = 4 → 66.67
    • Precision = 6 → 66.6667
    • Precision = 10 → 66.66666667

    Tips by use case: For quick garden planning, 2–4 sig figs are clean and readable. For precise budget calculations, use 6–10 sig figs for intermediate steps, then round the final number. The calculator supports up to 16 significant figures.

  • Add 5-10% for replacements

    Not every seedling survives transplanting. Order a few extra plants to account for losses. The cost section makes it easy to adjust the budget.

  • Check seed packet spacing

    Different varieties of the same plant may need different spacing. Always cross-reference with the seed packet or nursery tag — the calculator gives you the math, but the plant gets the final say.

Calculation method / formula explanation

The Plant Spacing Calculator uses simple geometric principles to determine how many plants fit into a given area. All formulas assume the planting area is rectangular and the grid repeats uniformly.

Key variables

  • LL: bed length, WW: bed width, BB: border offset
  • SS: plant spacing (center to center),RR: row spacing (for rectangular grids)
  • Lu=L2BL_u = L - 2B, Wu=W2BW_u = W - 2B: usable dimensions after border

Square grid

Plants are arranged in a regular grid where columns and rows share the same spacing.

Plants=(floor(LuS)+1)×(floor(WuS)+1)\text{Plants} = \left(\mathrm{floor}\left(\frac{L_u}{S}\right) + 1\right) \times \left(\mathrm{floor}\left(\frac{W_u}{S}\right) + 1\right)

Rectangular grid

Plants per row and row spacing can differ, giving more flexibility for different crop types.

Plants Per Row=floor(LuS)+1\text{Plants Per Row} = \mathrm{floor}\left(\frac{L_u}{S}\right) + 1
Total Rows=floor(WuR)+1\text{Total Rows} = \mathrm{floor}\left(\frac{W_u}{R}\right) + 1
Plants=Plants Per Row×Total Rows\text{Plants} = \text{Plants Per Row} \times \text{Total Rows}

Triangular (hexagonal) grid

Plants in alternating rows are offset by half a spacing, allowing tighter packing. The row spacing is reduced by a factor of 320.866\frac{\sqrt{3}}{2} \approx 0.866.

Row Spacing=S×0.866\text{Row Spacing} = S \times 0.866
Odd rows=floor(LuS)+1\text{Odd rows} = \mathrm{floor}\left(\frac{L_u}{S}\right) + 1
Even rows=floor(Lu0.5SS)+1\text{Even rows} = \mathrm{floor}\left(\frac{L_u - 0.5S}{S}\right) + 1
Plants=Nrows2×Even+Nrows2×Odd\text{Plants} = \frac{N_{\text{rows}}}{2} \times \text{Even} + \frac{N_{\text{rows}}}{2} \times \text{Odd}

Density calculation

Planting density tells you how many plants occupy each square meter.

Density=1S2×f\text{Density} = \frac{1}{S^2 \times f}

Where f=1f = 1 for square grids and f=0.866f = 0.866 for triangular grids.

Hedgerow planting (linear)

For linear plantings along fences or borders, the calculator uses the bed length and plant spacing to determine how many plants fit in a single row, then multiplies by the number of rows.

Plants=Nrows×floor(LS)\text{Plants} = N_{\text{rows}} \times \mathrm{floor}\left(\frac{L}{S}\right)

Cost estimation

The total cost is the product of the total plant count and the cost per plant.

Total Cost=Plants×Cost Per Plant\text{Total Cost} = \text{Plants} \times \text{Cost Per Plant}

The calculator also supports currency conversion, so you can enter your cost in one currency and see the total in another.

Related concepts / background info

Planting density: why it matters

Planting density — the number of plants per unit area — directly affects yield, disease pressure, and resource competition. Too dense, and plants compete for light, water, and nutrients. Too sparse, and you're wasting productive space. The Plant Spacing Calculator helps you find the sweet spot by giving you an immediate density figure alongside the total count.

Square vs. triangular packing efficiency

The difference between square and triangular (hexagonal) packing comes from geometry. In a square grid, the distance between neighboring plants is the same in all cardinal directions. In a triangular grid, each plant is surrounded by six equidistant neighbors, creating a tighter packing arrangement. This hexagonal packing is the most efficient way to cover a plane with circles, which is why it can fit roughly 15% more plants in the same area.

Square density=1S2\text{Square density} = \frac{1}{S^2}\quadTriangular density=10.866S2\text{Triangular density} = \frac{1}{0.866\,S^2}

The role of border space

A border offset might seem like a small detail, but it has a big impact on the usable planting area. A 0.3 m border on all sides of a 3 m × 2 m bed reduces the area from 6 m² to just 3.36 m² — a 44% reduction. Always include your paths, edging, and clearance when planning.

Why spacing recommendations vary

Seed packet spacing recommendations are based on ideal conditions for that specific variety. Factors like soil fertility, climate, and whether you're using irrigation can all shift the optimal spacing. Use the calculator to experiment with different spacings and see how they affect your plant count and density — then cross-check with local growing guidelines.

If you're also planning irrigation, a dedicated irrigation design tool can help you set up a system that matches your final layout.

Frequently asked questions (FAQs)

Does the calculator include paths or walkways?

Yes — use the border field. Enter the width of any path, edging, or clearance around the perimeter. The calculator subtracts the border from both the length and the width before computing the plant count.

Can I use different units for different fields?

Absolutely. Each input field has its own unit dropdown. You can enter length in meters, width in feet, and spacing in inches, and the calculator handles all conversions automatically. Composite units like feet/inches are also supported.

Why does the triangular grid give more plants?

Triangular (hexagonal) packing is naturally denser than square packing. Because each row is offset by half a spacing, plants can be placed closer together in the vertical direction. The result is roughly 15% more plants in the same area — ideal for maximizing yield.

How do I handle irregularly shaped beds?

Break your bed into rectangular sections and calculate each one separately. For curved or circular beds, you can approximate with a rectangle that covers the same area. The calculator assumes rectangular shapes.

What if my border is too large — will the calculator warn me?

Yes. If the border exceeds half the bed length or width, the usable area becomes zero or negative, and the calculator shows a clear notice that no plants can be placed. Simply reduce the border value to proceed.

Can I estimate cost in a different currency?

Yes. The cost section has two currency selectors — one for the cost per plant and one for the total cost. You can enter the price in USD and see the total in EUR, or any other combination. Exchange rates are pulled live from a public API.

How does hedgerow mode differ from garden grid?

In hedgerow mode, the calculator ignores the bed width and instead uses the number of rows (1–5) and the length. This is designed for linear plantings like privacy hedges, fence lines, or berry patches where you know the length and row count but not the overall width.

What's the difference between "How many plants do I need?" and "How should I arrange my plants?"

In hedgerow mode, "How many plants do I need?" calculates the plant count from your length and spacing. "How should I arrange my plants?" lets you set a target plant count and spacing, and the calculator tells you how long the hedgerow should be. For garden grids, the rectangular arrangement mode gives you detailed per-row breakdowns.

Why does the result show decimal values for plant count?

The calculator always rounds plant counts down to whole numbers (you can't plant 0.4 of a seedling), but intermediate values like density may show decimals. Use the precision slider to control how many decimal places you see. If you want only whole numbers, set the precision low — the underlying values remain accurate.

What does the precision slider actually control?

The precision slider controls the number of significant figures displayed in all result fields. It ranges from 1 to 16. A higher value shows more digits (more precise), while a lower value shows fewer digits (cleaner, rounded). The underlying calculation always uses full precision — only the display is affected. For everyday gardening, 3–4 significant figures are more than enough.

Limitations / disclaimers

  • Assumes rectangular or square beds. Irregular shapes need to be broken into rectangles.
  • Does not account for plant growth habits, root competition, or microclimate variations. Always consult variety-specific spacing guidelines.
  • Cost estimates use live exchange rates and are for informational purposes only — actual costs may vary.
  • This calculator is an educational and planning tool, not a substitute for professional agronomic or landscaping advice.
Plant Spacing Calculator - Optimize Your Garden Layout