In general, eight inches is a good minimum depth for raised garden beds. If there are issues with drainage, or the plants in the box are sensitive to excess moisture around their roots, additional depth can help by allowing water to seep naturally.