Explore all 80 calculators
100% Free & Open Access

Square Foot Planner

Generate physically accurate, optimized Square Foot Garden plans. Solves spatial grid placement, companion plant compatibility, trellis shading, and non-divisible crop quantities without guessing or overlapping.

Method reviewed by Plant Calculator Team·Updated August 2026

1. Bed dimensions & paths

Unit:
ft
ft
in
in

2. Select crops & quantities

Select from presets or add any custom plant in the world.

Crop Name Density Desired Qty Req. Cells Action

Set your garden dimensions and selected crops above, then click "Calculate Garden Layout" to generate your spatial plan.

How this is worked out

Usable Cells = floor((Width - 2×Border) / 12) × floor((Length - 2×Border) / 12) · Required Cells = ceil(Quantity / Density)

Standard Square Foot Gardening (SFG) divides beds into 12″ × 12″ grid cells. Plant densities follow 1, 4, 9, or 16 plants per cell, or multi-cell footprints (e.g., Tomatoes = 2×2 cells). Placement prioritizes non-negativity, trellis/sun orientation, and spacing rules.

Assumptions

  • 1 Square Foot Cell equals exactly 12 inches × 12 inches (30.48 cm × 30.48 cm).
  • Partial border strips under 12 inches cannot accommodate full square-foot plant footprints.
  • Paths and walkway allocations are subtracted from total planting space before cell generation.
  • Tall and trellised crops are grouped along the bed edge set by the Sun Direction control, keeping vertical supports on one side.
  • Distance between planting centers must always meet or exceed the species minimum spacing requirement.

Mastering Square Foot Gardening: density, companions & layouts

Square Foot Gardening (SFG) is an intensive, high-yield system developed by civil engineer Mel Bartholomew. By replacing wasteful single-file agricultural rows with exact 12-inch × 12-inch grid cells, gardeners harvest up to 100% more produce in 80% less space while slashing watering needs and virtually eliminating weeding.

The 1-4-9-16 Plant Density Matrix

Every edible crop fits into a standardized mathematical density based on its mature root zone and leafy canopy spread:

Square Foot Gardening Crop Density Matrix
Grid Density On-Center Spacing Example Vegetable Crops Vertical Trellis?
1 per 4 Sq Ft (2×2 grid)24 inches (60 cm)Zucchini, Summer Squash, Watermelon, PumpkinsOptional (or sprawl over edge)
1 per Sq Ft (1×1)12 inches (30 cm)Tomatoes, Eggplants, Bell Peppers, Cabbage, Broccoli, CornYes (for indeterminate tomatoes)
4 per Sq Ft (2×2)6 inches (15 cm)Head Lettuce, Spinach, Swiss Chard, Garlic, KohlrabiNo
8 to 9 per Sq Ft (3×3)4 inches (10 cm)Bush Beans, Pole Beans, Beets, Large Onions, TurnipsYes (for pole beans)
16 per Sq Ft (4×4)3 inches (7.5 cm)Carrots, Radishes, Green Onions (Scallions), ParsnipsNo

The North-to-South Height Orientation Rule

In the Northern Hemisphere, the midday sun travels across the southern sky. To prevent tall, leafy crops from casting shadows over low-growing root crops and salad greens, always arrange your grid squares following a strict height hierarchy:

  • North Edge (Tallest): Indeterminate vining tomatoes on vertical conduit trellises, pole beans, climbing peas, and sweet corn.
  • Middle Grid (Medium): Bell peppers, eggplants, determinate bush tomatoes, broccoli, cauliflower, and bush beans.
  • South Edge (Shortest): Carrots, radishes, butterhead lettuce, spinach, onions, and creeping culinary herbs (thyme, oregano).

Companion Planting Synergies & Antagonisms

Classic Synergistic Guilds
Tomatoes + Basil + French Marigolds: Basil improves tomato flavor and vigor, while marigold root exudates (alpha-terthienyl) suppress destructive root-knot nematodes. Carrots + Onions/Leeks: The pungent aroma of alliums masks carrot root foliage from the carrot rust fly, while carrot tops repel onion thrips.
Incompatible Crop Pairings to Avoid
Beans/Peas vs. Alliums (Onions/Garlic): Alliums secrete sulfur antibacterial compounds that inhibit beneficial nitrogen-fixing Rhizobium root nodules on legumes. Tomatoes vs. Potatoes/Fennel: Tomatoes and potatoes share late blight fungal pathogens, while fennel produces root secretions that stunt almost all neighboring garden vegetables.

Three Worked Examples

1. Standard 4×4 Raised Bed (16 Square Feet) Salad & Salsa Garden

North Row (4 sq ft): 2 Vining Tomatoes (1/sq ft) + 16 Pole Beans (8/sq ft across 2 cells). Middle Row 2 (4 sq ft): 2 Bell Peppers (1/sq ft) + 8 Bush Beans. Middle Row 3 (4 sq ft): 16 Head Lettuce (4/sq ft across 4 cells). South Row (4 sq ft): 32 Carrots (16/sq ft on 2 cells) + 18 Onions (9/sq ft on 2 cells). Total yield = 92 individual harvestable vegetables in just 16 sq ft.

2. High-Yield 4×8 Bed (32 Square Feet) Family Summer Plot

Allocates 8 squares along the north trellis to 4 tomatoes and 32 pole beans; 8 squares in the upper middle to 4 eggplants and 4 sweet peppers; 8 squares in the lower middle to 32 spinach and 16 kale; 8 squares along the south edge to 64 carrots and 36 sweet radishes.

3. Compact 2×4 Patio Balcony Bed (8 Square Feet)

Back Row (4 sq ft against railing): 2 Caged Tomatoes + 2 Sweet Peppers. Front Row (4 sq ft): 8 Butterhead Lettuce + 16 Radishes + 8 Green Onions.

Common Square Foot Gardening Mistakes

  • Failing to install a physical grid: Drawing lines in the soil washes away after the first rain. Secure permanent wooden lath, nylon cord, or bamboo slats across your bed frame to maintain visual cell boundaries.
  • Forgetting single-stem vertical pruning on tomatoes: In a 1-per-square-foot density, indeterminate tomatoes must be pruned to a single central vine attached to a vertical twine or conduit. Allowing sucker branches to sprawl causes unmanageable jungle tangles.
  • Failing to replenish nutrients between successions: High density quickly mines soil nutrients. Whenever you clear an empty square foot cell, mix in one trowelful (1 cup) of fresh rich compost before planting the next crop.

Plan companion soil and spacing with our Raised Bed Soil Calculator, Plant Spacing Calculator, and Compost Calculator.

Common questions

How does the calculator handle non-integer bed dimensions (e.g. 4 ft × 7.5 ft)?

The spatial engine calculates complete 12″ × 12″ cells using floor operations (e.g., 7.5 ft = 90 in = 7 full 12″ cells with 6 in remaining). Partial remaining strips are tracked separately and not incorrectly claimed as full planting cells.

How are non-divisible crop quantities calculated?

If you request 5 lettuce plants at a density of 4 per sq ft, the engine allocates ceiling(5 / 4) = 2 cells. The plan displays 5 active plants and 3 open planting positions, rather than fabricating extra plants.

What happens if requested plants cannot fit in the garden space?

The system will never force an invalid or overlapping layout. It flags the plan as "IMPOSSIBLE", displays the exact square footage shortfall, and suggests layout adjustments.

How does companion planting work in the optimizer?

In Preferred mode, the engine tries to place beneficial companions (e.g. Tomato + Basil) adjacently while avoiding incompatible pairings (e.g. Tomato + Corn). Physical spacing and garden boundaries always take priority over companion rules.

Can I manually lock specific cells in the grid?

Yes. You can click any cell in the interactive grid to lock a crop in place. The automatic optimizer will fill remaining space around your locked choices without moving them.

Method reviewed by

Plant Calculator Team

Editorial Team

The Plant Calculator team is a group of gardening enthusiasts, horticulturists, and landscaping professionals dedicated to helping you grow your best garden.

  • Gardening
  • Landscaping
  • Plant Care