Acceptance Criteria

What is Acceptance Criteria?

Acceptance criteria are the pass-or-fail conditions written for a user story or backlog item that define when it counts as done. They describe expected behavior from the user's side, giving product, engineering and QA one shared test.

Updated November 2026 · 3 min read


Acceptance criteria are the specific, testable conditions a piece of work must satisfy before it is accepted as complete. In agile teams they are attached to a user story or backlog item and describe what the result must do from the user's point of view, so that product, design, engineering and QA share one definition of "working."

Good acceptance criteria prevent the most expensive kind of rework: building the right feature the wrong way. They make scope explicit, give testers something concrete to check and give the product owner a clear basis for accepting or rejecting the work at the end of a sprint.

What good acceptance criteria look like

  • Testable. Each criterion has a clear pass or fail result. "The page loads quickly" is not testable; "the results page loads in under 2 seconds for 95% of requests" is.
  • Outcome-focused. They describe behavior, not implementation. "The user can filter orders by date" leaves the team free to decide how.
  • Specific to the item. They apply to this story, unlike general quality standards that apply to all work.
  • Complete enough. They cover the main path, key alternative paths and important error cases, including relevant edge cases.
  • Agreed before work starts. Criteria are written or confirmed during backlog refinement, not after the code is done.

Formats for writing acceptance criteria

Scenario-based (given/When/Then)

This format comes from behavior-driven development, introduced by Dan North. Each scenario states a starting context, an action and an expected result: "Given a registered user on the login page, when they request a password reset, then they receive a reset email within five minutes." Scenarios translate directly into automated tests.

Rule-based checklist

A simple list of conditions, each of which must be true. It is faster to write and suits items where behavior is easy to state, such as validation rules or display requirements.

Many teams mix the two: scenarios for user flows, a checklist for rules and non-functional conditions.

Acceptance criteria vs. definition of done

AspectAcceptance criteriaDefinition of done
ScopeOne story or backlog itemEvery item the team delivers
ContentWhat this feature must doQuality standards such as code review, tests passing and documentation updated
Who writes itProduct owner with the teamThe team, often with engineering leadership
ChangesFor each itemRarely, as the team's standards evolve

An item is finished only when it meets both its acceptance criteria and the team's definition of done.

Acceptance criteria example

Consider a hypothetical expense app with this story: "As an employee, I want to upload a receipt photo to an expense so that my manager can approve it without paper."

  1. Given an open draft expense, when the user uploads a JPG, PNG or PDF of up to 10 MB, then the file is attached and a thumbnail appears.
  2. Given a file larger than 10 MB, when the user uploads it, then the upload is rejected with the message "Files must be 10 MB or smaller."
  3. Given an unsupported file type, when the user uploads it, then the upload is rejected and the supported types are listed.
  4. Given an expense with a receipt attached, when the manager opens it for approval, then the receipt can be viewed full size.
  5. Given a submitted expense, when the employee views it, then the receipt can be viewed but not removed.

These five criteria tell QA exactly what to test and settle questions that would otherwise come up mid-sprint, such as whether PDFs count and what happens after submission.

How to write acceptance criteria

  1. Start from the user goal in the story, not the UI.
  2. Write the main path first, then alternatives and failures.
  3. Review in refinement with engineering and QA, who often spot missing cases.
  4. Size the story. If the list grows past seven or eight criteria, consider splitting the story.
  5. Use them to accept the work. The product owner checks each criterion during review or a demo.

Common pitfalls

  • Prescribing the design. "Add a blue button in the top right" constrains the team without stating the need.
  • Vague words. "Fast," "easy" and "user-friendly" cannot be tested. Replace them with numbers or observable behavior.
  • Happy path only. Most defects live in error handling and unusual inputs.
  • Writing them after development. Criteria written to match what was built verify nothing.
  • Copying the definition of done. Repeating "unit tests written" on every story adds noise and hides the criteria that matter.

Acceptance criteria connect requirements to testing. They are the basis for an acceptance test, support user acceptance testing and are refined as part of backlog refinement.

Frequently asked questions

What is the difference between acceptance criteria and the definition of done?

Acceptance criteria apply to one story and describe what that feature must do; the product owner usually writes them with the team. The definition of done applies to every item and sets shared quality standards such as code review, passing tests and updated documentation, and it changes rarely. Work is finished only when it meets both its acceptance criteria and the definition of done.

How do you write acceptance criteria in Given/When/Then format?

Given/When/Then comes from behavior-driven development. Each scenario states a starting context, an action and an expected result, for example: given a file larger than 10 MB, when the user uploads it, then the upload is rejected with a size message. Write the main path first, then alternatives and error cases. Each scenario can become an automated test.

How many acceptance criteria should a user story have?

There is no fixed number, but if a user story's acceptance criteria grow past seven or eight, consider splitting the story. The list should cover the main path, key alternative paths and important error cases, without repeating general standards such as unit tests that belong in the definition of done. Each criterion should have a clear pass or fail result.