Shop Safety Protocols & Machinist Math
This article covers the two pillars every machinist needs before they ever touch a handwheel: shop safety and the math that keeps parts in tolerance. These map directly to NIMS Level 1 Machining (formerly Machining Level I) credentials and typical community college MACH 101/102 coursework.
Part 1: Shop Safety
Why Safety Comes First
Machine shops are loud, hot, and full of things that spin, cut, and fling metal. Injuries happen fast and are almost always preventable. Every shop should have a written safety program, but the real safety culture lives on the floor. If you see something wrong, say something. Nobody gets points for toughing it out with a missing finger.
Personal Protective Equipment (PPE)
Safety glasses are non-negotiable. Wear ANSI Z87.1-rated glasses at all times on the shop floor, not just when you are running a machine. Chips ricochet off walls, ceilings, and other machines. If you wear prescription glasses, get Z87-rated prescription safety glasses or wear goggles over your regular glasses.
Face shields go on top of safety glasses (not instead of) when grinding, sawing, or working with coolant under pressure. A face shield alone does not meet Z87.1 for impact protection.
Hearing protection is required any time ambient noise exceeds 85 dBA (OSHA PEL). Most CNC shops with multiple machines running exceed this. Foam earplugs (NRR 29-33) are cheap and effective. Over-ear muffs work well but can interfere with headsets. Custom-molded plugs are worth the investment if you are in the shop every day.
Steel-toe boots (ASTM F2413 rated) protect against dropped fixtures, vises, and workpieces. Composite toes are lighter but offer the same protection. Slip-resistant soles matter -- coolant on concrete is like ice.
Gloves: This one is nuanced. Never wear gloves near rotating machinery -- a lathe will pull your hand in before you can react. Gloves are appropriate for material handling (loading raw stock, deburring), but come off before you press Cycle Start.
No loose clothing, jewelry, or long hair around rotating equipment. Ties, hoodie strings, necklaces, and watches have all caused serious injuries. Long hair must be tied back and tucked under a cap.
Machine Guarding
Every CNC machine ships with guarding -- doors, interlocked shields, chip enclosures. These exist because a 10-lb chuck spinning at 4000 RPM that releases a jaw will put it through a cinder block wall. Never defeat an interlock. If a door switch fails, lock out the machine and call maintenance.
On manual machines (Bridgeports, engine lathes), guarding is minimal by design. This means the operator IS the guard. Stay out of the line of fire. Know where chips are going to fly. Keep chuck keys out of the chuck (spring-loaded chuck keys exist for a reason).
Chip Handling
Fresh chips are sharp and hot. Never brush chips away with your bare hands -- use a chip brush, chip hook, or compressed air (with a pressure-regulated nozzle at 30 PSI max per OSHA). Long stringy chips from ductile materials (low-carbon steel, aluminum, stainless) are especially dangerous. They wrap around tooling, workpieces, and fingers. Use chip breaker inserts and appropriate feeds to produce manageable chips.
When cleaning out a chip pan, wear leather gloves and use a shovel or scoop. Reaching into a pile of sharp steel chips is a guaranteed cut.
Coolant Safety
Metalworking fluids (MWFs) include soluble oils, semi-synthetics, synthetics, and straight oils. All of them can cause dermatitis with prolonged skin contact. Best practices:
- Wear nitrile gloves when handling parts soaked in coolant (not near the spindle -- during load/unload with the machine stopped)
- Barrier cream on exposed skin before the shift
- Wash hands before eating, drinking, or using the restroom -- coolant contains biocides that you do not want to ingest
- Coolant mist is an inhalation hazard. Machines should have mist collectors. If you can see a visible coolant fog in the shop, ventilation is inadequate
- Coolant concentration should be checked weekly with a refractometer. Too lean (below 5%) invites bacterial growth (Monday-morning stink). Too rich (above 10%) causes dermatitis and foaming
- Tramp oil (way oil, hydraulic oil leaking into coolant) accelerates bacterial growth. Skim it regularly
Lockout/Tagout (LOTO)
OSHA 29 CFR 1910.147. Before performing maintenance, clearing a jam, or changing tooling that requires reaching into the work envelope on a CNC:
- Press E-stop
- Turn the main disconnect to OFF
- Apply your personal lock and tag
- Verify zero energy -- try to start the machine. It should not respond
- Perform the work
- Remove tools and hands from the work envelope
- Remove your lock
- Restore power
Every person working on the machine puts on their own lock. The machine cannot restart until every lock is removed. No exceptions. No "just hold the button for me."
Fire Hazards
- Magnesium and titanium chips can ignite. Never use water to extinguish a metal fire -- it makes it worse. Use Class D dry powder extinguisher or dry sand
- Straight cutting oil is flammable. Mist + spark = fire. Keep oil concentration correct and remove chip buildup from machines
- Oily rags can spontaneously combust. Store in approved metal containers with self-closing lids
- Know where the fire extinguishers and exits are. Check them monthly
Lifting and Ergonomics
Fixtures and raw stock are heavy. A 12-inch round of 4140 that is 6 inches long weighs about 90 lbs. Use overhead cranes, hoists, or forklifts for anything over 50 lbs. When you must lift manually:
- Bend at the knees, not the waist
- Keep the load close to your body
- Do not twist while lifting -- move your feet
- Ask for help. Your back has to last your whole career
Housekeeping
A clean shop is a safe shop. Coolant on the floor is a slip hazard -- clean it up immediately. Keep walkways clear of stock, tooling, and cords. Every tool has a home. Organize your workstation so you are not reaching over running machines to grab a wrench.
Part 2: Machinist Math
Why Math Matters
You cannot make parts without math. Every dimension on a print, every speed and feed calculation, every fixture setup involves arithmetic at minimum and often trigonometry. The good news: machinist math is applied math. You learn it by using it.
Unit Systems and Conversions
US shops work primarily in inches. The rest of the world (and many US aerospace programs) use metric. You need to be fluent in both.
Key conversions:
- 1 inch = 25.4 mm (exact)
- 1 mm = 0.03937 inches
- To convert inches to mm: multiply by 25.4
- To convert mm to inches: divide by 25.4
Example: A bore is dimensioned at 1.2500 inches. In metric: 1.2500 x 25.4 = 31.750 mm.
Fractional to decimal:
- 1/64 = 0.015625
- 1/32 = 0.03125
- 1/16 = 0.0625
- 1/8 = 0.125
- Memorize these. You will use them constantly with drill sizes and stock dimensions
Tolerances and Tolerance Stackup
A dimension of 1.500 +/- 0.005 means the part is acceptable between 1.495 and 1.505. The tolerance is 0.010 total.
Bilateral tolerance: 1.500 +0.005 / -0.003 means acceptable range is 1.497 to 1.505.
Unilateral tolerance: 1.500 +0.010 / -0.000 means acceptable range is 1.500 to 1.510. Common for hole sizes (you can always make a hole bigger, not smaller).
Tolerance stackup is what happens when multiple toleranced dimensions accumulate. If you have three features each at +/- 0.005, the worst-case stackup across all three is +/- 0.015.
Worst-case stackup example: A shaft has three steps:
- Step 1: 1.000 +/- 0.002
- Step 2: 0.750 +/- 0.003
- Step 3: 1.250 +/- 0.002
The overall length = 3.000 with a worst-case tolerance of +/- 0.007 (sum of all three tolerances). If the print calls for total length 3.000 +/- 0.005, the individual tolerances are too loose -- you will make scrap.
Statistical stackup (RSS method): Instead of adding tolerances directly, take the square root of the sum of squares: sqrt(0.002^2 + 0.003^2 + 0.002^2) = sqrt(0.000017) = 0.00412
This is more realistic for production runs (assumes errors are randomly distributed), but worst-case is what you use for guaranteed interchangeability.
Trigonometry for Machinists
You need three trig functions and the Pythagorean theorem. That is it for 95% of shop work.
SOH-CAH-TOA:
- sin(angle) = opposite / hypotenuse
- cos(angle) = adjacent / hypotenuse
- tan(angle) = opposite / adjacent
Pythagorean theorem: a^2 + b^2 = c^2
Practical example -- taper calculation: A taper has a large diameter of 2.000 inches, a small diameter of 1.500 inches, and a length of 3.000 inches.
- Taper per foot (TPF) = (large dia - small dia) / length x 12 = (2.000 - 1.500) / 3.000 x 12 = 2.000 inches per foot
- Half-angle of the taper: tan(half-angle) = (large dia - small dia) / (2 x length) = 0.500 / 6.000 = 0.08333
- half-angle = arctan(0.08333) = 4.764 degrees
- Included angle = 9.527 degrees
This matters when you are setting a compound slide on a lathe or programming a taper on a CNC.
Practical example -- bolt circle: 5 holes equally spaced on a 4.000 inch bolt circle diameter (BCD).
- Angle between holes: 360 / 5 = 72 degrees
- Radius of bolt circle: 2.000 inches
- X position of hole n: 2.000 x cos(n x 72)
- Y position of hole n: 2.000 x sin(n x 72)
Hole 1 (0 degrees): X = 2.000, Y = 0.000 Hole 2 (72 degrees): X = 0.618, Y = 1.902 Hole 3 (144 degrees): X = -1.618, Y = 1.176 Hole 4 (216 degrees): X = -1.618, Y = -1.176 Hole 5 (288 degrees): X = 0.618, Y = -1.902
These are relative to the center of the bolt circle. On a CNC you would add the bolt circle center coordinates to each.
Coordinate Systems
CNC machines use Cartesian coordinates (X, Y, Z). Mills typically have:
- X-axis: left/right (table movement)
- Y-axis: toward/away from the operator (saddle movement)
- Z-axis: up/down (spindle/quill movement)
Lathes typically have:
- X-axis: cross-slide (diameter direction). X values are usually diameter, not radius -- this is a common mistake. X2.000 means a 2.000 diameter, so the tool is 1.000 from center
- Z-axis: along the spindle axis (length direction). Z0 is usually the face of the part
Absolute vs. Incremental:
- G90 (absolute): coordinates are measured from a fixed origin (work offset)
- G91 (incremental): coordinates are measured from the current position
Example: Moving from X1.000 Y1.000 to X3.000 Y2.000:
- Absolute: G90 G01 X3.000 Y2.000
- Incremental: G91 G01 X2.000 Y1.000
Surface Area and Volume
These come up for weight estimation, material cost, and surface finish requirements.
Cylinder (round bar stock):
- Volume = pi x r^2 x length
- A 2-inch diameter bar, 12 inches long: V = 3.14159 x 1^2 x 12 = 37.70 cubic inches
- Steel weighs about 0.283 lb/in^3, so this bar weighs about 10.67 lbs
- Aluminum: 0.098 lb/in^3 -- same bar weighs 3.69 lbs
Rectangular block:
- Volume = length x width x height
- A 6 x 4 x 2 inch block of steel: V = 48 in^3, weight = 13.58 lbs
Weight estimation matters for crane/hoist decisions and for quoting material cost.
Speeds and Feeds Math
These are covered in detail in the speeds-and-feeds wiki article, but the core formulas belong here too:
Spindle RPM: RPM = (SFM x 12) / (pi x diameter) = (SFM x 3.8197) / diameter
Example: Cutting 6061 aluminum at 800 SFM with a 0.500 inch end mill: RPM = (800 x 3.8197) / 0.500 = 6,112 RPM
Feed rate (inches per minute): IPM = RPM x number of flutes x chip load per tooth
Example: 4-flute end mill at 6,112 RPM, 0.003 inch chip load: IPM = 6,112 x 4 x 0.003 = 73.3 IPM
Metal Removal Rate: MRR = WOC x DOC x IPM (cubic inches per minute)
Example: 0.500 WOC x 0.250 DOC x 73.3 IPM = 9.16 in^3/min
GD&T Math Basics
Geometric tolerancing involves position calculations that use the following:
True position deviation: Actual position tolerance = 2 x sqrt(dx^2 + dy^2)
Where dx and dy are the deviation of the actual hole center from the true position in X and Y.
Example: A hole is supposed to be at X = 2.000, Y = 3.000. You measure it at X = 2.003, Y = 2.997.
- dx = 0.003, dy = 0.003
- Position deviation = 2 x sqrt(0.003^2 + 0.003^2) = 2 x 0.00424 = 0.00849 diameter
If the print calls for position tolerance of 0.010 diameter, this hole passes (0.00849 < 0.010).
Bonus tolerance (MMC): When a feature departs from MMC, you get additional position tolerance equal to the departure. If a 0.500 +0.005/-0.000 hole is drilled to 0.503, you get 0.003 bonus tolerance added to whatever the print says.
Practical Tips
- Keep a calculator at your machine. Phone apps work, but a dedicated scientific calculator that can handle trig and does not get covered in coolant is better
- Memorize common drill/tap sizes. A 1/4-20 tap requires a #7 (0.201) drill. A 3/8-16 tap requires a 5/16 (0.3125) drill. Print out a tap drill chart and tape it to your toolbox
- Check your work. Calculate twice, cut once. If a trig answer does not make sense (you got 47 degrees for what should obviously be close to 45), recheck your inputs
- Learn to estimate. Before you punch numbers into a calculator, ask yourself "is the answer going to be around 5 or around 50?" This catches data entry errors
NIMS Alignment
This content covers the following NIMS Machining Level I competencies:
- Duty Area 1: Safety -- LOTO, PPE, housekeeping, hazard identification
- Duty Area 2: Mathematics -- Trigonometry, tolerances, conversions, coordinate systems
- Duty Area 3: Blueprint Reading -- see the companion article on blueprint reading and GD&T
These are also mapped to typical community college MACH 101 (Shop Safety and Measurement) and MACH 102 (Machinist Mathematics) courses. Most programs require both before students touch a CNC.
See Also
- [[blueprint-reading-and-gdt]] -- Drawing interpretation and geometric tolerancing
- [[materials-and-metallurgy]] -- Workpiece materials, heat treatment, and machinability
- [[speeds-and-feeds]] -- Detailed cutting parameter calculations