Statistics · Test comparison

A one-tailed test checks for an effect in one pre-specified direction, so all of the significance level sits in one tail of the null distribution. A two-tailed test checks for a difference in either direction and splits the significance level between both tails. The choice is set by the alternative hypothesis and must be made before seeing the data.

The one-tailed vs two-tailed test decision changes three things: the critical value, the p-value and the power of your study. This guide compares both versions on the same numbers, then shows when a one-sided test is justified and how to run each one. It belongs to our Statistics category.

One-tailed and two-tailed tests at a glance
FeatureOne-tailedTwo-tailed
Alternative hypothesisH₁: μ > μ₀ or H₁: μ < μ₀H₁: μ ≠ μ₀
Rejection regionOne tail with area αTwo tails with area α/2 each
Critical z at α = 0.051.6451.960
P-valueArea in the predicted tailArea in both tails
PowerHigher in the predicted direction, none in the otherLower per direction, covers both

What Is a One-Tailed Test? What Is a Two-Tailed Test?

The one-tailed vs two-tailed test distinction is defined by the alternative hypothesis. The null hypothesis (H₀) says there is no effect, for example μ = μ₀. The alternative hypothesis (H₁) states what you will conclude if the data contradict H₀. The significance level (α) is the false-positive rate you accept when H₀ is true. This guide uses α = 0.05 throughout.

The alternative hypothesis determines the number of tails. There are three forms:

  • Right-tailed: H₁: μ > μ₀. You look for values that are too large.
  • Left-tailed: H₁: μ < μ₀. You look for values that are too small.
  • Two-tailed: H₁: μ ≠ μ₀. You look for values that are too large or too small.

A one-tailed test concentrates all of α in one tail of the null distribution. A two-tailed test splits α and places α/2 in each tail. For a given test statistic there is one two-tailed test and two one-tailed tests, one for each direction.

Textbooks and software use several names for the same idea. One-sided and two-sided mean one-tailed and two-tailed. A one-tailed test tests a directional hypothesis, and a two-tailed test tests a nondirectional hypothesis. The tail belongs to the hypothesis, never to the data.

Four symbols recur below. The test statistic z follows a standard normal distribution under H₀. The test statistic t works the same way when you estimate the standard deviation from the sample, and it follows a t distribution with df degrees of freedom. The sample size is n. Cohen's d is an effect size: the mean difference divided by the standard deviation.

Equivalence and non-inferiority trials use one-sided tests by design. They follow their own rules and sit outside this guide.

Rejection Regions and Critical Values Side by Side

In a one-tailed vs two-tailed test at α = 0.05, the one-tailed version puts the whole 5% in one tail, so its critical value is smaller: z = 1.645 against 1.960 for a two-tailed test. The critical value is the cutoff for the test statistic. You reject H₀ when the statistic falls beyond it, in the direction named by H₁.

Critical values at α = 0.05
DistributionOne-tailedTwo-tailed
z (standard normal)1.6451.960
t, df = 101.81252.2281
t, df = 201.72472.0860
t, df = 241.71092.0639
t, df = 301.69732.0423

The two-tailed test compares the absolute value of the statistic with the larger cutoff, because 2.5% sits in each tail. A statistic of 1.80 lies beyond 1.645 but short of 1.960. The one-tailed test rejects H₀ there and the two-tailed test does not.

Normal curve with two shaded 2.5% tails beyond ±1.960 and a second curve with one shaded 5% tail beyond 1.645.
Same α, different rejection regions.

The t cutoffs are larger than the z cutoffs for small samples and shrink toward them as df grows. These cutoffs assume a roughly normal sampling distribution, which our guide to histogram shapes helps you check.

How the P-Value Changes: One-Sided vs Two-Sided

The p-value changes with the tail because it measures the area beyond your statistic in the direction or directions named by H₁. A p-value is the probability of a result at least as extreme as yours if H₀ were true; what a p-value means has its own guide.

Rules for symmetric statistics

The z and t distributions are symmetric around zero. For them, check the direction of the sample effect first, then apply one of two rules:

  • Effect in the predicted direction: halve the two-sided p-value only when the null distribution is symmetric and the observed effect points in the predicted direction.
  • Effect in the opposite direction: the one-sided p-value is 1 − ptwo-sided/2, which is large. It is not "half".

The wrong-direction case

Take z = −1.80 with a right-tailed alternative. The two-sided p-value is 0.0719, so the one-sided p-value is 1 − 0.0719/2 = 0.9641. The data lean away from H₁, and the test says so loudly. No amount of halving turns that into evidence for H₁.

Software defaults

Many packages print the two-sided p-value unless you ask otherwise. Look for an alternative argument in R and SciPy, or a tails argument in Excel. A p-value without its tail is hard to interpret.

100 coin flips, H₀: fair coin, right tail
HeadsOne-sided pTwo-sided p
590.04430.0886
600.02840.0569
610.01760.0352

The binomial distribution with p = 0.5 is symmetric, so each two-sided value is twice the one-sided value. At 60 heads, the one-sided test rejects at α = 0.05 and the two-sided test does not.

Worked Example 1: The Same z-Score, Two Different Decisions

One z-score can produce two decisions at α = 0.05. The only difference is the tail.

Question. A z-test on a sample mean gives z = 1.80. Is the mean different from, or greater than, the reference value μ₀?

Setup. H₀: μ = μ₀. The right-tailed alternative is H₁: μ > μ₀. The two-tailed alternative is H₁: μ ≠ μ₀.

Calculation. The area to the right of 1.80 is 0.0359. That is the one-tailed p-value. The two-tailed p-value doubles it: 2 × 0.0359 = 0.0719.

Result. The one-tailed test gives p = 0.0359, which is below 0.05, so you reject H₀. The two-tailed test gives p = 0.0719, so you fail to reject H₀.

Interpretation. The data are identical and the decisions differ. That gap is exactly why the tail has to be fixed in advance. An analyst who sees z = 1.80 and then picks the tail that rejects has made a choice the data cannot justify.

Normal curves marking z = 1.80: right tail area 0.0359 for one-tailed, two tails totalling 0.0719 for two-tailed.
One tail of 0.0359, or two tails adding to 0.0719.

Worked Example 2: A Two-Group t-Test in All Three Directions

A two-group t-test gives three p-values from one calculation, depending on the alternative you name. The numbers below are illustrative.

Question. Does a new page design (group A) increase mean time on task, in minutes, compared with the old design (group B)?

Setup. Ten users saw each design. Group A: 5.1, 4.8, 5.6, 5.3, 4.9, 5.8, 5.2, 5.5, 5.0, 5.4. Group B: 4.7, 4.9, 4.6, 5.0, 4.5, 5.1, 4.8, 4.4, 4.9, 4.7. H₀: μA = μB. We use Welch's t-test, which does not assume equal variances. The t-test guide walks through the procedure, and its own worked example reports a two-sided p of 0.000329; the one-sided value would be half of that only if the effect points the predicted way.

Calculation. Mean A is 5.26 (SD 0.320) and mean B is 4.76 (SD 0.222), so the difference is 0.50 minutes. See standard deviation explained if those SDs need a refresher. Welch's t is 4.0555 with 16.03 degrees of freedom.

import numpy as np
from scipy import stats

a = [5.1, 4.8, 5.6, 5.3, 4.9, 5.8, 5.2, 5.5, 5.0, 5.4]  # new design
b = [4.7, 4.9, 4.6, 5.0, 4.5, 5.1, 4.8, 4.4, 4.9, 4.7]  # old design

for alt in ("two-sided", "greater", "less"):
    r = stats.ttest_ind(a, b, equal_var=False, alternative=alt)
    print(alt, round(r.statistic, 4), round(r.df, 2), f"{r.pvalue:.6f}")

# two-sided 4.0555 16.03 0.000916
# greater   4.0555 16.03 0.000458
# less      4.0555 16.03 0.999542
Same data, three alternatives
AlternativeHypothesisP-value
two-sidedμA ≠ μB0.000916
greaterμA > μB0.000458
lessμA < μB0.999542

Result and interpretation. The sample difference favours A, so the greater p-value is half the two-sided value. The less value is close to 1 because the data run the other way. The three numbers are one calculation read three ways.

The confidence interval tells the same story. The two-sided 95% interval for the difference is 0.239 to 0.761 minutes. A one-tailed α = 0.05 test agrees with the one-sided 95% lower bound of 0.285 minutes, which is the lower end of the two-sided 90% interval (0.285 to 0.715).

Power and Sample Size: What a One-Tailed Test Buys You

At the same α, sample size and true effect, a one-tailed test has higher power in the predicted direction. Power is the probability of rejecting H₀ when a real effect exists. One minus power is the Type II error rate, the chance of missing a real effect.

Setup. Two independent groups of equal size n, d = 0.5, α = 0.05 and a target of 80% power. Power comes from a noncentral t distribution with noncentrality δ = d√(n/2).

Power at d = 0.5, α = 0.05
Scenarion per groupPower
Two-tailed, sized for 80%640.801
One-tailed, sized for 80%510.806
One-tailed, effect as predicted640.879
One-tailed, true d = −0.5640.000004
import numpy as np
from scipy import stats

def power(n, d, tails):
    df, nc = 2 * n - 2, d * np.sqrt(n / 2)
    if tails == 2:
        c = stats.t.ppf(0.975, df)
        return stats.nct.sf(c, df, nc) + stats.nct.cdf(-c, df, nc)
    return stats.nct.sf(stats.t.ppf(0.95, df), df, nc)

print(f"{power(64, 0.5, 2):.3f} {power(64, 0.5, 1):.3f} {power(64, -0.5, 1):.6f}")
# 0.801 0.879 0.000004

Interpretation. The one-tailed design needs 51 per group instead of 64, about 20% fewer participants. A normal approximation gives a ratio of roughly 0.79, which agrees. That saving is real only when the effect truly runs in the predicted direction.

Power curves at d = 0.5: one-tailed reaches 80% at 51 per group, two-tailed at 64 per group.
Fewer participants for 80% power, in one direction only.

What a One-Tailed Test Costs You

A one-tailed test cannot detect an effect in the opposite direction. The last row of the power table shows it: with a true effect of d = −0.5, the one-tailed power is 0.000004. A large harmful result registers as "no evidence", the same as no effect.

The second cost is credibility. Reviewers know that a one-sided p-value is half the two-sided one, so they ask why you chose it. Ruxton and Neuhäuser suggest authors should justify a one-tailed test by explaining why only one direction matters and why a large difference the other way would be treated like a non-significant result (Ruxton & Neuhäuser, 2010). Lombardi and Hurlbert make a broader case that one-tailed tests are often misprescribed and misused (Lombardi & Hurlbert, 2009).

Defenders of one-tailed tests answer that a two-tailed default can waste participants when the opposite effect is truly irrelevant. Both views agree on one point: the justification must exist before the data do.

When Is a One-Tailed Test Justified? A Decision Checklist

For a one-tailed vs two-tailed test decision, use a two-tailed test unless a result in the opposite direction would be impossible or would lead to exactly the same action as a null result, and you can justify and pre-register that before data collection. Five questions make this concrete:

  1. Did you fix the direction before you saw any data?
  2. Is an effect in the opposite direction impossible, or would it trigger the same action as no effect?
  3. Can you state that reason in one sentence and record it in a protocol or pre-registration?
  4. Will you report the p-value as one-sided, with α stated?
  5. Are you willing to treat a large opposite-direction difference as "no evidence of an effect" and move on?

If any answer is no, use a two-tailed test. All five must be yes before a one-tailed test is defensible.

Choosing the tail by scenario
ScenarioTestReason
Hypothesis says "differs" or "changes"Two-tailedH₁ has no direction
Theory predicts a direction, but the opposite result would matterTwo-tailedOpposite result changes the action
Opposite result and null result lead to the same action; reason recorded firstOne-tailedDirection fixed, reason documented
A/B test, ship only on improvement, reason in the test planEither; document itPractitioners disagree
A/B test where a drop in revenue or errors would matterTwo-tailedHarm must be detectable
Chi-square or F test of association or ANOVAUpper tailNot a directional hypothesis
Direction picked after looking at the dataTwo-tailedPost-hoc choice inflates errors

One-tailed vs two-tailed test for an A/B test

Some practitioners argue that if you will ship a change only when it improves a metric, the harmful tail is irrelevant, so a one-tailed test saves traffic. Others point out that a decline is still information, and a one-sided test cannot flag it. What each side risks is clear: the first risks missing harm, and the second risks a longer test.

Our default is two-tailed. Use one-tailed when the test plan states in advance that a decline and no change lead to the same decision, and keep a separate guardrail metric for harm. Pick metrics you would act on, as in these KPI examples. Teams running experiments on a shop can find related context on our ecommerce analytics page.

Why You Cannot Choose the Tail After Seeing the Data

Choosing the tail after seeing the data doubles the false-positive rate. A simulation shows how much.

Question. What happens if you look at which group is higher, then test in that direction?

Setup. 20,000 simulated experiments. Both groups are drawn from N(0, 1) with n = 30 per group, so H₀ is true every time and every rejection is a false positive. The seed is 42 and the nominal α is 0.05.

import numpy as np
from scipy import stats

rng = np.random.default_rng(42)
n, runs = 30, 20000
honest = peek = 0
for _ in range(runs):
    x, y = rng.standard_normal(n), rng.standard_normal(n)
    p_two = stats.ttest_ind(x, y).pvalue
    honest += p_two < 0.05
    peek += (p_two / 2) < 0.05   # tail chosen toward the observed difference
print(honest / runs, peek / runs)
# 0.0479 0.09565

Result. The honest two-tailed test rejects in 4.8% of runs (0.0479). The tail-after-looking test rejects in 9.6% (0.0957).

Interpretation. Picking the direction from the data and then testing at 0.05 is a two-tailed test at α = 0.10 in disguise. Switching to a one-tailed test after a non-significant two-tailed result is p-hacking. The ASA's statement on p-values stresses full reporting and transparency about how analyses were chosen (Wasserstein & Lazar, 2016). If a directional idea appears after the fact, state it as a hypothesis for the next study. Our p-value guide covers related misreadings.

Bar chart: false-positive rate 4.8% for a two-tailed test versus 9.6% when the tail is chosen after seeing data.
Choosing the tail after looking doubles the error rate.

When "Half the P-Value" Does Not Work: Asymmetric and Discrete Tests

Doubling and halving work only for symmetric null distributions. Fisher's exact test has a discrete, asymmetric null distribution, so the rule fails.

Take the table [[8, 2], [1, 5]]. The odds ratio is 20.0. The one-sided p-value (alternative="greater") is 0.0245. Doubling it gives 0.0490, but the exact two-sided p-value is 0.0350. SciPy's two-sided p-value adds the probability of every table that is no more likely than the observed one (SciPy documentation). Definitions of "two-sided" differ between packages for this reason.

Chi-square and F tests work differently again. Their usual statements reject only for large statistics, so they use the upper tail. A chi-square statistic of 3.84 with 1 df has an upper-tail p-value of 0.0500. An F statistic of 4.0 with (1, 20) df has 0.0593. These tests are one-tailed in the rejection region only. They do not test a directional hypothesis about a parameter, so do not force them into the left-tailed and right-tailed scheme.

How to Run One- and Two-Tailed Tests in Excel, R and Python

In all three tools you set the tail with one argument, and the default is two-sided. The outputs shown in this guide come from SciPy 1.18.1 and NumPy 2.5.3.

Excel. The tails argument is 1 or 2, and type is 1 (paired), 2 (equal variance) or 3 (unequal variance).

=T.TEST(array1, array2, 2, 3)
=T.TEST(array1, array2, 1, 3)
=T.DIST.RT(t, df)
=T.DIST.2T(ABS(t), df)

Microsoft's documentation says T.TEST computes a non-negative t-statistic when tails is 1 (Microsoft Support). The function returns only a p-value and never the sign of the difference, so the one-tailed result is half the two-tailed result whichever mean is larger. Check the direction of the means yourself. The t-test guide covers the tails argument in context.

R. Both t.test and binom.test take alternative with the values "two.sided" (default), "less" and "greater" (R documentation).

t.test(x, y, alternative = "greater")
binom.test(60, 100, alternative = "greater")

Python. SciPy uses alternative with "two-sided" (default), "less" and "greater" (SciPy documentation).

from scipy import stats
stats.ttest_ind(a, b, equal_var=False, alternative="greater")
stats.fisher_exact([[8, 2], [1, 5]], alternative="greater")

Online. Our t-test calculator has a Direction option with Two-tailed (the default), Left-tailed and Right-tailed. Its output row is labelled p-value without naming the tail, so note your direction when you report it. Our correlation calculator and linear regression calculator report two-sided p-values only. Any calculator's p-value is only as valid as its assumptions and the tail you chose.

Regression tables usually report a two-sided p-value for each coefficient, as covered in interpreting regression results. The same applies to the test for a correlation coefficient. For the wider picture of choosing tests, see our overview of statistical analysis.

How to Report the Choice

Report the tail, the α level and the reason, so a reader can judge the choice. These templates contain fields to replace:

We pre-specified a one-tailed test (H₁: [direction]) at α = 0.05 because [reason], and recorded this in [protocol or pre-registration] before data collection.

A two-tailed Welch t-test showed longer time on task with the new design (M = 5.26, SD = 0.32) than with the old design (M = 4.76, SD = 0.22), t(16.03) = 4.06, p = .0009, 95% CI of the difference [0.24, 0.76] (illustrative data).

Name the tail every time you give a p-value. A one-sided p-value reported without its label reads as a two-sided one.

Frequently Asked Questions

What is the difference between a one-tailed and a two-tailed test?

A one-tailed test looks for an effect in one pre-specified direction and puts all of α in one tail. A two-tailed test looks for a difference in either direction and puts α/2 in each tail. At α = 0.05 the z critical value is 1.645 for one-tailed and 1.960 for two-tailed. The alternative hypothesis, fixed before data collection, decides which one you run.

When should I use a one-tailed test?

Use one only when a result in the opposite direction would be impossible, or would lead to exactly the same action as no effect, and you can state and record that reason before collecting data. If you cannot meet both conditions, use a two-tailed test. Reviewers will expect the reason in your methods section.

Is a one-tailed test more powerful?

Yes, in the predicted direction. With d = 0.5, α = 0.05 and 64 per group, power is 0.801 two-tailed and 0.879 one-tailed. If the true effect runs the opposite way, one-tailed power falls to 0.000004, so the test has essentially no chance of detecting it. Higher power comes with that blind spot.

How do I convert a two-tailed p-value to a one-tailed p-value?

Halve the two-sided p-value only when the null distribution is symmetric and the observed effect points in the predicted direction. If the effect points the other way, the one-sided p-value is 1 − p/2, which is large. Fisher's exact test, chi-square and F tests do not follow the halving rule.

Can I switch to a one-tailed test if my two-tailed result is not significant?

No. Choosing the tail after seeing the data inflates false positives. In 20,000 simulated experiments with no true effect, picking the tail toward the observed difference gave a 9.6% false-positive rate at a nominal 5%. Switching after a non-significant two-tailed result is p-hacking. Report the two-tailed result and test any new direction in a new study.

Which is better for an A/B test?

Two-tailed is the safer default because it can flag a harmful change. A one-tailed test is defensible when the test plan states in advance that a decline and no change lead to the same decision, and a guardrail metric tracks harm separately. Fix the choice before launch, together with the sample size it implies.

Do one-tailed and two-tailed tests use the same critical value?

No. At α = 0.05 the z critical value is 1.645 for a one-tailed test and 1.960 for a two-tailed test. For t with 20 degrees of freedom the values are 1.7247 and 2.0860. The one-tailed cutoff is smaller because the whole 5% sits in a single tail, while the two-tailed test splits it into 2.5% per tail.

Does Fisher's exact test have one-tailed and two-tailed versions?

Yes. SciPy offers alternative values of "less", "greater" and "two-sided". The two-sided p-value sums the probabilities of every table no more likely than the observed one, so it is not always twice the one-sided value. For the table [[8, 2], [1, 5]] the one-sided p-value is 0.0245 and the two-sided p-value is 0.0350.

Key Takeaways

  • In a one-tailed vs two-tailed test, the alternative hypothesis sets the number of tails, and it must be fixed before data collection.
  • At α = 0.05 the z cutoff is 1.645 one-tailed and 1.960 two-tailed, so z = 1.80 gives p = 0.0359 one-tailed and p = 0.0719 two-tailed.
  • Halve the two-sided p-value only when the null distribution is symmetric and the observed effect points in the predicted direction.
  • A one-tailed test needs about 20% fewer participants (51 against 64 per group at d = 0.5) and has essentially no power in the opposite direction.
  • Default to a two-tailed test. Picking the tail after looking raised the false-positive rate from 4.8% to 9.6% in simulation.

References

← Back to Statistics guides