Yes, you can plant tomatoes next to cucumbers, but they have different water and spacing needs that require attention

Tomatoes and cucumbers are compatible garden neighbors — they don't compete for the same nutrients, and neither one produces chemicals that harm the other. You can plant them in the same bed or in adjacent rows. The real challenge is that they want different amounts of water and different amounts of space, so you'll need to manage each plant's needs separately rather than treating them as a single unit.

Tomatoes need deep, infrequent watering that reaches their root system 6 to 8 inches down. Cucumbers prefer consistent moisture in the top 2 to 3 inches of soil and will wilt if the surface dries out, even if deeper soil is wet. If you water on a schedule that keeps cucumbers happy, tomato roots may stay too wet and develop root rot. If you water deeply for tomatoes, cucumber leaves will show stress between waterings.

The spacing issue is simpler to solve. Tomatoes need 24 to 36 inches between plants; cucumbers need 12 inches if trellised or 24 inches if left to sprawl. Plant them far enough apart that their mature foliage doesn't touch, and you avoid most disease problems that come from leaves staying wet.

Key Takeaways

  • Tomatoes and cucumbers do not compete for nutrients and neither harms the other, so they are safe to plant side by side.
  • Tomatoes need deep watering once or twice a week; cucumbers need light, frequent watering, so water each plant according to its own needs rather than on a shared schedule.
  • Space tomatoes 24 to 36 inches apart and cucumbers 12 to 24 inches apart, depending on whether you trellis the cucumbers, so their leaves dry quickly after rain or watering.
  • Both plants attract similar pests (spider mites, aphids) and can share some diseases, so monitor both for signs of trouble and remove affected leaves promptly.

How to water each plant without drowning the other

The simplest approach is to use drip irrigation or soaker hoses on a timer, with separate lines for tomatoes and cucumbers. Set the tomato line to run for 20 to 30 minutes once or twice a week, depending on heat and rainfall. Set the cucumber line to run for 10 to 15 minutes every other day or daily during hot spells. This keeps water off the leaves — which prevents fungal disease — and delivers it exactly where each plant needs it.

If you hand-water, water tomatoes at the base early in the morning, soaking the soil 6 to 8 inches deep. Then water cucumbers separately, wetting the top few inches of soil around their roots. Check the cucumber soil with your finger every day or two; if the top inch is dry, water again. Tomato soil should feel moist 3 inches down but not soggy.

Mulch around both plants with 2 to 3 inches of straw or wood chips. This keeps soil temperature stable, reduces how often you need to water, and prevents soil from splashing onto leaves during rain or watering — which spreads disease spores.

Spacing and trellising to prevent disease

Plant tomatoes in a row with 24 to 36 inches between each plant, depending on the variety. Determinate (bush) tomatoes can be closer; indeterminate (vining) tomatoes need more room. Plant cucumbers 12 inches apart if you're trellising them vertically, or 24 inches apart if you're letting them sprawl on the ground.

Trellising cucumbers is the better choice when they're near tomatoes. A trellis keeps cucumber vines off the soil, improves air circulation around the leaves, and makes it easier to water the soil without wetting the foliage. Use stakes, cages, or a straightforward string trellis. Tie the vines loosely as they grow; they'll naturally climb if given support.

Prune lower leaves on both plants once they're established. Remove any tomato leaves in the bottom 6 to 12 inches, and any cucumber leaves that touch the soil. This stops soil-borne spores from splashing up onto the plant and reduces humidity around the base, where fungal diseases start.

Pests and diseases that affect both plants

Spider mites attack both tomatoes and cucumbers, especially in hot, dry weather. You'll see fine webbing on the undersides of leaves and tiny yellow or brown spots. Spray the undersides of affected leaves with water from a hose to wash mites off, or use insecticidal soap if the infestation is heavy. Check both plants twice a week during hot spells.

Aphids cluster on new growth and the undersides of leaves on both plants. They're small, soft-bodied insects that may be green, black, or yellow. Spray them off with water, or release ladybugs if you have a large infestation. Avoid broad-spectrum insecticides, which kill beneficial insects.

Powdery mildew appears as a white coating on leaves and is more common on cucumbers than tomatoes, but can affect both. It thrives in warm days and cool nights with high humidity. Improve air circulation by spacing plants properly and pruning lower leaves. If mildew appears, spray with sulfur or a baking soda solution (1 tablespoon baking soda + 1 tablespoon oil + 1 teaspoon dish soap per gallon of water) every 7 to 10 days.

Early blight is a fungal disease that starts on tomato leaves as brown spots with concentric rings. It spreads to cucumbers less often but can happen. Remove affected leaves when ready and dispose of them in the trash, not the compost pile. Water at the base only, never overhead.

Companion planting: what helps and what doesn't

Basil planted near tomatoes may reduce some insect pests and is often recommended, but it won't harm cucumbers either. Marigolds are sometimes planted to deter pests; they're harmless to both plants but their effectiveness is debated. Neither will hurt your tomato-cucumber bed, so plant them if you like the look.

Avoid planting fennel, dill, or cabbage family plants (broccoli, kale, cabbage) near either tomatoes or cucumbers. Fennel and dill release chemicals that inhibit growth in nearby plants. Cabbage family plants attract some of the same pests and can increase pest pressure.

Beans and peas are good neighbors to tomatoes and won't harm cucumbers, but they don't add much benefit to a tomato-cucumber bed. If you have space, they're worth including for nitrogen fixation, which can help soil health.

Sunlight and soil requirements

Both tomatoes and cucumbers need full sun — at least 6 to 8 hours of direct sunlight daily. Tomatoes prefer 8 hours or more; cucumbers will produce in 6 hours but yield better with 8. Plant them where they'll get morning sun, which dries dew quickly and reduces fungal disease.

Both plants like soil rich in organic matter. Before planting, mix 2 to 3 inches of compost or aged manure into the top 8 to 10 inches of soil. Tomatoes are heavier feeders than cucumbers, so side-dress tomatoes with compost or a balanced fertilizer (10-10-10) every 3 to 4 weeks once they start flowering. Cucumbers need less feeding but benefit from a light process of compost or diluted fertilizer every 4 to 6 weeks.

Soil pH should be between 6.0 and 7.0 for both plants. If you don't know your soil pH, a straightforward test kit from a garden center costs a few dollars and takes 10 minutes. Adjust with lime to raise pH or sulfur to lower it, following package directions.

Timing and succession planting

Plant tomatoes and cucumbers at the same time only if your growing season is long enough for both to mature. Tomatoes take 60 to 85 days from transplant to first fruit, depending on variety. Cucumbers take 50 to 70 days from seed or transplant. If you have a short season, start tomatoes indoors 6 to 8 weeks before your last spring frost, then transplant them outside after the frost date. Plant cucumber seeds directly in the soil 1 to 2 weeks after the last frost, when soil is warm.

In long-season areas, you can succession-plant cucumbers. Plant the first crop at the same time as tomatoes, then plant a second crop 3 to 4 weeks later. The first crop will be done by mid-summer, and the second crop will produce through fall while tomatoes are still going strong.

At the end of the season, remove plants as soon as they stop producing. Don't leave dead or dying plants in the bed, as they harbor pests and diseases that overwinter in the soil. Pull the plants, dispose of them, and replace the mulch.

Frequently Asked Questions

Do tomatoes and cucumbers compete for nutrients?

No. Tomatoes are heavy feeders that need nitrogen, phosphorus, and potassium throughout the season. Cucumbers need less overall nutrition and prefer lighter feeding. They don't compete for the same resources, so you can feed each plant according to its own needs without one starving the other.

Can I plant cucumbers at the base of a tomato plant?

Not directly. Tomato roots spread 12 to 18 inches from the stem, and cucumber roots spread 8 to 12 inches. If you plant them closer than 24 inches apart, their roots will compete for water and nutrients in the same soil zone. Plant them at least 24 inches apart, or use separate drip lines so each plant gets water independently.

What if my tomatoes and cucumbers get the same disease?

Remove affected leaves from both plants when ready and throw them in the trash. Improve air circulation by pruning lower leaves and spacing plants farther apart if possible. Water only at the base, never on the leaves. If the disease spreads despite these steps, spray with sulfur (for powdery mildew) or copper fungicide (for early blight), following label directions and waiting the required time before harvesting.

Should I trellis tomatoes and cucumbers the same way?

No. Tomatoes grow better with cages or stakes that support the main stem and keep fruit off the ground. Cucumbers climb naturally and do well on string trellises, wire cages, or straightforward stakes. Trellising cucumbers vertically saves space and improves air circulation, which is especially important when they're near tomatoes.

Can I use the same fertilizer for both plants?

A balanced fertilizer like 10-10-10 works for both, but tomatoes benefit from higher phosphorus and potassium once they start flowering, which supports fruit development. A tomato-specific fertilizer (like 5-10-10) is worth using if you're feeding tomatoes separately. Cucumbers do fine with a light balanced fertilizer or compost every 4 to 6 weeks.