AnswerLive data
Can Claude calculate A/B test sample size?
It knows the formula, but the exact number is easy to get wrong. Sample size depends on z-scores, pooled or unpooled variance and one or two sided tests, and online calculators don't agree on those choices, so a figure from memory can be off by thousands of users. Connect the free A/B Test Sample Size Calculator server and Claude gets the exact count per arm, says which method it used, and turns traffic into days to run the test.
What Claude does alone, and what needs the server
Claude on its own
- Explains power, significance and minimum detectable effect.
- Gives a rough sample size for a common case.
With the A/B Test Sample Size Calculator server
- The exact sample size per arm for any baseline, lift, alpha, power and number of arms.
- Test duration from daily traffic, rounded to full weeks.
- Significance tests, Fisher exact test and the cost of peeking.
A real call to the live server
We sent this to the hosted server on 2026-11-03. The answer below is the server's own text, not a mock-up. Live values will differ when you ask.
You ask
My checkout converts at 4%. How many users do I need to detect a 10% relative lift?
Tool call
calculate_sample_size {"baseline_rate":0.04,"mde":0.1} Server answer
To detect a change from 4.00% to 4.40% (10.0% relative MDE) with 80% power at alpha 0.05 two-sided, you need 39,475 users in control and in each variant: 78,950 in total across 2 arms. Evan Miller's calculator gives 38,210 per arm for the same inputs (it uses the baseline variance in both terms and always two-sided alpha).
You ask
We get 3,000 visitors a day into the test. How long will it take?
Tool call
estimate_test_duration {"daily_visitors":3000,"baseline_rate":0.04,"mde":0.1} Server answer
39,475 users per arm x 2 arms = 78,950 users. At 3,000 test visitors a day that takes 27 days; run 4 full weeks (28 days) so every weekday is covered equally.
Connect it in 1 minute
One URL, no token, no account. In Claude.ai or Claude Desktop open Settings, then Connectors, then Add custom connector, and paste the URL.
Connector URL
https://ab-test-sample-size-calculator-mcp.lipmichal.workers.dev/mcp
Claude Code
claude mcp add --transport http ab-test-sample-size-calculator https://ab-test-sample-size-calculator-mcp.lipmichal.workers.dev/mcp
Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"ab-test-sample-size-calculator": {
"url": "https://ab-test-sample-size-calculator-mcp.lipmichal.workers.dev/mcp"
}
}
} VS Code (.vscode/mcp.json)
{
"servers": {
"ab-test-sample-size-calculator": {
"type": "http",
"url": "https://ab-test-sample-size-calculator-mcp.lipmichal.workers.dev/mcp"
}
}
} All 5 tools, sources and more prompts: A/B test sample size calculator MCP server · Abwex
Questions
Can Claude calculate A/B test sample size?
Why does Evan Miller's calculator give a different number?
Can I stop the test early if it looks significant?
Is the server free?
More questions people ask Claude
- Can Claude check the current gold price?
- Can Claude check lake levels?
- Can Claude look up the current minimum wage?
- Can Claude calculate the no tax on overtime deduction?
- Can Claude adjust a price for inflation?
- Can Claude look up GSA per diem rates?
- Can Claude calculate a 2026 mileage deduction?
- Can Claude count business days?
- Can Claude look up the 2027 401(k) limits?
- Can Claude check the current silver price?
- Can Claude check river levels?
- Can Claude tell me my SAT percentile?
- Can Claude convert cups to grams?
- Can Claude calculate DSCR for a rental loan?
- Can Claude calculate my take-home pay?
- Can Claude work out UK take-home pay for 2026/27?
- Can Claude calculate my 2026 ACA premium tax credit?
- Can Claude calculate calories and nutrition for a recipe?
- Can Claude look up 2026 AP score distributions?
- Can Claude calculate a Section 179 deduction?
- Can Claude calculate the car loan interest deduction?
- Can Claude find the subdomains of a website?
- Can Claude calculate a RAP student loan payment?
- Can Claude tell the time in another time zone?
- Can Claude convert currency at today's exchange rate?
- Can Claude convert raw to cooked weight?
- Can Claude calculate vegetable yield after peeling and trimming?