This is dependant on a person's needs and space. A person needs enough space to accommodate exercises such as lifts and pull-ups.
Most power racks have a depth of at least 24 in.