# Garden Bed Planner > Lay out square-foot or row beds over three seasons, with sun, rotation, companions and a seed list. Plan vegetable beds in 30 cm squares or in rows for an early, main and late season. You get plants per crop from spacing data, checks for overlaps, crop rotation and sun hours behind obstacles, traditional companion pairs and the seeds, sets or plants to buy. Part of usefulweb.site (https://usefulweb.site/). Part of [Hearth](https://hearth.usefulweb.site/) (ownerApp: hearth). Results are deterministic calculations from the inputs and the listed assumptions; the API returns exactly what the web page shows. ## Use it - Human interface: https://hearthgardenbeds.usefulweb.site/ (interactive tool at https://hearthgardenbeds.usefulweb.site/tool) - JSON API: POST https://hearthgardenbeds.usefulweb.site/api/v1/calculate with a JSON object of inputs (schema: https://hearthgardenbeds.usefulweb.site/api/v1/tool) - OpenAPI: https://hearthgardenbeds.usefulweb.site/openapi.json - MCP (Streamable HTTP): https://hearthgardenbeds.usefulweb.site/mcp - tool `hearth_garden_beds` ## Inputs - place (text): Place for sun hours (latitude, longitude, optional) - Empty = no sun hours. - year (integer): Season (year of the spring frost) - beds (table): Beds - plantings (table): Plantings - obstacles (table): Obstacles that shade a bed (optional) ## Method - Square beds are divided into 30 cm squares (columns × rows, rounded down). Plants per square come from our crop table, which follows common square-foot spacings: 16 carrots or radishes, 9 beans, beetroot or onions, 4 lettuces, 1 tomato, cabbage or pepper; large plants need several squares (courgette and squash 9, Brussels sprouts 4). Squares are numbered row by row from 1; plantings without numbers take the first free squares of their season. - Row beds: rows run along the bed; plants per row = bed length ÷ spacing in the row; the rows of a season need their row spacing each and must fit into the bed width. - Seasons early, main and late are separate layers of the same bed (for example spinach before, beans during and kale after the summer); overlaps are only checked within a season. - Sun: direct-sun hours on the 21st of each month at the bed (Hearth Sun Windows geometry: NOAA solar position every 15 minutes, obstacles as sectors with elevation atan(height ÷ distance)); the growing-season mean over April–September (October–March south of the equator) gives full sun (≥ 6 h), part sun (3–6 h) or shade. Crops marked “full sun” warn below 6 h. - Rotation follows the RHS groups — legumes, brassicas, potato family, onions and roots; cucurbits, salads, sweetcorn, peppers and herbs fit anywhere — and warns when a group grew in the same bed last year or two years ago. The next years follow the RHS four-year order legumes → brassicas → potatoes → onions and roots. - Companion pairs (tomato with basil, carrots with onions or leeks, the “three sisters” …) are shown as gardening tradition with weak evidence, not as a promised effect. Seeds to sow: plants × 1.5 for transplants, × 1.3 for large seeds, × 3 for fine seeds that are thinned, × 1 for tubers, sets and cloves. ## Limits - Spacing and sun needs are typical values; follow the seed packet for your variety. Companion planting is tradition, not proven science.