Quick answer
Trim length = (2 × (room length + room width) − door widths) × (1 + waste). A 12 × 10 ft room with 3 ft and 2.5 ft doors and 10% waste needs 42.4 ft, which is 6 pieces of 8 ft.
Enter the room size, piece length, waste and door widths. The calculator returns the footage and pieces. Use this trim and moulding calculator to check your own figures.
Related tools: Board and Batten Layout Calculator: Number of boards and the real gap for an even board-and-batten or panel layout. Cabinet Door Size Calculator: Door size for an opening with an overlay. Roof Pitch Calculator: Roof pitch as rise per 12 inches, angle, slope percent and rafter length factor.
How to use the Trim and Moulding Calculator
- Enter room length (ft) (above 0).
- Enter room width (ft) (above 0).
- Optionally, type door widths to subtract (ft, optional), for example 3, 2.5.
- Enter piece length (ft) (above 0). It starts at 8.
- Enter waste allowance (%) (between 0 and 100). It starts at 10.
- Press Calculate to see the result, and use Reset to start again.
| Input | What to enter | Allowed values |
|---|---|---|
| Room length | A number, in ft | > 0 |
| Room width | A number, in ft | > 0 |
| Door widths to subtract (ft, optional) (optional) | Text, such as 3, 2.5 | — |
| Piece length | A number, in ft | > 0, starts at 8 |
| Waste allowance | A number, in % | ≥ 0, ≤ 100, starts at 10 |
Formula and method
Formula
trim = (2 × (length + width) − door widths) × (1 + waste)
IEEE-754 double precision; shown to the decimals indicated.
For a single rectangular room; closets and alcoves add length. Plan geometry only; confirm quantities with your supplier and local code before ordering.
Worked examples
These examples are verified: each one is an automated test case that the live calculator must reproduce exactly.
Example 1
Inputs: Room length = 12; Room width = 10; Piece length = 8; Waste allowance = 10; Door widths to subtract (ft, optional) = 3, 2.5.
| Result | Value |
|---|---|
| Trim needed | 42.4 ft |
| Pieces needed | 6 |
Example 2
Inputs: Room length = 15; Room width = 12; Piece length = 8; Waste allowance = 5.
| Result | Value |
|---|---|
| Trim needed | 56.7 ft |
| Pieces needed | 8 |
The first line is the headline result (trim needed). Below it the trim and Moulding Calculator lists pieces needed, which describe the same case from other angles. IEEE-754 double precision; shown to the decimals indicated.
The count
The perimeter is 44 ft; subtracting the doors (5.5 ft) leaves 38.5 ft. With 10% waste that is 42.35 ft, shown as 42.4, and 42.4 ÷ 8 = 5.3, so 6 pieces.
Corners and cuts
Mitred corners use extra length, so the waste allowance covers them. Long walls are better covered with long pieces to avoid joints. Decide whether you trim the door openings too.
How the result changes with room length
Holding every other input at the first worked example, this table changes only room length. It shows how sensitive the answer is to that one value; each row was produced by running this calculator.
| Room length | Trim needed | Pieces needed |
|---|---|---|
| 6 | 29.2 ft | 4 |
| 12 | 42.4 ft | 6 |
| 24 | 68.8 ft | 9 |
| 48 | 121.6 ft | 16 |
What happens with invalid input
These messages are produced by the calculator itself, so you know what to fix.
- Room length: entering "0" shows "Room length must be greater than 0." beside that field and no result.
- Door widths to subtract (ft, optional): entering "x" shows "“x” is not a number." beside that field and no result.
Choosing between the Trim and Moulding Calculator and similar calculators
Each row shows what a related calculator on this site asks for and what it returns, so you can pick the one that matches your question.
| Calculator | You enter | It returns |
|---|---|---|
| [Board and Batten Layout Calculator](/construction/board-and-batten-layout-calculator/) | wall width, board or panel width and target gap between boards | Number of boards |
| [Cabinet Door Size Calculator](/construction/cabinet-door-calculator/) | opening width, opening height and overlay on each side | Door size |
| [Roof Pitch Calculator](/construction/roof-pitch-calculator/) | i know the and value | Pitch |
| [Tile Calculator](/construction/tile-calculator/) | area to tile, tile length and tile width | Tiles needed |
| [Aquarium Volume Calculator](/construction/aquarium-volume/) | length, width and water height | Capacity |
Background: construction estimates
Material quantities are geometry plus a margin. Calculate the exact volume or area, add an allowance for waste, spillage, cuts and uneven ground (calculator pages commonly mention 5 to 10 percent, a rule of thumb that varies by material and job) and round up to whole units. One cubic yard is exactly 27 cubic feet.
Suppliers often have minimum order sizes and may charge for small loads, so confirm quantities, product yields and local code with your supplier or a qualified estimator before ordering.
Assumptions and limitations
- Account for mitered corners with extra waste
Quantities are estimates. Add allowances for waste and site conditions, and follow local codes and a qualified professional's instructions for structural or safety-critical work.
If a required value is empty, not a number, or outside its allowed range, the form marks that field with a message and shows no result instead of a misleading number. The automated checks deliberately try invalid entries for room length and door widths to subtract (ft, optional) to confirm this.
Frequently asked questions
Do I subtract windows?
Not for baseboard: windows have no baseboard, so only doors are subtracted.
How much waste?
Allow about 10% waste for cuts, and 15% for complex layouts.
Is it the same for crown moulding?
Yes, with the ceiling perimeter.
What does the Trim and Moulding Calculator calculate?
Linear feet of baseboard or trim for a room. It returns Trim needed and Pieces needed.
What formula does the Trim and Moulding Calculator use?
trim = (2 × (length + width) − door widths) × (1 + waste). For a single rectangular room; closets and alcoves add length.
What do I need to enter in the trim and Moulding Calculator?
You enter Room length (ft), Room width (ft), Piece length (ft) and Waste allowance (%). Optional: Door widths to subtract (ft, optional).
How is the result rounded or limited?
IEEE-754 double precision; shown to the decimals indicated. Account for mitered corners with extra waste.
What is an example of a trim and Moulding result?
With room length 12, room width 10, piece length 8, waste allowance 10 and door widths to subtract (ft, optional) 3, 2.5, the trim needed is 42.4 ft.
Can I rely on this calculator for a decision?
Quantities are estimates. Add allowances for waste and site conditions, and follow local codes and a qualified professional's instructions for structural or safety-critical work. For this calculator in particular: Account for mitered corners with extra waste.
Related calculators
- Board and Batten Layout Calculator — Number of boards and the real gap for an even board-and-batten or panel layout.
- Cabinet Door Size Calculator — Door size for an opening with an overlay.
- Roof Pitch Calculator — Roof pitch as rise per 12 inches, angle, slope percent and rafter length factor.
- Tile Calculator — Number of tiles (and boxes) for an area.
- Aquarium Volume Calculator — Capacity and filled weight of a rectangular aquarium.
- Flooring Calculator — Flooring area with waste, and boxes if you know the coverage per box.
Sources
- OpenStax, Prealgebra 2e (Rice University): perimeter, area, volume, circumference and the Pythagorean theorem
- NIST Special Publication 811, Guide for the Use of the International System of Units (SI), Appendix B conversion factors (international foot 0.3048 m, inch 25.4 mm, US gallon 3.785411784 L)
Content last reviewed 2026-11-04. Formulas and worked examples are checked by automated tests against independently computed values.