We derive an exact, analytic expression for the fourth virial coefficient of a system of polydisperse spheres under the constraint that the smallest sphere has a radius smaller than a given function of the radii of the three remaining particles.