FreeStatisticalTools.com
Compare means

One-Sample T-Test Calculator

Compare the mean of one sample against a fixed value, such as a scale midpoint, a national norm or a target.

Free · No sign-upReplaces SPSSWorks with your data
Updated · By Bibin Xavier

Data 90 × 12

Paste from Excel, or drop a CSV, TSV or Excel file here.
Example data 90 rows, 12 variables. Data stays in this browser tab.
IDtext · 90 levelsGrouptext · 3 levelsGendertext · 2 levelsAgenumericHours_StudynumericAnxietynumericMotivationnumericPre_ScorenumericPost_ScorenumericExam_ScorenumericPassednumeric · codedSatisfactionnumeric · coded
S001ControlMale2311.2294.660626712
S002WorkshopFemale233.9283.554705402
S003OnlineFemale1810.132455576603
S004ControlMale2613.6413.552555903
S005WorkshopFemale229.7273.656636504
S006OnlineFemale207.9323.865826502
S007ControlFemale206.328372836103
S008WorkshopMale228293.164726213

Variables and options

Results update automatically when you change an option.

Results

90 rows · example data
Table 1

One-sample statistics

VariablenMSDSE
Exam_Score9062.289.320.98
Table 2

One-sample t-test (test value = 60)

tdfpMean difference95% CICohen’s d
Exam_Score2.3289.0232.28[0.33, 4.23]0.24

Sample mean against the test value

Interpretation

The mean Exam_Score (62.28) was significantly higher than the test value of 60, a small effect (d = 0.24).

t(89) = 2.32, p = .023, d = 0.24, 95% CI of the difference [0.33, 4.23].

How to cite this tool

Using these results in a thesis, journal article, report or class assignment? Please cite this free tool so others can find it. It keeps the site free.

APA 7

Xavier, B. (2026). One-Sample T-Test Calculator [Web application]. FreeStatisticalTools.com. https://freestatisticaltools.com/one-sample-t-test-calculator/

BibTeX

@software{xavier_onesamplettest_2026,
  author = {Xavier, Bibin},
  title = {One-Sample T-Test Calculator},
  publisher = {FreeStatisticalTools.com},
  year = {2026},
  url = {https://freestatisticaltools.com/one-sample-t-test-calculator/},
  note = {Web application}
}

Suggested sentence for your methods section: “The analysis was carried out with the free One-Sample T-Test Calculator tool on FreeStatisticalTools.com (Xavier, 2026).”

What is a one-sample t-test?

The one-sample t-test compares the mean of one sample with a known or hypothesized value, such as a scale midpoint, a population norm or a target. Paste your data, set the test value and get the full result with an effect size.

When to use a one-sample t-test

Use it to test whether a sample mean differs from a specific number, such as the midpoint 3 of a five-point scale.

Assumptions

  • The variable is continuous.
  • Observations are independent.
  • The variable is roughly normal, or n is above about 30.

How to use this tool

  1. Enter your data. Paste columns from Excel, Google Sheets or SPSS with variable names in the first row, or upload a CSV or Excel file. The example data shows the expected layout.
  2. Choose the variables. Select the variable.
  3. Set the options. Fill in test value (μ₀).
  4. Read the results. Results update automatically. Read the plain-English interpretation, then use Copy table to paste APA-style tables into Word and Copy for the results sentence.

How to report a one-sample t-test in APA style

“Exam scores (M = 63.4, SD = 9.8) were significantly above 60, t(89) = 3.29, p = .001, d = 0.35.”

Frequently asked questions

When should I use a one-sample t-test?

Use it when you have one group and want to know whether its mean differs from a specific value, for example whether average satisfaction differs from the neutral midpoint of 3.

What is the formula?

t = (M − μ₀) / (SD / √n), with n − 1 degrees of freedom.

What if my data are not normal?

With about 30 or more cases the test is robust. For small, skewed samples use a one-sample Wilcoxon signed-rank test instead.

Related tools

Browse all categories