Measure the face width you will see
Measure the usable horizontal wall span and the visible face of the batten. A nominal lumber size is a product label, not a measurement to substitute automatically. The layout assumes every batten has the same face width and the wall has no openings or other interruptions. Choose inches, feet, millimeters, centimeters or meters separately from the numeric entry.
Clear gap and center-to-center pitch
The clear gap is empty space between neighboring battens. The pitch is one batten width plus that gap. For example, a 2-inch batten and a 17 2/3-inch gap give a 19 2/3-inch pitch. They describe different distances; use the labeled table rather than treating gap and pitch as interchangeable.
Choose what happens at the ends
With battens flush at both ends, the first left edge is zero and the last right edge is the wall width. Seven battens create six gaps, or six simple panels. With equal open end gaps, the same seven battens have eight equal gaps: one before, six between and one after. This tool treats that simple vertical panel task as the same layout, rather than a separate calculator.
Let W be wall width, b the actual batten face width and N the count. For flush ends, clear gap g = (W − N × b) ÷ (N − 1). For equal open ends, g = (W − N × b) ÷ (N + 1). Flush needs at least two battens; open permits one. A count fits only when N × b is no greater than W. A zero gap is valid arithmetic and is labeled as touching battens.
Closest gap can be above your target
The editable example is a 120-inch wall with 2-inch battens and a target gap of 18 inches. Flush ends select seven battens, leaving 106 ÷ 6 = 17 2/3 inches between them. Equal open ends select five battens, leaving 110 ÷ 6 = 18 1/3 inches. That open-end gap is slightly larger than the target. Six open-end battens would give 108 ÷ 7 inches, which is farther from 18.
This is a closest-gap choice, not a maximum-gap guarantee. Nearby whole counts are compared by exact absolute gap error; an exact tie chooses fewer battens. The solver considers the full physically possible range before applying the supported limit of 500. If its best count exceeds that limit, it asks you to change the target or choose a count instead of pretending that 500 is optimal. Adjacent supported counts are offered as explicit alternatives; selecting one requires Calculate again.
Mark from one origin, not rounded steps
For each batten, mark its left edge at i × (b + g) for flush ends, or g + i × (b + g) for open ends, with i starting at zero. Add half the batten width for the center and the full width for the right edge. Each position is calculated independently from the left wall edge. Do not add a rounded gap or rounded pitch repeatedly.
For a 137-inch wall, 2.5-inch battens and eight flush-end battens, the exact gap is 117/7 inches. The exact last left edge is 134.5 inches and the last right edge is 137 inches. Left edges rounded independently to the nearest one-sixteenth inch are 0, 19 3/16, 38 7/16, 57 5/8, 76 7/8, 96 1/16, 115 5/16 and 134 1/2 inches. These are approximate tape marks; they do not change the exact endpoint.
Decimal displays round halfway upward to four places. Positive distances below that threshold use a less-than marker rather than an exact zero, with exact ratios available in the result. Optional fraction columns are absolute inch positions rounded halfway upward to the nearest 1/16 inch. Their headings still say inches when the decimal display is in feet. Metric views omit the inch-fraction columns. The diagram is an overview; the complete table supplies the marks.
Changing units and correcting a layout
A unit switch converts the visible view while keeping the original numeric entry and its exact unit for calculation and sharing. A converted view is identified as approximate. Editing those displayed digits deliberately makes a new entry. This avoids accumulating rounded conversions during a unit round trip. Invalid measurement text stays available for correction and cannot be silently converted into a guessed value.
Count and target drafts are retained separately in memory. Only the active mode affects the result or public link. Any measurement, mode, edge, unit, mark preference or local label change clears the old marks and public actions. Correct the input and calculate again. Use my measurements clears the example; Restore example asks before discarding your edits.
Copy, print and optional numeric sharing
Calculation runs locally in your browser without an account or automatic saving. Copy and print include the complete current table and optional local wall label. Public sharing starts unchecked. If you explicitly allow it, a link contains only active numeric measurements, exact entry units, count or target, edge choice and display preferences. Anyone with the link can read and recompute them. Your local label and inactive draft are omitted. If the supported URL limit is exceeded, retain your local layout and copy or print instead.
Scope and related tools
The interval formulas and examples here are independently derived. The Inch Calculator layout tool is a comparable decorative task, not an endorsement or the source of copied code. Real Cedar’s board-and-batten profile guidance describes overlapping exterior siding, a different installation problem. This decorative tool does not calculate siding coverage, fastening, structural spacing, cuts, stock purchases, wall height, rails, waste or material price.
Use the square-footage calculator for a separate wall-area measurement. The board-foot calculator totals geometric lumber volume and entered prices; it does not turn these decorative positions into a cut list.