It does not lock well or stay in position. 2 stars because it sort of keeps my dog going upstairs, but I would NOT have this as a baby gate. The gate doesnt stay strait on the wall very well. It pushes into the drywall and peels away the wall from the stairs. The lock is very weak and only stays if the gate perfectly fits, which it wont. It would still be a weak gate if it did. My dog can even open it but usually gets scared to get thru, usually. Id get a gate that has a handle lock you have to pull up if I were to buy another baby gate.