Simply place the quarry block on the ground, tap on it and it will show you the size of the area that needs to be clear of blocks for the quarry to build.