Baseboard planner

Trim is bought in fixed lengths, so linear feet alone can leave you a piece short. Enter each straight run and the planner assigns every cut to a stick.

Your project

Units
Runs of trim

One run is one straight, unbroken length. A wall with a doorway is two runs: one each side.

Run 1

Run 2

Run 3

Run 4

Run 5

Stock and allowances

Optional.

Allowances

For coping or mitring the ends.

Your plan

0lengths

Trim on the wall
Bought
Scarf joints
Cost
Each bar is one length of trim. Green pieces are cuts; grey is offcut.
Cut list
LengthCutsOffcut

How this planner works

Trim is sold in fixed lengths, and a run of baseboard looks best in one piece. Adding up linear feet and dividing by the stick length ignores both facts, so it can leave you one length short.

  1. Pieces. Each run gets an allowance (2 in by default, our own starting figure) for coping or mitring its ends.
  2. Joints. A run longer than your stock is split: full lengths plus a final piece, with an overlap allowance for each scarf joint.
  3. Packing. Pieces are sorted longest first and each is placed on the first length with room for it, allowing 1/8 in (3 mm) per saw cut. This first-fit decreasing method is a standard bin-packing heuristic; Dósa proved in 2007 that it never needs more than 11/9 of the optimal number of lengths plus 6/9, That is a worst-case guarantee, so check the cut list before you buy.

Worked example

A bedroom with runs of 12 ft, 15 ft, 12 ft, and a 15 ft wall where a 3 ft doorway leaves 4 ft and 8 ft runs, using 16 ft lengths with 2 in per piece:

  • Pieces: 15′ 2″, 12′ 2″, 12′ 2″, 8′ 2″, 4′ 2″. Total on the wall: 51 ft.
  • Linear feet ÷ 16 would suggest 4 lengths (51 ÷ 16 = 3.2, rounded up).
  • Packing: the 15 ft and both 12 ft pieces each need their own length; the 8 ft and 4 ft pieces share a fourth. 4 lengths, with each long run in one piece.

Change the stock to 12 ft and the 15 ft run needs a joint; the planner shows where.

What it does not do

  • It does not decide where joints go. Plan scarf joints where both pieces can be fixed securely and away from the main sightline.
  • Outside corners use more material than inside corners when mitred; increase the extra per piece for rooms with many outside corners.
  • Shoe moulding and quarter-round follow the same runs; plan them as a separate job.

Sources

  1. How do I measure? (opens in a new tab). Metrie. Accessed November 29, 2026.
  2. The tight bound of first fit decreasing bin-packing algorithm is FFD(I) ≤ 11/9 OPT(I) + 6/9 (opens in a new tab). György Dósa, ESCAPE 2007 (Springer, Lecture Notes in Computer Science), 2007. Accessed November 29, 2026.

Method last checked November 29, 2026. Found a mistake? Tell us; corrections are logged publicly.