Companion Planting Calculator
Evaluate companion planting benefits for your crops including yield boost and pest reduction estimates.
About this calculator
Companion planting pairs crops that benefit each other — through nitrogen fixation, pest confusion, shade sharing, or physical support — and this calculator scores how favorable your growing conditions are for getting those benefits from your chosen primary crop. It starts from a base compatibility score reflecting how many well-documented companion pairings that crop has (beans and corn, for instance, score high because beans fix nitrogen the corn can use and corn provides a natural trellis, the classic Three Sisters pattern), then adjusts up or down for sunlight and soil pH, since a companion planting scheme only pays off if the growing conditions themselves support healthy plants in the first place. Sunlight below 6 hours a day drags the score down because most companion vegetables need substantial direct light regardless of what's planted next to them, and soil pH outside the roughly 6.0–7.0 sweet spot most vegetables prefer does the same.
The resulting score drives estimated yield boost and pest reduction percentages, both proxies for the documented but highly variable real-world benefits of companion planting — actual outcomes depend heavily on the specific pairing, planting density, and local pest pressure, so treat these percentages as directional rather than a guaranteed figure. What this tool does not account for: your bed's specific companion crop selections (it evaluates your primary crop's general potential, not an actual planned pairing), regional pest pressure, bed size or plant count, or the incompatibilities some crops have with specific companions even when the primary crop's overall score is favorable.
Inputs
Results
Companion Score (1-10)
10
How to Use This Calculator
- Select your primary crop from the list.
- Enter the average daily sunlight hours your garden bed receives.
- Enter your soil pH — most vegetables prefer 6.0–7.0; test with an inexpensive soil test kit.
- Review the Companion Score (1–10), Yield Boost %, and Pest Reduction % to understand the benefit of pairing companion plants.
- Note the Spacing Adjustment % to modify your usual plant spacing when interplanting companions.
How the result changes with Daily Sunlight Hours
| Daily Sunlight Hours | Companion Score (1-10) |
|---|---|
| 4 | 7 |
| 6 | 9 |
| 12 | 10 |
| 16 | 10 |
What each input means
- Primary Crop
- The main crop you're planning companions for.
- Daily Sunlight Hours
- Average hours of direct sunlight the bed receives.
- Soil pH
- Current soil pH level. Most vegetables prefer 6.0-7.0.
How this is calculated
Worked example, using the default values
- Identify Input Parameters3 parametersPrimary Crop = 1, Daily Sunlight Hours = 8, Soil pH = 6.5 = 3 input(s) provided
- Calculate Companion ScoreCompanion Score10 = 10
- Calculate Yield BoostYield Boost30 = 30
- Calculate Pest ReductionPest Reduction25 = 25
Engine last updated . Checked against 3 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
Why does low sunlight hurt my companion score even if I picked a great crop pairing?
Most companion vegetable pairings assume both plants are getting adequate direct light — shade-intolerant crops planted together in a shady bed will underperform regardless of how well they theoretically complement each other. The calculator reduces the score when sunlight drops below 6 hours a day for exactly this reason: a great pairing in poor light conditions is still a poor outcome.
What does the incompatible crops count mean?
It's the number of commonly grown vegetables known to compete with or inhibit your primary crop when planted too close — for example, onions are noted for a relatively high incompatible count because alliums are known to stunt beans and peas nearby. Use it as a caution list: crops to keep at a distance from your primary crop rather than a complete companion-planting plan.
How reliable are the yield boost and pest reduction percentages?
Treat them as directional estimates rather than guaranteed outcomes — real-world companion planting results vary widely depending on the specific crop pairing, planting density, and local pest pressure, and no single percentage generalizes across all of that. The percentages here scale with the overall compatibility score to give you a rough sense of upside, not a lab-verified figure for your specific garden.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Garden Yield Calculator
Estimate your garden harvest in pounds, retail value, calories, and meals based on growing conditions.
Garden PlanningSquare Foot Garden Calculator
Plan your square foot garden layout with precise plant counts based on spacing and bed dimensions.
Garden PlanningPlanting Spacing Calculator
Calculate how many plants fit in your garden based on row and plant spacing. Get row counts, total plants, and grid layout guidance.
TerrariumTerrarium Plant Selection Calculator
Plant compatibility from humidity, light, and enclosure type.
More in Home, Garden & Maintenance.