How to Run a T-Test and Read the P-Value
A t test is three numbers — t, degrees of freedom, p — and most people only read the last one, then read it wrong. Here's how to run both modes of the calculator and say what the p-value actually licenses you to say.

The T Test Calculator runs two tests. The one-sample test compares one group's mean against a known value μ₀, using t = (mean − μ₀) ÷ (s ÷ √n). The two-sample test is Welch's version: it compares two independent groups, doesn't assume the groups share a variance, and estimates the degrees of freedom from the data, which is why they can come out fractional. You paste values separated by commas, spaces or new lines, click Run t test, and read t, the degrees of freedom and the two-tailed p-value. That p-value is the probability of data at least this extreme if the null held. It is not the probability that the null is true, and a p at or above 0.05 means you don't have enough evidence — not that there's no effect. This guide runs both modes on the calculator's own default data and checks every output by hand.
Pick the mode that matches your question
You've got numbers and a hunch that a mean isn't what it should be. Before you paste anything, sort out which of two questions you're actually asking. Question one: does this one group's mean differ from a value I already know — a target, a spec, a published norm? That's the one-sample test. Question two: do these two independent groups differ from each other? That's the two-sample test. The calculator's Test type selector offers exactly those two: "One-sample — one group against a known value μ₀" and "Two-sample (Welch) — two independent groups".
Picking wrong isn't a rounding issue. It changes the whole calculation. The one-sample test measures your sample against the fixed μ₀ you type in. The two-sample test never sees a μ₀ at all; it measures the gap between the two group means against the noise inside both groups. If your data came as two groups, don't average them into one and test that against something. And if you've only got one group and a target, don't invent a second group to make the two-sample mode feel more serious.
One more check before you start. The test assumes your observations are independent — one row shouldn't be a repeat measurement of another in disguise — and that the data, or at least the mean, is roughly normally distributed. With tiny samples, a strong skew or one wild outlier can drag the p-value a long way from where honest data would put it. Eyeball your values first. If one number sits far away from the rest, that's a data question to settle before it's a statistics question.
Run the test in seven steps
Both modes follow the same rhythm. The only fork is step four, where you either supply a second sample or set the value you're testing against.
- Decide which question you are asking: one group against a known value, or two independent groups against each other.
- Set the Test type selector to One-sample — one group against a known value μ₀, or Two-sample (Welch) — two independent groups.
- Paste your first set of values into the Sample 1 field, separated by commas, spaces or new lines.
- In two-sample mode, paste the second group into Sample 2; in one-sample mode, enter the value you are testing against in the μ₀ field.
- Click Run t test and read the three outputs: t, the degrees of freedom and the two-tailed p-value.
- Compare the p-value with 0.05: below it, a gap this large would be unusual if the null held; at or above it, you do not have enough evidence to reject the null.
- Write down the size of the difference in plain units alongside the p-value before you report the result to anyone.
Step seven sounds like paperwork. It isn't. A p-value on its own tells a reader nothing about whether the difference is big enough to care about, and with a large sample even a trivial gap can come back with a tiny p. The difference itself — two points, half a second, three grams — is the part your reader can actually judge.
Worked example: the one-sample default, checked by hand
The calculator opens with Sample 1 holding 5, 6, 7, 8, 9 and the μ₀ field set to 5. Leave everything as it stands, make sure the Test type is the one-sample option, and click Run t test. Here's what comes back, and here's the arithmetic behind each piece so you can check it rather than trust it.
The mean of 5, 6, 7, 8, 9 is 7. The sample standard deviation, s, works out to about 1.581. The standard error is s divided by the square root of n: 1.581 divided by √5, which gives about 0.7071. Now the formula the tool uses, t = (mean − μ₀) ÷ (s ÷ √n). The numerator is 7 minus 5, so 2. Divide 2 by 0.7071 and you get t = 2.828. The degrees of freedom for a one-sample test are n minus 1, so df = 4. And the two-tailed p-value for t = 2.828 on 4 degrees of freedom is about 0.0474.

Read that 0.0474 carefully. It says: if the true mean really were 5, samples this far from 5 — in either direction — would turn up about 4.7% of the time. That's all it says. It squeaks under the conventional 0.05 line, which makes this default a tidy warning about the line itself. Change one observation slightly and the same setup lands the other side of 0.05, with the underlying reality unchanged. Treat 0.05 as a reporting convention, not a cliff edge between true and false.
The two-sample mode: Welch, and why the df can be fractional
Switch the Test type to "Two-sample (Welch) — two independent groups" and the μ₀ field steps aside; Sample 2 becomes the field that matters. The defaults give you a clean check: Sample 1 is 5, 6, 7, 8, 9 and Sample 2 is 3, 4, 5, 6, 7. The means are 7 and 5, so the gap is 2. Click Run t test and you should see t = 2.0, df = 8.0 and a two-tailed p of about 0.0805.
Same gap of 2 as the one-sample example. Different verdict. Why? Because now both groups carry their own spread, and the standard error has to cover the noise in each one. The gap is measured against more uncertainty, so t shrinks from 2.828 to 2.0 and the p-value climbs above 0.05. At 0.0805 the honest sentence is "this sample doesn't provide enough evidence to reject the null" — not "the groups are the same". A bigger sample with the same means and spreads could well cross the line; this one just doesn't get there.
The Welch label earns a word, too. The older pooled two-sample test assumes both groups share one variance. Welch's version doesn't. Each group's variance feeds the standard error separately, and the degrees of freedom get estimated from the data by the Welch–Satterthwaite formula. That's why df can land on a fraction — 7.3, say — instead of a whole number. A fractional df isn't a bug or a rounding slip. It's the estimate doing its job, and it's the safer default when you don't know the variances are equal, which in practice is nearly always.
Ways people misread the output
The classic error is reading the p-value as the probability that the null hypothesis is true. It isn't, and it can't be — the calculation starts by assuming the null is true and asks how surprising the data would be under that assumption. A p of 0.0474 does not mean there's a 95.26% chance your effect is real. If you catch yourself writing that sentence, delete it and write the tail-area version instead.
Second error: treating p ≥ 0.05 as proof of no effect. It means this sample, at this size, didn't produce enough evidence. Small samples miss real differences all the time. Third: reporting the p-value without the difference. A gap can be statistically detectable and practically pointless, or sizeable and not yet detectable, and the p-value alone can't tell your reader which situation they're in. Fourth: running the test on data that breaks the assumptions — repeated measurements pasted in as if they were independent, or five values with one extreme outlier doing all the work. The calculator will still hand you three tidy numbers. Tidiness isn't a warranty. Check the data first, run the test second, and write the conclusion last, in that order.
The Verystep T Test Calculator takes a Test type — One-sample against a known value μ₀, or Two-sample (Welch) for two independent groups — plus your Sample 1 values, a Sample 2 in two-sample mode, and the μ₀ field in one-sample mode. Click Run t test and it returns t, the degrees of freedom and the two-tailed p-value, all in your browser with nothing uploaded.
Last verified November 19, 2026 — Test type options, Sample 1, Sample 2 and μ₀ fields and the Run t test button checked against the live Verystep T Test Calculator, and both worked examples recomputed offline: one-sample (5, 6, 7, 8, 9) against μ₀ = 5 gives t = 2.828, df = 4, p ≈ 0.0474, and the Welch two-sample defaults give t = 2.0, df = 8.0, p ≈ 0.0805, confirmed with scipy.
Frequently asked questions
What does a p-value of 0.0474 actually mean?
It means that if the null hypothesis were true — the population mean really equals μ₀ — then over repeated sampling, data at least this far from μ₀ in either direction would appear about 4.74% of the time. It is a statement about the data under an assumption, not a probability that the assumption itself is true or false.
Is p ≥ 0.05 proof that there is no difference?
No. It means the sample didn't provide enough evidence to reject the null at the conventional line. A real difference can sit underneath an underpowered test, especially with small samples. The two-sample worked example shows this directly: a gap of 2 between the group means returned p ≈ 0.0805, which is 'not enough evidence here', not 'the groups are equal'.
Why are the degrees of freedom a fraction in my two-sample result?
Because the two-sample test here is Welch's. It doesn't assume equal variances, and it estimates the degrees of freedom from both groups' data using the Welch–Satterthwaite formula. That estimate often lands between whole numbers. A fractional df is expected behaviour, not an error.
How should I separate my values when I paste them?
Commas, spaces or new lines all work — the Sample 1 and Sample 2 fields accept any mix of the three. Just make sure each number is its own value and you haven't pasted labels, units or a header row in with the data, since anything that isn't a number doesn't belong in the sample.
How many observations do I need for a t test to mean anything?
Two is the arithmetic minimum and it's close to meaningless, because a standard error built from two points is extremely unstable. There's no magic threshold, but treat any conclusion from a single-digit sample as provisional. The t distribution's heavier tails at low degrees of freedom are exactly the price of estimating the spread from so little data.
More guides

The PPWR Empty Space Ratio: Why the 50% Cap Hits Your Shipping Box First
Ask a room of online sellers what the PPWR will change first and most will say labels. The duty with a number in it is quieter: from 2030 at the earliest, no more than half the volume of your shipping box may be empty — and the filler you stuff into it counts as empty.

Counting a Return Window: The EU 14-Day Cooling-Off Period Starts the Day After Delivery
A shop page says “14 days to return”. Fourteen days from when — the order, the dispatch, the delivery? And counted how — in calendar days or working days? EU law answers both questions, and the answers are not the ones most countdown banners use.

How to Check Gift Return Eligibility Without a Receipt
Black Friday is over, the gifts are changing hands, and some of them are the wrong size, the wrong color or the second one you own. There is no receipt — there never is with a gift — so the question is not “can I get my money back?” but “which route does this store actually offer someone in my position, and how long do I have?”