Baseboard & Trim Calculator

Calculate baseboard linear feet minus doorways, plus door and window casing and crown molding, with stock pieces, nails, caulk, paint and trim material cost.

Written & reviewed by Michael FairUpdated June 2026Based on U.S. codes & pricingHow we calculate

Baseboard Calculator: How Much Baseboard and Trim Do I Need?

Baseboard is measured in linear feet around the perimeter of each room, minus the openings where no baseboard is installed. The simple formula is 2 × (length + width) for a rectangular room, minus about 3 ft for each standard doorway, plus 10% waste for miters, coped joints and short offcuts. A 14×12 bedroom with two doorways needs 52 − 6 = 46 linear feet of baseboard, or about 51 feet to order.

Door and window casing is calculated separately because it is usually a different profile. One side of a standard 3×7 ft interior door takes two 7 ft legs plus a 3 ft head — about 17 ft of casing. Most interior doors are cased on both sides, so count each side. A typical 3×5 ft window cased on all four sides with reveals takes about 18 ft. If you are adding crown molding, it runs the full room perimeter with no deduction for doorways.

Buy trim in the longest lengths you can transport. 16 ft lengths let you run most walls in one piece, avoiding joints that can open with seasonal movement. When a wall is longer than your stock, join pieces with a 45° scarf joint over a stud rather than a square butt joint. Inside corners look best coped (one piece cut to the profile of the other) because coped joints stay tight when walls are out of square, while outside corners are mitered.

Material choice drives the cost. In 2026 US pricing, primed MDF baseboard runs about $1–$1.50 per linear foot, finger-jointed pine $1.75–$2.50 and solid oak or other stain-grade hardwood $3.50–$5. MDF is stable and smooth for paint but swells if it gets wet, so many installers use PVC or pine in bathrooms and mudrooms. Professional installation typically adds $2–$5 per linear foot, more for tall built-up profiles.

Beyond the trim itself, plan on about 1½ brad or finish nails per foot (two nails at every stud), one tube of paintable caulk per 50 ft for the top edge and joints, wood filler for nail holes, and about one quart of trim paint per 100 ft for two coats. Use our flooring calculator first if you are replacing the floor, because baseboard is installed after the flooring is down.

How to Use This Calculator

1. Choose Imperial or Metric units. 2. Enter the room length and width, and the number of identical rooms. 3. Enter the number of doorways (and open archways) to deduct from the baseboard. 4. Optionally enter door sides and windows to case, and whether to add crown molding. 5. Pick the trim material, stock length and waste factor. 6. Click "Calculate" for linear feet, pieces, supplies and cost.

Understanding Your Result

The results show the net baseboard after doorway deductions, the amount to order with waste and how many stock-length pieces that equals. If you add door sides, windows or crown molding, those are listed separately because they are usually different profiles. Nails, caulk and paint quantities and the material cost complete the list.

Key Formulas

Baseboard

Baseboard = 2 × (L + W) − 3 ft × Doorways

Per rectangular room; add the rooms together.

Casing

Casing = 17 ft × Door Sides + 18 ft × Windows

One side of a 3×7 door and a 3×5 window cased on four sides.

Amount to Order

Order = Net Linear Feet × (1 + Waste); Pieces = ⌈Order ÷ Stock Length⌉

10% waste is typical; 15% for many corners.

Worked Example

A 14 ft × 12 ft bedroom with two doorways, primed MDF baseboard, 16 ft stock lengths and 10% waste.

  1. 1Perimeter = 2 × (14 + 12) = 52 ft
  2. 2Net baseboard = 52 − (2 × 3 ft) = 46 linear feet
  3. 3Order = 46 × 1.10 = 50.6 linear feet → ⌈50.6 ÷ 16⌉ = 4 pieces
  4. 4Nails = 46 × 1.5 = 69; caulk = 1 tube; paint = 1 quart
  5. 5Cost = 50.6 × $1.25 = $63.25

Buy four 16 ft lengths of primed MDF baseboard for about $63, plus one tube of caulk, one quart of trim paint and a box of brad nails.

Assumptions Behind This Estimate

  • Rectangular rooms of the size entered; multiple identical rooms multiply the perimeter
  • Standard doorway deduction of 3 ft
  • 17 ft of casing per door side (3×7 door) and 18 ft per window (3×5, four sides)
  • Crown molding runs the full perimeter with no doorway deduction
  • About 1.5 nails per foot, one caulk tube per 50 ft and one quart of paint per 100 ft
  • Default prices are 2026 US material averages per linear foot

Baseboard Material Comparison (2026 US Prices)

Material cost per linear foot and best use for common baseboard types.
MaterialCost per Lin FtFinishBest For
Primed MDF$1.00–$1.50PaintBedrooms, living areas
Finger-jointed pine$1.75–$2.50PaintHigh-traffic and damp areas
PVC / polystyrene$1.50–$3.00PaintBathrooms, basements
Solid oak$3.50–$5.00Stain or paintStained trim packages

Prices are for 3¼–5¼ inch profiles; taller and built-up profiles cost more.

Before You Buy: Practical Advice

  • Prime and paint trim before installing it — you only need to fill nail holes and touch up afterward.
  • Cope inside corners instead of mitering them; coped joints stay tight on out-of-square walls.
  • Mark stud locations on the wall above the trim line before you start nailing.
  • Let wood trim acclimate in the room for 48 hours to reduce gaps from shrinkage.
  • Install baseboard after flooring and leave about ⅛ inch above carpet so it can tuck under.

Frequently Asked Questions

How much baseboard do I need for a 12x12 room?

A 12×12 room has a 48 ft perimeter. Subtract 3 ft for one doorway to get 45 ft, then add 10% waste for about 50 linear feet — four 16 ft pieces or seven 8 ft pieces. With two doorways you need about 46 ft to order.

How do I calculate linear feet of baseboard?

Measure each wall at floor level, add them together, and subtract the width of every doorway, cased opening and built-in that interrupts the baseboard. For a rectangular room this is 2 × (length + width) minus about 3 ft per doorway. Add 10% for cuts and waste, or 15% for rooms with many short walls and corners.

How much does it cost to install baseboard?

Installed baseboard typically costs $3–$7 per linear foot in 2026, including primed MDF or pine material and labor. A 12×14 room with about 50 ft of trim usually costs $150–$350 professionally installed, while DIY MDF materials cost about $65. Stain-grade oak and tall profiles cost more.

Is MDF or wood baseboard better?

MDF is cheaper, perfectly smooth and does not warp, which makes it the best choice for painted trim in dry rooms. Finger-jointed pine is tougher and handles dents and moisture better, and solid hardwood is needed for stained trim. Avoid MDF in bathrooms, laundries and basements where it can swell if it gets wet.

Do I subtract doorways when measuring for baseboard?

Yes, subtract the width of each doorway — about 3 ft for a standard interior door and 6 ft for double or French doors. Do not subtract window openings, since baseboard runs along the floor beneath them. Measure door and window casing separately because it is usually a different profile.

What length baseboard should I buy?

Buy the longest lengths that fit your vehicle, usually 16 ft for MDF and pine (many stores also sell 8, 12 and 14 ft). Longer pieces mean fewer joints, which look better and are less likely to open. Plan the cuts so each wall uses one piece where possible and joints land on studs.