One-Sample T-Test Calculator

Test whether your sample mean differs from a known or expected value. Paste your data and the hypothesised mean.

How to enter your data: Type or paste all your measurements into the data box, one value after another, separated by commas, spaces, or a new line for each number. Then enter your single target number, the value you want to compare the average against, in its own separate box. Use plain numbers only, with a decimal point if needed, and no words, currency signs, or other symbols.

t statistic

The One-Sample T-Test Calculator checks whether the average of your numbers is really different from one specific target number you have in mind. You paste in a set of measurements, like test scores or wait times, and type the single target you want to compare against. It then tells you whether the gap between your average and that target is big enough to be a genuine difference, or small enough that it could just be random chance.

Built into PaperSurvey.io

Skip the copy-paste. Scan your paper or web surveys and PaperSurvey computes these metrics automatically on your real data, ready to export to Excel, SPSS and R.

Start a free trial →

Where it is used

  • Teachers: A teacher pastes in this term's class test scores and checks whether the class average is really different from the national pass mark of 70.
  • Cafe and small-business owners: A cafe owner enters 30 order wait times and checks whether the average is different from the 5-minute service they promise on their sign.
  • HR and staff-survey teams: An HR officer enters staff satisfaction scores and checks whether the average sits above or below the company target of 8 out of 10.

What the one-sample t-test does

It compares the mean of a single sample against a specific value (for example, testing whether average satisfaction differs from a target of 50). A p-value below 0.05 indicates a statistically significant difference.

When should you use it?

Use it when you have one group of numbers and a single target you want to compare their average against. The numbers should measure the same thing, such as scores, minutes, or ratings, taken from different people or items. It answers questions like whether your average sits above or below a benchmark. Do not use it to compare two separate groups against each other, as that needs a two-sample test. You also need real numbers, not yes or no answers or categories.

What does the result mean?

The main number to read is the p-value. It sits between 0 and 1 and tells you how likely it is that the difference you see is just random luck. A widely used rule is that a p-value below 0.05 means the difference is statistically significant, so your average is probably genuinely different from the target. A value above 0.05 means the evidence is weak, so you cannot be confident there is a real difference. The calculator also shows your sample average, so you can see which way the gap points.

Mistakes to avoid

Do not read a significant result as proof the difference is large or important; it only means the gap is unlikely to be chance. Very small differences can look significant when you have lots of numbers. Make sure every value is really a number, because blank cells or text will throw off the average. Do not mix two different groups in one box. Remember the target is a fixed number you decide beforehand, not another set of data. Finally, a handful of readings can give an unreliable answer.

How to use this calculator

  1. Paste or type all your measured numbers into the data box, separating each one with a comma or a new line.
  2. Type your single target number, the benchmark you want to compare the average against, into the target box.
  3. Press the calculate button to see your sample average and the p-value.
  4. Read the p-value: below 0.05 means your average is probably really different from the target, while above 0.05 means you cannot be sure.

Worked example

A cafe promises that orders arrive in 5 minutes. The owner times 30 orders and the average comes out at 5.6 minutes. Putting those 30 times in the data box and 5 in the target box gives a p-value of about 0.01. Because that is below 0.05, the extra wait is a real difference, not just a fluke, so orders really are taking longer than promised.

Frequently asked questions

What do I type in each box?

In the data box, put all your measured numbers, separated by commas or new lines. In the target box, put the single number you want to compare the average against.

Where do I get these numbers?

They come from whatever you measured, such as survey ratings, test scores, times, or prices. If you collected answers with PaperSurvey, you can export a numeric question column and paste it straight in.

What is the target or test value?

It is the fixed benchmark you want to check against, like a pass mark, a promised wait time, or a goal score. You choose it before you look at the results.

What does the p-value mean in plain words?

It is the chance that the difference you see is just random luck. Below 0.05 usually counts as a real, meaningful difference, while above 0.05 means you cannot be sure.

How many numbers do I need?

More is better. A rough minimum is around 20 to 30 values; with only a few readings the result can easily be misleading.

Embed this calculator on your site

Free to use. Paste this snippet wherever you want the calculator to appear.


Get Started with PaperSurvey.io Software

Get Started

Start your 14-day free trial now, no credit card required.