How the calculation works
Back opening = artwork dimension + total fit clearance. Sight opening = back opening − twice the rabbet overlap. Long-point cut length = sight opening + twice the molding face width. Make two width pieces and two height pieces.
A worked example
An 8 × 10 inch mat, ⅛ inch total clearance, 2 inch molding and ⅜ inch rabbet overlap gives horizontal long-point cuts of 11⅜ inches and vertical cuts of 13⅜ inches. The four long edges total 49½ inches before any allowance.
Before you use the result
Use one unit throughout. Molding face width and horizontal rabbet overlap are different measurements; rabbet depth is not used here. The result assumes a rectangle with 45° miters. For trim around a wall mirror, enter the desired clear opening and set overlap to 0 if the trim will not cover it. This does not design mirror supports. The buying total is not a stock cutting layout: allow for saw kerf, defects and the length of each piece.