The size of posts and beams is determined by how much weight they have to support and calculated by an architect or engineer.