Home › Statistics Homework Help › SPSS Help › T-Test in SPSS
Run it, read it, report it

How do I run a t-test in SPSS?

You run a t-test in SPSS under Analyze > Compare Means and Proportions, then pick the version that fits your design: an independent-samples t-test for two unrelated groups, a paired-samples t-test for two measurements on the same people, or a one-sample t-test to compare one mean against a fixed value. This page gives the exact menu path for each, shows the one value to read, and hands you copy-paste APA reporting.

✓Levene's rule, the right row ✓Copy-paste APA reporting ✓Human statisticians, no AI

On this page

Which t-test?Independent-samplesPaired-samples One-sampleLevene's TestTwo-Sided p AssumptionsFallback testsAPA reporting
Since 2014statistics specialists
Any t-testrun and interpreted
★★★★★rated by students
3 hrsfastest turnaround

A t-test compares means, but there are three of them in SPSS and each one fits a different design. Choose the wrong one, skip the assumption checks, or read the wrong row of the output, and the result is wrong no matter how tidy the table looks. This guide is part of our SPSS homework help and our wider statistics homework help. It gives the menu path for each t-test, points at the single value that decides the result, and shows how to report it in APA. Where a test can fail, it names the assumption and the fallback test to use instead.

Two version notes that trip people up. In SPSS version 29 and later the Compare Means menu is named Compare Means and Proportions. In version 27 and later the old Sig. (2-tailed) column is split into One-Sided p and Two-Sided p; for an ordinary non-directional hypothesis you read Two-Sided p.

Which t-test should I use?

Match your research question and design to the right t-test, then jump to its guide.

Your questionYour dataTest
Do two unrelated groups differ on average?Continuous outcome, two independent groupsIndependent-samples t-test
Did the same people change between two points?Continuous outcome, two paired measuresPaired-samples t-test
Does one group mean differ from a known value?Continuous outcome, one group, one test valueOne-sample t-test
Do three or more groups differ?Continuous outcome, three or more groupsUse ANOVA instead

Not sure your data meets the requirements? Every guide below lists the assumptions and the test to switch to when one fails.

Before you run it: set the measure and check the design

For an independent-samples t-test your data needs two columns: one continuous Test Variable (the outcome) and one Grouping Variable that codes the two groups, for example one and two. For a paired-samples t-test the two measurements sit in two separate columns on the same row. For a one-sample t-test you need a single continuous column and a number to test it against.

The setting that quietly breaks the analysis is Measure in Variable View. SPSS tags every numeric variable as Scale by default. Leave the continuous outcome as Scale, but set the grouping variable to Nominal so SPSS treats the codes as categories rather than numbers. The t-tests all live under one menu: Analyze > Compare Means and Proportions.

How to run each t-test in SPSS

Menu path, the assumption checks, the exact number to read, and how to report it. Example values follow standard teaching datasets.

Independent-samples t-test in SPSS

Compares the means of one continuous outcome across two unrelated groups, for example test scores under an online course versus an in-person course.

Analyze > Compare Means and Proportions > Independent-Samples T Test. Move the continuous outcome into Test Variable(s) and the grouping variable into Grouping Variable, then click Define Groups and enter the two codes, for example one and two. Continue, then OK.

Assumptions. Continuous outcome, two independent groups, no serious outliers, approximate normality within each group (Shapiro-Wilk in Analyze > Descriptive Statistics > Explore), and equal variances, which SPSS checks with Levene's Test inside the results table. If normality is badly broken, switch to the Mann-Whitney U test.

What to read, and the Levene's rule. In the Independent Samples Test table, let Levene's decide the row. If Levene's Sig. is above .05, read the top row, Equal variances assumed. If Levene's Sig. is .05 or below, read the bottom row, Equal variances not assumed. Then read t, df, and Two-Sided p on that row.

Independent Samples Test (Levene's Sig. = .184, so read the top row)
Levene FLevene Sig.tdfTwo-Sided p
Equal variances assumed1.82.1842.31048.025
Equal variances not assumed2.31046.3.026
Report it (APA)Mean exam score was significantly higher for the online group (M = 78.4, SD = 6.2) than for the in-person group (M = 74.1, SD = 7.1), t(48) = 2.31, p = .025.

Common mistakes

  • Always reading Equal variances assumed without checking Levene's, or applying the rule backwards.
  • Confusing Levene's Sig. with the t-test p-value. They are different columns.
  • Leaving the grouping variable as question marks, or entering codes that do not match the data.

Levene's failing, outliers, or a non-normal outcome on your own dataset? Our statisticians will run the correct version and interpret it. Get a quote →

Paired-samples t-test in SPSS

Compares two measurements taken on the same people, for example a test-anxiety score before and after an intervention.

Analyze > Compare Means and Proportions > Paired-Samples T Test. Move the two related variables into the Variable1 and Variable2 slots of Pair 1, then OK.

Assumptions. A continuous outcome measured twice on the same cases, no serious outliers, and normality of the difference scores, not the raw variables. Compute the difference with Transform > Compute Variable, then check it with a boxplot and Shapiro-Wilk. If the differences are badly non-normal, use the Wilcoxon signed-rank test.

What to read. The Paired Samples Test table, reading across to t, df, which equals the number of pairs minus one, and Two-Sided p. Do not read the Sig. in the Paired Samples Correlations table above it.

Paired Samples Test (Before minus After)
MeanStd. DeviationtdfTwo-Sided p
Anxiety Before - Anxiety After4.705.963.94324<.001
Report it (APA)Test anxiety was significantly lower after the intervention (M = 37.9, SD = 7.4) than before it (M = 42.6, SD = 8.1), t(24) = 3.94, p < .001.

Common mistakes

  • Running a paired test on unrelated groups, which needs the independent-samples test.
  • Testing normality on the raw scores instead of the difference scores.
  • Reading the correlation table Sig. instead of the Paired Samples Test p-value.

One-sample t-test in SPSS

Compares one group mean against a known or hypothesised value, for example a class mean IQ against the population value of 100.

Analyze > Compare Means and Proportions > One-Sample T Test. Move the continuous variable into Test Variable(s), then type the number you are comparing against into the Test Value box, for example 100. OK.

Assumptions. One continuous variable, independent observations, no serious outliers, and approximate normality (Shapiro-Wilk and a Q-Q plot in Explore). The one-sample t-test has no non-parametric partner in the Compare Means menu; if normality is badly broken, use the one-sample Wilcoxon signed-rank test under Analyze > Nonparametric Tests instead.

What to read. The One-Sample Test table, reading t, df, which equals the sample size minus one, Two-Sided p, and the Mean Difference, which is your sample mean minus the Test Value. The Test Value itself is printed in the table heading so you can confirm you typed the right one.

One-Sample Test (Test Value = 100)
tdfTwo-Sided pMean Difference
IQ score2.85739.0075.60
Report it (APA)The class mean IQ (M = 105.6, SD = 12.4) was significantly higher than the population value of 100, t(39) = 2.86, p = .007, a mean difference of 5.60 points.

Common mistakes

  • Leaving the Test Value at zero, so SPSS tests whether the mean differs from nothing.
  • Using it to compare two groups. One-sample compares one mean against a fixed number.
  • Reporting the Mean Difference without the direction, so the reader cannot tell which way it went.

Not sure which value belongs in the Test Value box, or whether the mean difference is meaningful? Send the file and we will run it and write it up. Get a quote →

How to read Levene's Test, and what Two-Sided p means

Levene's Test appears only in the independent-samples t-test, and it decides which of the two rows you read. It tests whether the two groups have equal variances (spread). Read its Sig. first. If Levene's Sig. is above .05 the variances are close enough, so you read the top row, Equal variances assumed. If Levene's Sig. is .05 or below the variances differ, so you read the bottom row, Equal variances not assumed, where SPSS has already applied the Welch correction and the df often become fractional. The paired and one-sample tests have no Levene's row because there is only one set of scores.

Two-Sided p is the p-value for an ordinary two-tailed hypothesis, the one you almost always want. In SPSS version 27 and later the single Sig. (2-tailed) column became two columns, One-Sided p and Two-Sided p. Use One-Sided p only when your hypothesis states a direction in advance. If the value shows as .000, report it as p < .001, because a probability is never exactly zero. For more on reading every table, see our guide to interpreting SPSS output.

When an assumption fails: the fallback test

Most t-test marks are lost not on the software but on ignoring a broken assumption. Check the assumption, and when it fails, switch to the matched test rather than reporting an invalid result.

AssumptionHow SPSS checks itIf it fails
Normality (independent groups)Shapiro-Wilk and Q-Q plots in ExploreUse the Mann-Whitney U test
Normality (paired differences)Shapiro-Wilk on the computed difference scoreUse the Wilcoxon signed-rank test
Normality (one sample)Shapiro-Wilk and Q-Q plots in ExploreUse the one-sample Wilcoxon signed-rank test
Equal variances (independent only)Levene's Test in the results tableRead the "equal variances not assumed" row
Three or more groupsThe design, not a testUse one-way ANOVA

Or hand the t-test to a statistician

When the data will not behave, Levene's fails, the differences are non-normal, or the deadline is unforgiving, a specialist runs the correct t-test in SPSS on your file and explains the output so you can defend it.

What one order includes: the right t-test chosen for your design, run in SPSS on your data, the correct output tables, the right row read for you, a plain-language interpretation, and the result written in your required reporting style. A syntax file is included so the analysis is reproducible.
1

Send your t-test task

Upload your data file, the assignment brief and your deadline, then get a free quote from support.

2

Pay securely

Approve the price and a statistician who works in SPSS every day starts right away.

3

Download the analysis

Get the output, interpretation and write-up in your account, with free revisions if you need them.

Vetted and safe

Real statisticians, and your data protected

Your work goes to a specialist who passed a subject-specific statistics test and a background check, and who works in SPSS every day. What we deliver is a model answer and study aid for reference, and many students use it to learn the method and check their own analysis.

Everything stays private. Your data and details are confidential, we never contact your school, payments are secure, and the work is original and plagiarism-checked.

Get t-test help you can trust →

Every order includes

Right t-test for the designLevene's row read for you Output and interpretationSyntax file included 100% human, no AIFree revisions
★★★★★
What students say
★★★★★

"Me and my friends were extremely pleased with the service, communication and efficiency that there experts have demonstrated. We truly appreciate services you provided."

Jacob C.
Verified review
★★★★★

"Without these guys there is no way I would have graduated. Am particularly happy with Moses for all the help he offered. Thanks man! Be blessed."

Debra M.
Verified review

T-test in SPSS FAQ

Use an independent-samples t-test for two unrelated groups, a paired-samples t-test for two measurements on the same people, and a one-sample t-test to compare one group mean against a known or hypothesised value. For three or more groups use ANOVA.

Levene's Test checks whether the two groups have equal variances. If its Sig. is above 0.05, read the top row, Equal variances assumed. If its Sig. is 0.05 or below, read the bottom row, Equal variances not assumed. Then read t, df and Two-Sided p on that same row.

Two-Sided p is the p-value for an ordinary non-directional hypothesis. In SPSS version 27 and later the old Sig. (2-tailed) column is split into One-Sided p and Two-Sided p; for a standard two-tailed t-test you read Two-Sided p. If it is below 0.05 the difference is statistically significant.

Switch to the matched non-parametric test. Use the Mann-Whitney U test in place of the independent-samples t-test, and the Wilcoxon signed-rank test in place of the paired-samples t-test. Check normality with Shapiro-Wilk and Q-Q plots, and for the paired test check the difference scores, not the raw variables.

SPSS rounds very small p-values to .000, but a probability is never exactly zero. Report it as p < .001.

Yes. Send your data set and the assignment and a statistician runs the correct t-test in SPSS, checks the assumptions, reads the right row and reports the result in your required style, before your deadline, with free revisions.

Get your t-test done right

Hand it to a statistician and get accurate output and a clear interpretation before your deadline.

Get my free quote →

Related homework help

We use cookies to improve your experience. See our cookie policy.