We got rid of the gates at about 2 years old. At that point they were climbing over the gates, so it seems like they were doing more harm than good.
It was also encouraging some really frightening behavior, like climbing up the stairs on the outside of the bannister. So, a good 12+ foot drop.