Welcome to the forum

For 400x300 cutting area you would need an extra 200 mm or so on each axis for a moving gantry router, so about 600x500. For a moving table you would need more space to allow the table to move to each extent. So assuming 400 is across the gantry and 300 is the moving direction then footprint would be ~600 x 600. Of course this is a guide so start by drawing the full sweep of the table, add the fixed gantry legs on each side and the Y axis which moves across the gantry and you will start to see what you really need based on fitting all the bearings etc in and spacing them out to give enough support and allow it to be assembled in terms of bolt access. Do you have a CAD package to use ?
Also at 400x300 I’d probably go for moving gantry to keep it a bit more compact but either would work.