How to Calculate CNC Machining Cost
A part price is a sum of six or seven numbers, not a guess. This guide shows engineers and buyers how to build those numbers from the drawing: material yield, cycle time, machine rate, tooling, finishing and inspection. Read it and you can audit a supplier quote line by line.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
- 7
Key takeaways
The basic formula behind every CNC quote
Almost every machining quote is built from the same skeleton: material cost + setup cost + (cycle time × machine rate) + tooling + finishing + inspection, then a margin on top. If you can estimate the first six terms, you can sanity-check any price a shop sends you.
Material cost is billet weight times price per kg, divided by yield. Yield is the share of the stock that survives as a finished part. On a compact aluminum bracket cut from bar stock, a 45% yield is normal. The chips are not free. On a thin plate part nested from sheet, yield can reach 70–80%.
Setup cost is time on the machine before the first good part. It includes workholding, zeroing, first-article checks and program prove-out. A simple 3-axis vise job might take 20–30 minutes. A 5-axis fixture with a rotary table and a Ø400 mm tombstone can take 2–4 hours.
Cycle time is where most of the money sits. Multiply cutting minutes by the machine hourly rate, then add load and unload time. Keep units consistent: minutes × rate/60. A 12-minute part on a machine that runs at 60 USD per hour costs 12 USD in spindle time before anything else.
- 1Estimate the easy terms firstMaterial and cycle time are usually 60–80% of a machined part price.
- 2Track yield separatelyMany quotes hide low yield inside the material line.
- 3Separate one-time and per-part costsSetup, fixture design and first-article inspection are one-time.
Material yield, machine type and the rate you pay
Material price swings by family. Aluminum 6061 is cheap and fast to cut, which is why it dominates prototypes and brackets. Stainless 316L and 17-4PH cost more per kg and machine at roughly half the cutting speed. Titanium TC4 (Ti-6Al-4V) and Inconel sit at the top: high price, low feeds, short tool life. A part that is 30 USD of aluminum can be 400 USD of Inconel before a single cut.
Machine rate is not a single number. A 3-axis vertical mill, a mill-turn center and a simultaneous 5-axis machining center carry different hourly rates because they cost different amounts to buy and maintain. A 5-axis center that machines five faces in one setup can beat a cheaper 3-axis machine that needs three fixtures and three operators.
The rule of thumb: use the cheapest machine that can hold the tolerance and geometry in one or two setups. Complex pockets, undercuts and bladed surfaces justify 5-axis. Flat plates with holes and slots do not.
Watch the size envelope too. A part that fits a 500 × 500 × 450 mm machine is cheap to move around the shop. A 4,000 mm frame needs a large-travel machine, and those hours are billed differently.
- 1Aluminum 6061Low cost, fast cutting, good for prototypes and housings.
- 2Stainless 316L / 17-4PHHigher price and slower speeds; add 30–60% to cutting time versus aluminum.
- 3Titanium and InconelHigh cost, low tool life, usually 2–4× the cycle time of aluminum.
- 45-axis centersHigher hourly rate, but fewer setups and better positional accuracy.
Tooling, finishing, inspection and overhead
Tooling is easy to forget. Standard end mills and drills are consumables; custom form tools, reamers and micro tools are not. If a feature needs a custom ground tool, that cost lands on the first order. Deep pockets with a high length-to-diameter ratio force slower feed rates and more tool changes, which shows up in cycle time.
Finishing is priced per part and per process. Bead blasting and tumbling are inexpensive. Anodizing, hardcoat, electroless nickel and powder coating cost more and often add a day of outside processing. Laser marking adds a small fixed cost plus a minimum character height of 1.5 mm in most setups.
Inspection scales with tolerance. A general ±0.05 mm part may need a caliper check. A ±0.005 mm part needs a CMM or optical comparator and a documented report. That is time and equipment, and it belongs in the quote.
Overhead covers programming, scheduling, packaging, freight coordination and admin. It is usually 10–20% of the subtotal. A quote that looks 15% cheaper often has a thinner inspection or packaging line, not a smarter process.
- 1Custom toolsOne-time cost. Amortize over the order quantity before comparing quotes.
- 2Outside finishingAdds both cost and lead time; ask for the finish lead time separately.
- 3CMM inspectionRequired for tight tolerance work; ask for the report with the parts.
Which parts are cheap to machine and which are not
Parts that machine economically share a few traits: they fit standard stock sizes, need two or three setups at most, have open pockets with corner radii at least one third of the pocket depth, and keep wall thickness above roughly 1 mm in aluminum. If your part matches that profile, a quote should come back close to your own estimate.
Parts that get expensive are the opposite. Deep narrow slots force long, thin tools that must run slowly. Sharp internal corners need EDM or a custom cutter. Cosmetic surfaces on every face multiply finishing cost. A single ±0.005 mm bore on an otherwise general-tolerance part can add a second operation and a CMM check.
One more boundary: prototypes and small batches. At quantity 1, setup and programming dominate. The same part at quantity 100 spreads those costs and the per-part price can fall by half or more. That is normal, not a negotiating trick.
When a feature is not functional, loosen it. A clearance hole at ±0.2 mm costs nothing extra. The same hole at ±0.02 mm needs reaming and gauging. Design for the tolerance you can measure on the shop floor, not the tightest number in the catalog.
- 1Corner radiusKeep internal radii at least one third of pocket depth to allow a stiffer tool.
- 2Wall thicknessBelow 1 mm in aluminum, chatter and deflection raise scrap risk.
- 3Tolerance zonesTighten only the features that locate or seal, not the whole drawing.
- 4QuantityMove from 1 to 50 pieces and the setup term shrinks sharply.
How to calculate CNC machining cost step by step
- 11. Read the drawing and list the operationsMark every tight tolerance, surface finish callout and thread. Note which faces need machining. A part with four machined faces is not a one-setup job, even if it looks simple.
- 22. Estimate blank size and yieldMeasure the smallest box that contains the part, add 3–5 mm per machined face for cleanup. Weigh the blank, then divide finished part weight by blank weight. If yield is below 50%, check whether a different stock shape or nesting layout helps.
- 33. Calculate material costBlank weight (kg) × material price per kg ÷ yield. For a 1.2 kg aluminum blank at 3 USD per kg and 50% yield, material is about 7.20 USD per part.
- 44. Estimate cycle time from removal volumeRough cycle time = volume removed (cm³) ÷ material removal rate. Use 15–40 cm³/min for aluminum roughing, 5–12 cm³/min for stainless, 2–6 cm³/min for titanium. Add 30% for semi-finish and finish passes.
- 55. Add non-cutting timeAdd tool changes (5–15 s each), rapid moves, probing and load/unload. On small parts this is often 20–35% of total machine time. Do not skip it; it is real spindle occupancy.
- 66. Apply the machine rateCost = (cycle minutes + setup minutes ÷ quantity) × rate ÷ 60. Setup divided by quantity is the term most people forget. At quantity 1, a 90-minute setup is a large share of the price.
- 77. Add tooling, finishing and inspectionAdd custom tool cost ÷ quantity, plus per-part finishing and inspection. Assign a realistic inspection time: 2–5 minutes for a general part, 15–45 minutes for tight tolerance or first article.
- 88. Apply overhead and margin, then check the totalAdd 10–20% overhead and the shop margin. Compare the result against a known part you have bought before. If the number is far off in either direction, one assumption is wrong. Recheck yield and cycle time first.
Cost drivers and what they add
Ranges are planning estimates for quoting discussions, not a published price list.
| Cost driver | Typical share | What pushes it up | How to reduce it |
|---|---|---|---|
| Material | 15–30% | Titanium, Inconel, low yield | Use aluminum where strength allows |
| Setup | 5–20% | Many faces, custom fixtures | Increase quantity, simplify datums |
| Cycle time | 30–50% | Deep pockets, hard material, thin walls | Open radii, reduce depth-to-diameter ratio |
| Tooling | 2–8% | Custom form tools, micro tools | Use standard tool sizes in the design |
| Finishing | 5–15% | Anodizing, plating, tight cosmetic spec | Specify finish only on functional faces |
| Inspection | 3–10% | ±0.005 mm callouts, CMM reports | Relax tolerance where it does not function |
| Overhead | 10–20% | Rush scheduling, special packaging | Plan lead time instead of paying for speed |
Build the estimate, then compare
Calculate material, setup, cycle time, tooling, finishing and inspection separately. Any quote that cannot be broken into those lines is hard to trust, and any part that misses the tolerance it needs is not a saving.
Common questions about machining cost calculation
What hourly rate should I use for a CNC machine?
Rates differ by machine class. A 3-axis mill sits at the low end, a mill-turn center in the middle, and a simultaneous 5-axis machining center at the high end because of purchase price and maintenance.
If you are building a should-cost model, pick a rate per machine class rather than one shop-wide number. Then check that the quote names the process it is charging for.
How much does tolerance actually add?
Going from general tolerance around ±0.1 mm down to ±0.05 mm usually means slower finishing passes and more frequent measurement. Expect a modest increase.
At ±0.005 mm, the process changes: temperature control, extra inspection and CMM reports. That is a step change, not a small percentage.
Can 3D printing replace CNC for my part?
For a plastic enclosure or a fit-check prototype, yes. Printing avoids tooling and setup cost, so one-off parts are cheap.
For metal parts under load, sealing surfaces, threads or tight bores, no. Machining holds ±0.005 mm and Ra 0.8–1.6 μm that printing cannot match on functional faces.
How do I check a quote that looks too low?
Ask which lines are included. Common omissions are first-article inspection, surface finish, packaging and freight. A low quote with no inspection line is not a better quote.
Then compare the assumed cycle time with your own estimate. If the shop claims half your calculated time, ask what toolpath or stock shape makes that possible.
Does quantity really change the per-part price?
Yes, mostly through setup amortization. Setup, programming and fixture building are one-time costs. Divide them by 1 and they hurt; divide them by 100 and they almost disappear.
Material also improves with quantity because a shop can order stock in the right size and nest parts efficiently.
What information makes a quote accurate?
Send STEP or IGES files, a 2D drawing with tolerances and finish callouts, material grade, quantity and target lead time. Say which surfaces are cosmetic and which are functional.
Missing tolerance data forces the shop to assume the worst case, and the quote goes up. Clear drawings get sharper numbers.
Send the drawing, get the cost breakdown
Upload your files and our engineers return a quotation with free DFM analysis within 12 hours. No minimum order quantity, from one prototype to 10,000+ parts. Uploads stay confidential and an NDA is available on request.
12-hour quoteNo MOQ±0.005 mm tolerance100% inspection