Both the 32” and 36” gates come in a prebuilt frame that is 30” deep. The 42" and 48” gates mount to your framing and also needs 30” of space behind the stud it is attached to.