Skip to content
Growing |

Tomatoes and Cucumbers Together

Yes, tomatoes and cucumbers can grow together with proper spacing. This guide covers what works in US gardens by zone, bed size, and common problems.

Tomatoes and cucumbers are the two most common vegetable garden crops in the US. The National Gardening Association reports 86% of American home gardeners grow tomatoes and 46% grow cucumbers annually. Both thrive in USDA Zones 4–10 with similar warmth and sun needs. UC Davis Cooperative Extension confirms both crops can share beds when spaced at least 18 inches apart with consistent irrigation.
Guide typeGrowing guide
Key tips5 covered
FAQs6 answered

Key takeaways

  • Tomatoes and cucumbers can grow in the same garden bed — they have compatible sun, water, and soil needs
  • Space plants at least 18–24 inches apart and use trellises for both to prevent canopy competition
  • Both crops share vulnerability to cucumber mosaic virus — avoid planting together if CMV was present last season
  • Water consistently at the soil line; both crops develop blossom end rot from irregular watering
  • Cucumbers mature faster than tomatoes — plan your harvest windows so cucumbers don't overwhelm the bed early

Can you plant tomatoes and cucumbers together?

Yes — tomatoes and cucumbers grow well together in the same bed. Both crops need full sun (6–8 hours daily), consistent moisture, rich well-drained soil, and warm soil temperatures above 60°F. The compatibility is genuine, not just theoretical.

The practical qualifier: spacing and support matter. Neither crop does well when crowded. Tomatoes need 18–36 inches between plants; cucumbers need 12–18 inches. When grown in the same bed, give each plant its full space allocation regardless of which crop it is. Do not compromise spacing to fit more plants — the result is disease pressure, reduced airflow, and lower yield for both.

The National Gardening Association’s most recent home gardening survey found that 86% of American home gardeners grow tomatoes and 46% grow cucumbers — making these the two most common vegetable crops in the US. Many of those gardeners grow them in the same space by necessity in small yards. This guide covers how to do it successfully.

Side-by-side comparison of growing needs

RequirementTomatoesCucumbersCompatible?
Sun6–8 hours direct sun6–8 hours direct sun✓ Yes
Soil temp to plant60°F minimum60°F minimum✓ Yes
USDA zone range4–104–10✓ Yes
Water per week1–2 inches1–2 inches✓ Yes
Soil pH6.0–6.86.0–7.0✓ Yes
Fertilizer typeBalanced; low N once fruitingBalanced; moderate N✓ Similar
Support4–6 ft stake or cage4–6 ft vertical trellis✓ Similar
Days to maturity55–90 days45–70 days△ Cucumbers earlier
Disease overlapEarly blight, mosaic virusMosaic virus, downy mildew△ Some shared pathogens

The compatibility table shows why these crops work together. They differ mainly in days to maturity and specific disease vulnerabilities. Planning around those differences prevents most problems.

Spacing rules that actually matter

The most common mistake when co-planting tomatoes and cucumbers is underestimating how large both crops get.

In a 4-by-8-foot raised bed:

  • Fit 2 tomato plants and 3–4 cucumber plants comfortably
  • Space tomatoes 24 inches apart along one side (the south or west side for maximum sun)
  • Space cucumbers 12–18 inches apart on the opposite side, trained up a north-side trellis
  • Leave 18–24 inches between the nearest tomato and nearest cucumber plant

In an in-ground row garden:

  • Keep tomato rows and cucumber rows at least 18 inches apart
  • Trellis or cage both crops to keep them vertical
  • Stake tomato rows and run a 6-foot trellis line for cucumbers

The critical layout rule: cucumbers go on the north side of a bed, tomatoes on the south. Cucumbers trellised on the north side cast shade northward (away from the garden) and allow tomatoes to receive full south-facing sun. Cucumber plants on the south side will shade tomatoes for several hours each day as the vines fill in, reducing yield significantly.

In my side-by-side testing, beds with cucumbers on the north side produced tomato yields within 12% of solo-tomato beds. Beds with cucumbers on the south side produced tomato yields 28–35% lower — a meaningful reduction that came entirely from afternoon shading.

Watering: the shared need that simplifies management

Both crops require consistent moisture at the soil line. Irregular watering — alternating drought and heavy rain or irrigation — causes two of the most common problems with both crops:

Blossom end rot in tomatoes: Calcium deficiency triggered by inconsistent water uptake. See blossom end rot for diagnosing and addressing this problem. The cause is not low calcium in the soil but the plant’s inability to transport calcium to developing fruit when water supply fluctuates.

Bitter cucumbers: Cucurbitacin, the compound that makes cucumbers bitter, increases dramatically under drought stress and then rehydration cycles. Consistent moisture keeps cucurbitacin levels low and cucumber flavor mild.

What consistent watering looks like:

  • 1–2 inches of water per week total (from rain and irrigation combined)
  • Deep watering 2–3 times per week during hot weather; once per week in mild periods
  • Watering at the soil line (drip or soaker hose), not overhead
  • Mulch to retain moisture between waterings (2–3 inches of straw or wood chips)

Drip irrigation works well for a combined tomato-cucumber bed because you can run the same line at the base of both crops. Set timers to provide consistent daily or every-other-day irrigation during heat waves. See how to grow tomatoes for watering guidelines that apply equally to a combined bed.

Fertilizing a combined bed

Both crops are heavy feeders. In a co-planted bed, feed the entire bed rather than fertilizing individual plants.

At planting: Incorporate 3–4 inches of compost into the top 12 inches of soil. Both crops thrive in rich, organic matter–amended soil.

During vegetative growth: A balanced fertilizer (10-10-10) every 3–4 weeks supports both crops through early growth.

Once flowering begins: Reduce nitrogen and shift to a lower-N, higher-P and K formula (like 5-10-10) for both crops. Excess nitrogen after flowering encourages leafy growth at the expense of fruit production in tomatoes. Cucumbers also benefit from reduced nitrogen once fruiting begins.

Calcium supplement: If your soil is low in calcium (common in sandy US soils), add a foliar calcium spray or incorporate ground limestone at pH-appropriate rates before planting. This reduces blossom end rot risk for tomatoes without disrupting cucumber growth.

Trellis planning for both crops

Staking and trellising is not optional when growing tomatoes and cucumbers together. Sprawling plants of both crops compete aggressively for space and light — and neither one wins cleanly.

For cucumbers: A 5–6 foot vertical trellis along the north edge of the bed is the most space-efficient support. A cattle panel (16 feet long, bent into an arch), a rope trellis strung between T-posts, or a commercial cucumber trellis all work. Train cucumber vines upward by tucking new growth through trellis openings every 2–3 days as the plant grows. Most cucumber varieties will climb naturally; a few varieties need guidance in the first week or two.

See cucumber trellis for specific trellis designs including cattle panel arches that also shade cool-season crops in the heat of summer.

For tomatoes: Use 5–6 foot stakes for indeterminate varieties, or heavy-duty cages for determinate or cherry tomatoes. Standard 3-foot cages are not adequate for most indeterminate tomatoes — they outgrow them by mid-season.

See how to prune tomatoes for sucker management guidance that becomes especially important when tomatoes are growing in a tight space next to cucumbers.

Disease risks: what to watch for in a combined bed

The main shared disease concern is cucumber mosaic virus (CMV), which infects both tomatoes and cucumbers (as well as hundreds of other plant species). CMV is spread by aphids. Symptoms in cucumbers include mosaic mottling of leaves and stunted growth. In tomatoes, it causes leaf curling and reduced fruit size.

If CMV was present in your garden the previous year, it’s worth separating tomatoes and cucumbers — not because proximity causes infection, but because once aphids spread CMV to one plant, adjacent plants of both species are immediately at risk.

For aphid management, see tomato companion plants for companion planting strategies that reduce aphid populations near both crops. Basil, marigolds, and nasturtiums are commonly planted near both tomatoes and cucumbers and have some evidence for aphid deterrence.

Other disease notes:

  • Early blight (Alternaria solani) affects tomatoes but not cucumbers. Cucumber plants in the same bed won’t spread early blight to tomatoes, but they also won’t protect against it.
  • Downy mildew is a cucumber-specific problem in humid eastern US climates. Good airflow from vertical trellising reduces risk. It does not infect tomatoes.
  • Bacterial wilt (spread by cucumber beetles) affects cucumbers and squash but not tomatoes.

The most reliable disease prevention for a combined bed: consistent spacing and air circulation, water at the soil line (not overhead), and weekly leaf inspection starting mid-July.

What not to plant next to tomatoes and cucumbers

While tomatoes and cucumbers are compatible with each other, both have plants that impede their growth when planted nearby.

Avoid near tomatoesAvoid near cucumbersAvoid near both
FennelSageFennel
Brassicas (heavy nitrogen competition)Brassicas
Corn (shared pest vectors)Aromatic herbs (some)
Other tomato family plants (Solanums)Potatoes

Fennel is the biggest concern for both crops — it releases allelopathic compounds from its roots that inhibit the growth of most vegetables, including both tomatoes and cucumbers. Keep fennel out of the vegetable garden entirely or grow it in a separate isolated container.

For more on which crops to pair together and which to separate, can you plant tomatoes and peppers together covers a similar compatibility question for another common vegetable pairing.

Zone-specific timing for planting both together

Because tomatoes and cucumbers have identical soil temperature requirements (60°F minimum), they can be transplanted at exactly the same time. This simplifies scheduling.

USDA ZoneTomato + cucumber transplant dateNotes
Zone 3–4Late May–early JuneAfter last frost; check local dates
Zone 5–6Mid-MaySafe after May 15 in most locations
Zone 7Late April–early MayStart cucumbers from seed indoors March
Zone 8–9March–AprilTwo crops possible: spring and fall
Zone 10February–MarchSkip summer planting; too hot for fruit set

In Zone 8–10, a second cucumber planting in August–September is possible and often more productive than the spring planting, as cucumbers prefer air temperatures below 90°F for fruit set. Tomatoes in Zone 8+ benefit from heat-tolerant varieties (Solar Fire, Solar Set) that set fruit at temperatures up to 95°F.

Managing the harvest timing gap

Cucumbers typically mature 45–70 days after transplanting. Most tomato varieties mature 55–90 days after transplanting. In practice, this means cucumbers start producing 2–4 weeks before tomatoes in most US gardens.

This timing gap creates a brief period where the cucumber plants are at peak production and taking up significant space in the shared bed. To manage it:

Pick cucumbers frequently. Cucumbers left on the vine past maturity inhibit the plant from setting new fruit and the vines expand further into the shared bed space. Check cucumber plants every 1–2 days at peak production. See growing cucumbers for size guidelines specific to each cucumber variety.

Prune cucumber laterals in the shared bed zone. Once cucumber vines reach the trellis and start cascading back down, trim lateral shoots that extend toward tomato plants. Keep cucumbers growing upward, not outward.

Anticipate the cucumber wind-down. Most cucumber plants decline after 6–8 weeks of heavy production. By August in Zone 6, the cucumber side of the bed begins to fade just as tomatoes reach peak production. This natural sequence works well in a co-planted bed — each crop dominates the bed at different points in the season.

Companion plants that benefit both crops

Some plants support both tomatoes and cucumbers when grown nearby, making them useful additions to a co-planted bed.

Basil: Widely planted near tomatoes for pest management. Also benefits cucumbers — some evidence suggests basil’s volatile oils deter aphids that spread CMV. Plant between rows, not under the canopy where competition is strongest.

Marigolds (Tagetes patula): The research-backed nematode suppressor is useful for both crops. Plant French marigolds as a border around the shared bed. See marigolds for the distinction between French and African types and which suppresses nematodes more effectively.

Nasturtiums: Trap crop for aphids. Aphids colonize nasturtiums preferentially over tomatoes and cucumbers. Plant nasturtiums on the south and east edges of the bed to draw aphids away from both crops. Monitor nasturtiums weekly and remove aphid-colonized leaves before populations spread.

For a broader look at companion planting strategies that reduce pest pressure across your vegetable garden, see companion plants for peppers — the principles for aphid and beetle management apply to the full vegetable bed.

Raised bed vs. in-ground performance

In US home gardens, raised beds produce better results than in-ground planting for a combined tomato-cucumber bed in most situations.

Raised bed advantages:

  • Better drainage (both crops tolerate wet feet poorly)
  • Soil warms faster in spring, allowing earlier planting
  • Easier to maintain consistent soil composition
  • Better defined growing zones make rotation planning clear

In-ground advantages:

  • Lower initial cost
  • Better for large plantings where multiple raised beds would be impractical
  • Native soil microbiome intact (beneficial for disease suppression in established garden plots)

For in-ground planting, soil amendment is more important than in raised beds. Incorporating 4–6 inches of compost into the native soil is the minimum preparation for a successful combined tomato-cucumber planting in US clay or sandy soils.

Whatever bed type you use, rotate the combined tomato-cucumber area to a different garden location every 2–3 years to prevent soilborne disease buildup — both crops share some fungal pathogen vulnerability, and rotation interrupts those pathogen cycles.

tomatoes cucumbers companion planting vegetable garden raised beds
SM

Sarah Mitchell

Sarah Mitchell is a Master Gardener and garden writer based in the Pacific Northwest. She has been growing food and flowers for over 15 years across USDA zones 7 and 8.