Can you do a t-test with n less than 30?

By Jude Wallis · Published

Yes. A t-test has no minimum sample size. The AP condition is normal or large sample: the population is approximately normal, or n is at least 30, or a graph of your sample shows no strong skew and no outliers. Any one of the three is enough.

AP Statistics: Unit 4 (topics 4.1 Sampling Distributions for Sample Means, 4.4 Setting Up a Test for a Population Mean or Population Mean Difference, 4.5 Carrying Out a Test for a Population Mean or Population Mean Difference). The normal or large sample condition comes from topic 4.1 (sampling distributions for sample means) and is applied when setting up and carrying out a test for a population mean in topics 4.4 and 4.5 of Unit 4 in the Fall 2026 AP Statistics course.

Yes, and here is the rule that replaces "n at least 30"

You can run a t-test with n=12n = 12. You can run one with n=8n = 8. The t procedure was built for small samples: William Gosset published it in 1908 while working at a brewery, where the batches he could test were tiny and the normal-based methods of the day were too optimistic.

The "n at least 30" line you were taught is not a requirement. It is one of three ways to satisfy a single condition, and the AP course calls that condition normal or large sample. The full sentence is:

The population is approximately normal, or n30n \ge 30, or a graph of the sample data shows no strong skewness and no outliers.

Read the "or" as an actual or. Satisfy any one branch and the condition is met. When n<30n < 30, you take the third branch: graph the sample, look at it, and say what you see. That is the sentence the rubric is waiting for, and it is the sentence most students never write because they assumed the procedure was off limits.

The three conditions for a one-sample t procedure

Every t procedure in Unit 4 asks for the same three checks before you compute anything. Small nn only affects the third.

ConditionWhat you checkEffect of small n
RandomThe data come from a random sample or a randomized experimentNone
10 percentSampling without replacement, so n0.10Nn \le 0.10NEasier to satisfy
Normal or large sampleNormal population, or n30n \ge 30, or a graph with no strong skew and no outliersThis is the one to argue

The third condition exists for one reason: the t procedure needs the sampling distribution of xˉ\bar{x} to be roughly normal. Sample size is not the only thing that delivers that. A normal population delivers it at any nn, even n=3n = 3. A sample that graphs as roughly symmetric with no outliers is evidence that the population is not badly shaped, which is enough in practice.

For paired data, run all three checks on the differences, not on the two original lists. See paired vs two-sample t-test if you are not sure which you have.

What to write on an FRQ when n is under 30

Condition points are given for naming the condition and citing evidence, in context. With a small sample, the graph is your evidence. Write something close to this:

"Normal or large sample: n=12<30n = 12 < 30, so I cannot use the sample size. The problem does not state that the population is normal. A dotplot of the 12 completion times is roughly symmetric with no outliers, so it is reasonable to treat the sampling distribution of xˉ\bar{x} as approximately normal."

Three things earn the point there.

  1. You named the condition instead of just writing "normality."
  2. You ruled out the other two branches out loud, which shows you know there are three.
  3. You cited the graph and described its shape, in context, rather than saying "the graph looks fine."

If the problem hands you a dotplot, boxplot, or stemplot, use it: that graph is there because the sample is small and the reader wants you to comment on it. If the problem gives you raw data and no graph, the 1.5 times IQR rule is a fast, defensible outlier check you can show in one line. More on rubric wording in the AP Statistics FRQ guide.

Where "n at least 30" came from, and why it is a slogan

The number 30 is a rule of thumb attached to the central limit theorem. The CLT says the sampling distribution of xˉ\bar{x} approaches normal as nn grows, whatever the population shape. It never names a sample size, because the sample size you need depends entirely on how skewed the population is. Textbooks picked 30 as a round number that works for most mildly skewed populations, and it hardened into a rule nobody questions.

Two consequences follow, and they point in opposite directions.

Below 30, the procedure is often still fine. t procedures are robust, meaning the true error rate stays close to the stated one even when the population is not exactly normal. For a symmetric population, a t-test with n=10n = 10 behaves well.

Above 30, the procedure can still be wrong. A strongly skewed population with one extreme outlier can defeat n=40n = 40. The condition is about shape, and n30n \ge 30 is only a shortcut for assuming the shape has been washed out.

So n=30n = 30 is neither a floor nor a guarantee. It is a branch of an or-statement. The other two branches work just as hard.

When a small sample really does block the test

Sometimes the answer is genuinely no, and knowing when is worth as many points as knowing when yes.

The condition fails when n<30n < 30, the population is not stated to be normal, and the sample shows strong skewness or an outlier. All three at once. That combination means the third branch has nothing to stand on, and you should say the t procedure is not appropriate rather than compute a number you cannot defend.

A harder case: n<30n < 30, no normality stated, and the problem gives you a summary such as n=11n = 11, xˉ=14.2\bar{x} = 14.2, and s=3.1s = 3.1 but no data and no graph. You have no way to check the shape, so you say that instead of pretending you did. Write that. "The sample size is 11 and the population shape is not given, so the normal or large sample condition cannot be checked." Naming the missing information is the correct answer; inventing a shape is not.

One more trap. A single outlier does not merely dent the condition, it distorts xˉ\bar{x} and inflates ss at the same time, and with a small nn one point carries enormous weight. That is why the rule bans outliers outright instead of asking you to judge how bad they are.

What a small sample costs you

A small sample is allowed, but it is not free. Nothing about the mechanics changes: the statistic is still

t=xˉμ0s/nt = \frac{\bar{x} - \mu_0}{s / \sqrt{n}}

with df=n1df = n - 1. What changes is how much that statistic buys you.

Fewer degrees of freedom means heavier tails in the t distribution and a larger critical value. At 95% confidence, t=2.201t^* = 2.201 with df=11df = 11 but only t=2.045t^* = 2.045 with df=29df = 29, and z=1.96z^* = 1.96 in the limit. Combined with a larger s/ns / \sqrt{n}, a small sample gives a noticeably wider confidence interval and a smaller chance of detecting a real effect. That reduced chance is the definition of low power.

The practical read: a small sample makes it harder to reject the null hypothesis, not easier. So failing to reject with n=9n = 9 tells you very little, because the test had little power to detect a difference in the first place. Say that in your conclusion rather than claiming the null is true. Critical values by df are in the t-table, and you can check any small-sample computation against the one-sample t-test calculator.

Mistakes that lose condition points

  • Refusing to run the test because the sample is small. The most expensive mistake on this page. When n<30n < 30, check the graph instead.
  • Switching to a z-test once the sample passes 30. The population standard deviation σ\sigma is still unknown, so it is still a t-test. See t-test vs z-test.
  • Writing "n is large enough" with no number. State nn, state which branch you are using, and why.
  • Rejecting the sample because the dotplot is not bell-shaped. The sample only has to show no strong skew and no outliers. It does not have to look bell-shaped, and with n=8n = 8 nothing looks bell-shaped.
  • Using n for the degrees of freedom. For a one-sample t procedure df=n1df = n - 1. With a small sample that off-by-one shifts the p-value, and near α\alpha it can flip the decision.
  • Checking conditions on the raw groups in a paired design. Check the differences.
  • Concluding "there is no difference" after failing to reject with a tiny sample. Say the data do not provide convincing evidence of a difference, and mention that the small sample limits the power to detect one.

n = 12: check the condition with a graph, then run the test

A lab manual claims the mean time to finish an experiment is 45 minutes. A teacher takes a random sample of 12 students from the 300 enrolled and records completion times, in minutes: 41, 43, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54. A dotplot of these times is roughly symmetric. Test at α=0.05\alpha = 0.05 whether the true mean completion time differs from 45 minutes.

  1. Random: the problem states a random sample of 12 students. Met.

  2. 10 percent: 120.10×300=3012 \le 0.10 \times 300 = 30, so sampling without replacement is fine. Met.

  3. Normal or large sample: n=12<30n = 12 < 30 and the population is not stated to be normal, so use the graph. Sorted, the data are 41, 43, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54. With n=12n = 12, Q1=44+452=44.5Q_1 = \frac{44+45}{2} = 44.5 and Q3=51+522=51.5Q_3 = \frac{51+52}{2} = 51.5, so IQR=7IQR = 7. The fences are 44.51.5(7)=3444.5 - 1.5(7) = 34 and 51.5+1.5(7)=6251.5 + 1.5(7) = 62; every value lies between them, so there are no outliers, and the dotplot is roughly symmetric. Met.

  4. State the hypotheses. Let μ\mu be the true mean completion time for all students in the course. H0:μ=45H_0: \mu = 45 versus Ha:μ45H_a: \mu \ne 45.

  5. Sample mean: the values sum to 41+43+44+45+46+48+49+50+51+52+53+54=57641+43+44+45+46+48+49+50+51+52+53+54 = 576, so xˉ=57612=48\bar{x} = \frac{576}{12} = 48 minutes.

  6. Deviations from 48: 7,5,4,3,2,0,1,2,3,4,5,6-7, -5, -4, -3, -2, 0, 1, 2, 3, 4, 5, 6. Their squares: 49,25,16,9,4,0,1,4,9,16,25,3649, 25, 16, 9, 4, 0, 1, 4, 9, 16, 25, 36, which sum to 194194.

  7. Sample variance s2=194121=19411=17.6364s^2 = \frac{194}{12 - 1} = \frac{194}{11} = 17.6364, so s=17.6364=4.1996s = \sqrt{17.6364} = 4.1996 minutes.

  8. Standard error: sn=4.199612=4.19963.4641=1.2123\frac{s}{\sqrt{n}} = \frac{4.1996}{\sqrt{12}} = \frac{4.1996}{3.4641} = 1.2123.

  9. Degrees of freedom =n1=11= n - 1 = 11. Test statistic t=48451.2123=31.2123=2.475t = \frac{48 - 45}{1.2123} = \frac{3}{1.2123} = 2.475.

  10. P-value: in the df=11df = 11 row, 2.201<2.475<2.7182.201 < 2.475 < 2.718, so the upper-tail area is between 0.01 and 0.025 and the two-sided p-value is between 0.02 and 0.05. Technology gives p=0.031p = 0.031.

  11. Compare to α\alpha: 0.031<0.050.031 < 0.05, so reject H0H_0.

One-sample t-test, t=2.475t = 2.475 with df=11df = 11 and p=0.031p = 0.031. Since p<0.05p < 0.05, reject H0H_0. There is convincing evidence that the true mean completion time differs from 45 minutes. Note that the whole condition check rested on the graph, not on the sample size.

n = 8 with an outlier: the condition fails, and you say so

A clinic records the wait time, in minutes, for a random sample of 8 patients: 2, 3, 3, 4, 5, 6, 7, 28. The population is 500 patients seen that month, and nothing is said about its shape. A student wants a one-sample t-interval for the mean wait time. Can she proceed?

  1. Random: stated. Met. 10 percent: 80.10×500=508 \le 0.10 \times 500 = 50. Met.

  2. Normal or large sample: n=8<30n = 8 < 30, and the population shape is not given, so the graph branch is the only one left.

  3. Sorted data: 2, 3, 3, 4, 5, 6, 7, 28. The median is 4+52=4.5\frac{4+5}{2} = 4.5. The lower half is 2, 3, 3, 4, so Q1=3+32=3Q_1 = \frac{3+3}{2} = 3. The upper half is 5, 6, 7, 28, so Q3=6+72=6.5Q_3 = \frac{6+7}{2} = 6.5. Then IQR=6.53=3.5IQR = 6.5 - 3 = 3.5.

  4. Fences: 31.5(3.5)=35.25=2.253 - 1.5(3.5) = 3 - 5.25 = -2.25 and 6.5+1.5(3.5)=6.5+5.25=11.756.5 + 1.5(3.5) = 6.5 + 5.25 = 11.75.

  5. Since 28>11.7528 > 11.75, the value 28 is an outlier by the 1.5 times IQR rule.

  6. Shape check: the mean is 588=7.25\frac{58}{8} = 7.25 minutes while the median is 4.5 minutes. The mean sitting well above the median is the signature of strong right skew.

  7. All three branches fail: n<30n < 30, no stated normal population, and a sample with an outlier and strong right skew.

No. Write it out: "The normal or large sample condition is not met, since n=8<30n = 8 < 30, the population is not stated to be normal, and the sample is strongly right skewed with an outlier at 28 minutes." A t-interval here would not be justified. Note what actually blocked it: the shape, not the sample size. The other 7 observations, without the 28, would have passed.

Frequently asked questions

Is there a minimum sample size for a t-test?

No. There is no minimum sample size for a t procedure. The arithmetic only needs n2n \ge 2, since ss is undefined at n=1n = 1 and df=n1df = n - 1 would be zero. In practice you need enough observations to graph and judge the shape, and the AP course routinely asks for t procedures with samples in the range of 5 to 20.

What if n is under 30 and the problem gives no graph or raw data?

Then the condition can only be met if the problem states that the population is approximately normal. Many AP problems say exactly that, so reread the stem. If neither the shape nor the data is given, write that the normal or large sample condition cannot be checked. Naming what is missing is the correct response.

Does the t-test formula change when the sample is small?

No. It is still t=(xˉμ0)/(s/n)t = (\bar{x} - \mu_0)/(s/\sqrt{n}) with df=n1df = n - 1. What changes is the shape of the reference distribution: fewer degrees of freedom means heavier tails and a larger critical value, so intervals come out wider and the test has less power to detect a real difference.

Once n reaches 30, should I switch to a z-test?

No. The choice between t and z depends on whether the population standard deviation σ\sigma is known, not on the sample size. Since σ\sigma is unknown and estimated by ss, a mean is tested with t at every sample size. Some older textbooks switch at 30; the AP course does not.