What this calculator does
Find out how many pieces of baseboard or crown molding to buy for your room. Baseboard, crown molding and chair rail are sold by the piece but measured in linear feet (feet along the wall). The job has four parts. Add up the walls the trim runs along, and take out the openings where it stops. Then allow for the angled cuts at every corner, and divide by the length of the pieces sold.
This trim calculator does those steps for a rectangular room or for any list of wall lengths. So you can total several rooms at once. Baseboard and chair rail stop at door openings, so those are subtracted. Crown molding runs along the ceiling past the doors, so nothing is taken out. You get the number of pieces to buy, along with the linear feet behind it.
Where it's used
Why this math matters outside the classroom:
- Bedroom baseboard. A homeowner trimming a 14 × 12 ft room adds 14 + 12 + 14 + 12 = 52 ft of wall, then subtracts a 3 ft doorway for 49 ft.
- Buying pieces. Shoppers needing 53.9 ft of molding divide by 16 ft per piece; 3 pieces fall short, so they buy 4.
- Crown molding. Carpenters running crown around a 12 × 10 ft room follow the whole 44 ft perimeter, since crown passes over doors.
- Perimeter practice. Students find the perimeter of an L-shaped room by adding all six wall lengths rather than using a formula.
- Whole-house quotes. Trim contractors list every wall on a floor to price materials and labor by the linear foot.
Grade level and standards: Grades 3–4; Common Core State Standards for Mathematics 3.MD.D.8, 4.OA.A.3. © Copyright 2010. National Governors Association Center for Best Practices and Council of Chief State School Officers. All rights reserved.
How to use it
- Choose a rectangular room and enter its length and width, or list each wall length in feet.
- Pick baseboard or crown molding. For baseboard, enter the number and width of door openings.
- Enter the length of the pieces you'll buy and an allowance for waste.
- Read the number of pieces and the linear feet.
What the inputs mean
- Wall lengths (ft)
- Useful for L-shaped rooms, hallways, closets and whole floors. Measure each run of wall along the floor. Include short returns (small wall sections) beside doorways and around chimney breasts.
- Width of each opening
- Measure the full width where the baseboard stops, including the door casing (the trim around the door) on each side. A standard interior door with casing is often about 3 ft.
- Length of each piece
- Longer pieces mean fewer joints on long walls. Pieces are cut to fit each wall, so a 16 ft piece can be cut into a 10 ft and a 6 ft run.
- Extra for cuts and waste
- Every inside or outside corner is cut at an angle, and short leftovers often can't be reused. Crown molding is harder to cut, so allow more.
Formula and method
wall length = 2 × (length + width) or the sum of the wall lengths linear feet to cover = wall length − doors × opening width (baseboard only) linear feet with waste = linear feet × (1 + waste ÷ 100) pieces = linear feet with waste ÷ piece length, rounded up
In the formulas, length and width are the room's size in feet, and doors is the number of door openings. Waste is your extra allowance as a percent, and piece length is the length of each piece you buy.
The distance around a rectangular room (its perimeter) is the length plus the width, doubled. For other shapes, adding each wall directly gives the same total.
The waste allowance covers the miters (angled corner cuts) and offcuts. Rounding up gives whole pieces, since most stores don't sell trim by the foot.
Worked example
Baseboard for a 14 × 12 ft bedroom with one 3 ft door opening, using 16 ft pieces and 10% waste.
- Wall length: 2 × (14 + 12) = 52 ft.
- Minus the door: 52 − 1 × 3 = 49 ft.
- With waste: 49 × 1.1 = 53.9 ft.
- Pieces: 53.9 ÷ 16 = 3.3688, rounded up to 4.
Result: Buy 4 pieces of 16 ft baseboard (64 ft). That covers the 49 ft run, with room for the corner miters.
Understanding the result
The piece count is what you buy. Any length beyond the linear feet you need is your spare, in case of a bad cut.
If a single wall is longer than one piece, plan a scarf joint over a stud. That's two pieces cut at matching angles so they overlap. Place it away from where the eye lands first.
Assumptions and limitations
- The trim runs the full length of every wall you enter.
- All door openings are the same width.
- Offcuts from one wall can be used on shorter walls. The waste allowance accounts for that on average.
- It doesn't plan which piece goes on which wall. A room with many walls just shorter than a piece may need more.
- Shoe molding, quarter round and window casing are separate purchases. Run the calculator again for each.
- Stair skirt boards and angled walls aren't handled.
Frequently asked questions
How do I measure for baseboard?
Measure each wall along the floor from corner to corner and add the lengths. Then subtract the width of each doorway, including its casing. For a plain rectangle, twice the length plus twice the width gives the same total.
Do I subtract doors for crown molding?
No. Crown molding runs along the top of the wall, above the doors, so it follows the full perimeter of the room. Only floor-level trim stops at doorways.
How much extra trim should I buy?
About 10% is a common allowance for baseboard in a simple room. Rooms with many short walls, bay windows or outside corners often need 15% or more. So does crown molding in general.
Is it better to buy 8 ft or 16 ft trim?
Longer pieces leave fewer joints and usually less waste on long walls. But they're harder to carry home and handle. Short pieces suit small rooms, closets and walls broken up by openings.
How this calculator is checked
Method: Room perimeter or the sum of wall lengths, less door openings for floor-level trim, with a percentage allowance and whole-piece rounding. The calculation is covered by automated tests with known reference values and edge cases. Last updated 2026-10-18. Found a problem? Tell us.
Embed this calculator
Put this Trim and Baseboard Calculator on your own website or blog for free. Paste this code where you want it to appear: