Business and Freelancing

Acceptance Sampling OC Curve Calculator

Enter a sample size and accept number to see how the plan treats good and bad lots.

Your numbers

Example plan. How many items are inspected from each lot.

The lot is accepted if the sample holds this many defective items or fewer.

Leave blank for a very large lot. A lot size switches to the exact hypergeometric chance.

Percent defective in the lot, separated by commas, such as 0.5, 1, 2. Up to 40 levels.

A quality level you want to accept. The chance of rejecting it is the producer's risk.

A quality level you want to reject. The chance of accepting it is the consumer's risk.

Result

Chance of accepting a lot at 1% defective

91.06%

Plan: inspect 50 items and accept with 1 or fewer defective.

Producer's risk
8.94%
Consumer's risk
8.27%
Accepted at 8% defective
8.27%
Largest outgoing quality listed
1.666%
Method
Binomial (very large lot)

Operating characteristic curve

DefectiveAcceptedRejectedOutgoing quality
0.5%97.39%2.61%0.487%
1%91.06%8.94%0.911%
2%73.58%26.42%1.472%
3%55.53%44.47%1.666%
5%27.94%72.06%1.397%
8%8.27%91.73%0.662%
10%3.38%96.62%0.338%
How this was calculated
  1. For each level p, the chance of accepting is the sum, for k = 0 to 1, of C(n, k) x p^k x (1 - p)^(n - k).
  2. The producer's risk is one minus the chance of accepting at the good quality level, and the consumer's risk is the chance of accepting at the poor quality level.
  3. Outgoing quality = chance of accepting x defect rate, assuming rejected lots are fully inspected and every defective found is replaced by a good one.
  • This describes one single sampling plan. It does not choose a plan for you or replace a published standard such as one your customer requires. The risks at the two levels you entered are 8.94% and 8.27%.

Calculated using SumPanda.com · https://sumpanda.com/acceptance-sampling-oc-curve-calculator/

Results are estimates for general information. Verify important figures before relying on them.

Next step

How to use the acceptance sampling oc curve calculator

  1. Enter the sample size (n) and the accept number (c) of the plan. The lot is accepted if the sample holds c defective items or fewer.
  2. Leave the lot size blank for a very large lot, or enter it to use the exact hypergeometric chance for a lot of that size.
  3. List the percent-defective levels you want to see, and enter a good quality level and a poor quality level for the two risks.
  4. Read the table of the chance of accepting at each level, the producer's and consumer's risks and the outgoing quality.

Formula

very large lot: Pa(p) = sum for k = 0 to c of C(n, k) p^k (1 - p)^(n - k)

lot of N with D defective: Pa = sum for k = 0 to c of C(D, k) C(N - D, n - k) / C(N, n)

producer's risk = 1 - Pa(good level); consumer's risk = Pa(poor level)

outgoing quality = Pa x p x (N - n) / N (or Pa x p for a very large lot)

The outgoing quality assumes rejected lots are inspected completely and every defective found is replaced with a good item, so it is the average quality of what ships.

Inspect 50, accept on 1 or fewer

For a plan that draws 50 items and accepts on at most 1 defective, a lot that is 2 percent defective is accepted with probability 0.98^50 + 50 x 0.02 x 0.98^49 = 0.3642 + 0.3716 = 73.58 percent. At 1 percent defective the chance is 91.06 percent, so the producer's risk at a good quality level of 1 percent is 8.94 percent.

At 8 percent defective the plan accepts only 8.27 percent of lots, which is the consumer's risk at a poor quality level of 8 percent. Among the levels listed, the outgoing quality is highest at 3 percent defective, where it is 1.67 percent. For a lot of 500 with 1 percent defective (5 items), the exact chance of accepting rises to 91.94 percent.

How to read an OC curve

An operating characteristic curve plots the chance of accepting a lot against the true fraction defective. A good plan accepts nearly every good lot and rejects nearly every bad one, so its curve falls steeply between the two. A plan with a small sample and a loose accept number has a flat curve that fails to tell good from bad.

Increasing the sample size makes the curve steeper, and raising the accept number moves it to the right. The two risks are read from the curve at the quality levels you care about: the producer's risk is the chance of rejecting a good lot, and the consumer's risk is the chance of accepting a bad one.

Binomial or hypergeometric

When the lot is much larger than the sample, each item drawn is nearly independent of the last, and the binomial formula is a good approximation. For a small lot, drawing without replacement matters, and the exact hypergeometric formula is better. Entering a lot size switches the page to that formula and rounds the number of defective items in the lot to a whole item.

For single probabilities, use the Binomial Probability Calculator or the Hypergeometric Distribution Calculator. To express defects as a rate per million, see the DPMO and Sigma Level Calculator.

Assumptions and limits

  • The plan is a single sampling plan: one sample, one accept number. Double and sequential plans are not modeled.
  • Items are inspected without error, and a defective is either defective or not.
  • For a lot size entered, the number of defective items is the percent times the lot size, rounded to a whole item.
  • The plan does not replace a standard your customer requires, and it does not choose a plan for you.
  • Nothing typed here leaves your browser.

Formulas reviewed October 10, 2026. See the calculation methodology for how SumPanda rounds, tests and sources its formulas.

Frequently asked questions

What do producer's risk and consumer's risk mean?

The producer's risk is the chance that a lot at the good quality level is rejected anyway. The consumer's risk is the chance that a lot at the poor quality level is accepted anyway. Both come from the same curve.

Why is the outgoing quality lower at high defect rates?

Because most lots with many defects are rejected and fully inspected, so few of those defects ship. Outgoing quality peaks at a middle defect rate and falls at both ends.

What accept number should I choose?

Try several and compare the two risks. A larger sample or a smaller accept number lowers the consumer's risk, while a larger accept number lowers the producer's risk, and the table shows the tradeoff.

Why does a lot size give a different answer?

With a small lot, each item drawn changes the chances for the next, which the binomial formula ignores. The exact formula accounts for it, so it gives a somewhat higher chance of accepting a lot with few defects.