A mantel shelf is typically sized by the full length of the shelf on top.  A three-sided mantel is typically sized by the interior opening width (inside leg to inside leg).