The box model describes how an element's size is calculated by adding layers around its content. First, the content has its own width and height. Then padding adds space inside the border around the content, increasing total size. Next, the border surrounds the padding, adding more size. Finally, margin adds space outside the border, affecting how far the element is from others. The total width and height include all these parts. For example, a content of 100 by 50 pixels with 10 pixels padding, 5 pixels border, and 20 pixels margin results in a total size of 170 by 120 pixels. Understanding this helps control spacing and layout on a page.