Quick answer
A one-tailed hypothesis predicts the direction of an effect (B converts better than A); a two-tailed one predicts only a difference. A one-tailed test puts all of α in one tail: it halves the p-value but cannot detect an effect the other way, so fix the direction in advance or use two-tailed.
Formula: Two-tailed p = 2 × P(Z ≥ |z|); one-tailed (upper) p = P(Z ≥ z). Critical z at α = 0.05: 1.960 two-tailed, 1.645 one-tailed.
What is a one-tailed hypothesis?
A one-tailed hypothesis (also called a directional or one-sided hypothesis) is an alternative hypothesis that predicts the direction of an effect: the new checkout converts better than the old one, or the new page loads faster. A two-tailed hypothesis (non-directional) predicts only that there is a difference, in either direction.
The choice decides where the rejection region of a hypothesis test sits. With a significance level of α = 0.05, a two-tailed test puts 0.025 in each tail of the test statistic's distribution; a one-tailed test puts all 0.05 in the predicted tail. UCLA's statistical consulting group describes it this way, and adds that for symmetric distributions such as the normal and t the one-tailed p-value is half the two-tailed one when the effect goes in the predicted direction.
That halving is the reason one-tailed tests are tempting and the reason they are risky. The rule this page argues for: a one-tailed test halves the p-value but is blind to effects in the other direction, so use it only when the direction was fixed before the data arrived and a change in the other direction would lead to the same decision as no change. Otherwise, use two-tailed.
One-tailed vs two-tailed hypothesis tests side by side
| Two-tailed test | One-tailed test (upper) | |||
|---|---|---|---|---|
| Null hypothesis | p_B = p_A | p_B ≤ p_A | ||
| Alternative hypothesis | p_B ≠ p_A | p_B > p_A | ||
| Where α sits (α = 0.05) | 0.025 in each tail | 0.05 in the upper tail | ||
| Critical z value | ±1.960 | +1.645 | ||
| p-value from z | 2 × P(Z ≥ \ | z\ | ) | P(Z ≥ z) |
| Detects harm (B worse than A)? | Yes | No | ||
| Sample size for 80% power, 4.0% → 4.6% | 17,940 per group | 14,131 per group |
A lower one-tailed test is the mirror image (alternative p_B < p_A, critical value −1.645). It is used when only a decrease matters, for example testing whether a page change reduced error rates.
Formulas for p-values and critical values
For a test statistic z (for conversion tests, the two-proportion z statistic):
- Two-tailed p-value = 2 × P(Z ≥ |z|)
- One-tailed (upper) p-value = P(Z ≥ z), which equals half the two-tailed value when z > 0 and 1 minus half of it when z < 0
- Critical value at α = 0.05: 1.960 two-tailed, 1.645 one-tailed; at α = 0.01: 2.576 and 2.326
The two-proportion z statistic used below is z = (p_B − p_A) ÷ √[p̄(1 − p̄)(1/n_A + 1/n_B)], where p̄ is the pooled conversion rate. What a p-value means, and what it does not, is covered separately.
Worked example: one conversion test evaluated both ways
Sample data: a checkout test with 5,000 visitors in each group. Version A converts 200 (4.0%), version B converts 230 (4.6%).
- Pooled rate p̄ = 430 ÷ 10,000 = 4.3%.
- Standard error = √(0.043 × 0.957 × (1/5,000 + 1/5,000)) = 0.004057.
- z = (0.046 − 0.040) ÷ 0.004057 = 1.479.
- One-tailed p = P(Z ≥ 1.479) = 0.070. Two-tailed p = 0.139.
Neither crosses 0.05. A team tempted to switch to one-tailed after seeing p = 0.139 would still not reach significance here, and switching would be invalid anyway.
Now the same rates with 7,500 visitors per group (300 vs 345 conversions):
| Visitors per group | z | One-tailed p | Two-tailed p | Significant at 0.05? |
|---|---|---|---|---|
| 5,000 | 1.479 | 0.070 | 0.139 | Neither |
| 7,500 | 1.811 | 0.035 | 0.070 | One-tailed only |
At 7,500 per group the result is "significant" one-tailed and not two-tailed. This is the zone where the choice of test decides the headline, which is why it must be fixed before the test starts.
The cost of the one-tailed test shows up when the effect goes the other way. Suppose version B had converted 170 of 5,000 (3.4%), 0.6 points worse. Then z = −1.589. The two-tailed p is 0.112: not significant, but the report shows a drop worth watching. The upper one-tailed p is P(Z ≥ −1.589) = 0.944: the test simply says "no evidence B is better", with nothing in the statistic that flags a possible loss.
The benefit is sample size. Using the standard formula n = (z_α + z_β)² × [p_A(1 − p_A) + p_B(1 − p_B)] ÷ (p_B − p_A)² with 80% power (z_β = 0.842), detecting 4.0% → 4.6% needs 17,940 visitors per group two-tailed (z = 1.960) and 14,131 one-tailed (z = 1.645), 21% fewer. That saving is real only if the one-tailed question was the right question.
When should you use a one-tailed test?
Answer three questions before the test starts, and write the answers down:
- Was the direction stated before any data was seen? If not, use two-tailed. Choosing the tail after looking at the data doubles the actual false-positive rate for that test.
- Would a change in the other direction lead to the same action as no change? If B being worse would make you act differently (roll back, investigate, alert someone), use two-tailed, because you need to detect it.
- Is the one-sided question the real decision? Non-inferiority questions ("the cheaper option is not worse than the current one by more than a margin") are legitimately one-sided. "Is the new design better?" usually is not, because a worse design also matters.
Only if the answers are yes, yes and yes does a one-tailed test fit. A conservative alternative used in drug regulation: if you do run a one-sided test, use half the usual α. The ICH E9 guideline on statistical principles for clinical trials says that setting the type I error for one-sided tests at half the conventional two-sided level is preferable in regulatory settings, because it keeps results consistent with two-sided confidence intervals. In practice that means α = 0.025 one-sided, the same critical value (1.960) as a two-tailed test at 0.05, which removes the sample-size saving and the temptation with it.
For A/B tests on websites and apps, the default is two-tailed at α = 0.05. Reporting a confidence interval for the difference alongside the p-value shows the size and direction of the effect either way; the statistical significance guide covers how to read the two together.
Common mistakes with one- and two-tailed tests
- Switching after the fact. Running two-tailed, getting p = 0.07, then reporting one-tailed p = 0.035. UCLA's guidance calls choosing a one-tailed test only to attain significance inappropriate.
- Calling a one-tailed "no result" a neutral result. An upper one-tailed test that is not significant says nothing about whether B was worse.
- Using a one-tailed test because "we only care about improvements". You also care about not shipping a loss, so the other tail matters.
- Mixing tails across metrics. One-tailed on conversion, two-tailed on revenue per visitor, in the same report, makes the evidence look stronger on the metric the team hoped would move.
- Forgetting the tail in the sample size. A sample size computed one-tailed and analyzed two-tailed leaves the test underpowered: 14,131 per group gives about 70% power two-tailed for the example effect, not 80%.
Counting the inputs in TapCub
TapCub does not split traffic or run A/B tests, so it neither picks the tail nor computes the p-value. It can supply the counts that go into the formula above, measured the same way for both versions:
- Count visitors and conversions per version. If your testing tool sends an exposure event and the conversion event with the assigned version as a property, create event goals in Web analytics › Goals with a property condition (for example
variantequalsB). Each goal row shows distinct people who converted, so the exposure goal gives the visitors per version and the conversion goal gives the converters per version. - Use the goal denominator consistently. In Web analytics › Goals the conversion rate's denominator is distinct visitors in the range, not sessions. Keep the same unit for both versions and for the baseline you use in the sample-size step.
- Keep bots out of the denominator. Bots detected by TapCub are counted separately and do not inflate visitor counts, which matters when a crawler hits one version more than the other.
- Mark the test window. Add the start and end of the test in Configuration › Annotations so later readers know which dates the counts belong to.
Run the test itself, including the one- or two-tailed decision recorded before launch, in your experimentation tool or a statistics package.
Sources
- UCLA Office of Advanced Research Computing. FAQ: What are the differences between one-tailed and two-tailed tests? — α allocation (0.025 per tail vs 0.05 in one tail), halving the p-value, and why switching to one-tailed to attain significance is inappropriate. Checked 2026-11-28.
- ICH. E9 Statistical Principles for Clinical Trials, Step 4 version dated 5 February 1998, section 5.5 — one-sided tests at half the conventional type I error preferred in regulatory settings. Checked 2026-11-28.
- Graeme D. Ruxton & Markus Neuhäuser. When should we use one-tailed hypothesis testing? Methods in Ecology and Evolution 1(2), 2010. Checked 2026-11-28.
Was this explanation clear?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

Product Experience Specialist
Writes about product experience, practical workflows, and growth, turning complex processes into clear steps for everyday decisions.