How many test cases do I need to test a prompt?
Start with 25 to 30 realistic test cases, including hard ones, then look at the score ranges rather than the scores. If the top two ranges still overlap and the choice matters, add more cases; about four times as many makes a range half as wide.
One real test, graded blind. Open the card for every answer and grade.
What test cases are for
A test case is one realistic input your prompt will see: one customer email, one row of a table, one user question. You run every prompt and every model on the same cases, grade every answer against the same guide, and average the grades.
The question this guide answers is how many cases it takes before that average means something.
The range is the answer
Every score on PromptJury comes with a likely range: where the score would land on other test cases like these. The range comes from resampling the test cases 1,000 times.
A narrow range means more cases would not change much.
A wide range means the score could move a lot on a different set of cases.
So the right number of test cases is not fixed. It is however many it takes for the ranges to answer your question.
What 30 cases told us
The verdict above tested one support-reply prompt on 30 customer emails for a small online store, with four models, graded blind by two jurors from different labs.
| Model | Score out of 10 | Likely range | Cost per 1,000 runs |
|---|---|---|---|
| GLM 5.3 Flash | 7.6 | 7.2 to 7.9 | $0.029 |
| GPT-OSS 120B | 7.2 | 6.6 to 7.8 | $0.058 |
| DeepSeek V4 Flash | 6.8 | 6.4 to 7.3 | $0.032 |
| GPT-4o mini | 6.6 | 6.1 to 7.0 | $0.13 |
What 30 cases could tell us: GLM 5.3 Flash's range (7.2 to 7.9) and GPT-4o mini's (6.1 to 7.0) do not touch. Thirty cases were plenty to say GLM 5.3 Flash is better.
What they couldn't: GPT-OSS 120B's range (6.6 to 7.8) overlaps GLM 5.3 Flash's. The two are 0.4 apart, so the verdict calls them too close to call: either is a fair pick, and GLM 5.3 Flash costs less. Thirty cases were not enough to separate those two.
The rule of thumb
Ranges shrink with the square root of the number of cases. To make a range half as wide, you need about four times as many cases. Going from 30 cases to 120 would roughly halve the ranges above.
Start with 25 to 30 cases, including hard ones.
Read the ranges of the top two. If they don't overlap, you have your answer.
If they overlap and the choice matters, add cases until they separate, or until you accept that the two are equally good.
If the choice doesn't matter, pick the cheaper option and move on.
What to put in them
The mix matters more than the number. Include easy cases, but also the ones that break prompts: requests just outside your policy, missing details, upset customers.
In this test, the jurors' complaints came from exactly those. GPT-OSS 120B treated unclear cases as covered, such as missing parts or a wrong item, and ignored emotional context like a third angry email. GPT-4o mini denied a gift card refund with no basis. Even the winner sometimes invented policy exclusions. None of that shows up in five easy refund emails.
You can write cases yourself, pull them from your real inbox, or let the free test case generator below draft them for you to edit.
Common mistakes
Testing on the examples you wrote the prompt from. The prompt will look better than it is. Use fresh cases.
Reading the score without the range. A 7.6 against a 7.2 means nothing until you know whether the ranges overlap.
Only easy cases. Every model handles the easy ones; the differences live in the hard ones.
Adding cases forever. If two options stay too close to call after you've added cases, they are probably equally good for your job. Let price decide.
Questions people ask
- Is five or ten examples enough to test a prompt?
- It is enough to catch a prompt that is plainly broken, but not to choose between two prompts or models that are both decent. With so few cases, one odd answer moves the average a lot, so the score range is wide and close comparisons can't be settled.
- Why do more test cases make the result more reliable?
- Each case is a sample of what the prompt will face. The range shows where the score would likely land on other cases like these, and it narrows as you add cases. It narrows with the square root of the count, so four times the cases makes it about half as wide.
- Should test cases be easy or hard?
- Both. Easy cases show the prompt works at all; hard ones show where it breaks. In the test on this page, the jurors' complaints came from cases like missing parts, a wrong item, a gift card refund and a third angry email, not from the simple refunds.
- Can I generate test cases instead of writing them?
- Yes. You can write them, pull them from real customer messages, or have them drafted and then edit them. Whichever you use, check that the hard cases your users actually send are in the set.