if it hangs into the sump, then you need minimum 4"x4", without counting the space for tubing and the little pump (I use the maxijet 404)
If you hang it outside the sump, then you only need the space for the in/out tubing and the little pump.
In my setup, it hangs in the return section of the sump.