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!

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?
✅ 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.
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 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
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
Step 2: Calculate number of rows
Step 3: Total plants
Result: You need 117 lettuce plants. At $0.50 per seedling, the total cost is $58.50.
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
Step 2: Triangular row spacing
In a triangular grid, rows are closer together because plants are offset.
Step 3: Calculate plants
Odd rows get plants; even rows get plants. With rows:
Result: The triangular grid fits 156 plants — about 33% more than a square grid with the same spacing, thanks to the tighter packing.
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.
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.
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.
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.
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.
Best for most home gardens where rows and columns are at equal spacing. Simple to plant and maintain.
Perfect when row spacing differs from plant spacing — common in commercial farming and orchards.
Maximizes density by about 15% over square grids. Ideal for high-value crops like strawberries.
Single to five-row hedges for privacy screens, windbreaks, or berry patches. The calculator handles row count automatically.
When you need pathways, edging, or clearance around garden beds. The border field automatically subtracts from the planting area.
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:
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.98 (3 sig figs)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 :
67 (rounded)66.766.6766.666766.66666667Tips 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.
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
Square grid
Plants are arranged in a regular grid where columns and rows share the same spacing.
Rectangular grid
Plants per row and row spacing can differ, giving more flexibility for different crop types.
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 .
Density calculation
Planting density tells you how many plants occupy each square meter.
Where for square grids and 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.
Cost estimation
The total cost is the product of the total plant count and the cost per plant.
The calculator also supports currency conversion, so you can enter your cost in one currency and see the total in another.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Calculate your cat's Feline Body Mass Index (FBMI) using rib cage circumference and lower back leg length to help assess if your cat is at a healthy weight.
Calculate your dog's Body Mass Index (BMI) based on breed, height, and weight to determine if they are healthy, overweight, or underweight.
The cat pregnancy calculator will compute the due date of your favorite feline.
The dog life expectancy calculator estimates the age of your dog based on their breed and gives their average life expectancy.
Convert your dog's age to human years based on breed and size.
The dog pregnancy calculator provides you with your dog's due date.