Quick answer
Number of boards n = round((wall width + gap) ÷ (board width + gap)), and the actual gap = (wall − n × board) ÷ (n − 1). A 144 inch wall with 5.5 inch boards and a 0.5 inch target gap fits 24 boards with a 0.522 inch gap and 23 battens.
Enter wall width, board width and the target gap. The calculator returns the board count, actual gap and battens. Use this board and batten layout calculator to check your own figures.
Related tools: Trim and Moulding Calculator: Linear feet of baseboard or trim for a room. Cabinet Door Size Calculator: Door size for an opening with an overlay. Board Foot Calculator: Board feet of lumber from thickness, width and length.
How to use the Board and Batten Layout Calculator
- Enter wall width (in) (above 0).
- Enter board or panel width (in) (above 0).
- Enter target gap between boards (in) (above 0).
- Press Calculate to see the result, and use Reset to start again.
| Input | What to enter | Allowed values |
|---|---|---|
| Wall width | A number, in in | > 0 |
| Board or panel width | A number, in in | > 0 |
| Target gap between boards | A number, in in | > 0 |
Formula and method
Formula
n = round((wall + gap) ÷ (board + gap)); actual gap = (wall − n × board) ÷ (n − 1)
IEEE-754 double precision; shown to the decimals indicated.
Battens cover the gaps, so the actual gap should be narrower than the batten. 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: Wall width = 144; Board or panel width = 5.5; Target gap between boards = 0.5.
| Result | Value |
|---|---|
| Number of boards | 24 |
| Actual gap | 0.522 in |
| Battens needed | 23 |
Example 2
Inputs: Wall width = 96; Board or panel width = 7.25; Target gap between boards = 1.
| Result | Value |
|---|---|
| Number of boards | 12 |
| Actual gap | 0.818 in |
| Battens needed | 11 |
Example 3
Inputs: Wall width = 120; Board or panel width = 3.5; Target gap between boards = 2.
| Result | Value |
|---|---|
| Number of boards | 22 |
| Actual gap | 2.048 in |
| Battens needed | 21 |
The first line is the headline result (number of boards). Below it the board and Batten Layout Calculator lists actual gap and battens needed, which describe the same case from other angles. IEEE-754 double precision; shown to the decimals indicated.
Even spacing
Whole boards rarely fit exactly, so the gap is adjusted slightly: 24 boards × 5.5 = 132 inches, leaving 12 inches across 23 gaps. Each gap is 0.522 inches, close to the 0.5 inch target.
Battens
A batten covers each gap, so there is one fewer batten than boards. Choose a batten wider than the gap so the joint is hidden. At least two boards are needed.
How the result changes with wall width
Holding every other input at the first worked example, this table changes only wall width. It shows how sensitive the answer is to that one value; each row was produced by running this calculator.
| Wall width | Number of boards | Actual gap | Battens needed |
|---|---|---|---|
| 72 | 12 | 0.545 in | 11 |
| 144 | 24 | 0.522 in | 23 |
| 288 | 48 | 0.511 in | 47 |
| 576 | 96 | 0.505 in | 95 |
What happens with invalid input
These messages are produced by the calculator itself, so you know what to fix.
- Wall width: entering "0" shows "Wall width must be greater than 0." beside that field and no result.
- Board or panel width: entering "5.5" shows "The wall must fit at least two boards." beside that field and no result.
Choosing between the Board and Batten Layout 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 |
|---|---|---|
| [Trim and Moulding Calculator](/construction/trim-moulding-calculator/) | room length, room width and piece length | Trim needed |
| [Cabinet Door Size Calculator](/construction/cabinet-door-calculator/) | opening width, opening height and overlay on each side | Door size |
| [Board Foot Calculator](/construction/board-foot/) | thickness, width and length | Board feet |
| [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 |
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
- At least two boards are needed
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 wall width and board or panel width to confirm this.
Frequently asked questions
Can I change the gap?
Yes; a larger gap gives fewer boards.
Do I count the end boards?
Yes, boards run to both edges.
What about trim?
Subtract trim from the wall width first.
What does the Board and Batten Layout Calculator calculate?
Number of boards and the real gap for an even board-and-batten or panel layout. It returns Number of boards, Actual gap and Battens needed.
What formula does the Board and Batten Layout Calculator use?
n = round((wall + gap) ÷ (board + gap)); actual gap = (wall − n × board) ÷ (n − 1). Battens cover the gaps, so the actual gap should be narrower than the batten.
What do I need to enter in the board and Batten Layout Calculator?
You enter Wall width (in), Board or panel width (in) and Target gap between boards (in).
How is the result rounded or limited?
IEEE-754 double precision; shown to the decimals indicated. At least two boards are needed.
What is an example of a board and Batten Layout result?
With wall width 144, board or panel width 5.5 and target gap between boards 0.5, the number of boards is 24.
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: At least two boards are needed.
Related calculators
- Trim and Moulding Calculator — Linear feet of baseboard or trim for a room.
- Cabinet Door Size Calculator — Door size for an opening with an overlay.
- Board Foot Calculator — Board feet of lumber from thickness, width and length.
- 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.
- Asphalt Sealer Calculator — Gallons of driveway sealer for an area.
- Brick Calculator — Bricks and mortar volume for a wall.
- Siding Calculator — Squares of siding for walls after deducting openings.
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.