Trigonometry

Trigonometry for Machinists

Last updated: March 2026 · Advanced
Before you start

You should be comfortable with:

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:

h=L×sin⁡(θ)h = L \times \sin(\theta)

where LL is the sine bar length (center-to-center distance), hh is the gauge block stack height, and θ\theta is the desired angle.

Sine Bar Setup on a Surface Plate

Surface PlatehθL (sine bar length)

Worked Example: Setting an Angle

Problem: Set a 5” sine bar to 23.5°.

h=5×sin⁡(23.5°)≈5×0.39875=1.99375"h = 5 \times \sin(23.5°) \approx 5 \times 0.39875 = 1.99375"

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 θ\theta:

sin⁡(θ)=hL=2.500010=0.2500\sin(\theta) = \frac{h}{L} = \frac{2.5000}{10} = 0.2500

θ=arcsin⁡(0.2500)=14.4775°\theta = \arcsin(0.2500) = 14.4775°

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 nn holes on a circle of radius RR, centered at the origin:

Xk=R×cos⁡ ⁣(k×360°n),Yk=R×sin⁡ ⁣(k×360°n)X_k = R \times \cos\!\left(\frac{k \times 360°}{n}\right), \quad Y_k = R \times \sin\!\left(\frac{k \times 360°}{n}\right)

where k=0,1,2,…,n−1k = 0, 1, 2, \ldots, n-1.

Worked Example: 6-Hole Bolt Circle

Problem: Calculate the coordinates for 6 holes equally spaced on a 3” diameter bolt circle (radius R=1.5"R = 1.5").

Each hole is separated by 360°/6=60°360° / 6 = 60°:

HolekkAngleX=1.5cos⁡(θ)X = 1.5\cos(\theta)Y=1.5sin⁡(θ)Y = 1.5\sin(\theta)
100°1.50000.0000
2160°0.75001.2990
32120°−0.75001.2990
43180°−1.50000.0000
54240°−0.7500−1.2990
65300°0.7500−1.2990

If the bolt circle center is not at the origin — say it is at machine coordinates (4.000,3.000)(4.000, 3.000) — add those offsets to every coordinate. Hole 2 would be at (4.000+0.7500, 3.000+1.2990)=(4.7500, 4.2990)(4.000 + 0.7500, \ 3.000 + 1.2990) = (4.7500, \ 4.2990).

Taper Calculations

Tapered parts are everywhere in machining: Morse tapers, Jacobs tapers, custom tooling, and shaft fits. The key measurements are the large diameter (DD), small diameter (dd), and taper length (LL).

The taper per foot (TPF) is:

TPF=D−dL×12\text{TPF} = \frac{D - d}{L} \times 12

The half-angle of the taper is:

α=arctan⁡ ⁣(D−d2L)\alpha = \arctan\!\left(\frac{D - d}{2L}\right)

The included angle is twice the half-angle: 2α2\alpha.

Worked Example: Finding a Taper Angle

Problem: A tapered part has D=2.000"D = 2.000", d=1.500"d = 1.500", and L=4.000"L = 4.000". Find the included angle.

α=arctan⁡ ⁣(2.000−1.5002×4.000)=arctan⁡ ⁣(0.50008.000)=arctan⁡(0.0625)\alpha = \arctan\!\left(\frac{2.000 - 1.500}{2 \times 4.000}\right) = \arctan\!\left(\frac{0.5000}{8.000}\right) = \arctan(0.0625)

α=3.5763°\alpha = 3.5763°

Included angle=2×3.5763°=7.1526°\text{Included angle} = 2 \times 3.5763° = 7.1526°

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:

θX=arctan⁡(tan⁡(α)×cos⁡(β))\theta_X = \arctan(\tan(\alpha) \times \cos(\beta))

θY=arctan⁡(tan⁡(α)×sin⁡(β))\theta_Y = \arctan(\tan(\alpha) \times \sin(\beta))

where α\alpha is the angle from vertical and β\beta 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 tan⁡2(α)=tan⁡2(θX)+tan⁡2(θY)\tan^2(\alpha) = \tan^2(\theta_X) + \tan^2(\theta_Y).

Common Mistakes

  1. Not carrying enough decimal places. Machining tolerances demand four or more decimal places. Rounding sin⁡(23.5°)\sin(23.5°) 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”.
  2. 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.
  3. Calculator in the wrong mode. Machinist formulas use degrees. If your calculator is set to radians, sin⁡(23.5)\sin(23.5) returns −0.9999-0.9999 instead of 0.398750.39875 — a completely wrong gauge block stack.
  4. 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 (4.000,3.000)(4.000, 3.000) 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?

h=L×sin⁡(θ)=10×sin⁡(17.25°)h = L \times \sin(\theta) = 10 \times \sin(17.25°)

sin⁡(17.25°)=0.29654\sin(17.25°) = 0.29654

h=10×0.29654=2.9654"h = 10 \times 0.29654 = 2.9654"

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 (k=2k = 2).

The radius is R=2.0000"R = 2.0000" and each hole is separated by 360°/8=45°360° / 8 = 45°.

Hole 3 has k=2k = 2, so the angle is 2×45°=90°2 \times 45° = 90°.

X=2.0000×cos⁡(90°)=2.0000×0=0.0000X = 2.0000 \times \cos(90°) = 2.0000 \times 0 = 0.0000

Y=2.0000×sin⁡(90°)=2.0000×1=2.0000Y = 2.0000 \times \sin(90°) = 2.0000 \times 1 = 2.0000

Answer: Hole 3 is at (0.0000, 2.0000) relative to the bolt circle center.

Problem 3: A taper has D=1.750"D = 1.750", d=1.250"d = 1.250", and L=3.000"L = 3.000". Find the included taper angle.

α=arctan⁡ ⁣(D−d2L)=arctan⁡ ⁣(1.750−1.2502×3.000)=arctan⁡ ⁣(0.50006.000)≈arctan⁡(0.08333)\alpha = \arctan\!\left(\frac{D - d}{2L}\right) = \arctan\!\left(\frac{1.750 - 1.250}{2 \times 3.000}\right) = \arctan\!\left(\frac{0.5000}{6.000}\right) \approx \arctan(0.08333)

α≈4.7636°\alpha \approx 4.7636°

Included angle=2×4.7636°=9.5273°\text{Included angle} = 2 \times 4.7636° = 9.5273°

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?

sin⁡(θ)=hL=3.214010=0.3214\sin(\theta) = \frac{h}{L} = \frac{3.2140}{10} = 0.3214

θ=arcsin⁡(0.3214)=18.7468°\theta = \arcsin(0.3214) = 18.7468°

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 R=2.0000"R = 2.0000", n=8n = 8, and k=0k = 0 through 77:

HolekkAngleXXYY
100°2.00000.0000
2145°1.41421.4142
3290°0.00002.0000
43135°−1.41421.4142
54180°−2.00000.0000
65225°−1.4142−1.4142
76270°0.0000−2.0000
87315°1.4142−1.4142

Note that cos⁡(45°)=sin⁡(45°)=22≈0.7071\cos(45°) = \sin(45°) = \frac{\sqrt{2}}{2} \approx 0.7071, so 2×0.7071=1.41422 \times 0.7071 = 1.4142.

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 h=Lsin⁡(θ)h = L \sin(\theta) lets you set precision angles using gauge blocks — carry at least four decimal places
  • Bolt circle coordinates use Xk=Rcos⁡(k×360°/n)X_k = R\cos(k \times 360°/n) and Yk=Rsin⁡(k×360°/n)Y_k = R\sin(k \times 360°/n) — always add the center offset for absolute machine coordinates
  • Taper half-angle is α=arctan⁡ ⁣(D−d2L)\alpha = \arctan\!\bigl(\frac{D - d}{2L}\bigr) — 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.

Last updated: March 28, 2026