Equal hole spacing calculator

Calculate equally spaced hole centers along a straight reference line with explicit end offsets.

Your inputs

All coordinates are measured from this same reference along one straight line.
Distance between the two ends of the reference line.
Whole number from 2 to 100. This is an output limit, not a hardware rule.
From the start end to the first hole center. Enter 0 if none.
From the opposite end to the last hole center. Enter 0 if none.

Enter your values or load the labeled example.

Your result

Waiting for your inputs

See the equal center-to-center interval and each center’s coordinate from your start reference.

A geometric layout, not a drilling template or hardware recommendation. Check the actual manufacturer’s hole pattern and edge-distance requirements.

Plan a straight-line layout

Find evenly spaced hole centers along one straight reference line. Supply the total span, the number of centers, and the offsets of the first and last centers from their respective ends. Coordinates are measured from the start reference in the direction you state.

This is geometric layout arithmetic. It does not select hinge locations or override an existing hardware template. Manufacturer-specified hole patterns may be unequal and must be followed for the actual product.

Define the offsets

The first center offset is measured from the start end to the first hole’s center. The last center offset is measured from the opposite end to the last hole’s center. They are center distances, not clear gaps from a hole’s edge.

Enter zero explicitly if an offset is zero. The two offsets together must be less than the total span so the centers remain distinct. All lengths use the selected unit; inch fields accept fractions and millimeter fields accept decimals.

Spacing and coordinates

With total span L, first offset a, last offset b, and N centers:

Center spacing s = (L − a − b) ÷ (N − 1)
Center i coordinate = a + (i − 1) × s, for i = 1 through N

The last coordinate is L − b. There are N − 1 intervals between N centers, which is why the formula does not divide by N.

Output limits

Choose a whole number from 2 to 100 centers. The upper bound keeps the coordinate table manageable; it is not a hardware or strength rule. Three-decimal displays use half-up rounding, and every coordinate is calculated from the unrounded spacing.

Worked examples

Four centers over an 80-inch span

For L = 80 in, a = 10 in, b = 10 in, and N = 4, spacing is (80 − 10 − 10) ÷ 3 = 20 in, exactly 508 mm.

Coordinates from the start reference are 10, 30, 50, and 70 in, or 254, 762, 1,270, and 1,778 mm. This example demonstrates arithmetic; it is not a recommended hinge pattern.

Unequal end offsets

For a 10 in span with first offset 1 in, last offset 3 in, and 4 centers, the usable center span is 6 in. Spacing is 2 in, and coordinates are 1, 3, 5, and 7 in. The last center is 3 in from the opposite end.

Repeating intervals

For a 10 in span, zero offsets, and 4 centers, exact spacing is 10/3 in. Displayed spacing is 3.333 in. Coordinates are 0.000, 3.333, 6.667, and 10.000 in. Repeatedly adding the rounded 3.333 would miss the final coordinate; use the independently calculated coordinates instead.

Before using the coordinates

Check the manufacturer’s drawing, required hole diameter, permissible edge distances, obstructions, mounting pattern, and reference direction. This tool does not account for hole diameter, curved or angled surfaces, drill positioning error, or door strength. It does not generate a scale drawing or printable drilling template.

FAQs

Are these clear gaps between holes?

No. Both the interval and coordinates refer to hole centers. Hole-edge clearances depend on diameter and other geometry that this tool does not assess.

Can I use two centers?

Yes. There is one interval, equal to the total span minus both offsets. The coordinates are the first offset and the total span minus the last offset.

Sources

The formulas follow directly from dividing a straight segment into N − 1 equal intervals. They do not rely on a manufacturer-specific spacing rule. Exact unit relationships are documented in References; product-specific patterns require the actual installation instructions.