Window & Door Calculator
How many openings?
Count every window and door getting new casing.
Add at least one window or door to continue.
Average window size
Rough opening, width × height. Doors are figured at the standard 3 × 6.8 ft — no measuring needed.
Your trim list
Waste allowance Starts at 0% — tap to add a cushion for miter cuts & mistakes.
Buy this much casing
–
- Total openings
- –
- Casing to buy
- –
- Shim packs
- –
- Foam cans
- –
💡 Pro field tips
🧰 Tools you'll need
Tap to check off as you load up.
Est. project cost (optional)
File this estimate under a job name or PO to track what to order. Leave blank to file under "General".
Copied to clipboard ✓
How the math works
Trimming a window or door is a perimeter problem: casing runs around the opening, and this calculator figures every opening — door or window — with the same full trim run. Once you know the perimeter rule, the math is simple multiplication — count the openings, multiply by the trim length each one eats, and add a waste buffer for the 45-degree miter cuts at the corners. This calculator does exactly that, plus the shims and foam that make the installation solid and draft-free.
Step 1: Casing length per opening
Doors are figured at one standard size in this calculator — a 3 × 6.8 ft door — and trimmed with the same full run as a window: casing per door = 2 × (width + height) = 2 × (3 + 6.8) = 19.6 ft. For a window, all four sides get trimmed, using the size you enter: casing per window = 2 × (width + height). A 36 × 48-inch window (3 × 4 ft) needs 2 × (3 + 4) = 14 feet.
Step 2: Why miters eat extra material
Casing corners are joined with 45-degree miter cuts, and every miter cut consumes length — you cut the angle beyond your mark, not on it. That extra length is what the waste allowance covers, plus miscuts. The calculator starts at 0% waste — the exact length — and the waste chips above your results let you add the cushion yourself (10% is the usual pick). It sounds generous until you miter your first piece backward and have to recut it. One bad cut per room is normal, even for pros.
Step 3: Totaling across openings
The calculator multiplies the per-opening length by your count of doors and windows, applies the waste percentage you picked, and reports the total in linear feet — that total is the amount to buy. It does not pick boards for you: casing is sold in fixed lengths (often 7, 8, or 12 feet), so divide the total feet by the board length you are buying and round up yourself — a job needing 41 feet means six 8-foot boards (48 feet) — so you never come up a foot short on a Sunday afternoon.
Step 4: Shims — the hidden heroes
Shims are the tapered wedges that plumb and level each opening before the trim goes on. The rule of thumb is one pair of shims per hinge side on doors (three pairs for a standard door) and four to six pairs per window (corners plus midpoints on wide units). They are cheap and sold in bundles — the calculator estimates bundles from your opening count so you grab enough in one trip.
Step 5: Foam and fasteners
The gap between the window/door frame and the rough opening gets filled with low-expansion foam — roughly one can per 2–3 openings depending on gap size. Finish nails run about one per 16 inches of casing. These small items are the ones most often forgotten, which is why the calculator includes them.
Worked example
Trimming 5 doors and 4 windows (36 × 48 in): doors need 5 × 19.6 = 98 ft, windows need 4 × 14 = 56 ft, total 154 ft exact — that's the number the calculator gives you first, because it starts at 0% waste. Tap the 10% waste chip and it becomes 154 × 1.10 = 169.4 ft — in 8-foot boards, that's 20 boards at the exact count, 22 with the cushion. Shims: 9 openings ÷ 6 per pack = 2 packs. Foam: 9 openings ÷ 3 per can = 3 cans.
Most Asked Questions
How much casing do I need for 6 windows and 5 doors?
194 feet, exact. The windows (3 × 5 ft) take 16 ft each — 96 ft — and each door takes 19.6 ft — 98 ft. Nothing is added until you tap a waste chip; at +10% it comes to 213.4 ft.
How much casing does one window take?
16 ft for a 3 × 5 ft window. Casing runs all four sides: 2 × (width + height). A bigger window takes more trim — enter your real window size.
How much casing does one door take?
19.6 ft per door in this calculator. It figures a standard 3 × 6.8 ft door as 2 × (3 + 6.8), the same way it figures a window's full trim run.
How many shim packs and foam cans does it figure?
For those 11 openings: 2 packs of shims and 4 cans of foam. The calculator figures one shim pack per 6 openings and one can of low-expansion foam per 3 openings, rounded up.
Why add waste on casing?
Miter cuts eat length. Every 45° corner is cut past the mark, and one backward miter means a recut. The count starts exact at 0% — tap +10% if you want the cushion, and that job goes to 213.4 ft.
Does it matter if the doors are interior or exterior?
Not for the casing count. Both figure at the same standard door size. The split exists so your total opening count — the number that drives the shims and foam — is right.