Yes, you can plant cucumbers near tomatoes. Both crops want full sun, warm soil and steady moisture, so they grow well in the same bed. The catch is airflow and disease. Crowded plants stay damp, and both crops can catch cucumber mosaic virus. Give each plant room, grow the cucumbers up a trellis and water at the soil, and the pairing works.

Why Cucumbers and Tomatoes Suit the Same Bed
- Same light. Both need 6 to 8 hours of direct sun a day.
- Same soil. Both like rich, well-drained soil with plenty of compost, at a pH of about 6.0 to 6.8.
- Same season. Both are frost-tender and go out after the last frost, once the soil has warmed to about 60°F (16°C).
- Same watering. Both need about 1 inch (2.5 cm) of water a week, and more in hot weather.
The Risks to Plan For
A shared virus
Cucumber mosaic virus infects both cucumbers and tomatoes. Aphids carry it from plant to plant. There is no cure, so prevention matters more than treatment.
Fungal disease from crowding
Cucumbers get powdery and downy mildew, and tomatoes get early and late blight. These are different diseases, but they share a trigger: leaves that stay wet because air cannot move between the plants.
Competition for water and food
Both are heavy feeders. Planted too close, they compete for water and nutrients and both crops yield less.
Shared pests
Aphids, whiteflies and spider mites feed on both plants, so an infestation on one can move to the other.
How Far Apart to Plant Cucumbers and Tomatoes
- Space staked or caged tomatoes 18 to 24 inches (45 to 60 cm) apart, and sprawling indeterminate types up to 36 inches (90 cm) apart.
- Space trellised cucumbers about 12 inches (30 cm) apart along the trellis.
- Leave about 2 to 3 feet (60 to 90 cm) between the tomato row and the cucumber row, so air moves and you can reach both.
- Put the taller row on the north side of the bed (the south side in the southern hemisphere) so it does not shade the other.
How to Plant Cucumbers With Tomatoes
- Dig compost into the bed before planting.
- Set tomato stakes or cages and the cucumber trellis first, so you do not damage roots later.
- Plant tomatoes deep, burying the stem up to the first set of leaves. Plant cucumber seedlings at the depth they grew in the pot, or sow seeds about 1 inch (2.5 cm) deep.
- Mulch with straw to hold moisture and stop soil splashing onto the leaves.
- Water at the base of the plants, ideally in the morning, and avoid overhead sprinklers.
- Train the cucumber vines up the trellis as they grow, and keep them off the tomato plants.
How to Keep Cucumber Mosaic Virus Out
- Choose cucumber varieties that list CMV resistance on the seed packet.
- Check the undersides of leaves for aphids every week. Spray them off with water or use insecticidal soap.
- Keep weeds down, since many weeds host both aphids and the virus.
- Pull plants with mottled, puckered or distorted leaves and put them in the bin, not the compost. Wash your hands and tools afterwards.
Good Neighbours for Both Crops
Basil, marigolds and nasturtiums are popular companions for both cucumbers and tomatoes. Nasturtiums are often used as a trap crop that draws aphids away from the vegetables. Keep potatoes away from both: potatoes share late blight with tomatoes and compete hard for water and food.
FAQs
Will cucumbers and tomatoes cross-pollinate?
No. Cucumbers belong to the gourd family and tomatoes to the nightshade family, and plants from different families cannot cross.
Can cucumbers grow up tomato cages?
They can, but a vigorous cucumber vine smothers the tomato and blocks airflow. Give cucumbers their own trellis.
Is it better to plant them in separate beds?
If you have the space, or have had cucumber mosaic virus or mildew before, separate beds lower the risk. Moving each crop to a new spot every year helps too.