Constraints on planet formation via gravitational