We use the inverse mean curvature flow with a free boundary perpendicular to the sphere to prove a geometric inequality involving the Willmore energy for convex hypersurfaces of dimension n >= 3 with boundary on the sphere.