What are the four cost-of-quality categories, and how does spending move between them?
answer
- You are already paying for quality
- Two buckets before, two buckets after
- Stopping, finding, rework, escape
- Conformance versus non-conformance
- External failure is largest and least measurable
basics
~20 sCost of quality splits spending into prevention (stopping defects being made), appraisal (looking for them), internal failure (rework before release) and external failure (everything after release). The argument is that prevention and appraisal spending buys down the two failure categories.
solid answer
~50 sThe model, borrowed from manufacturing quality management, sorts every currency unit a team spends on quality into four buckets. **Prevention** is work that stops defects being created: clarifying requirements, shared examples, training, design standards, better tooling. **Appraisal** is work that looks for defects: reviews, running and reading checks, audits. **Internal failure** is rework on defects caught before release. **External failure** is everything spent once a defect has escaped: diagnosis, repair, data correction, support, credits, lost trust. The first two are often grouped as cost of conformance and the last two as cost of non-conformance. The claim is that conformance spending is cheaper per defect than non-conformance spending, so shifting money leftwards lowers the total. The categories are a lens for arguing, not an accounting system — external failure in particular is the largest bucket and the hardest to measure honestly.
code
pseudocode · 11 linesprevention = hours(domain_sessions) + hours(shared_examples) + hours(training)
appraisal = hours(reviews) + hours(running_and_reading_checks) + hours(audits)
internal_failure = hours(rework_on_defects_found_before_release)
external_failure = hours(incident_diagnosis) + hours(data_correction) + hours(support)
conformance = prevention + appraisal
nonconformance = internal_failure + external_failure
total_quality = conformance + nonconformance
report(nonconformance_share = nonconformance / total_quality)
report(prevention_share = prevention / conformance)go deeper
Learn the four names and one software example of each: a domain session is prevention, a review is appraisal, rework before release is internal failure, a repair after release is external failure. Being able to sort activities into the buckets is enough here.
Explain the mechanics: which bucket a given activity lands in, how conformance and non-conformance split, and why adding checking alone converts external failure into internal failure rather than reducing the defects created.
Show you can tally real numbers coarsely and argue from them. Be ready to say which costs your organisation systematically fails to count, and how you would present a quarter's spread without overstating precision you do not have.
Own the contested part. Say where the optimum-spend argument is unsettled, why unmeasured external failure biases every comparison, and how you would use the categories to steer investment without turning them into a tracking overhead of their own.
## The four buckets The cost-of-quality model comes from mid-twentieth-century manufacturing quality management and transfers to software with surprisingly little damage. Its purpose is not bookkeeping precision; it is to make visible that **you are already paying for quality**, and that the only open question is which bucket the money lands in. **Prevention cost** — spending that reduces the chance a defect is created at all. In software: working an example set through with the people who understand the domain before code exists, agreeing on a shared model and vocabulary, design standards, checklists, training, and tooling that makes a whole class of mistake unrepresentable. Prevention spending is paid up front, in full, whether or not defects would have occurred. **Appraisal cost** — spending on finding defects that already exist. Reviews, inspections, running the regression pack, exploratory sessions, audits, and the human time spent reading results rather than just executing them. Appraisal does not make the product better by itself; it converts unknown defects into known ones. **Internal failure cost** — rework on defects found before release. Re-opened work, re-testing, a story bounced back, a batch re-run in a test environment, a design revisited. This is the bucket people forget exists, and it is a useful counter to anyone who thinks catching things early is free: it still costs, it is simply the cheapest bucket in which to find a defect. **External failure cost** — everything spent after a defect has reached its users. Diagnosis under time pressure, out-of-band release, correcting data that the faulty code wrote, support handling, manual workarounds, compensation, regulatory exposure, and reputational damage. This bucket contains the largest per-defect amounts and the ones you can least reliably put a figure on. Prevention plus appraisal is often called the **cost of conformance** — what you spend to get it right. Internal plus external failure is the **cost of non-conformance** — what you spend because it was wrong. The ratio between these two is usually a more honest health indicator than any single bucket. ### How spending moves The classical claim is that failure cost falls as conformance spending rises, and falls faster than the conformance spending grows — up to a point. The oldest formulation of the model draws a total-cost curve with a minimum somewhere short of perfection, on the grounds that eliminating the last defects costs more than the failures they would cause. A later school argues that the minimum is an artefact of poor measurement, that prevention is far cheaper than the model assumed, and that the total keeps falling as prevention improves. **This disagreement is genuine and unresolved**; a candidate who states one position as settled fact is overreaching. What both camps agree on is the direction of the first moves: teams that spend almost nothing on prevention and pay heavily in external failure can nearly always improve total cost by shifting some spending leftward. A second, subtler movement matters more in practice. Adding appraisal without adding prevention converts external failure into internal failure — good, but it raises total cost, because you are now paying to find every defect you are still creating. Adding prevention reduces the defects that need finding at all, which is the only move that reduces appraisal and both failure buckets together. ### A worked tally Take a team maintaining a warehouse stock ledger, tallying one quarter in engineer-hours. Prevention: 34 hours of domain sessions and shared examples. Appraisal: 212 hours across reviews and reading check results. Internal failure: 96 hours of rework on things caught before release. External failure: one stale-cache read that reached production — 41 engineer-hours of diagnosis and fix, nineteen re-runs of a 6-hour nightly reconciliation, 2,847 hand-corrected ledger lines, and 63 support-hours. Two readings jump out. First, that single escaped defect rivals an entire quarter of internal-failure rework, which is the argument for earlier detection made in the team's own numbers rather than a borrowed multiplier. Second, prevention at 34 hours is barely funded against 212 hours of appraisal: the team is paying handsomely to find defects and almost nothing to avoid creating them. ### Honest limits The categories overlap. Time spent reading a review comment prevents the next defect and appraises this one; splitting it is arbitrary. Some items — the trust of a warehouse team that has stopped believing the on-hand numbers — resist measurement entirely, and the temptation is to score them zero, which quietly biases every comparison against quality spending. Tracking to the hour also costs real effort and can become theatre. Use the model as a **classification for reasoning and for arguing**, at coarse granularity, on real recent numbers; do not present it as an audited ledger.
- A team doubles its checking effort and its escaped-defect count halves. Which categories moved, and did total cost fall?Appraisal rose and external failure fell, with internal failure rising too, since the defects now found before release still need rework. Whether the total fell depends on the size of the external-failure costs avoided against the appraisal added. Doubling appraisal without touching prevention leaves the defect creation rate untouched, so the team is paying more to find the same defects.
- Which of the four buckets is easiest to under-report, and what distortion does that cause?External failure. Support handling, manual workarounds and lost confidence sit outside the engineering budget and often go uncounted, so they score as zero. That makes prevention and appraisal look like pure cost with no offsetting return, and systematically biases decisions against quality spending. Naming the unmeasured items explicitly, even without a figure, is more honest than omitting them.
- Is there an optimum level of quality spending?It is contested. The classical model draws a total-cost curve with a minimum short of perfection, arguing the last defects cost more to remove than they would cause. A later school argues that minimum is a measurement artefact and that better prevention keeps lowering the total. Both agree the first moves leftward pay for teams currently dominated by external failure, which is the defensible part of the claim.
saying these in an interview costs you the question
- Treats prevention and appraisal as the same category
- Says quality spending is a cost with no offsetting return
- Counts only defects found after release as quality cost
- Scores unmeasurable external failure costs as zero
- Presents the optimum-quality-level curve as settled fact
- Claims more checking always lowers total quality cost