> ## Documentation Index
> Fetch the complete documentation index at: https://help.cnc-optima.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How is the price calculated?

> Where every amount in a quote's cost panel comes from: material, machining, tools, additional costs, margin, discount, VAT and rounding, worked through on an example

The panel on the right of a quote recalculates the price with every change you make in the form. This page breaks that calculation into steps, so you can check any amount with a calculator and defend it to a client or your boss. The same method prices the quote in the form, in the quote list and on the PDF offer, so the amounts match everywhere.

What to enter in each field is covered in [Create a quote](https://help.cnc-optima.com/en/quotes.md).

> [!NOTE]
>
> The app writes amounts the Polish way, with a decimal comma and a space between thousands, in the English interface too. On this page numbers are written the English way: `12 706,80 PLN` on screen is 12,706.80 PLN here.

## Where do you see the price?

The panel has two parts:

* **Production cost breakdown** shows what it costs you to make the part: materials, CNC service, tools and manual labor, each with its share in percent. The switch at the top flips between the price of one piece (**Per unit**) and the whole batch (**Total**).
* **Order summary** adds additional costs, margin and discount to the production cost, and at the bottom shows the net **Total**, the VAT rate and the gross amount.

![Production cost breakdown in the Per unit view: a donut chart and the rows Materials 118.61 PLN, CNC service 123.50 PLN, Tools 19.00 PLN, Manual labor 0.00 PLN, total 261.11 PLN net](https://mintcdn.com/cnc-optima/nRDmHBGDjPXt8zf8/images/en/quote-pricing/cost-breakdown.png?fit=max\&auto=format\&n=nRDmHBGDjPXt8zf8\&q=85\&s=bcbf207972b347d5fb163c2509b57caa)

## Example: manifold block H-200

Every number below comes from quote `WYC-2026-0006` "Blok rozdzielacza H-200" (a hydraulic manifold block) for Hydraulika Mazowiecka. Open it next to this page if you want to follow along.

| Field | Value |
| - | - |
| **Length** × **Width** × **Height** | 160 × 120 × 80 mm |
| **Material** | Aluminum, 26 PLN/kg, 10% waste |
| **Quantity** | 40 |
| **Machine rate** | 190 PLN/h |
| **Setup time** / **Cycle time** | 40 min / 38 min per piece |
| **Manual labor / Locksmith** | 0 PLN/pc |
| **Tool cost allowance** | 30 PLN/h |
| **Additional costs** | "Gratowanie i mycie" (deburring and washing), 8 PLN/pc, 0% margin |
| **Margin** / **Discount** / **VAT rate** | 25% / 5% / 23% |

> [tab] Part & material
>
> ![Part & material section of the manifold block quote: 160 by 120 by 80 mm, volume 1536 cm³, Aluminum at 26 PLN per kilogram, 10% waste, net part weight 4.147 kg, stock weight 4.562 kg, 40 pieces](https://mintcdn.com/cnc-optima/nRDmHBGDjPXt8zf8/images/en/quote-pricing/part.png?fit=max\&auto=format\&n=nRDmHBGDjPXt8zf8\&q=85\&s=01beff5a2d2eb2bb33766d64cf8fb45e)

> [tab] Quote settings
>
> ![Quote settings section of the manifold block quote: Polish, PLN, Margin 25%, VAT rate 23% and Discount 5%](https://mintcdn.com/cnc-optima/nRDmHBGDjPXt8zf8/images/en/quote-pricing/settings.png?fit=max\&auto=format\&n=nRDmHBGDjPXt8zf8\&q=85\&s=9476b2db3e9363e0fb3eb6b20c9b021c)

## Step 1: material

The app works out how much stock you buy for one piece and multiplies it by the price per kilogram.

1. **Calculated volume** = length × width × height ÷ 1000, so 160 × 120 × 80 ÷ 1000 = 1536 cm³.
2. **Net part weight** = volume × material density ÷ 1000, so 1536 × 2.7 ÷ 1000 = 4.147 kg. That's the part itself.
3. **Stock weight** = net weight × (1 + waste ÷ 100), so 4.147 × 1.10 = 4.562 kg. That's what you buy, including the allowance.
4. **Materials** = stock weight × price per kilogram, so 4.562 × 26 = 118.61 PLN per piece.

If **Material provided by client** is on, the material cost is zero, whatever the price and waste.

> [accordion] Material densities the app uses
>
> | Material | Density |
> | - | - |
> | Steel | 7.85 g/cm³ |
> | Stainless steel | 8.0 g/cm³ |
> | Aluminum | 2.7 g/cm³ |
> | Brass | 8.5 g/cm³ |
> | Copper | 8.96 g/cm³ |
> | Titanium | 4.51 g/cm³ |
> | POM | 1.41 g/cm³ |
> | PA (Nylon) | 1.14 g/cm³ |

## Step 2: CNC service

The CNC service is machine time per piece: the cycle plus a share of the setup. The app converts minutes to hours before multiplying by the rate.

* Cycle: 190 PLN/h × 38 min ÷ 60 = 120.33 PLN.
* Setup: 190 PLN/h × 40 min ÷ 60 = 126.67 PLN for the whole batch, so 126.67 ÷ 40 = 3.17 PLN per piece.
* **CNC service** = 120.33 + 3.17 = 123.50 PLN per piece.

Because setup is spread over the batch, a bigger batch is cheaper per piece. With 10 pieces the same block would carry 12.67 PLN of setup on every piece instead of 3.17 PLN.

## Step 3: tools and manual labor

* **Tools** = tool cost allowance × cycle time ÷ 60, so 30 × 38 ÷ 60 = 19.00 PLN per piece. Setup time isn't part of this.
* **Manual labor** is the amount from **Manual labor / Locksmith**, per piece, exactly as you enter it. In the example 0.00 PLN.

## Step 4: production cost

The four items from steps 1–3 give the cost of making one piece, the **Total** row of the breakdown:

118.61 + 123.50 + 19.00 + 0.00 = 261.11 PLN per piece.

**Production costs** in the summary is that piece cost times the quantity: 261.11 × 40 = 10,444.40 PLN. You'll see the same amount after switching the breakdown to **Total** (40 pcs). The percentages next to the items are their share of the production cost, rounded to a whole percent.

## Step 5: additional costs

Each additional cost counts according to its unit:

* `PLN/pc` is multiplied by the quantity. "Gratowanie i mycie" at 8 PLN × 40 pieces = 320.00 PLN.
* `PLN/total` is one amount for the whole order, whatever the quantity. Transport at 150 PLN is 150 PLN, not 150 PLN per piece.

The sum goes into the **Additional costs** row. Click it to see each cost on its own. This row shows the costs without their margin, because margin has its own row.

## Step 6: margin

Margin is what you earn. The app works it out separately for the production cost and for each additional cost:

* margin on production costs: production costs × the quote's margin, so 10,444.40 × 25% = 2,611.10 PLN before rounding,
* margin on additional costs: each cost × its own margin, so 320.00 × 0% = 0.00 PLN.

When a quote has no additional costs, the row is called **Margin** with the percentage next to it, for example (25%), and is a single amount. When it has them, the **Margin** row shows the sum and, when clicked, splits into **Margin on production costs** and **Margin on additional costs**.

The quote's margin can be anywhere from 0 to 999.99%, and an additional cost's margin from 0 to 100%. A value outside the range stops the save and the field shows "Enter a value from 0 to 999.99" or "Enter a value from 0 to 100".

The **Margin** row in the summary is the net amount before discount minus the cost rows above it, so the rows always add up to **Total**. In the example it shows 2,611.20 PLN, 10 grosze more than 10,444.40 × 25%, because it absorbs the rounding of the piece price.

![Order summary with its rows expanded: Production costs 10,444.40 PLN, Additional costs 320.00 PLN with the Gratowanie i mycie item, Margin 2,611.20 PLN split into production and additional costs, Discount 5% minus 668.80 PLN, Total 12,706.80 PLN net and 15,629.36 PLN gross](https://mintcdn.com/cnc-optima/nRDmHBGDjPXt8zf8/images/en/quote-pricing/order-summary.png?fit=max\&auto=format\&n=nRDmHBGDjPXt8zf8\&q=85\&s=03ea322159996d46284a150b67d58bd6)

## Step 7: piece price and discount

Next the app works out the price of one piece for the client: production cost with margin plus the `PLN/pc` additional costs with their margin. The result is rounded to the grosz:

261.11 × 1.25 + 8.00 = 334.39 PLN per piece before discount.

The discount takes a percentage off this price, that is off the price after margin. That result is rounded to the grosz too:

334.39 × 0.95 = 317.67 PLN per piece after discount.

The **Discount** row in the summary is the difference before and after the discount for the whole batch: (334.39 − 317.67) × 40 = 668.80 PLN. `PLN/total` costs get the same discount separately, each from its own amount with margin. The **Discount** row only appears when the discount is above zero. The panel ignores a value outside 0 to 100, and on saving the field shows "Enter a value from 0 to 100".

## Step 8: net, VAT and gross

The app works out the net amount the way an invoice does: the rounded piece price times the quantity, plus the per-order costs after discount.

* Net **Total**: 317.67 × 40 = 12,706.80 PLN.
* VAT: 12,706.80 × 23% = 2,922.56 PLN, rounded to the grosz.
* Gross: 12,706.80 + 2,922.56 = 15,629.36 PLN.

Under the net amount the panel shows the VAT rate and the gross amount.

> [!NOTE]
>
> The piece price is rounded to the grosz, and **Total** is that price times the quantity. So that the summary rows add up exactly to **Total**, the **Margin** row absorbs the rounding difference. In the example: 10,444.40 + 320.00 + 2,611.20 − 668.80 = 12,706.80 PLN. **Total** is the amount the client sees on the offer.

## Amounts in the quote list

The columns you can switch on in [the quote list](https://help.cnc-optima.com/en/quotes-list.md) use the same calculation:

* **Unit price (net)** is the net amount divided by the quantity, rounded to the grosz. With per-order costs it may differ from the piece price on the offer.
* **Margin** is your profit after the discount: the net amount minus production costs minus additional costs.

## What's next?

> [card] [Create a quote](https://help.cnc-optima.com/en/quotes.md)
>
> What to enter in each field of the form.

> [card] [Statuses and the PDF offer](https://help.cnc-optima.com/en/quote-pdf.md)
>
> How the client sees the price on the offer.

> [card] [The quote list](https://help.cnc-optima.com/en/quotes-list.md)
>
> Compare the amounts of many quotes in one table.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.