Aperture Diagonal & Drill Size Calculator
Get the corner-to-corner diagonal of a rectangular aperture plus the stocked tool that covers it — the drill that clears the diagonal, or the cutter that fits the short side and the corner radius it leaves.
Pythagorean diagonal · 0.05 mm metric tooling gridAPI slug aperture-diagonal
Formula
Geometry; tooling grid is stocked metric PCB tooling in 0.05 mm steps. 1 in = 25.4 mm exactly.
| Symbol | Quantity | Your value |
|---|---|---|
| L | Aperture length (mm) | 2 mm |
| W | Aperture width (mm) | 1 mm |
| ddrill | Smallest stocked drill covering the diagonal (mm) | 2.25 mm |
| drout | The fabricator's cutter, or the largest stocked cutter fitting the short side (mm) | 0 mm |
| r | Corner radius the cutter leaves (mm) | 500 µm |
Assumptions
5 items
- 01The aperture is an exact rectangle, and the smallest round hole that contains it has a diameter equal to its corner-to-corner diagonal, √(L² + W²).
- 02Tooling is a stocked metric grid from 0.15 mm to 6.5 mm in 0.05 mm steps: the covering drill is the next size at or above the diagonal, and the routing cutter is the fabricator's when entered, otherwise the largest size at or below the short side.
- 03A routed opening keeps a corner radius of half the diameter of the cutter in use, and the page warns when that radius exceeds a quarter of the short side.
- 04Drill wander, plating build-up, tolerances and a fabricator's own tool list are not modelled; an opening beyond the largest drill has no covering drill and is reported as routed, and one narrower than the smallest cutter, or than the cutter entered, has no cutter and is reported as unroutable; a missing drill or cutter reads as no value, never 0.
- 05Synthesis solves the length or the width numerically within that input's range for a target diagonal.
Worked example
Widest 2 mm opening one 2.5 mm drill covers
A 2 mm-long rectangular opening should be made with a single hit of a stocked 2.5 mm drill. Solve the widest opening that drill still covers, then the cutter and corner radius if it is routed instead.
| Step | Expression | Result |
|---|---|---|
| Width for a 2.5 mm diagonal | √(2.5² − 2²) | 1.5 mm |
| Diagonal | √(2² + 1.5²) | 2.5 mm |
| Covering drill | min(D_stock ≥ 2.5 mm) | 2.5 mm |
| Routing cutter | max(D_stock ≤ 1.5 mm) | 1.5 mm |
| Corner radius | 1.5 / 2 | 750 µm |
How it works
A rectangular opening in a board can be made two ways, and the two have opposite constraints.
Drilling it means finding a round hole that fully contains the rectangle. A circle contains a rectangle only if its diameter reaches corner to corner, so the requirement is the Pythagorean diagonal of the two sides. Tooling is stocked on a grid, so the answer is the next size at or above that diagonal — rounding down would leave the corners uncut, which is not a small error but a hole that does not do its job.
Routing it reverses the constraint. The cutter has to fit inside the opening, so it is bounded by the short side, and the answer is the largest stocked tool at or below it. That produces a second consequence that catches people out: a routed corner can never be sharper than the cutter radius. The opening comes back with corners of half the cutter diameter whatever the drawing says, and no amount of CAM programming removes it.
When the corner radius becomes a large fraction of the short side, the routed opening stops reading as a rectangle at all and starts to look like an oval. For a slot that has to clear a rectangular part, that matters.
Board shops stock metric tooling on a 0.05 mm grid, and this calculator reports against that grid. A callout that lands between sizes will be quoted against the next one up, so knowing which tool your dimension actually implies is worth more than the exact decimal.
Where the diagonal exceeds the largest stocked drill, the opening is a routed feature rather than a drilled one, and where the short side is narrower than the smallest cutter it cannot be routed at all. Both are real answers and the calculator gives them rather than naming a tool that does not exist.
Practical tips
- For small openings, a single drill hit is far cheaper than a routed slot. If the part clears the round hole, the shape does not matter.
- If a square corner is functionally required, design it as a corner relief rather than expecting the router to produce it.
- Quote the tool size on the drawing rather than the theoretical dimension — it removes an ambiguity the fabricator would otherwise resolve for you.
- Where the corner radius is more than about a quarter of the short side, redraw the feature as an obround; that is what you will get anyway.
- For a slot that must clear a rectangular part, add the corner radius to the clearance check, not just the nominal dimensions.
- Very large openings are routed, not drilled — this calculator says when you have crossed that line.
Common mistakes
- Sizing the drill from the long side rather than the diagonal. A hole the length of the rectangle still leaves two corners uncovered.
- Expecting square corners from a routed opening. The cutter is round and always leaves a radius of half its diameter.
- Rounding the drill size down to the nearest stocked tool. Down is the one direction that cannot work.
- Specifying an exact decimal that falls between stocked sizes and assuming the shop will hit it. They will quote the next size up.
- Forgetting that the corner radius scales with the cutter. Choosing a smaller cutter gives sharper corners at the cost of a slower, more expensive rout.
Frequently asked questions
5 questions
Why would I drill a rectangular aperture instead of routing it?
For small openings a single drill hit is far cheaper than a routed slot, and if the part clears the round hole the shape does not matter. The diagonal tells you the smallest round hole that fully contains the rectangle you drew.
Why does the routed opening have rounded corners?
Because the cutter is round. A router leaves a radius of exactly half its diameter in every internal corner, and no amount of programming removes it. If a square corner is functionally required, the opening has to be made another way.
What if the drill needed is bigger than any stocked tool?
Then the opening is a routed feature, not a drilled one, and the calculator says so rather than naming a tool that does not exist.
Why round the drill size up rather than to the nearest?
Because rounding down leaves part of the rectangle uncut. The requirement is a minimum, not a target, so the next size at or above it is the only correct choice.
Does the tooling grid vary between fabricators?
The 0.05 mm grid is common but not universal, and shops hold different ranges at the extremes. Treat the reported size as the size to specify and confirm availability for anything unusually small or large.
Shop Components
As an Amazon Associate we earn from qualifying purchases.