AOAnnotation Ops Kit
Free calculator · No email needed

Data annotation QA sample size calculator

How many labeled items should you check from your vendor's batch? Enter the batch size, confidence level, margin of error, and expected accuracy to plan a simple random sample for annotation quality assurance.

Prefer a spreadsheet? Download the free sheet + error taxonomy (.zip)

The vendor's expected or past accuracy, not your target. Unsure? Use 50% for the most conservative (largest) sample.
Items to review1887.8% of 2,400 items

How it's calculated

Cochran sample size with finite population correction

Step 1
n₀ = z² × p × (1 − p) ÷ e², where z comes from the confidence level (95% → 1.960), p is the expected accuracy and e is the margin of error.
Step 2
n = n₀ ÷ (1 + (n₀ − 1) ÷ N), where N is the batch size. This shrinks the sample for small batches.
Step 3
Round up, and never more than the batch itself. Review that many randomly chosen items.

Example: 2,400 items, 95% confidence, ±3%, 95% expected accuracy gives n₀ = 202.7, corrected n = 187.0, so you review 188 items. Use 50% expected accuracy when unsure. It gives the largest, most conservative sample. This is a planning number for a simple random sample. Tables for other batch sizes: annotation QA sample size guide. Source: NIST/SEMATECH e-Handbook of Statistical Methods.

Annotation Ops Kit is vendor-neutral and not affiliated with any labeling vendor or platform.

From sample size to review

How to sample a data annotation batch

  1. Define what counts as a pass. Agree on label definitions, error severity, and acceptance rules before reviewing the batch. Use the same unit in the calculator and the review: items, images, or another clearly defined unit.
  2. Choose the inputs. Use a realistic estimate of past accuracy. If you do not have one, 50% produces the largest sample for the selected confidence level and margin of error.
  3. Select items at random. Freeze the batch and draw from the entire batch without replacement. Reviewing only easy examples, the first items, or a vendor-selected sample can bias the result.
  4. Review and record the results. Log each item's pass or fail result and any critical errors. Calculate observed accuracy and an accuracy interval, then apply the acceptance rules you agreed with the vendor.

If quality differs across classes, languages, annotators, or collection conditions, plan checks for those groups too. A random batch sample can miss a rare but important category.

For the next steps after sampling, see the annotation guideline template and the QA Core batch review checklist.

Annotation QA sampling questions

What does the margin of error mean?

It is the planned precision around an estimated proportion, expressed in percentage points. For example, a margin of error of ±3% means approximately three percentage points on either side of the estimate under the sampling assumptions. A smaller margin generally requires more items.

Should I enter my target accuracy or my expected accuracy?

Enter the accuracy you expect based on prior results, not the minimum score required to pass. These are different inputs to your QA process. If past results are unavailable or unreliable, use 50% for a conservative planning sample.

Does this calculator tell me whether to accept the batch?

No. It plans a sample for estimating a pass proportion. It is not an acceptance-sampling plan with specified producer and consumer risks, and it cannot guarantee that a batch meets your target or contains no critical errors. Decide acceptance rules separately and assess uncertainty after the review.

Can I use it for image, text, audio, or video annotation?

Yes, if you define a consistent item-level pass or fail check and sample items appropriately. It does not directly calculate sample sizes for continuous scores such as average IoU or for inter-annotator agreement. Frames or labels from the same source may be correlated, so treating them as independent items can understate the sample needed.

Can I download an annotation QA sampling spreadsheet?

Yes. The free spreadsheet and error taxonomy use the same sample size formula. For the accuracy interval, batch decision, error log, and scorecards, see the QA Core kit.

This is a planning approximation for a simple random sample, not a guarantee of quality. Use additional checks for rare errors, dependent observations, or high-consequence use cases.