I don't think there's a clear answer to this except "trial and error". Most animals seem perfectly fine with a doorway the size of a single wall piece but this wouldn't be the case for giraffes, elephants, and so on. I tend to overcompensate in many ways.