Width at the top.
Stand the tape across the very top of the firebox opening, just under the lintel (the steel or stone bar that spans the top). Press it flat against both side walls. Round to the nearest 1/8 inch.
Tip: most masonry openings run 30–48" wide.