Wainscoting Calculator

Lay out wainscoting panels, stiles and rails from the wall you have.

Shadow box and recessed panel layouts, with metric and imperial lengths.

Updated November 9, 2026
Frank Zhao - Creator
CreatorFrank Zhao
Loading calculator…

Overview

Wainscoting is a run of panelled frames across the lower part of a wall, capped at the top and sitting on the baseboard. The awkward part of building one is never the carpentry — it is the arithmetic: how wide each panel should be, how wide the stiles between them, how many frames actually fit, and how the vertical bands add up to the height you want.

This calculator answers those questions from the run of wall you have. Give it the wall length and any two of the panel width, the stile spacing and the frame count, and it returns the third. Give it the vertical bands and it returns the panel height, or give it the panel height you want and it returns the chair rail height. The layout comes back in the units you measured in, ready to mark on the wall and cut to.

It covers the two panel designs that most interior trim work uses. A shadow box layout applies mouldings in rectangles onto the wall field, so a stile of the same width sits against each end wall as well as between the frames. A recessed panel layout treats the wall as a grid: the panels are the openings and the stiles are what is left between them, with an end margin so the outermost stile does not run straight into a corner.

It is written for the person holding the tape measure: a homeowner panelling one wall, a carpenter pricing trim before quoting, or anyone checking a fitter’s numbers against the wall in front of them.

What the page assumes you are building

One flat wall, a baseboard already at the floor, a cap moulding along the top, and frames that are evenly spaced with the same stile width throughout. Horizontally the two designs differ only in what happens at the two ends; vertically they differ only by the bottom rail margin.

How to use it

The form is three groups: the design choice and its drawing, the widths across the wall, and the vertical stack. Six steps cover a full run.

1

Choose the design

Shadow box is the default. Switching to recessed panel replaces one row: the end margin appears, because that layout leaves a band at each corner instead of a full stile.

2

Enter the wall length

Measure the run you are covering, corner to corner, at the height the frames will sit — not along the floor if the baseboard is proud or the room is out of square. This row opens in metres while the trim rows open in centimetres, so confirm the unit before you type a number.

3

Fill in whichever horizontal values you already know

A frame count you have decided on, a panel width you like, a stile width that matches moulding you have bought — any of them. Leave the remaining one blank and the page works it out. You need exactly one blank per row; with two blanks there is nothing to solve.

4

Add the end margin for a recessed layout

This is the band between the outer stile and the corner. A few centimetres keeps the outer frame clear of a door casing or an outside corner, and it is counted at both ends of the run.

5

Stack the vertical measurements

Chair rail height, baseboard height, the top rail margin, the cap moulding depth and — in a shadow box layout — the bottom rail margin. Fill in all but one of them and the last follows; the panel height is the usual answer.

6

Read the frame count before you cut anything

If a panel count comes back with a decimal, the run does not divide evenly as entered. That is deliberate: the number stays on screen so you can see how far off it is and choose which measurement to nudge, instead of being handed a rounded count that leaves a sliver at one end.

A wall you can check by hand

A 3 m feature wall in a hallway, a shadow box layout, four frames and 10 cm stiles. With four frames there are five stiles: one at each end and one between every pair. Enter 300 in the wall length (centimetres), 4 frames and 10 cm, and the panel width comes back as:

ww==L−(n+1) sn\frac{L - (n + 1)\,s}{n}==300−5×104\frac{300 - 5 \times 10}{4}==62.5 cm62.5\ \mathrm{cm}

Now the vertical side of the same wall: a 90 cm chair rail, a 10 cm baseboard, a 10 cm top rail margin, a 5 cm bottom rail margin and a 2 cm cap.

hh==H−b−br−t−cH - b - b_{\mathrm{r}} - t - c==90−10−5−10−290 - 10 - 5 - 10 - 2==63 cm63\ \mathrm{cm}

So the stiles are cut to 63 cm, the panels are 62.5 cm wide, and the five stiles together with the four panels fill the 3 m run exactly. Two numbers, five minutes with a pencil, and the layout can be marked out on the wall.

Reading the results

MeasurementWhat it tells you
Width of the panelsFace width of one frame, measured between the stiles. This is the length the moulding or the panel stock is cut to.
Spacing of panelsWidth of one stile — the band between two frames, and the same width again against an end wall in a shadow box layout.
Number of panelsHow many frames the run holds. It has to be a whole number, and it is never rounded up for you.
End marginRecessed panel layout only: the band left between the outermost stile and each corner, counted at both ends.
Height of panelsVertical face height of one frame, i.e. the length the stiles are cut to.
Chair rail heightTop of the cap moulding, measured from the floor. It follows from the bands below it when you solve upwards.

How the numbers are worked out

Every length is converted to metres before it is solved, so the wall can be in feet and the stiles in inches and the answer stays consistent. The arithmetic itself is two pieces of geometry: a chain of widths across the wall, and a chain of heights up it.

The horizontal run

Across the wall the run is panels and stiles laid end to end. In a shadow box layout the same stile width also closes both ends, which is what the extra single ss in the formula is:

L=n (w+s)+sL = n\,(w + s) + s

A recessed panel layout puts an end margin at each corner and closes the run with a stile on each side of it, so the two ends carry 2e2e as well:

L=2e+n (w+s)+sL = 2e + n\,(w + s) + s

Set e=0e = 0 and the second formula collapses into the first. That is the quickest way to check either layout against the other, and it is also a useful sanity check on real numbers: the same wall with no end margin must give the same panel width in both designs.

The vertical stack

From the floor upwards the wainscot is a baseboard, a bottom rail margin, the panels, a top rail margin and the cap moulding. The shadow box layout carries all five bands:

H=b+br+t+c+hH = b + b_{\mathrm{r}} + t + c + h

The recessed panel layout has no bottom rail margin — its frames are seated in the grid rather than applied above the baseboard — so it is one band shorter:

H=b+t+c+hH = b + t + c + h

The practical consequence is worth remembering: on the same chair rail height and the same baseboard, a recessed panel frame is taller by exactly the bottom rail margin you would have used in the shadow box version.

Solved in both directions

Each row is one equation, so any single measurement in it can be the answer. The horizontal solves rearrange the two formulas above:

w=L−2e−(n+1) snw = \frac{L - 2e - (n + 1)\,s}{n}\quads=L−2e−n wn+1s = \frac{L - 2e - n\,w}{n + 1}
n=L−2e−sw+sn = \frac{L - 2e - s}{w + s}\quade=L−n (w+s)−s2e = \frac{L - n\,(w + s) - s}{2}

The vertical ones are a plain sum, so solving for a band is the sum with that band missing:

h=H−b−br−t−ch = H - b - b_{\mathrm{r}} - t - c\quadc=H−b−br−t−hc = H - b - b_{\mathrm{r}} - t - h

Because the vertical direction is a sum, two known bands are not enough — with four unknowns left there is no single answer. Fill in one band per unknown and the last one follows.

Nothing is rounded

None of these formulas rounds, and neither does the page. A frame count of 4.144.14 is reported as 4.14 and flagged rather than rounded down to 4, because a rounded count quietly leaves part of the run unaccounted for — in the example below, 10 cm of a 3 m wall. Lengths keep their decimals too, so a panel that comes out at 62.5 cm is shown as 62.5 cm rather than 63.

Why the frame count is the one number that must be whole

There is no such thing as two-fifths of a frame, so the count is the only value with a whole-number rule. A flagged decimal is not an error in the calculator; it is the geometry telling you the run needs a small change. The next section shows both ways to make that change.

Worked examples

Three layouts, each with a different starting point: one in metric, one in inches, and one that starts from a panel width you have already bought.

A hallway run in metric

Situation: A 3 m hallway wall gets a shadow box layout with four frames and 10 cm stiles, on a 90 cm chair rail.

Entered

Wall length300 cmNumber of panels4Spacing of panels10 cmChair rail height90 cmBaseboard depth10 cmBottom rail margin5 cmTop rail margin10 cmCap moulding2 cm

What comes back

ww==300−5×104\frac{300 - 5 \times 10}{4}==62.5 cm62.5\ \mathrm{cm}
hh==90−10−5−10−290 - 10 - 5 - 10 - 2==63 cm63\ \mathrm{cm}

In practice: Cut five stiles to 10 cm wide and 63 cm long, then mark the wall as 10 + 62.5 + 10 + 62.5 + 10 + 62.5 + 10 + 62.5 + 10 cm from one corner. The last stile ends exactly on the far corner.

A dining room in inches

Situation: Twelve feet of wall, recessed panels, four frames, 4 in stiles and a 6 in end margin at each corner. The chair rail sits at 32 in, the baseboard is 5.5 in, the top margin 4 in and the cap 3/4 in.

Entered

Wall length12 ftDesignRecessed panelNumber of panels4Spacing of panels4 inEnd margin6 inChair rail height32 inBaseboard depth5.5 inTop rail margin4 inCap moulding0.75 in

What comes back

ww==144−2×6−5×44\frac{144 - 2 \times 6 - 5 \times 4}{4}==28 in28\ \mathrm{in}
hh==32−5.5−4−0.7532 - 5.5 - 4 - 0.75==21.75 in21.75\ \mathrm{in}

The end margins take 12 in, the five stiles take 20 in and the four frames take 112 in, which is the whole 144 in run. With no bottom rail margin in this design, the frames are 21.75 in tall and the stiles are cut to that length.

In practice: Cut five stiles 4 in wide and 21.75 in long. Mark 6 in of end margin at each corner first, then the stile, then the four 28 in frames between them.

Starting from a panel width you already have

Situation: You have bought 60 cm panel stock and want it on the same 3 m wall. Four frames first — does it fit at the current 10 cm spacing?

Entered

Wall length300 cmWidth of the panels60 cmSpacing of panels10 cm

What comes back

nn==300−1060+10\frac{300 - 10}{60 + 10}==4.142864.14286

Four whole frames at that spacing account for 290 cm, so 10 cm of the run is left over and the count is flagged. With the 60 cm panel held and exactly four frames, the spacing that fills the 3 m run is:

ss==300−4×604+1\frac{300 - 4 \times 60}{4 + 1}==12 cm12\ \mathrm{cm}

Enter 4 frames and 60 cm, leave the spacing blank, and 12 cm comes back. Two extra centimetres of stile at each of the five positions is exactly the 10 cm that had nowhere else to go.

In practice: Use 12 cm stiles with the four 60 cm panels and the run fills exactly with nothing left over. Sticking with the 10 cm stock you have only covers 290 cm of the 300 cm wall.

Filling in one more box than the row needs

Each row holds one equation. Once every box in it is filled, changing one of them means another has to give way, and the page recalculates one of the values you already entered. In the example above, typing the 10 cm spacing back in while the 3 m wall, four frames and 60 cm panels all hold moves the wall length to 290 cm — the row stays consistent, but not around the number you expected. Enter one box fewer than the row needs, and the box you care about stays put.

Getting a layout you can actually build

Measure between the corners, not along the floor

Skirting boards and finishes are rarely straight, so a run measured at the floor can be a centimetre or two longer than the same run at frame height. Take the wall length at the height the frames sit, at both ends, and use the smaller of the two. A short measurement hides inside the end margins, or in a slightly wider stile against the end wall; a long one shows up as a frame that will not fit.

Change the spacing before you narrow the panels

When a count comes back with a decimal, the spacing is the cheapest thing to move. A stile 12 cm wide instead of 10 cm is invisible on a finished wall, while one narrowed row of panels draws the eye from across the room. On a recessed layout, the end margins are the second place to put the difference.

Check the panel proportion before cutting

Width and height are solved independently here, so nothing stops you from ending up with a panel that is wider than it is tall. Compare the two numbers before the saw comes out: if the proportion looks wrong to you, change the frame count or the chair rail height until it looks right. That is a judgement about your room, and it is far cheaper to make now than after the moulding is up.

Use the real depth of the trim you bought

Cap mouldings and baseboards are sold by profile, and the profile determines the band height that comes off the panels: measure the actual drop of the cap in your hand rather than the nominal size on the shelf. The same applies to the baseboard — replacing a low baseboard with a deep one shortens every frame by the difference.

Finish the layout before you finish the paint

The area to finish is the whole band — the wall field between the frames as well as the stiles and margins — so a 3 m run at 90 cm is about 2.7 square metres of surface, not the sum of the four panels alone. If you are planning the painting stage, the Paint Calculator takes the wall area and gives you the litres to buy.

Shadow box and board and batten are not the same job

Panel wainscoting is a low, framed band. A full-height plank pattern with a batten over every seam is a different layout with a different parts list, so if the wall is going to be covered floor to ceiling it is worth seeing what that design needs before committing the trim budget.

The Board and Batten Calculator works out the board count, the batten count and the furring and trim lengths for that pattern.

Questions that come up

The frame count has a decimal. Is the calculator broken?

No — that is the answer. The run does not divide into that many whole frames with the spacing and panel width you entered, and the decimal tells you how far off it is. Settle the whole number first and let one of the others follow: with four frames and 60 cm panels on a 3 m wall, leaving the spacing blank returns 12 cm. The count can only follow when the wall length, the spacing and the panel width are all fixed.

Why does the panel height stay blank?

The vertical stack is a single sum, so it needs one known value per unknown. The usual cause is a missing baseboard, top rail margin or cap moulding depth — and in a shadow box layout the bottom rail margin as well. Fill those in and the panel height follows from the chair rail height. If the chair rail height is left on a value the page considers implausible, that box is flagged and the stack waits for it.

Does the end margin count once or twice?

Twice, once at each corner, which is why the formula uses two lots of it. It is added on top of the stile that closes the run: the outer stile sits between the end margin and the first panel, so the band at each end is the margin plus the stile.

Can I mix feet, inches and centimetres on one wall?

Yes. Each length row carries its own unit, and feet-and-inches or metres-and-centimetres can be typed into a single row, so a wall measured in feet can be laid out with stiles bought in inches. The cap moulding row is the exception: it offers millimetres, centimetres, metres and inches only, because those are the units trim profiles are sold in.

Where does the chair rail height come from?

From your wall, not from a rule of thumb. The height row mentions about 80 cm (32 in) as a typical starting point, but the number that matters is the one you measure — a window sill, a piano, the back of a dining chair or a picture rail often decides it for you. Once the bands below it are filled in, the panel height follows from whatever you choose.

Limitations and assumptions

A layout, not a cut list

  • No waste, no kerf, no stock lengths. Every number is the finished dimension on the wall. Saw kerf, mitre allowances, damaged lengths, board-to-board variation and the way trim is sold in fixed lengths all sit on top of it, so buy with a margin rather than ordering the exact total.
  • One straight, uninterrupted run. Outside and inside corners, returns, door and window casings that cut through a frame, sockets and switches inside a panel, sloping ceilings and gable ends are not modelled. Each of them changes a panel width or forces a frame to be split, and that has to be decided on the wall.
  • The measurements are the weak point. Trim is sold by nominal profile and the actual drop of a cap or the height of a baseboard can differ from the label, and very few walls are square. Check the numbers against the wall and the stock you actually have before cutting; a centimetre entered wrongly moves every frame on the run.
  • The vertical model is one baseboard, one cap. A build-up with a chair rail above a panel, a picture rail, two stacked mouldings at the top or a plinth block at the bottom has more bands than this stack holds. Add the extra bands to your own heights and enter the total that remains for the panels.
  • Attachment and structure are your call. Fixing into studs, adhesives, substrates, damp walls, fire resistance and the requirements that apply where you live are not assessed here. For anything beyond a decorative layout on a sound internal wall, take advice from a qualified carpenter or builder before you start.
Wainscoting Calculator - Panel Width and Rail Heights