Tomatoes grow best in loose, well-draining, nutrient-rich soil with sunlight, so they will thrive in a pot or garden if you meet their needs.