Home Improvement

Baseboard and Trim Calculator

List your wall runs and openings, and the tool packs the cuts into board lengths and shows which length wastes the least.

Your numbers

Only the label changes. Enter door widths as openings for baseboard and shoe molding, and leave them blank for crown molding.

Applies to every wall length and opening width.

Wall runs
Wall 1

Total width of doors and other gaps on this wall. Blank means none.

Wall 2

Total width of doors and other gaps on this wall. Blank means none.

Wall 3

Total width of doors and other gaps on this wall. Blank means none.

Wall 4

Total width of doors and other gaps on this wall. Blank means none.

For counting only. Each needs a coped or mitered joint.

Example value. Spare length at the ends for miters and trimming.

Best fit picks the board length that buys the fewest feet.

Extra boards for bad cuts. Applied to the board count. Leave blank for 0%.

Optional. Leave blank to skip the cost estimate.

Result

Baseboard to buy

6 boards of 8 ft

38 ft of trim needed, 48 ft bought

Wall length
44 ft
Openings subtracted
6 ft
Baseboard needed
38 ft (11.58 m)
With 2 in extra on each run
38.67 ft
Inside corners
4
Outside corners
0
Boards of 8 ft (best fit)
6 boards
Feet bought
48 ft
Left over
9.3 ft
Splices in long runs
3

Board lengths compared

Board lengthBoardsFeet boughtLeft over ftSplices
8 ft6489.33
10 ft55011.32
12 ft56021.31
16 ft58041.30

Runs to cut

WallWall ftOpenings ftRun ftCut in
Wall A1239110
Wall B10010122
Wall C12012146
Wall D103786
Total44638

Shopping list

ItemBuyNotes
Baseboard, 8 ft boards6 boards48 ft in all
Corner joints to cut4 inside, 0 outsidecope or miter
How this was calculated
  1. Wall A: 12 ft - 3 ft openings = 9 ft, cut length 110 in with the extra.
  2. Wall B: 10 ft - 0 ft openings = 10 ft, cut length 122 in with the extra.
  3. Wall C: 12 ft - 0 ft openings = 12 ft, cut length 146 in with the extra.
  4. Wall D: 10 ft - 3 ft openings = 7 ft, cut length 86 in with the extra.
  5. Total = 38 ft, or 38.67 ft with the extra length on every run.
  6. Each run is packed into 8 ft boards, longest first, so short runs share boards: 5 boards. With 5% extra = 5.25, rounded up to 6.
  7. Best fit tries 8, 10, 12 and 16 ft boards and keeps the one that buys the fewest total feet, then the fewest boards.
  • Each wall is cut as one run, and runs longer than a board are split with a joint. Where a joint falls and how corners are cut is a trade decision. Coped inside corners use more length than the wall measure suggests, so a little extra is wise.
  • Finish nails, caulk, wood filler, paint and primer are not included. Boards are sold in set lengths and the lengths on offer differ by store and by profile.
  • This is an estimate. Confirm quantities with your supplier and check local building codes and manufacturer instructions before you buy or build.

Calculated using SumPanda.com · https://sumpanda.com/baseboard-trim-calculator/

Results are estimates for general information. Verify important figures before relying on them.

Next step

How to use the baseboard and trim calculator

  1. Pick the trim type (baseboard, crown molding, chair rail or shoe molding) and the unit you measured in.
  2. Add one row per wall run with its length and the total width of doors or other gaps to subtract. Leave the openings blank for crown molding.
  3. Enter the inside and outside corners, keep the 2 inch extra length for each run, and choose a board length or leave it on Best fit.
  4. Read the boards to buy, the feet bought and left over, and the table that compares 8, 10, 12 and 16 foot boards. Copy the shopping list.

Formula

Run length = wall length - openings on that wall

Cut length = run length x 12 + extra inches

A run longer than a board is split into whole boards and one shorter piece

Boards = all pieces packed into board lengths, longest first

Boards to buy = packed boards x (1 + waste percent / 100), rounded up

Feet bought = boards to buy x board length

Left over = feet bought - total cut length

Packing means a short run can share a board with the leftover of another run. The tool tries each board length and picks the one that buys the fewest feet, and the fewest boards if two lengths tie. Waste is applied to the board count after packing.

Worked example: baseboard for a 12 by 10 foot room with two doors

The walls are 12, 10, 12 and 10 feet. A 3 foot door on the first wall and another on the last leave runs of 9, 10, 12 and 7 feet, which is 38 feet of baseboard.

With 2 inches extra on each run the cut lengths are 110, 122, 146 and 86 inches, or 38.67 ft in all.

With 5% extra boards, 8 foot boards win: the pieces pack into 5 boards and 6 are bought, which is 48 feet with 9.3 feet left over. Ten foot boards need 5 and buy 50 feet, and twelve foot boards need 5 and buy 60 feet.

With no extra boards, 8 ft and 10 ft boards both buy 40 feet, and the tool picks four 10 ft boards because it is fewer pieces to handle.

Why board length matters

Trim comes in set lengths, and the best choice depends on how your walls divide into those lengths. A room with a few long walls can use long boards with little waste, while a room with many short runs, such as a hallway or a closet, wastes less with 8 foot boards. The comparison table shows how each length performs on your own walls instead of using a flat percentage.

Longer boards are harder to carry and can arrive bowed. Many pros still prefer them for long walls because a single piece means fewer joints. If a run is longer than your board, the tool splits it and counts a splice, which should be cut at an angle and placed where it will be least visible.

Corners, doors and extra length

Inside corners are joined by coping one board to fit the face of the other, or by a mitered cut, and outside corners are mitered. Either method uses a little extra length, which is why each run gets a few inches of allowance. The corner counts are shown in the shopping list so you can plan the cuts.

Baseboard stops at doorways, so subtract the door width from the wall it is on. For crown molding and chair rail you normally run past doors, so leave the openings blank. Trim also stops at built-ins, fireplaces and cabinets, and you can enter those widths as openings too.

Buying and finishing

Buy all the trim for a room at once and let it sit in the room for a day or two so it adjusts to the air. Prefinished trim saves painting time, but every cut end needs touch-up. Caulk, nails, adhesive, filler, primer and paint are not included, and neither are door casings and window trim unless you list them as wall runs.

Assumptions and limits

  • Each wall is a single straight run. Bay windows, angled walls and curved walls need their own rows with measured lengths.
  • The 2 inch extra length is an example allowance for miters and trimming. Increase it for complex corners.
  • Boards come in the lengths shown. Your store may stock different lengths, so use the stock option that matches.
  • Waste is added to the packed board count, and a bad cut on a long board costs a whole board.
  • Profiles with a repeating pattern, scarf joints and special corner blocks are not modeled.

Formulas reviewed October 10, 2026. See the calculation methodology for how SumPanda rounds, tests and sources its formulas.

Frequently asked questions

How do I calculate how much baseboard I need?

Add up the length of every wall, subtract the width of door openings, and add a few inches for each run. Then divide into board lengths, remembering that short leftovers can be reused.

Should I subtract doors when measuring crown molding?

No. Crown molding runs across the top of the wall above doors, so use the full wall length. Baseboard and shoe molding stop at the door, so subtract the width.

Is it better to buy 8 foot or 16 foot trim boards?

It depends on your walls. Long boards reduce joints on long walls, and short boards waste less on short runs. The comparison table shows the feet bought for each length.

How many corners does a room have?

A plain rectangular room has 4 inside corners. Each projecting wall, column or chimney breast adds outside corners, so count them on your floor plan.

Why does the tool add extra inches to every run?

Cuts at corners are angled, so the board needs to be a little longer than the wall. The extra length also gives room to trim a piece to a tight fit.