Trim Molding Calculator

WOODWORKING & CARPENTRY

Calculate baseboard, casing, or crown molding linear feet for a room.

Trim & Molding Calculator
Room perimeter to a shopping list — doors and windows deducted, stock lengths optimized, cost totaled.
Trim type
Stock length
Waste factor
Buy

Shopping list

Estimated cost

Molding Needed
linear feet
Includes waste.

Usage Tip

Buy molding in the longest lengths that fit your walls to minimize seams, and cut scarf joints where you must join pieces.

THE MATH
linear feet = (perimeter − doors × door width) × (1 + waste ÷ 100)
Trim runs around the room perimeter, skipping door openings. The linear feet needed is the perimeter minus the door widths, plus a waste allowance for miter cuts.
Enter the room perimeter, the number of doorways and their width, and a waste percentage (15 percent suits mitered trim).
The result is total linear feet to buy.

How much baseboard or trim do I need?

Measure the perimeter of the room, subtract the door openings, add a waste factor for miter cuts and mistakes, then divide by the length of the stock you are buying and round up to whole sticks. That last step is the one most calculators skip and the one that saves the 8:47 Sunday-night trip: this tool tells you to buy, say, five 12-foot sticks, not just that you need 54 linear feet.

How to calculate room perimeter for trim

For a rectangular room the perimeter is two times the length plus the width: a 12 by 14 ft room is 2 x (12 + 14) = 52 ft. Subtract each door opening, since baseboard stops at the casing. Windows usually do not interrupt baseboard, but they do break a chair rail or picture rail, so those get deducted too. This calculator handles the deductions automatically based on the trim type.

Standard trim lengths

Trim and molding are sold in standard stock lengths. Longer sticks mean fewer joints on long walls but are harder to handle and transport.

Stock lengthGood for
8 ftShort walls, closets, easy transport
10 ftCommon rooms, balance of yield and handling
12 ftMost rooms; fewer joints
14 ftLong walls with minimal seams
16 ftGreat rooms; needs a truck and a helper

Trim waste percentage

Every mitered corner and coped joint wastes a little material, and a miscut wastes a lot. Add a waste factor on top of the net length:

TrimSuggested waste
Baseboard, chair rail, shoe10 percent
Crown molding15 percent (compound miters)
Simple straight runs5 percent

Crown molding earns the higher number honestly; the compound miters seem designed in part to test human patience.

Crown molding calculator guide

Crown is measured the same way as baseboard — perimeter around the room at the ceiling — but it cuts at a compound angle, so corners eat more material and mistakes are common. Use 15 percent waste, buy a couple of extra feet for setup test cuts, and cope inside corners rather than mitering them for a tighter fit.

Trim material recommendations

ApplicationRecommended trim
Living room / bedroomMDF baseboard, paint grade
Bathroom / laundryPVC trim, moisture-proof
ExteriorPVC or composite
High-end / stain gradePoplar, oak or maple
Budget straight runsFinger-joint pine, paint grade

Frequently asked questions

Do I subtract doors when calculating baseboard?

Yes. Baseboard stops at each door casing, so subtract the width of every door opening from the perimeter.

Do I subtract windows?

Not for baseboard, since it runs under the window. For chair rail or picture rail, which sit at window height, subtract the window widths.

How much waste should I add for trim?

About 10 percent for most trim and 15 percent for crown molding. Use 5 percent only for simple straight runs with few corners.

What length trim should I buy?

Longer sticks mean fewer joints on long walls. Twelve foot is a good default; match the stock length to your longest walls where you can.

How many pieces of baseboard do I need?

Take the net length with waste and divide by the stock length, then round up. The calculator does this and gives a piece count to buy.

What trim is best for bathrooms?

PVC trim, because it will not swell or rot with moisture. MDF and bare wood are poor choices in wet rooms.

Related calculators:
Flooring Calculator · Room Area Calculator · Lumber Calculator
Coming soon: Paint Calculator · Crown Molding Calculator · Baseboard Calculator

Estimates are for planning. Actual needs vary with wall layout, joint method, returns and pattern matching; measure each wall, confirm your longest runs against the stock length, and buy a little extra for setup cuts and mistakes.

Spotted an error or have a suggestion for this calculator? Let us know →
Scroll to Top

The calculators and tools on Formula Factory are provided for general guidance and informational purposes only. Results are estimates based on standard formulas and the values you enter — they do not constitute professional engineering, electrical, or architectural advice. Always verify calculations with a qualified professional before making decisions for any safety-critical, code-compliance, or commercial application. Formula Factory makes no representations or warranties as to the accuracy or completeness of any result, and accepts no liability for errors, omissions, or any outcomes arising from reliance on this information.