
A crop rotation calculator builds a bed by year plan that moves each crop group one bed along each year, so the same family never sits in the same bed two years in a row. With 4 beds and a start of 2027, bed 1 grows legumes in 2027, brassicas in 2028, roots in 2029 and fruiting crops in 2030.
How the crop rotation calculator works
The crop rotation calculator on this site takes a small set of choices and turns them into a bed by year table. You choose a rotation length, you enter the number of beds and the number of years, and you enter the starting year. The tool then fills every cell with one crop group. Planting the same family in the same bed every year lets soil pests and diseases build up, and draws down the same nutrients year after year. Moving each group one bed along every year breaks that pattern. Use the Crop Rotation Calculator itself to build your own plan once you have read this guide.
The inputs you enter first
Four inputs control the whole plan. The first is the rotation length. Choose 4 year for the full order of legumes, brassicas, roots and fruiting crops. Choose 3 year if you have only 3 beds. The second is the number of beds. The default is 4 beds, and the tool accepts 1 to 24 beds. The third is the number of years. The default is 4 years, and the tool accepts 1 to 12 years. The fourth is the starting year. The default is 2027, and the tool accepts 2000 to 2100. Before you enter anything, count your real beds. The Garden Bed and Path Layout Calculator can help you settle the bed count first.
| Input | Default | Allowed range |
|---|---|---|
| Rotation length | 4 year | 3 year or 4 year |
| Number of beds | 4 | 1 to 24 |
| Number of years | 4 | 1 to 12 |
| Starting year | 2027 | 2000 to 2100 |
The formula step by step
The page prints one formula, and the whole table comes from it. The group in bed b in year y equals groups at position (b plus y) mod number of groups. In that formula b is the bed index, starting at 0 for bed 1, and y is the number of years since the starting year. The word mod means remainder after division. That remainder is the position in the group order. In the 4 year rotation the order is legumes at position 0, brassicas at position 1, roots at position 2, and fruiting crops at position 3.
Work through bed 1 in the starting year. Bed 1 has b equal to 0, and 2027 has y equal to 0. Add them, 0 plus 0 equals 0. The remainder after division by 4 is 0, so bed 1 grows legumes in 2027. Beds 2, 3 and 4 grow brassicas, roots and fruiting crops. Move bed 1 to 2028, where y equals 1. Add them, 0 plus 1 equals 1, so bed 1 grows brassicas in 2028. In 2029 y equals 2, so bed 1 grows roots. In 2030 y equals 3, so bed 1 grows fruiting crops. In 2031 y equals 4, 0 plus 4 equals 4, and 4 divided by 4 leaves remainder 0, so bed 1 is back to legumes.
The full 4 bed table for 2027 to 2030
The table below is the default plan recomputed from the formula, 4 beds, 4 years, starting in 2027. Read across a row to follow one bed through time. Read down a column to see what all four beds grow in one year. Every row contains all four groups once, and every column contains all four groups once. The nutrient order printed on the page sits behind this table. Legumes add nitrogen, which brassicas then use. Roots follow, then hungry fruiting crops after manure or compost.
| Bed | 2027 | 2028 | 2029 | 2030 |
|---|---|---|---|---|
| Bed 1 | Legumes | Brassicas | Roots | Fruiting |
| Bed 2 | Brassicas | Roots | Fruiting | Legumes |
| Bed 3 | Roots | Fruiting | Legumes | Brassicas |
| Bed 4 | Fruiting | Legumes | Brassicas | Roots |
The worked 3 year table for 2027 to 2029
The 3 year rotation uses three groups instead of four. The first group is legumes and fruiting together, the second group is brassicas, and the third group is roots. In 2027 bed 1 grows legumes and fruiting, bed 2 grows brassicas, and bed 3 grows roots. In 2028 y equals 1, so bed 1 moves to brassicas, bed 2 moves to roots, and bed 3 moves to legumes and fruiting, because 2 plus 1 equals 3 and 3 divided by 3 leaves remainder 0. In 2029 y equals 2, so bed 1 grows roots, bed 2 grows legumes and fruiting, and bed 3 grows brassicas. In 2030 the cycle repeats 2027.
| Bed | 2027 | 2028 | 2029 |
|---|---|---|---|
| Bed 1 | Legumes and fruiting | Brassicas | Roots |
| Bed 2 | Brassicas | Roots | Legumes and fruiting |
| Bed 3 | Roots | Legumes and fruiting | Brassicas |
How to read the plan year by year
Read the table one year at a time, and read the whole column for that year before you plant anything. In 2027, under the 4 year plan, bed 1 is legumes, bed 2 is brassicas, bed 3 is roots, and bed 4 is fruiting crops. That column is your planting list for the year. When the next spring comes, read the next column. In 2028 bed 1 is brassicas, bed 2 is roots, bed 3 is fruiting, and bed 4 is legumes. Keep the printed table where you keep your seed list. For plant numbers inside each group, the rotation table gives you no help. For that question use the Family Vegetable Planting Calculator, and keep the two plans side by side.
Perennials stay outside the rotation
Some crops never enter the table at all. The page names asparagus, rhubarb and fruit bushes as perennials that stay in place, and that rule is absolute. A perennial lives in the same spot for years, so it cannot step one bed along each year. Give perennials their own ground before you count your rotation beds. If you have four beds and one of them holds asparagus, you have three rotation beds, not four, and you should plan a 3 year rotation across those three beds, or split the remaining beds into halves. Keep perennials out of the bed numbering entirely.
Green manures fill the gaps
Between one crop and the next, a bed often sits empty. The page lists green manures as the way to fill those gaps. When a bed is empty, sow a green manure there, let it grow, and dig it in before the next group goes in. The bed is not left bare, and the gap becomes useful ground cover instead of bare soil. Green manures do not change the rotation order. A bed that grows legumes in 2027 and brassicas in 2028 still follows that order, even if a green manure filled the gap between the two crops.
Two things to notice before you trust the plan
Two discrepancies sit inside the calculator page, and both are worth stating openly before you follow the plan. First, the 3 year system merges legumes and fruiting into one group, so they share a bed in the same year. In the 4 year order legumes and fruiting crops are separate groups at opposite ends of the cycle, legumes at position 0 and fruiting crops at position 3, so a bed grows one and then waits three years before it grows the other. In the 3 year order they are one group at position 0, so a bed grows both in the same year.
Second, the third group is called roots and onions in the FAQ on the page, but roots in the dropdown that builds the table. Onions sit inside the roots group, not a group of their own. A cell that says Roots means roots and onions together, not roots only. Plant onions only in the bed that shows Roots for that year. The page prints no member list per group and no area, count, yield, cost, date, nitrogen or manure figures. Potatoes and tomatoes are in the same family, so the page says to keep them together in the rotation. Do not split them across two beds in the same year.
Common mistakes
- Counting a perennial bed as a rotation bed.
- Changing the bed numbers halfway through the cycle.
- Planting a spare crop in the wrong bed.
- Using the 3 year table and expecting legumes and fruiting crops to stay apart.
- Reading Roots as roots only and planting onions elsewhere.
- Splitting potatoes and tomatoes across two beds.
- Leaving a gap bare instead of sowing a green manure.
- Treating the table as a plant count.
What the calculator does not do
The crop rotation calculator answers one question, which group goes in which bed in which year, and it does not answer the questions around that plan. It does not give plant numbers, bed sizes, sowing dates, harvest dates, yields, or costs. It does not list member crops per group beyond the fruiting examples printed on the page. It does not tell you how much manure or compost to add, even though the page says hungry fruiting crops follow after manure or compost. For which crops grow well together inside one bed, use the Companion Planting Calculator. For seed counts for potatoes and garlic, use the Seed Potato Calculator and the Garlic Planting Calculator.
Frequently asked questions
Q: What is a 4 year crop rotation?
A: Legumes, then brassicas, then roots and onions, then fruiting crops such as tomatoes, potatoes and squash, moving one bed along each year. Bed 1 grows legumes in 2027, brassicas in 2028, roots in 2029 and fruiting crops in 2030.
Q: How does the crop rotation calculator work out which group goes where?
A: It uses the formula group in bed b in year y equals groups at position (b plus y) mod number of groups, where b starts at 0 for bed 1 and y counts years since the starting year.
Q: Can I rotate crops in a small garden?
A: Yes. Even a 3 year rotation between three beds or bed halves helps, according to the calculator page. Count only the beds that rotate, and keep perennials outside the numbered beds.
Q: Which crops do not need rotating?
A: Perennials such as asparagus, rhubarb and fruit bushes stay in place. Give them their own ground outside the numbered rotation beds.
Q: Why do legumes and fruiting crops share a bed in the 3 year rotation?
A: Because the 3 year system merges them into one group, legumes and fruiting together, followed by brassicas and then roots. In the 4 year system they are separate groups.
Q: Where do onions belong in the rotation?
A: Onions sit inside the roots group, not in a group of their own. Plant onions only in the bed that shows Roots for that year.
More guides

How Old Is My Tree: How to Tell Tree Age Without Cutting It
You can learn how to tell how old a tree is without felling it: wrap a tape around the trunk at chest…
Read guide
How Wide Should Garden Paths Be
For most vegetable gardens, how wide should garden paths be is answered by use, not by one fixed number. Plan 45 to…
Read guide
How Many Cubic Feet of Soil for a Raised Bed
A 4 by 8 ft bed filled 12 inches deep needs 32 cubic feet of soil. That is the short answer to…
Read guide