Taguchi Loss Function Calculator
Quality engineering
- Inputs: failing at the tolerance limit costs 240.00 dollars, the tolerance deviation is 0.50 and this unit sits 0.18 from target.
- Loss coefficient: k = 240.00 / 0.50 squared = 960.00.
- Unit loss: 960.00 x 0.18 squared = 31.10 dollars.
- Taguchi loss result: 31.10 dollars per unit, 155,520.00 dollars across 5,000 units.
Traditional quality control draws a cliff at the tolerance limit: a part inside the limit is good, a part outside it is scrap, and nothing in between costs anything. Genichi Taguchi argued that this picture is economically false. A part that barely meets its target and a part that barely stays inside tolerance do not perform alike in the customer's hands - the loss grows continuously as the characteristic drifts from target, and his loss function prices that drift: loss equals a coefficient k times the squared deviation from target.
The calculator needs one calibration fact - the cost incurred when a unit sits exactly at the tolerance limit - plus the tolerance itself, the actual deviation of the unit you are pricing, and a production quantity. It returns the loss coefficient, the loss per unit, the deviation as a share of tolerance, and the total loss across the run. The examples price a comfortably in-tolerance unit, a unit beyond the limit, and a cheap-to-fail part made in small numbers.
Worked examples
Loss for a unit inside tolerance
(240 · 0.5 · 0.18 · 5000)
| Loss per unit ($) | 31.10 |
| Loss coefficient k ($ per squared deviation) | 960.00 |
| Deviation as share of tolerance (%) | 36.00 |
| Total loss over production run ($) | 155,520.00 |
Loss for a unit beyond the limit
(85 · 0.25 · 0.31 · 1200)
| Loss per unit ($) | 130.70 |
| Loss coefficient k ($ per squared deviation) | 1,360.00 |
| Deviation as share of tolerance (%) | 124.00 |
| Total loss over production run ($) | 156,835.20 |
Loss with a wide tolerance
(1200 · 2 · 0.45 · 250)
| Loss per unit ($) | 60.75 |
| Loss coefficient k ($ per squared deviation) | 300.00 |
| Deviation as share of tolerance (%) | 22.50 |
| Total loss over production run ($) | 15,187.50 |
Loss at the target, not just at the limit
The quadratic shape is the argument. Squaring the deviation means small drifts cost almost nothing, moderate drifts cost noticeably, and large drifts cost disproportionately - a curve that matches how assemblies actually behave, where a stack of slightly-off parts assembles fine, a stack of moderately-off parts binds and wears, and a stack of badly-off parts fails. A step function at the tolerance limit cannot express any of that, and it actively misleads: it values a part sitting at 99 percent of tolerance exactly as much as a part sitting on target.
Taguchi's framing also relocates the loss. The cost A0 at the limit is not the factory's scrap cost; properly it is the loss to society - warranty claims, lost performance, customer time, shortened service life - expressed in money. That is why the first worked example can attach a figure of 240 dollars to a part at its limit even if the factory could rework it for less: the 240 is what the deviation costs everyone downstream, and it is the honest number for deciding how much process improvement is worth buying.
Once A0 and the tolerance are fixed, k is determined and every deviation has a price. In the first example k is 960.00 dollars per squared deviation unit; in the second, a cheaper failure cost over a tighter tolerance gives 1,360.00; in the third, an expensive failure spread over a wide tolerance gives 300.00. The coefficient, not the limit cost alone, is what a process engineer actually steers by.
- Loss per unit L = k x (deviation from target) squared.
- The coefficient k = A0 / (tolerance deviation) squared, fixed by one known cost point.
- Loss is zero only exactly on target; there is no free zone inside tolerance.
- Total run loss is the per-unit loss times the number of units at that deviation.
Fixing k from the tolerance cost
The calibration is deliberately minimal because in most plants only one cost point is even approximately known: what it costs when a unit reaches the functional limit - the field failure, the returned assembly, the scrapped batch. Taguchi's method takes that single point and the tolerance that defines it, and the quadratic through the origin and that point is the whole model. In the first example, 240 dollars divided by 0.5 squared gives k of 960.00, and the unit sitting 0.18 from target - 36.00 percent of the way to the limit - is priced at 960.00 times 0.18 squared, which is 31.10 dollars.
Notice the leverage of the square: at 36.00 percent of tolerance the unit has incurred only about 13 percent of the limit cost, because the deviation enters squared. At the second example's deviation of 124.00 percent of tolerance - beyond the limit - the loss of 130.70 dollars exceeds the 85-dollar limit cost, exactly as a quadratic through the calibration point must. The model does not stop at the tolerance edge; it keeps pricing, which is the behaviour you want when deciding whether an out-of-tolerance lot can be used, reworked or must be scrapped.
The third example shows the wide-tolerance regime: a 1,200-dollar limit cost over a tolerance of 2.0 gives the gentlest k of the three, 300.00, and a deviation of 0.45 - just 22.50 percent of tolerance - costs 60.75 dollars per unit. Expensive failure does not automatically mean expensive drift; the tolerance you can hold divides the cost down.
| Example | k | Deviation vs tolerance | Loss per unit |
|---|---|---|---|
| In tolerance | 960.00 | 36.00 percent | 31.10 |
| Beyond the limit | 1,360.00 | 124.00 percent | 130.70 |
| Wide tolerance | 300.00 | 22.50 percent | 60.75 |
Worked examples
Example 1: Cost at the tolerance limit A0 240; Tolerance deviation 0.5; Actual deviation from target 0.18; Units produced 5000. Loss per unit ($) = 31.10. Supporting values: Loss coefficient k ($ per squared deviation) 960.00; Deviation as share of tolerance (%) 36.00; Total loss over production run ($) 155,520.00. Inputs: failing at the tolerance limit costs 240.00 dollars, the tolerance deviation is 0.50 and this unit sits 0.18 from target. Loss coefficient: k = 240.00 / 0.50 squared = 960.00. Unit loss: 960.00 x 0.18 squared = 31.10 dollars. Taguchi loss result: 31.10 dollars per unit, 155,520.00 dollars across 5,000 units.
Example 2: Cost at the tolerance limit A0 85; Tolerance deviation 0.25; Actual deviation from target 0.31; Units produced 1200. Loss per unit ($) = 130.70. Supporting values: Loss coefficient k ($ per squared deviation) 1,360.00; Deviation as share of tolerance (%) 124.00; Total loss over production run ($) 156,835.20. Inputs: failing at the tolerance limit costs 85.00 dollars, the tolerance deviation is 0.25 and this unit sits 0.31 from target. Loss coefficient: k = 85.00 / 0.25 squared = 1,360.00. Unit loss: 1,360.00 x 0.31 squared = 130.70 dollars. Taguchi loss result: 130.70 dollars per unit, 156,835.20 dollars across 1,200 units.
Example 3: Cost at the tolerance limit A0 1200; Tolerance deviation 2.0; Actual deviation from target 0.45; Units produced 250. Loss per unit ($) = 60.75. Supporting values: Loss coefficient k ($ per squared deviation) 300.00; Deviation as share of tolerance (%) 22.50; Total loss over production run ($) 15,187.50. Inputs: failing at the tolerance limit costs 1,200.00 dollars, the tolerance deviation is 2.00 and this unit sits 0.45 from target. Loss coefficient: k = 1,200.00 / 2.00 squared = 300.00. Unit loss: 300.00 x 0.45 squared = 60.75 dollars. Taguchi loss result: 60.75 dollars per unit, 15,187.50 dollars across 250 units.
From one unit to a production run
Per-unit losses look trivially small - 31.10 dollars here, 60.75 there - until the run multiplies them. The first example's 5,000 units at a steady 0.18 deviation accumulate 155,520.00 dollars of loss; the second example's 1,200 units beyond tolerance accumulate 156,835.20; even the third example's modest 250-unit run reaches 15,187.50. These totals are the numbers that justify capital spending on process capability: a fixture or a better machine that halves the typical deviation quarters the loss, and the run total converts that factor of four into a payback period.
Real processes, of course, produce a distribution of deviations rather than one fixed value, and the rigorous version of this calculation averages the squared deviation over that distribution - which is why the mean squared deviation, variance plus squared bias from target, is the quantity Taguchi's followers track. This page prices a specified deviation exactly; to price a process, evaluate it at the root-mean-square deviation and the same arithmetic applies.
What the model leaves out
The quadratic is symmetric, and reality often is not. A shaft slightly undersize and a shaft slightly oversize can fail in different ways at different costs; Taguchi's own framework handles this with asymmetric loss functions, one k for each side, which this page's single-coefficient form does not attempt. Nominal-is-best is also only one of his three cases - smaller-is-better and larger-is-better characteristics have their own loss forms built on the same calibration idea.
The deeper caveat is the calibration itself. A0 is usually an estimate assembled from warranty data, scrap records and judgement, and k inherits its uncertainty squared through the tolerance. The loss figures should be read as decision-grade estimates - good enough to rank process improvements and to expose the cost of drift - not as accounting entries. Used that way, the function's bluntness is a virtue: one cost point, one tolerance, and an entire production run priced.
A short history of the idea
Taguchi developed his quality engineering framework in postwar Japan, where it was taken up widely before reaching Western manufacturers in the 1980s; his Introduction to Quality Engineering appeared in English in 1986. The loss function was the piece that travelled furthest, because it translated a philosophy - quality is loss to society - into arithmetic a plant manager could argue with in a budget meeting.
Its legacy is visible wherever tolerance decisions are made economically rather than by habit. If a team has ever asked what a looser tolerance would cost in the field, or what a tighter one would save, and reached for a curve instead of a cliff, they are using Taguchi's argument whether or not they use his name. This page implements the nominal-is-best quadratic at the centre of that argument.
FAQs
What does the Taguchi loss function compute?
The monetary loss caused by a characteristic deviating from its target: a coefficient k times the squared deviation. K is calibrated from one known point - the cost A0 incurred at the tolerance limit - so the whole curve follows from a single cost estimate.
What loss per unit does the first worked example give?
With a limit cost of 240 dollars over a tolerance of 0.5, k is 960.00. A unit 0.18 from target - 36.00 percent of tolerance - loses 960.00 times 0.18 squared, which is 31.10 dollars.
What happens beyond the tolerance limit?
The quadratic keeps pricing. In the second example a deviation of 124.00 percent of tolerance produces a loss of 130.70 dollars, above the 85-dollar limit cost - the model does not stop at the edge of the specification.
Why is the third example's k the smallest despite its high limit cost?
Because k divides the limit cost by the squared tolerance. A cost of 1,200 dollars over a tolerance of 2.0 gives k of 300.00, gentler than the first example's 960.00 - a wide tolerance spreads the same failure cost over more deviation.
How does the loss scale across a production run?
Linearly in units, quadratically in deviation. The first example's 31.10 dollars becomes 155,520.00 across 5,000 units; halving the typical deviation would quarter that total, which is how the function justifies spending on process capability.
Is the loss really zero inside tolerance?
Only exactly on target. That is the point of the model: a unit at 36.00 percent of tolerance already carries 31.10 dollars of loss in the first example, even though a traditional inspection would pass it without comment.