Just large enough for the flange to fit through. It doesn't have to be an airtight fit, but you want to have as much subfloor under the flange as reasonably possible for support. Please understand that the flange is to set on top of the finished floor, not on the subfloor. The screws that hold the flange down should go through the finished floor and the subfloor.