Frame a window opening too tight and the unit will not shim square; too loose and you waste flashing and trim. The rough opening (RO) is deliberately larger than the window unit so it can be shimmed plumb and level. This calculator applies the standard clearances to give you the RO from the unit size.
How it works
For a typical residential window and a pre-hung door:
Window RO width = unit width + 1.0 in (about 1/2 in shim each side)
Window RO height = unit height + 0.5 in (shim at the head)
Door RO width = slab width + 2.0 in (jamb + shims)
Door RO height = slab height + 2.5 in (jamb + threshold + finish floor)
These are starting defaults. The manufacturer’s installation sheet for your specific product always wins, because some units call for more or less clearance.
Example and notes
A 36 by 48 inch window unit needs a rough opening of 37 by 48.5 inches. A 36 inch pre-hung exterior door needs roughly a 38 inch wide by 82.5 inch tall RO for a standard 80 inch slab. Lay out your king studs to the outside of the jack studs, keep the header bearing on the jacks, and check the spec sheet before cutting if you have it.