TapCub is live — analytics, insights and live chat, free on one platform
Glossary

One-Tailed vs Two-Tailed Test: Definition and When to Use Each

A one-tailed hypothesis predicts the direction of an effect; a two-tailed one predicts only a difference. What each does to the p-value, critical value and sample size, worked on one conversion test, with a rule for choosing.

Lin Zhou Reviewed by Emma Collins Also called one-sided hypothesis Last updated Nov 28, 2026 Glossary

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 testOne-tailed test (upper)
Null hypothesisp_B = p_Ap_B ≤ p_A
Alternative hypothesisp_B ≠ p_Ap_B > p_A
Where α sits (α = 0.05)0.025 in each tail0.05 in the upper tail
Critical z value±1.960+1.645
p-value from z2 × P(Z ≥ \z\)P(Z ≥ z)
Detects harm (B worse than A)?YesNo
Sample size for 80% power, 4.0% → 4.6%17,940 per group14,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%).

  1. Pooled rate p̄ = 430 ÷ 10,000 = 4.3%.
  2. Standard error = √(0.043 × 0.957 × (1/5,000 + 1/5,000)) = 0.004057.
  3. z = (0.046 − 0.040) ÷ 0.004057 = 1.479.
  4. 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 groupzOne-tailed pTwo-tailed pSignificant at 0.05?
5,0001.4790.0700.139Neither
7,5001.8110.0350.070One-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:

  1. 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.
  2. 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.
  3. 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:

  1. 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 variant equals B). 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.
  2. 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.
  3. 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.
  4. 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

Was this explanation clear?

We use your answers to fix and expand this page.

Lin Zhou

Product Experience Specialist

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

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

What is an example of a one-tailed hypothesis?

"The new checkout page has a higher conversion rate than the current one" is one-tailed: H0 is p_new ≤ p_old and H1 is p_new > p_old. The two-tailed version is "the conversion rates differ", H1: p_new ≠ p_old, which would also flag the new page doing worse.

Is a one-tailed p-value half of the two-tailed p-value?

For symmetric test statistics such as z and t, yes, when the result goes in the predicted direction: a two-tailed p of 0.139 becomes 0.070. When the result goes the other way, the one-tailed p is 1 minus half the two-tailed value, 0.944 in this page's harm example.

When should I use a two-tailed test?

Use two-tailed whenever the direction was not fixed before seeing data, or when an effect in the opposite direction would change what you do, such as rolling back a worse page. For website and app A/B tests that covers most cases, so two-tailed at α = 0.05 is the usual default.

Does a one-tailed test need a smaller sample size?

Yes. Detecting 4.0% → 4.6% with 80% power needs 14,131 visitors per group one-tailed versus 17,940 two-tailed, about 21% fewer, because the critical value drops from 1.960 to 1.645. If you then analyze two-tailed, power falls to about 70%.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics