Stair gates should be used until a child is old enough to safely navigate stairs on their own, typically around the age of 2 to 3 years old. However, it is important to assess each child's individual development and abilities before removing stair gates.