Openings

Installing Windows and Exterior Doors

Windows and exterior doors fail at the sill before they fail anywhere else, so build the pan first and work outward from it to the casing.
  • 13 minReading time
  • 10Sections
  • 4Calculators inline
  • Last reviewed

Why the Pan Governs the Whole Opening

Water gets past cladding, and past glazing seals, on every wall that faces weather long enough. Fenestration standards accept this: a laboratory test such as ASTM E331, Standard Test Method for Water Penetration of Exterior Windows, Skylights, Doors, and Curtain Walls by Uniform Static Air Pressure Difference, measures how much water gets through under pressure rather than proving that none arrives. The question an installed opening actually answers is not whether water reaches the sill, but where it goes in the minute after it lands. A pan collects that water, holds it off framing and sheathing, and hands it back to the drainage plane. No bead of sealant does that job, and no amount of care with the cladding removes the need for one.

Picture the detail as three walls and a floor. A back dam stands between the water and the interior finishes. Two end dams close the jamb corners so nothing runs sideways into the stud bays. The floor slopes, or drains, toward the exterior face of the wall. Take away any one of those four elements and you have built a tray with a hole in it. Forensic work on leaking walls keeps turning up the same three causes: no end dams, a back dam shorter than the head of water that builds behind a plugged sill, or a pan sealed continuously along its outboard edge so the collected water has nowhere to leave.

Getting it wrong is not a trim repair. Rot at a sill plate means cladding off, sheathing out, temporary support under the header while the king studs are replaced, then rebuilding the drainage plane you disturbed on both sides of the opening. Every trade that touched the wall after the window comes back. That asymmetry — an hour of pan work against a week of reconstruction — is the whole argument for sequencing the opening around the pan and refusing to let a schedule push a unit into a hole that has not been prepared.

Reading the Rough Opening Before Anything Is Fastened

Measure the opening in three places each way: width at head, middle and sill; height at both jambs and the centre. Pull both diagonals. Rough opening size follows the manufacturer's installation instructions, which set the shim space the frame needs on each side — that document, not habit, is what an inspector and a warranty claim both refer back to. An opening cut tight enough to pinch a vinyl frame will bind the sash the first hot afternoon; one cut generous enough to swallow the flange leaves the fasteners with nothing solid to reach.

Flatness at the sill matters more than any of those numbers. Lay a straightedge across it and look for a crown at the centre, a common gift from a cupped plate or a proud jack stud. A pan built over a hump drains backwards to the corners and pools against the end dams. Check the plane too: run a string diagonally across the four corners of the opening, or hold a straightedge from the sheathing face at one jamb to the other. Framing that is out of plane will twist the frame when the flange is fastened flat, and a twisted frame is why the lock will not engage on one corner.

Correct all of it before any flashing is applied. Plane the crown down, sister or shim a bowed jamb, add blocking where the sill lacks continuous bearing, then tape the sheathing joints inside the opening and vacuum out the dust and swarf. Self-adhered flashing bonds to clean, dry, sound substrate and nothing else. Half an hour spent here is the difference between a pan that seats flat and one carrying fishmouths at both corners.

Cutting the Weather Barrier So Water Has Somewhere to Go

The drainage plane has to be opened and reassembled in a shingle-lap order, and that order runs bottom to top without exception. A modified I-cut is the usual approach: cut the barrier horizontally at the head and vertically down the centre, fold the two side flaps into the opening and fasten them to the jambs, trim the sill flap in, and hold the head flap up and out of the way with a temporary fold. ASTM E2112, Standard Practice for Installation of Exterior Windows, Doors and Skylights, sets out the sequences that keep those laps draining outward.

Materials for this are covered by their own specifications, and mixing them without checking is how a detail fails at the chemistry rather than the geometry. Self-adhered flashings are specified under AAMA 711, Voluntary Specification for Self Adhering Flashing Used for Installation of Exterior Wall Fenestration Products; liquid-applied products under AAMA 714. Mechanically attached sheet barriers fall under ASTM E2556. Butyl, asphalt and acrylic adhesives behave differently against a given barrier, and against the sealant you will run later — compatibility comes from the manufacturers involved, not from the fact that both products were on the same truck.

Temperature and pressure decide adhesion. Cold substrates need a primer, and the primer needs its flash-off time. Every square inch of membrane gets rolled, corners hardest, because an unrolled lap is a lap that has not bonded. Where the membrane turns a corner, relieve it and patch rather than stretch it; stretched flexible flashing creeps back and lifts the corner it was meant to seal.

Each flap folded back has to be taped along its whole length once the unit is in, and a schedule of thirty openings turns that into a roll count nobody arrives at by picturing one window.

SettingsSettings for this calculation
Who is doing the work?

Waste is set to 5% by hand. Pick a tier above to replace it, or keep your own figure.

The combined length of all sheathing seams and penetrations to be taped.

Extra tape to allow for cut waste, overlaps, and rework.

Seam tape needed

204.7 ft

High confidence

Estimated cost — your price

This site holds no price list for this material — local prices vary too much to publish honestly. Enter your supplier's price and the result is costed with it.

195 ft
Schematic, drawn to the proportions you entered — not to scale on screen.

What this calculation does not cover

  • One length, several different products. A flat sheathing seam takes a straight tape; an inside or outside corner takes a stretch or flexible tape that will turn the angle without tenting; a round penetration or a lapped transition often takes liquid-applied flashing and no tape at all. Those are separate purchases in separate widths sold in fixed roll lengths, and one total silently averages them — buy against it and the corners are the part that comes up short.
  • Taping the perimeter of a rough opening is an AIR seal, not a water detail. Water needs a sloped or pan-formed sill and laps that shingle downward, head over jamb over sill, so anything getting past the window is led back out. Tape run continuously around an opening as an air seal can instead hold water against the sheathing, and that failure shows up as rot at the sill years before anyone opens the wall.

Building the Pan: Three Dams and a Slope

Four approaches are in common use, and the corners separate them. A preformed pan, injection-moulded or extruded with end dams and back dam integral, removes the joint entirely at the two places most likely to leak. A site-formed metal pan gives full control of the back dam height but demands soldered, welded or fully sealed corners — folded and caulked corners on metal are a maintenance item, not a detail. Flexible sheet flashing dressed over a bevelled shim works well on residential wood framing when the corners are patched rather than stretched. Liquid-applied flashing suits irregular substrates and reinforced corners, provided the film thickness the manufacturer calls for is actually achieved.

Whatever the method, the geometry stays fixed. The floor slopes to the exterior so the pan empties itself. The back dam stands tall enough to hold the head of water that can develop before drainage clears — the unit's own installation instructions, and the pan manufacturer's, govern that height, and the figure varies with exposure and with the fenestration performance grade specified under AAMA/WDMA/CSA 101/I.S.2/A440, the North American Fenestration Standard. End dams turn up at both jambs and get lapped over by the jamb flashing that goes on later, never the other way round.

One rule overrides convenience on a busy site: the pan goes in before the unit, every time. Retro-fitting a pan under a set window is not possible, and the substitute — a heavy bead of sealant along the sill and a hope that the cladding never lets anything through — is exactly the assembly that shows up in claims. If the pan cannot be built today, the unit does not go in today.

One opening, taken apart in build order

An exterior opening separated into the parts it is assembled from: rough framing of header, jacks and sub-sill; a pan with a back dam and an upstand at each jamb; the unit set into it on discontinuous shims; head flashing turned up at both ends; and exterior casing covering the joint.
  1. Exterior casing and brickmould — carries no waterproofing duty at all, which is exactly why nothing may depend on it; mitred corners waste stock opening by opening Door & Window Casing Calculator
  2. Head flashing with a kick and end dams — throws water clear before it reaches the head joint; without the turned-up ends it simply delivers the flow to the two top corners Exterior Flashing Layout Trim Sheet Calculator
  3. The unit and its nailing flange — bedded on beads that run both jambs and the head and stop deliberately short at the two bottom corners Caulk & Sealant Calculator
  4. Sill pan: two end dams, a back dam, a slope — the only part of the opening that collects water and hands it back outward, and the one part that cannot be retro-fitted afterwards
  5. Rough opening: header, jacks, sub-sill — measured in three places each way and both diagonals before anything sticks to it; a crown at the sill drains a finished pan backwards Framing Stud Calculator

Dry-Set, Shim and Square the Unit Into the Pan

Dry-fit first. Set the unit into the finished pan with no sealant, check that it sits on the shim stack without rocking, confirm the reveal at both jambs, and look at how the flange lands on the flashed substrate. Pull it back out and only then run sealant. Beads go on the back of the nailing flange, or the back of the brickmould, along both jambs and the head — and the sill is deliberately left unsealed. Selecting and tooling those beads follows ASTM C920 for the sealant itself and ASTM C1193, Standard Guide for Use of Joint Sealants, for the joint.

Leaving the sill dry is the detail most often reversed by someone trying to be thorough. A continuous bead across the sill turns the pan into a sealed box: water that gets past the glazing or the jamb has no exit and rises until it clears the back dam. Where the sill needs support beneath the frame, use discontinuous bed pads or shims with clear gaps between them, so bearing is provided while drainage stays open.

Fastening comes after the geometry is proved, not before. Shim only at anchor points, plumb both jambs, level the head, and confirm the diagonals match before a single fastener goes home. Operate the sash or the panel through its full travel and check the lock engagement while adjustment still costs nothing. On vinyl and clad frames, resist the urge to add a fastener at mid-span of the head — it bows the frame down onto the sash and the binding shows up on the first warm day, long after the crew has moved on.

Exterior Doors: A Pan That Carries Boot Traffic

A door sill pan does everything a window pan does while a hundred people a day stand on it with wet boots. Support underneath must be continuous and solid: flexible flashing bridging a gap in the sub-sill will eventually punch through, and a threshold that flexes breaks the seal between sill and pan every time it moves. Where the framing steps down or the finished floor changes level at the opening, build the sub-sill up in solid material first and flash over a surface that will not move.

Swing direction changes the water strategy. An out-swing door leans on its sill gasket and threshold seal, with the pan catching what gets past; an in-swing relies more heavily on the pan and on the drainage channels moulded into the sill, which must be left clear when the unit is bedded. Sealant applied under an in-swing sill in an unbroken line blocks those channels, and the first thing the owner notices is water inside on the finish floor with the door apparently shut tight.

Anchoring is a separate discipline from sealing. Hinge-side screws long enough to reach the king stud, strike-side reinforcement to the same depth, and the shims held tight to the fasteners so the frame does not draw in when the screws are pulled. Threshold height at an accessible entrance is limited by the code as adopted locally and by the referenced accessibility standard, ANSI/ICC A117.1, Accessible and Usable Buildings and Facilities — check what your jurisdiction has adopted and amended before you build the pan up, because pan thickness is part of that dimension.

Openings That Arrive Unglazed

Not every unit shows up glazed. Storefront and commercial entrances, shop-built sash, and replacement lites in existing frames all arrive as an opening and a stack of glass, and the gasket work moves onto your critical path. Setting blocks go at the quarter points on the sill leg, sized for the lite thickness and the frame bite; side and top blocks control centring and rattle. Dry-glazed systems then take a wedge or roll-in gasket on both faces of every lite, which is where quantities get away from people — the run is per lite, per side, and both numbers double faster than a mental tally.

Never stretch a wedge gasket to make a run reach. It retracts overnight and opens the corners exactly where the water sits. Cut generously, roll it in from the centre of each leg toward the corners, and mitre or butt the corners the way the system manufacturer specifies. Order gasket for the whole opening in one go with an allowance for corner waste and trial cuts; running short mid-elevation means a part-glazed wall standing overnight under temporary protection.

Where a system is wet-glazed instead, the same discipline applies to the heel bead and cap bead: continuous, tooled, and applied to primed surfaces at temperatures the sealant manufacturer allows. A cold-weather cap bead that never developed cohesion looks perfect from the ground and lets water through every joint it covers.

Gasket runs are counted per lite and per side, so work the linear footage out here, before the glass goes in, rather than discovering the shortfall halfway along an elevation.

SettingsSettings for this calculation
Who is doing the work?

Waste is set to 5% by hand. Pick a tier above to replace it, or keep your own figure.

The total number of individual glass lites to be gasketed.

The perimeter of a single glass lite (2 × (width + height)).

Extra material to allow for cut waste and splices.

Total gasket needed

315 ft

High confidence

Estimated cost — your price

This site holds no price list for this material — local prices vary too much to publish honestly. Enter your supplier's price and the result is costed with it.

What this calculation does not cover

  • The perimeter is taken exactly as entered — the calculator never sees the lite's width and height, so it cannot check that the figure is 2 × (width + height). Entering width plus height instead of the full perimeter halves the answer, and nothing on the page flags the error.
  • One perimeter run is counted per lite. Glazing systems that carry both an inner and an outer gasket, or a wedge on one face with tape or a heel bead on the other, need two runs per lite, so either the perimeter or the lite count has to be doubled.
  • Wedge gasket is meant to be cut slightly long and compressed into the pocket rather than stretched, because stretched material retracts and opens gaps at the corners. The waste allowance covers offcuts and splices, not that deliberate over-length: on 20 lites of 4.5 m the 5% allowance is 4.5 m, and cutting every leg 3% long consumes 2.7 m of it before a single offcut is made.
  • The answer is a pooled length, not a buying quantity or a cut list. It does not know the supplied coil or roll length, so it neither rounds up to whole rolls nor accounts for the drop left at each roll end — 94.5 m (310 ft) bought in 30 m (98 ft) coils means four coils, and no single leg can bridge a coil end.
  • This counts linear length only; it does not select a gasket profile. It says nothing about whether the wedge size suits the clearance between the glass edge and the frame rebate, or whether the resulting compression, edge cover and pocket depth meet the system's air and water penetration rating — an undersized wedge leaves the glass loose, an oversized one loads the glass edge.

Sealing the Perimeter Without Damming the Drain

The gap between frame and framing has two separate jobs to satisfy, and they pull in opposite directions. It must be air-sealed and insulated so the opening is not a thermal hole, and it must remain free to drain at the sill so the pan can empty. Low-expansion foam rated for windows and doors, or backer rod with sealant, handles the jambs and head. Foam that is not low-expansion, or a jamb cavity packed solid in one pass, bows the jamb inward and binds the sash — the damage is done before the foam has finished curing, and trimming it back afterwards does not straighten the frame.

At the sill, restraint is the whole technique. Insulate lightly, leave the drainage path from pan to exterior clear, and never pack the pan cavity solid. Interior air sealing can be continuous across the head and jambs and still stop short of blocking the sill drainage; a bead of sealant on the interior face of the frame against the finished return gives you the air barrier continuity without touching the pan.

The exterior joint follows the same logic. Backer rod and sealant at both jambs and across the head, sized to the joint width and depth relationship set out in ASTM C1193, and the sill left open so the pan drains to daylight. Check the sealant against the WRB, the flashing membrane and the frame finish for compatibility; an incompatible pairing shows up as a peeling bead a season later, usually at the head, usually after the scaffold has gone.

Three sides of every opening take a bead and the fourth deliberately does not, so the tube count follows the schedule of units and their sizes rather than any wall-area figure.

SettingsSettings for this calculation
Who is doing the work?

The standard allowance most suppliers and estimating guides assume for ordinary work.

The height of the door or window opening being sealed.

The width of the door or window opening.

How many identical openings you're caulking.

Extra bead length on top of the openings' perimeter, for the sealant lost at the ends of tubes and in tooling.

Caulk tubes needed

1 tube

High confidence
Caulk bead length (with waste)
20.9 linear ft

Estimated cost — your price

This site holds no price list for this material — local prices vary too much to publish honestly. Enter your supplier's price and the result is costed with it.

3 ft0.914 m6.5 ft1.98 m19.5 sq ft1.81 m²3 ft1 m

What this calculation does not cover

  • The whole estimate is locked to one figure — a 1/4 in (6 mm) bead at 25 linear ft (7.6 m) per 10.1 oz tube — and there is no field for gap width or joint depth, so the answer never moves when the joint does. Widening the bead to 3/8 in (9.5 mm) at the same depth uses about half as much caulk again per unit length, and a gap that is both wider and deeper can take more than double. Size the bead against the actual gap before ordering to this number.
  • It measures the opening, not the bead path. The exterior bead runs around the outside of the casing where trim meets siding, which is longer than the opening perimeter by roughly eight times the casing width, and most exterior details also take a second bead on the inner edge where casing meets the frame. The waste allowance on the result, 10% as the page opens, does not stand in for either.
  • The formula takes the full perimeter, 2 x (height + width), so it charges caulk along the bottom of every opening. Standard practice on many window and door details is to leave the sill joint and any weep openings deliberately open so water that gets behind the trim can drain out. If you follow that, the real bead is shorter than the figure here.
  • Nothing here addresses the sealant itself: substrate compatibility, the movement the joint has to survive, whether a backer rod is needed to set depth and break the third-side bond, primer, or the temperature and surface-moisture limits printed on the cartridge. A correct tube count applied to a joint bonded on three sides still tears through its own middle.
  • This is a material take-off, not an air-sealing assessment. It does not identify where the leaks are, and it is not a blower-door result or evidence of compliance with any air-leakage or energy-code requirement — trim caulk is one small part of a wall's air barrier.

Head Flashing, Drip Cap and the Casing Outside It

Above the unit, water has to be intercepted and thrown clear before it can reach the head joint. A drip cap or head flashing with a positive kick, turned up at both ends into end dams, does that; the weather barrier's head flap then folds down over its vertical leg and is taped, so the lap sheds outward. Head flashing that stops flush with the casing ends, with no end dam, simply delivers concentrated water to the top corners of the opening — the two spots least able to cope with it.

Casing and exterior brickmould go on last and carry no waterproofing responsibility, which is precisely why they must not be relied upon for any. Back-prime every piece including the cuts, hold the bottom of vertical trim slightly off horizontal surfaces so end grain is not sitting in water, and fasten into solid material rather than into the frame itself where the manufacturer prohibits it. Keep reveals consistent around each opening; a reveal that wanders is the one defect the client will see from the drive every day.

Quantity for trim is a per-opening calculation that punishes eyeballing, because mitred corners waste stock and every opening in the schedule needs its own allowance.

Casing is the last thing bought and the first thing to run short, so size the order against the actual opening schedule before the trim package is released.

SettingsSettings for this calculation
Who is doing the work?

The standard allowance most suppliers and estimating guides assume for ordinary work.

Doors are cased on both jambs and the head; windows are cased on all four sides.

The height of the rough opening.

The width of the rough opening.

How many identical door or window openings you're casing.

The length casing stock is sold in at your supplier.

Extra casing for mitre offcuts and a recut joint.

Casing needed

17.6 linear ft

High confidence
Casing needed (before waste)
16 linear ft
Sticks needed
3 x 7 ft sticks

Estimated cost — your price

This site holds no price list for this material — local prices vary too much to publish honestly. Enter your supplier's price and the result is costed with it.

3 ft0.914 m6.5 ft1.98 m19.5 sq ft1.81 m²3 ft1 m

What this calculation does not cover

  • The stick figure is a length division — the run with waste divided by the stock length and rounded up — and it takes no account of which piece has to come out of which stick. A 2.032 m door leg cut from an 8 ft (2.44 m) stick leaves 406 mm, too short for the 864 mm head, so four identical doors take ten sticks on the bench against the nine that division returns. Openings of different sizes have to be run separately and their stick counts added, because offcuts from one run are not pooled into another.
  • No casing width is collected, so the run is the bare opening and nothing else. A mitred picture frame round a window adds about eight times the casing width, since each of the four pieces runs past the opening at both ends: 456 mm for a 57 mm profile and 712 mm for an 89 mm one. A door adds about four times the casing width, roughly 0.75 linear ft on a standard opening with a 2 1/4 in architrave, which is already half of the default 10% allowance before a single mitre offcut is cut.
  • Rough opening, finished jamb and door leaf are three different heights and the calculator simply uses whichever you type. The 2.032 m default is an 80 in leaf rather than a rough opening, and it is not the leg length either: a leg is cut from the finished floor to the top of the head casing, which with an 89 mm architrave over that leaf sits past 2.13 m and will not come out of a 2.1 m stick at all, even though the total-length arithmetic accepts that stock length without complaint.
  • The window option assumes a four-sided picture frame. A window finished with a stool and apron is cased on three sides instead, so the four-sided figure overstates it by one opening width per window — 0.9 m on a 1.2 m by 0.9 m opening — while the stool itself, which runs past the legs by a horn at each end, and the apron beneath it are different sections this page does not produce.
  • Plinth blocks and corner rosettes change the geometry the figure assumes: a plinth block takes its own height, commonly 130 to 150 mm, off the foot of each leg, and rosettes remove the mitres so the head is cut square between them rather than long-point to long-point. Extension jambs or a jamb rip, needed wherever the wall finish stands proud of the jamb face, are a separate material in a separate width and are outside this total. The height and width fields stop at 3 m, so a 12 ft (3.66 m) patio slider or a wide bifold opening has to be split across runs.

Proving the Opening Before It Is Covered

Test the first unit of each type, in the wall, before any cladding covers the flashing. Field testing is described in AAMA 502, Voluntary Specification for Field Testing of Newly Installed Fenestration Products, which references the spray-rack and pressure procedure of ASTM E1105, Standard Test Method for Field Determination of Water Penetration of Installed Exterior Windows, Skylights, Doors, and Curtain Walls, by Uniform or Cyclic Static Air Pressure Difference. A test on unit one finds a systemic sequencing error while the fix is a single opening; the same error found at handover is an elevation.

Photograph every pan before it disappears. A dated image of the finished pan, the end dams and the jamb laps for each opening is the cheapest evidence available if a leak is ever blamed on your scope, and it is what an investigator following ASTM E2128, Standard Guide for Evaluating Water Leakage of Building Walls, or a forensic tester working to AAMA 511 will ask for first.

Close out on operation and paperwork together. Adjust hinges, strikes, sweeps and adjustable thresholds after the wall is loaded and the building has settled onto its framing, not on the day of install. Keep the manufacturer's installation instructions with the job record for each unit type — code compliance and warranty both lean on that document, and it is the one thing nobody can reconstruct after the fact.

Opening takeoff and pre-cover checks

Count these per opening, not per elevation — mixed unit types and swing directions break any averaged number you carry across a job.

  • Sill pan units, by opening size and type — Preformed pans are ordered to the rough opening width; site-formed and liquid-applied need substrate area plus corner reinforcement.
  • Flashing membrane, sill / jambs / head — Sill piece runs past both jambs, jamb pieces run past the head; add corner patches rather than stretching the membrane.
  • Glazing gasket, per lite per side — Both faces of every field-glazed lite, plus corner waste — cut long, never stretched to fit.
  • Perimeter sealant and backer rod — Jambs and head only; the sill stays open so the pan drains.
  • Casing and exterior brickmould — Per-opening mitre allowance; back-prime all faces and cuts before installation.
  • Pre-cover photo record — Every finished pan photographed with end dams and jamb laps visible, before cladding.
Open this as a workspace →

Opens the calculators above on one screen with the dimensions from this article already filled in. Quantities only — this site publishes no price list, because local prices vary too much to publish honestly.

Drawn from

  • ASTM E2112, Standard Practice for Installation of Exterior Windows, Doors and Skylights
  • ASTM E1105, Standard Test Method for Field Determination of Water Penetration of Installed Exterior Windows, Skylights, Doors, and Curtain Walls, by Uniform or Cyclic Static Air Pressure Difference
  • ASTM E331, Standard Test Method for Water Penetration of Exterior Windows, Skylights, Doors, and Curtain Walls by Uniform Static Air Pressure Difference
  • ASTM E2128, Standard Guide for Evaluating Water Leakage of Building Walls
  • ASTM C920, Standard Specification for Elastomeric Joint Sealants
  • ASTM C1193, Standard Guide for Use of Joint Sealants
  • ASTM E2556, Standard Specification for Vapor Permeable Flexible Sheet Water-Resistive Barriers Intended for Mechanically Attached Application
  • AAMA 502, Voluntary Specification for Field Testing of Newly Installed Fenestration Products
  • AAMA 511, Voluntary Guideline for Forensic Water Penetration Testing of Fenestration Products
  • AAMA 711, Voluntary Specification for Self Adhering Flashing Used for Installation of Exterior Wall Fenestration Products
  • AAMA 714, Voluntary Specification for Liquid Applied Flashing Used to Create a Water-Resistive Seal Around Exterior Wall Openings in Buildings
  • AAMA/WDMA/CSA 101/I.S.2/A440, North American Fenestration Standard/Specification for Windows, Doors, and Skylights
  • ANSI/ICC A117.1, Accessible and Usable Buildings and Facilities

Guidance, not a specification. Local codes, the engineer of record and the product manufacturer’s instructions govern where they differ from anything written here.