Trigonometry for Machinists
Machinists use more trigonometry than almost any other trade. From setting up sine bars for precision angles to calculating bolt circle coordinates for hole patterns, trig accuracy to four decimal places is routine shop work. If you can solve right triangles, you already have the foundation — machining just demands that you carry more decimal places and double-check every value before cutting metal.
This page covers the four most common trig applications in the machine shop: sine bar setups, bolt circle calculations, taper angles, and coordinate dimensioning for CNC programming.
Sine Bar Calculations
A sine bar is a hardened steel bar with two precision-ground cylinders at a known center-to-center distance (usually 5” or 10”). By stacking gauge blocks under one cylinder while the other sits on a surface plate, you create a precise angle. The relationship is a direct application of SOH CAH TOA — specifically, sine.
The formula is:
where is the sine bar length (center-to-center distance), is the gauge block stack height, and is the desired angle.
Sine Bar Setup on a Surface Plate
Worked Example: Setting an Angle
Problem: Set a 5” sine bar to 23.5°.
Stack gauge blocks to 1.9938” under the raised cylinder. In practice, you would build this from standard gauge block sets — for example, 1.000” + 0.900” + 0.0938” = 1.9938”.
Worked Example: Finding an Unknown Angle
Problem: A 10” sine bar has a gauge block stack of 2.5000”. What angle is set?
Rearrange the formula to solve for :
The sine bar is set to 14.4775°.
Bolt Circle Calculations
When you need to drill or bore holes equally spaced around a circle — a bolt circle — trigonometry gives you the exact coordinates for each hole. This is essential for CNC programming and manual layout work on a mill with DRO.
For holes on a circle of radius , centered at the origin:
where .
Worked Example: 6-Hole Bolt Circle
Problem: Calculate the coordinates for 6 holes equally spaced on a 3” diameter bolt circle (radius ).
Each hole is separated by :
| Hole | Angle | |||
|---|---|---|---|---|
| 1 | 0 | 0° | 1.5000 | 0.0000 |
| 2 | 1 | 60° | 0.7500 | 1.2990 |
| 3 | 2 | 120° | −0.7500 | 1.2990 |
| 4 | 3 | 180° | −1.5000 | 0.0000 |
| 5 | 4 | 240° | −0.7500 | −1.2990 |
| 6 | 5 | 300° | 0.7500 | −1.2990 |
If the bolt circle center is not at the origin — say it is at machine coordinates — add those offsets to every coordinate. Hole 2 would be at .
Taper Calculations
Tapered parts are everywhere in machining: Morse tapers, Jacobs tapers, custom tooling, and shaft fits. The key measurements are the large diameter (), small diameter (), and taper length ().
The taper per foot (TPF) is:
The half-angle of the taper is:
The included angle is twice the half-angle: .
Worked Example: Finding a Taper Angle
Problem: A tapered part has , , and . Find the included angle.
The included taper angle is 7.1527°. To set up a taper turning operation on a lathe, you would offset the tailstock or set the compound rest to the half-angle of 3.5763°.
Coordinate Dimensioning and Compound Angles
In CNC programming, every tool movement is defined by coordinates. Whenever a feature sits at an angle — a pocket milled at 30° to an edge, a hole drilled on an angled face — you compute the coordinates with sine and cosine.
Compound angles arise when a surface is tilted in two planes simultaneously. For example, setting a tilting vise on a milling machine to drill a hole at 20° from vertical and 35° from the X-axis requires resolving the angle into two components. The effective tilt for each axis is:
where is the angle from vertical and is the rotation in the horizontal plane. Getting compound angles wrong is one of the most costly mistakes in the shop — always verify by checking that .
Common Mistakes
- Not carrying enough decimal places. Machining tolerances demand four or more decimal places. Rounding to 0.40 instead of 0.39875 introduces an error of 0.006” on a 5” sine bar — well outside typical tolerances of ±0.0005”.
- Confusing included angle with half-angle on tapers. The compound rest on a lathe is set to the half-angle, not the included angle. Using the full included angle will cut a taper twice as steep as intended.
- Calculator in the wrong mode. Machinist formulas use degrees. If your calculator is set to radians, returns instead of — a completely wrong gauge block stack.
- Forgetting to add the center offset for bolt circles. The formulas above give coordinates relative to the bolt circle center. If that center is at in machine coordinates, you must add those offsets to every hole position.
Practice Problems
Test your understanding with these problems. Click to reveal each answer.
Problem 1: Set a 10” sine bar to 17.25°. What gauge block height do you need?
Answer: Stack gauge blocks to 2.9654”.
Problem 2: You need 8 holes equally spaced on a 4” diameter bolt circle. Find the coordinates of hole 3 ().
The radius is and each hole is separated by .
Hole 3 has , so the angle is .
Answer: Hole 3 is at (0.0000, 2.0000) relative to the bolt circle center.
Problem 3: A taper has , , and . Find the included taper angle.
Answer: The included taper angle is 9.5273°. Set the compound rest to half of that: 4.7636°.
Problem 4: A gauge block stack of 3.2140” is placed under a 10” sine bar. What angle is set?
Answer: The sine bar is set to 18.7468°.
Problem 5: A part needs holes at 45° intervals on a 2” radius bolt circle. Find all 8 coordinate pairs.
With , , and through :
| Hole | Angle | |||
|---|---|---|---|---|
| 1 | 0 | 0° | 2.0000 | 0.0000 |
| 2 | 1 | 45° | 1.4142 | 1.4142 |
| 3 | 2 | 90° | 0.0000 | 2.0000 |
| 4 | 3 | 135° | −1.4142 | 1.4142 |
| 5 | 4 | 180° | −2.0000 | 0.0000 |
| 6 | 5 | 225° | −1.4142 | −1.4142 |
| 7 | 6 | 270° | 0.0000 | −2.0000 |
| 8 | 7 | 315° | 1.4142 | −1.4142 |
Note that , so .
Answer: The eight coordinate pairs are listed above. Remember to add the bolt circle center offset to convert to absolute machine coordinates.
Key Takeaways
- The sine bar formula lets you set precision angles using gauge blocks — carry at least four decimal places
- Bolt circle coordinates use and — always add the center offset for absolute machine coordinates
- Taper half-angle is — set the compound rest to the half-angle, not the included angle
- Always verify your calculator is in degree mode before computing
- When in doubt, check your result: plug your answer back into the original formula and confirm it matches the given values
Return to Trigonometry for more topics in this section.
Next Up in Trigonometry
Last updated: March 28, 2026