The core answer
The cost of quality is what a business spends to get work right plus what it spends because work went wrong. It falls into four groups: prevention (training, supplier audits, writing specifications), appraisal (incoming inspection, testing, sampling), internal failure (rework, scrap, discarded material) and external failure (returns, replacement goods, warranty claims, credit notes, customers who stop buying). The last two groups are usually larger than people expect, because most of them have no line of their own in the accounts.
You do not need new software. Pull the figures from records you already keep for one month, sort them into the four groups and compare them with sales. Once you know which part comes from which supplier, you can adjust the contract where it matters: specifications and tests, inspection and notice of defects, who pays for fixes, returns and replacements, quality KPIs, and the liability cap. The legal effect of all this depends on the contract wording and on whether the contract is a sale or a hire of work.
Who should read which part
| Your situation | Read |
|---|---|
| Not signed yet, negotiating with a supplier | Sections 5 to 9, then the checklist in section 11 |
| Signed and trading | Sections 1 to 4 to measure, then sections 6 to 8 to see whether the current contract covers it |
| Already in a dispute, for example rejected goods and a supplier refusing to pay for fixes | Sections 6 to 8 and Common misunderstandings; give a lawyer the contract, purchase orders and your notices |
Recalls of goods that are dangerous to consumers are covered in the product recall guide. Warranties you give your own customers are in the after-sales service guide. Comparing suppliers by total cost before you buy is in the total cost of ownership guide. This page deals with costs that have already happened and how to feed them back into the contract.
1. What are the four groups, and what goes in each?
| Group | Meaning | Examples |
|---|---|---|
| Prevention | Spending first so problems do not arise | Writing specifications, auditing suppliers, training staff, maintaining tools |
| Appraisal | Spending to find problems before the customer does | Incoming inspection, in-process checks, testing, calibrating gauges |
| Internal failure | Problems found before shipment | Rework, scrap, offcuts, idle machines, sorting goods |
| External failure | Problems the customer finds | Returns, two-way freight, replacement goods, warranty repairs, credit notes, penalties a customer deducts, management time, customers who stop ordering |
The idea is that a little more spent on the first two groups often cuts the last two by more. There is no fixed ratio that suits everyone; businesses differ, so watch your own trend over several months.
2. How can I measure it from existing records?
Take the most recent month with complete data and collect the figures from these documents.
| Existing record | What it gives you | Group |
|---|---|---|
| Rework tickets or repeat work orders | Labour hours and materials used to fix | Internal failure |
| Scrap reports or write-off notes | Value of discarded goods | Internal failure |
| Return notes and credit notes | Value returned or credited | External failure |
| Warranty claims and repair orders | Parts, labour, technician travel | External failure |
| Freight invoices | Return and re-shipment freight | External failure |
| Timesheets and payroll for incoming inspection | Cost of the people who check | Appraisal |
| Training and audit receipts | Prevention spend | Prevention |
Steps:
- Choose a month with complete data and decide which items count as cost of quality
- Take the figures from each record type and sort them into the four groups
- Estimate management and sales time spent on problems: hours multiplied by the hourly payroll cost; if nothing is recorded, ask the people involved and label it an estimate
- Divide by that month's sales to get a percentage
- Repeat every month using the same counting method so the trend is visible
3. Which costs are usually missed?
- Time of staff who stop normal work to deal with the problem
- Two-way freight and rush freight for replacements
- Replacement goods already shipped while the returned goods cannot be resold
- Management time spent negotiating with customers and suppliers
- Penalties or money a customer deducts from payment; see customer deducts a penalty or damages from payment
- Customers who do not come back, which is hard to measure directly; use a proxy such as regular customers who ordered less after a problem, and label it an estimate
4. Hypothetical example: monthly sales of 10 million baht, cost of quality of 1.6 million baht
This is not a real case and the figures are illustrative only. A hypothetical company assembles and sells equipment, with sales of 10,000,000 baht in one month.
| Group | Item | Baht |
|---|---|---|
| Prevention | Training and supplier audits | 120,000 |
| Appraisal | Incoming inspection and testing team | 180,000 |
| Internal failure | Labour and materials for rework | 300,000 |
| Internal failure | Scrap discarded | 200,000 |
| External failure | Freight on returned goods | 150,000 |
| External failure | Replacement goods shipped | 250,000 |
| External failure | Warranty repairs | 200,000 |
| External failure | Credit notes | 100,000 |
| External failure | Management and sales time (estimate) | 100,000 |
| Total | 1,600,000 |
The total is 1,600,000 baht, or 16% of sales. Of this, 300,000 baht is prevention and appraisal, and the other 1,300,000 baht is internal and external failure.
Tracing the rework tickets and claims back by lot number, suppose 40% of the 1,300,000 baht, that is 520,000 baht, leads back to components from a single supplier. The next question is what the contract with that supplier lets you recover. If the contract is silent, the whole amount may have to be renegotiated; and if it caps liability far below this amount, the part above the cap may not be recoverable. The figure is negotiating information, not an amount you can be sure to claim.
5. How do I trace problems back to a supplier?
A total figure does not help in a negotiation. You need to know who the problem came from.
- Record the lot or batch number of materials and components on the receiving document and on the production order or delivery note to the customer
- When rework or a return occurs, record the cause and the lot involved
- Photograph and keep samples of rejected goods with the lot tag
- Separate causes into supplier, your own process and customer use, because a claim against a supplier must show that the defect came from what the supplier delivered
6. How do I write specifications and acceptance tests that are hard to dispute?
A contract that says "good quality" or "industry standard" leaves each side to interpret it. Make it measurable.
| Topic | What to write |
|---|---|
| Specification | Dimensions, material, durability, acceptable tolerances, drawings or photos attached to the contract |
| Reference sample | A sample both sides sign off, used for comparison in a dispute |
| Test method | Who tests, where, how, how many pieces per lot, and the pass and fail criteria |
| Third-party results | If an outside laboratory is used, who pays and whether its result binds both sides |
| Change of specification | The supplier must give notice and obtain written approval before changing material or process |
Where the quotation and the purchase order carry different quality terms, see quotation and purchase order with conflicting terms.
7. How do I inspect on delivery and give notice of defects without losing rights?
Three provisions of the sale-of-goods rules bear directly on this.
- Section 472 of the Civil and Commercial Code: the seller is liable where the goods sold have a defect that reduces their value or their fitness for normal use or the use contemplated by the contract, whether or not the seller knew of it.
- Section 473: the seller is not liable in certain cases, for example where the buyer knew of the defect at the time of the sale or should have known with the care expected of a reasonable person, or where the defect was obvious at delivery and the buyer accepted the goods without objection, or where the sale was by auction.
- Section 474: no suit may be brought once one year has passed from the time the defect was discovered.
In practice, accepting goods without inspection and without objection may cost you the right to complain about a defect that was plain to see. Build the steps into the contract and into daily routine.
- Set an inspection window, for example a number of days after receipt, and say who may sign for acceptance
- If you cannot inspect on the spot, write "received subject to inspection" on the delivery note instead of signing it clean
- On finding a problem, notify in writing or by email, giving the lot, quantity, description of the defect, photographs and what you want (replacement, repair or price reduction)
- The contract should set a notice period for defects that are not apparent at once, for example a number of days after discovery, and the channel to use
- Record the date you discovered the defect, since the period under section 474 runs from discovery
- Remember that these rules are written for sale contracts; if the work is a hire of work or a mix of sale and installation, the conditions and time limits may differ, so have a lawyer check the type of contract first
For goods that do not meet specification in machinery, see machinery not meeting specification: repair, refund or withhold payment.
8. Who bears the cost of rework, returns and replacement?
The law gives the broad rule that a seller is liable for defects, but each cost item should be written into the contract, because otherwise it is argued over later.
| Cost item | State clearly that |
|---|---|
| Replacement goods | The supplier delivers new goods within a set number of days, from a lot that passes inspection |
| Two-way freight | Who pays, and how urgent cases are treated |
| Sorting | If a lot is suspect, who sorts it and who pays the labour |
| Rework you do yourself | If you fix the defective part to keep the line running, the supplier reimburses at an agreed rate, and whether you must notify first |
| Consequential loss | For example penalties a customer deducts from you or line stoppage: included in the supplier's liability or not |
| Refund | When you may choose a refund instead of replacement |
| Cost of a market recall | If a recall applies, who pays; see the product recall guide |
Be careful: if the contract makes the supplier liable only to "replace the goods", other losses that follow may be unrecoverable or may have to be proved. The result depends on the wording and the facts, so write it before you sign.
9. Which quality KPIs and remedies belong in the contract?
| KPI | How to count it |
|---|---|
| Rejection rate at inspection | Units rejected over units received, per lot or per month |
| Return or claim rate | Units returned or claimed over units shipped to customers in the same period |
| Response and fix time | Within how many days of notice: preliminary cause, corrective plan and replacement |
| Notice of changes | Number of times material or process changed without notice |
Remedies when a target is missed should escalate: a cause report and corrective plan, more frequent inspection at the supplier's cost, a credit, the right to audit the plant, and for serious or repeated failures the right to stop ordering or terminate. If you use a credit or a penalty, state the amount or the formula and tie it to the loss you can foresee, since a figure out of proportion may be challenged. See limitation of liability, indirect damages, indemnity and insurance.
10. How should the liability cap be set?
Suppliers often ask to limit liability, for example to the value of the lot or to exclude indirect damages. Such terms are possible in principle, but they directly decide how much you can recover. Test them against the figures in section 4.
- Compare the cap with the losses this supplier has actually caused, not with the price of the goods
- Ask which cost items in section 8 sit inside or outside the cap
- Agree a higher cap for parts used in products sold to consumers or with safety risk
- List cases with no cap, such as intentional acts, gross negligence and breach of confidentiality
- If the supplier carries liability insurance, ask to see the scope and make it a condition
More on caps and indirect damages is in limitation of liability, indirect damages, indemnity and insurance.
11. Checklist: measure first, then adjust the contract
- Measure one month of cost of quality using section 2 and write down how you counted
- Identify the share traced to each supplier
- Open the contract and purchase orders of the highest-share supplier and check for measurable specifications, test methods and an inspection period
- Check whether the contract sets out how and where to give notice of defects
- Check who pays freight, sorting, rework and replacement
- Add quality KPIs, remedies for missed targets and an audit right
- Compare the liability cap with the real figures from section 4
- Have a lawyer check the type of contract: sale, hire of work or a mix
- Review the cost of quality every quarter and update the contract at renewal
Common misunderstandings
| Misunderstanding | What to know |
|---|---|
| Cost of quality means only the cost of inspecting goods | Inspection is one of four groups. The large items are usually rework, scrap, returns and unrecorded staff time |
| You need a special accounting system before you can measure it | Start with the rework tickets, return notes, credit notes and claims you already have. A rough, repeatable figure is better than none |
| The supplier must pay for everything because the law makes sellers liable for defects | The law has exceptions, for example where the buyer accepts goods with an obvious defect without objection, there is a time limit for suing, and the result depends on the contract and its type |
| You can always accept goods now and inspect later | If you accept without objection and the defect is obvious, you may lose the right. Write "received subject to inspection" and give notice within the contract period |
| Once there is a liability cap you can stop worrying | A cap far below your real loss means you cannot recover it all. Compare it with real figures before signing |
| The example in this guide can be used as a benchmark | It is a hypothetical example, not data from any business and not a standard. Use your own figures |
Further reading
- Product recall: brand owner, OEM factory and distributor
- Selling with after-sales service and warranty
- Comparing suppliers by total cost of ownership
- Limitation of liability, indirect damages, indemnity and insurance
- Quotation and purchase order with conflicting terms
- Backup plan when you depend on one supplier
Cost of quality can be measured from documents you already have, and once you know which part comes from which supplier, you can adjust specifications, acceptance, who pays for fixes, KPIs and liability caps to the real figures.
We review and draft supplier sale contracts, specification and test annexes, acceptance and defect-notice clauses, terms on who pays for rework, returns and replacement, KPIs and liability caps, and we help with correspondence when a dispute arises. We are not quality inspectors, accountants or an insurer, and we cannot promise the outcome of a negotiation with a supplier. Our fees depend on the stage of the matter and the work involved. Send us the documents first, and we will give you the scope of work and the fees in writing before we start. Call +66 92 254 2045 or send us the details. See also contracts and documents and business plan.
This guide is published by Suwanvara Law Firm — a Khon Kaen law firm established in 1986. General information only, not legal advice on a specific matter.

