Works for all shapes of walls/staircases. This worked after trying & testing out 5 other gates for our awkward, top of the stairs walls (they are not completely parallel & one wall is curved).