How the planner fits the beds
Beds go in a grid with a path between each pair. Along each side of the garden, the number of beds that fit is the garden size minus the outside path, divided by one bed plus one path, rounded down. The planner tries the beds both ways round and keeps whichever fits more.
Example
A 30 × 20 ft garden with 4 × 8 ft beds and 2 ft paths all round. With the beds lengthwise, ⌊(30 − 2) ÷ (8 + 2)⌋ = 2 beds fit along the length and ⌊(20 − 2) ÷ (4 + 2)⌋ = 3 across: 6 beds. Turned the other way only 4 × 1 = 4 fit, so the planner keeps the first layout.
Six 4 × 8 beds give 192 sq ft of growing space, 32% of the garden. At 12 in deep they hold 192 cu ft of soil (7.11 cu yd), or 128 bags of 1.5 cu ft. With 2×6 boards (5½ in wide) each side needs 3 boards stacked, so each bed takes 3 × 24 = 72 ft of board and all six take 432 linear ft.
Layout tips
- Width: keep beds 3 to 4 ft wide if you can reach from both sides, and no more than 2 to 3 ft against a fence or wall.
- Paths: 18 in is the least you can kneel in. 2 ft is comfortable, and 3 ft lets a wheelbarrow or garden cart through.
- Direction: running beds north to south gives both sides of the bed even sun through the day.
- Path surface: wood chips, gravel or pavers over landscape fabric keep weeds down. Grass paths look nice but need mowing and edging.
For a cut list and screws for each bed, use the raised bed lumber calculator. To split the soil into topsoil and compost, use the raised bed soil calculator.
Common questions
How far apart should raised beds be?
Leave at least 18 in between beds to walk and kneel, 2 ft to be comfortable, and 3 ft if you want to get a wheelbarrow through.
How many 4 × 8 raised beds fit in a 20 × 30 garden?
Six, in a 2 × 3 grid, with 2 ft paths between the beds and around the outside.
What is the best size for a raised bed?
4 × 8 ft is the most common: you can reach the middle from either side and it uses standard 8 ft boards with few cuts.
Related calculators
Last updated December 2026. Results are estimates. Check product labels and your local building code before you buy or build.