Trim and Molding Calculator

Work out how much baseboard, crown, chair rail and casing to buy for every room. You get linear footage, whole boards, a cut list, corner counts and the cost.

Measure your rooms

Wall-to-wall size of each room, plus its doors and windows.

Choose your trim

Tick each profile you are installing and set its price.

Door and window sizes

Typical sizes are filled in. Change them if yours differ.

Boards and extras

Trim is sold in whole boards, so leftovers are part of the order.

Board length you will buy
10% Added to the linear feet before rounding up to whole boards. 10% suits a plain room; go higher for crown, outside corners or stain-grade trim.

What Does a Trim and Molding Calculator Calculate?

A trim and molding calculator is a construction estimating tool that converts room dimensions, door and window openings, and trim profile into linear feet, stock-length piece counts, and a cost estimate.

Trim is priced and sold by length, so square footage is the wrong starting point. McGraw-Hill's estimating guidelines for molding and trim treat the lineal foot as the standard unit, with board-foot math reserved for large quantities.

That is why floor-area math, like the kind behind a flooring quantity estimate, does not carry over. A 12 x 14 ft room has 168 sq ft of floor but only 52 ft of perimeter, and the perimeter is what trim follows.

Three families of trim go through the same calculation:

The output is a short list. Total linear feet with waste, the number of 8, 12, or 16 ft pieces to buy, and a cost figure if a price per foot is entered.

It is still an estimate. A calculator multiplies whatever it is given, so a missed wall or a wrong door width goes straight into the order.

How to Use This Calculator

  1. Pick feet or meters, then enter each room's length and width, measured wall to wall.
  2. Add the number of doors and windows in that room. If cabinets or built-ins cover part of a wall, enter that length so it is left out of the floor trim.
  3. Tick the trim profiles you are installing and set a price per foot for each.
  4. Check the door, window and casing sizes. Typical sizes are filled in.
  5. Choose the stock length you plan to buy and a waste factor.

Rooms that are not simple rectangles can use the custom shape option. Enter the total wall length and the number of inside and outside corners.

How to Measure a Room for Trim

Measure every wall separately, at the height where the trim will run, and list each opening on its own line.

  1. Sketch the room and number each wall, including closet walls and bump-outs.
  2. Measure each wall corner to corner. Floor trim is measured at floor level and crown at ceiling level, because a wall that is out of plumb gives two different numbers.
  3. Round each length up to the next inch and write it beside the wall number.
  4. Record the width and height of every door, window, and cased opening. A cased opening without a door still breaks the run of floor trim.
  5. Measure closets as their own rooms, since baseboard runs along the inside walls too.
  6. Count the inside and outside corners and note the ceiling height.

Home Depot's baseboard installation guide says to measure each wall at least twice and to allow extra length for outside corners.

A second pass catches the usual errors: a skipped alcove, a transposed digit, a wall read from the wrong end of the tape. A laser distance measure speeds up long walls, but a tape and a second look do the same job.

Keep every number in one unit. Entering 9 ft 6 in as 9.6 instead of 9.5 adds 1.2 inches to that wall, and the error repeats across every wall that gets the same treatment.

Formulas for Baseboard, Crown Molding, and Casing

Every formula starts from the room perimeter, 2 x length + 2 x width. What differs by trim type is whether door openings come off and whether the length is figured per opening instead.

Trim typeLinear feet before wasteDoor openings deducted?
Baseboard, shoe molding, quarter roundPerimeter minus door openingsYes
Chair railPerimeter minus door openingsYes
Crown moldingFull perimeter at the ceilingNo
Door casing(height x 2 + width) per doorNot applicable
Window casing(height + width) x 2 per windowNot applicable

Baseboard, Shoe Molding, and Quarter Round

Baseboard covers the joint between wall and floor, so it runs the whole perimeter except where a doorway breaks the wall.

Formula: perimeter minus the combined width of all door openings.

A 12 x 12 ft room with one 3 ft doorway needs 48 minus 3 = 45 ft before waste.

Shoe molding and quarter round sit at the foot of the baseboard and hide the gap at the floor. They take the same linear footage as the baseboard but are bought as a separate profile.

Walk-in closets add their own run: the perimeter inside, minus the closet doorway.

Crown Molding and Chair Rail

Crown molding and chair rail look alike on a takeoff sheet, but they follow opposite rules for openings.

Crown molding:

Chair rail:

Treat crown as one continuous loop and chair rail as a set of separate wall segments. Picture rail follows the crown rule, since it sits above the door heads.

Door and Window Casing

Casing is figured per opening. A door takes three pieces (two sides and the head, nothing across the floor), and a window takes four.

An interior door has casing on both faces of the wall, so count it once for each room it opens into.

This calculator goes one step further and measures each casing piece to the long point of its miter. It adds the casing width at every mitered end plus a small reveal at the jamb, so its casing footage comes out slightly above the simple formula. Windows trimmed with a stool and apron take two legs, a head and an apron instead of four mitered sides.

Double-count risk: some calculators ship per-door defaults that already include a miter allowance. Add a waste factor on top of those and the same margin gets paid for twice. Here the waste factor is applied to the net footage only, not to the miter and fitting allowances.

How Much Waste to Add, and How Corners Change It

Add 10% for a plain rectangular room, and go above that when the room has outside corners, crown molding, or stain-grade trim that cannot hide a bad cut.

Waste Factor by Room Complexity

Angi's baseboard measuring guide tells readers to add 10% to the total, then notes that professionals buy 5% to 10% more than they measure.

Metrie, a moulding manufacturer, also recommends an extra 10% to cover underestimates, damage, and bad cuts.

So the sources agree on 10% as the homeowner default. The low end of 5% belongs to installers who cope their inside corners and fit offcuts into short runs, which first-timers rarely manage.

Apply the factor to the linear feet first. Round up to whole pieces last.

Miter, Coped, and Spring Angle Cuts

Corners drive waste because every angled cut leaves an offcut that rarely fits anywhere else.

Inside corners: cope one piece against the other. Bob Vila's trim guide recommends coped joints here, cut at 45 degrees and then followed along the profile with a coping saw.

Outside corners: both pieces take a 45 degree miter, so each corner uses more length than a coped inside corner.

Crown molding: a compound cut, with miter and bevel set together. The settings depend on the molding's spring angle and the wall angle.

Bosch's miter saw manuals list a 31.6 degree miter and a 33.9 degree bevel for 38 degree spring crown laid flat in a 90 degree corner. For 45 degree spring crown the settings are 35.3 and 30.

Rockler notes that 38 degree spring is common enough for many saws to carry preset detents at those two numbers.

Walls are rarely a perfect 90 degrees, and the same Bosch manuals say to confirm every setting with a test cut on scrap. Those test cuts are why crown gets a bigger waste factor than baseboard.

How Many Pieces to Buy and Which Stock Length

Divide the linear feet with waste by the stock length and round up. That number is the floor of the order, not the order itself.

Sixty linear feet of baseboard in 16 ft pieces gives 3.75, so 4 pieces.

Some profiles skip the rounding entirely. Home Depot lists a 4-1/4 in primed finger-jointed pine baseboard that is sold by the linear foot.

Total footage assumes every offcut finds a use. The walls decide whether it does.

Total-footage count (four 9 ft walls, 12 ft pieces):

Wall-by-wall count:

This calculator runs both counts. It lays every wall and casing piece onto your stock length in the cut list, then orders whichever number is higher: the wall-by-wall count or the footage with waste.

A wall longer than the longest piece needs a splice. Bob Vila's trim guide presents the scarf joint as the way to make two shorter boards read as one, and Fine Homebuilding names a reinforced butt joint as the other option for baseboard splices.

Crown is less forgiving. In a Journal of Light Construction Q&A on crown splices, a carpenter notes that the scarf joint he uses on baseboard does not work as well on crown, and the answer recommends preassembling the splice at the saw on a plywood backer. A long crown wall needs its own plan before the order goes in.

Worked Example: A 12 x 14 Room, Profile by Profile

Each profile gets its own footage, its own waste factor, and its own piece count, because a spare length of baseboard cannot finish a run of crown.

The room is 12 x 14 ft with a 52 ft perimeter, one 36 x 80 in door, two 48 x 36 in windows, and no closet. Baseboard, shoe molding, and casing are priced in 8 ft pieces, crown in 16 ft pieces.

ProfileNet feetWith wastePieces by footage
Baseboard49.053.9 (10%)7
Shoe molding49.053.9 (10%)7
Crown molding52.059.8 (15%)4
Door and window casing44.348.8 (10%)7

The piece counts come from footage alone. The two 14 ft walls each take an 8 ft piece plus a 6 ft piece, so sketch those walls first and add a piece if the remainders cannot be reused.

For several rooms, sum each profile across all of them and round up once per profile. Then run the wall check on the longest walls.

What Does Trim Cost per Linear Foot, and Which Material Is Worth It?

Angi's trim cost guide puts MDF at $1 to $3.50 per linear foot, wood at $1 to $10, and exotic wood at $10 to $45.

Profile width moves the bill as much as species does. Two primed finger-jointed pine baseboards on Home Depot's site show the gap (prices change, so check the current listing):

Same species, more than three times the cost per foot. And the pack size added a rounding step the piece count never showed.

MaterialPrice per linear footBest forLimit
MDF$1 to $3.50 (Angi)Painted trim in dry roomsSwells when wet, less crisp profiles
Finger-jointed pineInside Angi's $1 to $10 wood rangePainted baseboard and casingGlue joints can show through paint
PoplarAbout 4x MDF (Family Handyman)Painted trim that takes knocksPriciest paint-grade option
Oak and other hardwoodUp to $10; exotic species $10 to $45 (Angi)Stained trimHarder to cut and miter

For painted rooms, MDF or finger-jointed pine covers most jobs. Fine Homebuilding presents MDF as a good alternative when high-end finger-jointed trim is outside the budget, and Angi says standard MDF baseboard is best in dry indoor rooms like bedrooms and offices.

Paying for hardwood and then painting it wastes the grain. Poplar earns its premium on trim that gets bumped daily, and solid hardwood belongs on stained work.

Installation adds labor on top. Angi's trim cost tables list baseboard trim at $3 to $7 per linear foot and shoe molding at $2 to $6.25, and Angi puts full baseboard installation at about $5.70 to $9. On Thumbtack, one contractor quotes $4.75 per linear foot for 5-1/4 in baseboard including paint and materials.

Angi's trim cost guide also prices trim by type, with base molding at $1 to $10 and casing at $0.50 to $1.50 per linear foot. Different pages price different things, so confirm whether a per-foot figure is material only or installed before comparing quotes.

The prices filled into this calculator are placeholders inside those material ranges. Replace them with your supplier's price per foot before you rely on the total.

Trim rarely arrives as its own budget line. A home renovation cost calculator can fold the trim estimate in with flooring, paint, and the rest of the project.

When the Calculator's Number Will Be Wrong

A calculator assumes straight walls, a flat ceiling, a rectangular room, and a level floor. Every departure from that adds length the formula never sees.

Two or more of these in one room is the cue to sketch the walls and plan each one by hand. Plain rectangular rooms are where a calculator earns its keep.

Trim and Molding Calculator FAQ

What is the difference between trim and molding?

Trim is the general term for material at the joints between walls, floors, and ceilings and around openings. Molding is a type of trim that is often more decorative or ornate, per Angi: all molding is trim, but not all trim is molding. For quantity math, both are measured in linear feet.

What size crown molding fits my ceiling height?

Angi's sizing table puts 8 ft ceilings at 2-1/2 to 6 in of crown, 9 ft ceilings at 3 to 7-1/2 in, and 10 ft and up at 4 to 9 in or more. Its starting rule: 2-1/2 in for an 8 ft ceiling, then about 1 in more per extra foot.

Can I install trim myself, or should I hire a carpenter?

Yes, for a plain rectangular room with baseboard and casing. Hire a pro for vaulted ceilings (Angi advises it) or crown with many compound corners. HomeAdvisor cost data on Angi puts finish carpenters at about 20 linear feet per hour.

Is shoe molding the same as quarter round?

Not quite, though both hide the gap at the floor. Quarter round is a true quarter circle and bulkier, while shoe molding is slimmer and taller. They run the same linear footage as the baseboard, so the calculator treats them alike.

Does a trim and molding calculator work in metric?

Yes. The formulas do not depend on units, so keep every measurement in meters or in feet, never a mix. The one thing to change is stock length, since metric suppliers sell trim in different standard lengths.

Which nails should I use for baseboard and casing?

Use 15 or 16 gauge finish nails for baseboard, casing, and crown, and 18 gauge brads for small moldings. Albany County Fasteners lists 1-1/4 to 1-1/2 in for thin trim and casing, and 2 to 2-1/2 in for baseboard and crown. Aim each nail at a stud.