Yes, tomatoes and cucumbers grow well together in the same garden bed
Tomatoes and cucumbers are companion plants — they don't compete for the same nutrients, they don't shade each other out in ways that harm either crop, and they actually help each other in small ways. You can plant them side by side in the same bed, and many gardeners do. The main thing is spacing them far enough apart that both plants have room to spread and air can flow between them.
The reason this pairing works is that tomatoes grow tall and upright (especially if you stake or cage them), while cucumbers spread along the ground or climb a trellis. They occupy different vertical space. Tomatoes pull nitrogen from the soil; cucumbers don't compete for it the way another tomato plant would. Neither plant is allelopathic — meaning neither releases chemicals that poison the soil for the other.
Key Takeaways
- Space tomatoes 24 to 36 inches apart and cucumbers 12 to 18 inches apart, measuring from the center of each plant, so they have room to mature without crowding.
- Plant cucumbers on the south or west side of tomatoes so the taller tomato plants don't shade the cucumber vines during the hottest part of the day.
- Water both plants at soil level in the morning to keep leaves dry and reduce the risk of fungal disease, which affects both crops.
- Harvest cucumbers regularly (every two to three days once they start producing) to encourage more fruit and prevent the vine from exhausting itself.
- Watch for spider mites and powdery mildew on both plants, since they share some of the same pests and diseases.
How to space tomatoes and cucumbers in the same bed
The distance between plants matters more than whether they're in the same bed. Tomatoes need 24 to 36 inches of space from the center of one plant to the center of the next. Cucumbers need 12 to 18 inches. If you're planting them together, use the larger spacing — 24 to 36 inches — and place cucumber plants in the gaps between tomatoes.
Think of it as a grid. If your tomatoes are in a row 30 inches apart, you can fit a cucumber plant roughly 15 inches to the side of each tomato, in the space between two tomato plants. This gives each plant enough room to spread without their leaves and stems tangling together as they grow.
Avoid planting cucumbers directly north of tomatoes. Tomatoes grow tall and will shade the cucumber vines during morning hours, which is fine, but if the tomatoes block the afternoon sun, cucumber production drops. Plant cucumbers on the south or west side of the tomato row so they get full sun for most of the day.
Watering and air circulation when plants are close together
When tomatoes and cucumbers share a bed, water management becomes more important. Both plants like consistent moisture — not soggy soil, but not bone-dry either. Water at the soil level in the early morning, not in the evening. Wet leaves at night create conditions for fungal diseases like powdery mildew and early blight, which affect both crops.
Air circulation is your second priority. Crowded plants trap humidity around their leaves, which again invites fungal problems. Space the plants as recommended above, and if you're using stakes or cages for the tomatoes, position them so air can flow through the bed. If you're trellising the cucumbers (which saves space and keeps fruit off the ground), make sure the trellis doesn't block airflow to the tomato plants.
Mulch around both plants with 2 to 3 inches of straw or wood chips. Mulch keeps soil moisture steady, keeps soil from splashing onto leaves during rain or watering, and reduces weeds that would compete for water and nutrients.
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 leaves with water from a hose to wash mites off, or use neem oil if the infestation is heavy. Check plants twice a week during hot spells.
Powdery mildew appears as a white, powdery coating on leaves and stems. It thrives in warm days and cool nights with high humidity. Prevent it by watering at soil level, spacing plants for airflow, and removing lower leaves on tomatoes once they're established (this improves air circulation). If mildew appears, spray with sulfur or a baking soda solution (1 tablespoon baking soda, 1 tablespoon oil, 1 tablespoon dish soap per gallon of water).
Cucumber beetles and squash bugs may visit cucumber plants but usually ignore tomatoes. Hand-pick beetles and bugs in the morning when they're sluggish, or cover young cucumber plants with row cover until they flower (then remove the cover so bees can pollinate).
Fertilizing tomatoes and cucumbers together
Tomatoes are heavy feeders — they pull a lot of nitrogen from the soil. Cucumbers are moderate feeders. If you're planting them in the same bed, add compost or aged manure before planting (3 to 4 inches worked into the top 8 inches of soil). This gives both plants a nutrient base.
Once plants are growing, side-dress tomatoes with a balanced fertilizer (like 10-10-10) or a tomato-specific formula every three to four weeks. Cucumbers benefit from a lighter feeding — a balanced fertilizer every four to six weeks, or a light side-dressing of compost. If you over-fertilize cucumbers, they'll produce lots of leaves but fewer fruit.
If you're using a liquid fertilizer, explore it to the soil, not the leaves, and do it in the early morning or late evening to avoid leaf burn.
Harvesting cucumbers while tomatoes mature
Cucumbers produce fruit much faster than tomatoes. You'll be harvesting cucumbers within 50 to 70 days of planting, while tomatoes take 60 to 85 days to produce ripe fruit. This is actually an advantage — as you harvest cucumbers and remove vines, you're opening up space and improving airflow around the tomato plants.
Pick cucumbers every two to three days once they start producing. Leaving mature fruit on the vine signals the plant to stop flowering and focus energy on ripening those seeds, which slows production. Regular harvesting keeps the plant in "make more fruit" mode and gives you more cucumbers over the season.
As cucumber vines finish (usually by late summer in most climates), pull them out and compost them. This clears space around the tomato plants just as they're entering their peak production phase in late summer and early fall.
Frequently Asked Questions
Do tomatoes and cucumbers compete for water?
They both need consistent moisture, but they don't compete directly if spaced properly. Tomatoes have deeper root systems; cucumbers are shallower. Water the entire bed evenly in the morning, and both plants will find what they need. The real issue is keeping leaves dry to prevent fungal disease.
Can I plant tomatoes and cucumbers in containers together?
Not in the same container — they'd crowd each other and compete for water. But you can place containers side by side. Use a 5-gallon pot for one tomato plant or a 10-gallon pot for one cucumber plant. Keep containers close enough that you can water them on the same schedule.
What if powdery mildew spreads to both plants?
Treat both at the same time with sulfur spray or a baking soda solution. Spray every 7 to 10 days until the white coating is gone. Remove heavily infected leaves to improve airflow. Prevent recurrence by watering at soil level and spacing plants for air circulation.
Should I stake or trellis cucumbers if they're next to tomatoes?
Yes. Trellising cucumbers saves space, keeps fruit off the ground (reducing rot and pest damage), and improves airflow in the bed. Use a sturdy trellis or fence at least 5 feet tall. Train cucumber vines up as they grow, and they'll produce just as much fruit as sprawling vines but in a smaller footprint.
Can I plant tomatoes and cucumbers in the same spot year after year?
Rotate crops each year if possible. Both plants are susceptible to soil-borne diseases that build up over time. If you must plant in the same bed, remove all plant debris at the end of the season, add fresh compost, and wait at least one year before planting tomatoes or cucumbers in that spot again.