Companion Planting

Can You Plant Cucumbers and Tomatoes Together?

Cucumbers and tomatoes can share a bed with planning: compact varieties, a trellis layout, even watering, and watching for shared pests and powdery mildew.

On this page
  1. Why people plant them together
  2. The main trade-offs
  3. Choose a compact cucumber
  4. A layout that works
  5. Water and feeding
  6. Pests and diseases to watch
  7. When to use separate beds

Yes, you can plant cucumbers and tomatoes together, as long as you plan for space, water, and pests. Both crops need steady moisture and fertile soil, and both can be affected by the same pests and fungal diseases. The main risks come from crowding and competition rather than harm between the plants. Choose a compact cucumber, give both crops room, and keep the bed evenly watered.

Why people plant them together

Space is the main reason. A small bed can grow both crops by using vertical space for tomatoes and a trellis or the ground for cucumbers. They also share a place in the kitchen, so one trip to the bed can harvest both.

The main trade-offs

  • Competition for water and nutrients. Both are demanding. In a small bed, they can use up soil moisture and nutrients quickly.
  • Shared pests. Aphids, spider mites, and whiteflies feed on both plants and can move between them.
  • Shared diseases. Powdery mildew affects both, and wet foliage encourages it.
  • Vine sprawl. Cucumber vines can climb onto tomatoes, shade them, and tangle the stems.

Choose a compact cucumber

Look for bush or compact cucumber varieties, which spread less than standard vining types. Arkansas Little Leaf is one compact type that some gardeners grow in small beds. Check the seed packet for the plant’s habit before you buy. Standard vining cucumbers need a strong trellis and a lot of room, so they’re harder to fit alongside tomatoes.

A layout that works

Plant the tomatoes at one edge of the bed, staked or caged, and put the cucumbers at the opposite edge, where their vines can trail or climb a separate trellis. The aim is to keep the tall tomatoes from shading the cucumbers.

In New Zealand, the sun is to the north, so put the tomatoes on the south side of the bed and the cucumbers on the north side. In the Northern Hemisphere, reverse this. Train the cucumber vines up the trellis rather than letting them run into the tomato plants.

Water and feeding

Both crops need consistent moisture. Irregular watering causes problems on both: tomatoes are prone to blossom-end rot when watering is uneven, and cucumbers can taste bitter when they’re stressed. Water at the base of the plants, ideally with drip irrigation or a soaker hose. Avoid overhead watering, especially in the evening, since wet leaves encourage mildew. A mulch helps hold moisture in the bed.

Feed both crops from compost, and follow the fertiliser instructions on the label. Too much nitrogen can produce lots of leafy growth on tomatoes at the expense of fruit.

Pests and diseases to watch

  • Check the undersides of leaves on both plants for aphids, whiteflies, and spider mites.
  • Watch for powdery mildew on cucumber leaves and tomato foliage, and remove affected leaves early.
  • Keep plants spaced for airflow.
  • Rotate the bed, so cucumbers and tomatoes don’t return to the same spot the next season.

When to use separate beds

Consider separate beds or containers if your bed is small, the cucumber variety is a long vine, or pests and mildew have been a problem in the past. Separating them is often easier than managing a crowded, shared bed. For other combinations to avoid, see what not to plant near tomatoes, or start with the broader companion plants for tomatoes guide.

The complete guide to companion planting

Companion Plants for Tomatoes
Read the guide

Keep exploring

Guides from other topics

All topics →

Tomato Varieties A to Z

A to Z guide to tomato varieties: beefsteaks, paste, cherry and heirloom types, with growth habit, flavour notes and links to our variety guides.

Varieties 4 min read