Geometry and layout calculator

Equal Hole Spacing Calculator

Lay out a row of holes between two end offsets, calculate the exact center spacing, and get every hole position from one dependable reference edge. I will also show the decimal, fractional, and metric values, because a row of holes should not slowly wander away like it has somewhere more interesting to be.

Sage dressed as an architect with plans

Enter the total length, hole count, and the distance from each end to the nearest hole center. Measurements may include feet, inches, fractions, millimeters, centimeters, or meters. Add a hole diameter to calculate the clear material between hole edges.

Measure between the two physical end references used for the layout.
Two holes create one interval; five holes create four intervals.
This is a center location, not the distance to the near edge of the hole.
The final center will be the total length minus this offset.
Add the diameter to check clear material between holes and at both ends.
Decimal and metric results use the unrounded calculation.

Sage’s guided lesson

The holes are points; the spaces live between them

The most common mistake on this job is counting holes when the formula needs the number of intervals between hole centers. Five holes have four intervals. Once that little trap is out of the way, the rest is subtraction, division, and the discipline to measure every mark from the same edge.

Sage dressed as a teacher

Start with the two end rules

The calculator places the first and last centers, then divides what remains

The total length is the full distance between your starting and ending references. The first offset locates the first hole center from the starting edge. The last offset locates the final hole center from the opposite edge.

After those two centers are fixed, the calculator finds the distance between them. That distance is the usable centerline run. It is divided into equal center to center intervals.

This approach works for shelf pin rows, brackets, perforated rails, control panels, mounting plates, decorative holes, dowel layouts, light fixtures, pickets drilled through a rail, and any straight pattern where both end margins matter.

Sage’s rule

Write down whether each end measurement goes to a hole center or to a hole edge. A center offset and an edge offset may look almost identical on paper, but they differ by one hole radius.

Count the intervals, not the circles

How to calculate equal hole spacing yourself

First subtract both end offsets from the total length. Then divide the remaining distance by the number of holes minus one.

Five holes on a 24 inch strip

Total length = 24 in First center offset = 2 in Last center offset = 2 in Usable centerline run = 24 − 2 − 2 = 20 in Intervals = 5 − 1 = 4 Center spacing = 20 ÷ 4 = 5 in

The hole centers are 2, 7, 12, 17, and 22 inches from the starting edge. The last center is also 2 inches from the ending edge, so the layout closes correctly.

For hole number n, where the first hole is number 1:

Position = first offset + (n − 1) × center spacing

This direct position formula matters because it lets you calculate every mark from one reference instead of stepping the spacing repeatedly.

Sage dressed as a journalist

I know this is off topic, but this reminds me of a joke I heard when teaching this to one of my interns, What do you call a nosy pepper? Jalapeño business. Yeah, I don’t see the connection either, but I think it is cute!

Sage dressed as a Victorian inventor

Do not let rounding walk across the part

Measure every center from one datum

Suppose the exact spacing is 2.333333 inches and you round it to 2 5/16 inches. That rounded step is short by about 0.0208 inch. Step it nine times and the final hole can miss by nearly 3/16 inch.

If you instead calculate each position from the same starting edge, the rounding error at one mark does not become the starting point for the next mark. Every hole belongs to the original datum.

  • Choose a straight, finished edge or a permanent centerline as the datum.
  • Measure every listed position from that same reference.
  • Use a story stick, template, coordinate stop, or digital readout when several parts need the same pattern.
  • Check the first, middle, and last positions before drilling the entire row.
A repeated spacing is not the same as a repeated position

Stepping a divider or spacer can be very repeatable, but any setup error is repeated too. A position table gives every hole an independent check against the datum.

Centers do not tell the whole clearance story

Subtract the diameter to find the material between holes

Center to center spacing measures from one axis to the next. The clear material between two equal holes is smaller by one full hole diameter.

Five inch spacing with 1/4 inch holes

Clear material = center spacing − hole diameter Clear material = 5 − 0.25 = 4.75 in

At an end, subtract one hole radius from the center offset to find the material between the hole edge and the part edge.

End clearance = center offset − hole diameter ÷ 2

That remaining strip of material is sometimes called a ligament. Whether it is strong enough depends on the material, load direction, hole type, fastener, edge quality, and the rules for the actual assembly. A calculator can describe the geometry; it cannot certify the joint.

A countersink changes the surface clearance

The pilot hole may leave plenty of material, while the countersink or counterbore nearly reaches the edge. Check the largest diameter that will actually remove material.

Sage dressed as a land surveyor
Sage dressed as an expedition naturalist

A small spacing became an entire furniture language

The 32 millimeter cabinet system turns hole rows into coordinates

Many European style cabinet fittings use 5 millimeter holes arranged in 32 millimeter increments. Shelf supports, concealed hinge plates, drawer slide hardware, connecting fittings, and production machinery can all reference the same repeating grid.

A commonly encountered front hole line is 37 millimeters from the cabinet panel edge. The important lesson is not that every cabinet must use that exact setback; it is that a shared coordinate system lets many different pieces of hardware cooperate.

The button above loads a simple example with ten 5 millimeter holes, 32 millimeter center spacing, and equal 16 millimeter end offsets. It demonstrates the spacing, but it is not a cabinet design specification. Actual hardware drawings control the bore diameter, depth, setback, and usable positions.

Thirty two millimeters is close to 1 17/64 inches

It is not a convenient inch fraction. Mixing a metric hole system with rounded inch marks is an excellent way to make the last fitting complain.

Repeatability came before digital coordinates

Dividers, drill jigs, and machines all solve the same problem

Dividers let a craftsperson pick up one spacing and step it along a line. A story stick stores the positions as physical marks. A template transfers the same pattern to many parts. Each method reduces dependence on repeatedly reading a ruler.

Industrial drill jigs added guided holes, often lined with hardened bushings. The workpiece was located against fixed references, clamped, and drilled through the guide. That made repeated parts more interchangeable and protected the location from a wandering handheld drill.

Jig borers, numerical control, and CNC machines moved the same idea into coordinate motion. Instead of stepping from the previous hole, the machine can move to a programmed coordinate from its origin. The language changed from marks and bushings to X and Y positions; the datum principle stayed exactly the same.

The best layout often stores positions, not spacings

A hole table, template, or machine program remembers where every center belongs. The repeated gap is only one way to describe that pattern.

Sage dressed as a farmer
Sage dressed as a journalist

The bit still has to arrive at the calculated point

Practical checks before drilling the whole row

  • Confirm the total length after trimming, edging, or final machining.
  • Use the same face and edge references on every matching part.
  • Mark with a fine line; a thick pencil mark can be wider than the allowed tolerance.
  • Use a center punch, prick punch, brad point, spotting drill, or guide bushing when the material and process allow it.
  • Clamp the work securely; a perfect mark is useless if the part moves.
  • Support the exit side when breakout matters.
  • Check spindle runout, bit condition, and jig wear on precision work.
  • Drill a test strip before committing an expensive panel or matched pair.

If two rows must align, calculate them from the same coordinate logic. Mirroring one part can reverse the datum, so label the starting edge before drilling.

Measure the pattern, not only the individual gaps

Check the distance from the first center to the last center. That full span reveals accumulated error more clearly than checking one neighboring pair.

The row closes exactly where it should

The interval count is right, every position shares one datum, and the final hole has nowhere left to wander.

You now know how to set end margins, count center intervals, account for diameter, read a position table, and verify the physical drilling process.

That earns cheese fries. I am arranging them on 32 millimeter centers, which is not required, but it does make the tray look professionally organized.

Sage dressed as a chef

Quick answers

Equal hole spacing questions

Why do I divide by one fewer than the number of holes?

The intervals are between centers. Five holes create four intervals, so the centerline run is divided by four.

How do I calculate equal hole spacing?

Subtract the first and last center offsets from the total length, then divide the remaining distance by the number of holes minus one.

What is center to center spacing?

It is the distance from one hole axis to the next. It is not the clear material between the hole edges.

How do I find the material left between holes?

Subtract the hole diameter from the center spacing. For end clearance, subtract one hole radius from the center offset.

Why should every hole be measured from one edge?

It prevents small marking and rounding errors from accumulating from one hole to the next.

What is the 32 millimeter cabinet hole system?

It is a repeating furniture hardware grid in which many fittings reference holes arranged in 32 millimeter increments, commonly using 5 millimeter bores.

Does equal spacing guarantee accurate drilled holes?

No. Bit wander, drill runout, a shifting part, parallax, jig wear, and poor starting marks can move the physical holes away from the calculated centers.