Guides  /  descriptive statistics spss

Descriptive statistics in SPSS

SPSS offers three different dialogs that all produce descriptive statistics, and they are not interchangeable. Picking the wrong one is why people end up computing a mean for a variable that needed a median, or hunting for a frequency table the dialog cannot produce.

Written and reviewed by Hafiz Ahmad Tariq, Senior Biostatistician
Updated 2 September 20266 min read
How do you calculate the mean in SPSS?

Go to Analyze > Descriptive Statistics > Descriptives, move your variable into the Variable(s) box and click OK. The default output includes the mean, standard deviation, minimum and maximum. For the median, use Frequencies instead and tick Median under Statistics, since the Descriptives dialog does not offer it.

Orientation

Which dialog to use

Three dialogs, three purposes. This is the source of most of the confusion.

DialogGives youUse it when
DescriptivesMean, SD, min, max, rangeYou want summary numbers for continuous variables. No median
FrequenciesEverything, plus frequency tablesYou want the median, quartiles, mode, or a count per category
ExploreEverything, plus plots and normality testsYou want descriptives split by group, or you are checking assumptions
The median is not in Descriptives

This catches almost everyone once. Analyze → Descriptive Statistics → Descriptives has no median option at all. Use Frequencies and tick Median under Statistics.

Descriptives

Mean and standard deviation

Analyze → Descriptive Statistics → Descriptives

The simplest dialog in SPSS.

Move your continuous variables into Variable(s)

Several at once is fine — each gets a row in the output.

Options → tick what you need

Mean, standard deviation, minimum and maximum are on by default. Add Skewness and Kurtosis if you want distribution shape.

OK

The output is one compact table.

Never run this on a nominal variable

SPSS will compute a mean for anything numeric, including a variable where 1 = female and 2 = male. The result is arithmetically valid and completely meaningless. Check the measure level in Variable View before running descriptives.

Frequencies

Median, quartiles and mode

Analyze → Descriptive Statistics → Frequencies

This is the dialog that has the median.

Move your variable across

For a continuous variable with many values, untick Display frequency tables or you will get hundreds of rows.

Statistics → tick Median, Quartiles, Mode as needed

Quartiles gives you the 25th, 50th and 75th percentiles — the 50th is the median, and the gap between the 25th and 75th is the interquartile range.

Continue → OK

SPSS reports quartiles as percentiles rather than labelling an IQR. Compute it yourself: IQR = 75th percentile − 25th percentile.

Categorical data

Frequency tables

For categorical variables the frequency table is the descriptive statistic. Analyze → Descriptive Statistics → Frequencies with Display frequency tables ticked.

ColumnWhat it is
FrequencyRaw count in that category
PercentPercentage of all cases, including missing
Valid PercentPercentage of non-missing cases — usually the one to report
Cumulative PercentRunning total, meaningful only for ordered categories
Report Valid Percent, and say how many were missing

Percent and Valid Percent differ whenever data are missing. Valid Percent is almost always the figure you want, but the difference between them tells the reader how much was missing — so report the n alongside it.

Split output

Descriptives by group

Two ways, and the second is usually better.

Analyze → Descriptive Statistics → Explore

Outcome into Dependent List, grouping variable into Factor List. You get full descriptives per group plus boxplots.

Or: Data → Split File → Compare groups

Applies to every subsequent analysis until you switch it off — which is easy to forget and produces confusing output later.

Turn Split File off again

It stays active across analyses and there is no obvious indicator once you have moved on. If your output starts arriving in unexpected sections, check whether Split File is still on.

Which to report

Mean or median?

Report the mean whenReport the median when
The variable is continuous and roughly symmetricThe distribution is skewed
You will run parametric tests on itThe variable is ordinal — a Likert item, a ranking
Outliers are absent or genuinely representativeOutliers are present and would distort the mean
Reporting alongside a t-test or ANOVAReporting alongside Mann-Whitney or Kruskal-Wallis
Match the descriptive to the test

Choosing a rank-based test because the data are skewed and then reporting group means contradicts your own reasoning, and reviewers notice. If you ran Mann-Whitney, report medians and interquartile ranges.

Not sure which descriptives your analysis calls for?

Send your variables and design. A named statistician confirms the right summaries and tests, and returns annotated output with APA tables.

Get a fixed quote

APA style

How to report it

SituationHow to write it
Continuous, symmetricM = 24.8, SD = 9.6
Skewed or ordinalMdn = 24, IQR 15–31
Categorical62.4% (n = 143) agreed
With sample sizeM = 24.8 (SD = 9.6), n = 167
Two decimal places is the APA convention for means and SDs
Give n for every statistic, and note missing data
Report both count and percentage for categorical variables
Use a table once you have more than about three variables
Match the statistic to the test you went on to run

Answers

Frequently asked questions

How do I calculate the mean in SPSS?

Analyze > Descriptive Statistics > Descriptives, move the variable into Variable(s) and click OK. The mean, standard deviation, minimum and maximum appear by default.

How do I find the median in SPSS?

Use Frequencies, not Descriptives — the Descriptives dialog has no median option. Analyze > Descriptive Statistics > Frequencies, then Statistics > tick Median. For a continuous variable, untick 'Display frequency tables' first.

What is the difference between Percent and Valid Percent in SPSS?

Percent is calculated over all cases including missing values; Valid Percent excludes missing. Valid Percent is usually the figure to report, and the difference between the two tells the reader how much data was missing.

How do I get descriptive statistics by group in SPSS?

Analyze > Descriptive Statistics > Explore, with the outcome in Dependent List and the grouping variable in Factor List. This is generally better than Data > Split File, which stays active across later analyses and is easy to forget about.

Should I report the mean or the median?

The mean for continuous, roughly symmetric variables analysed with parametric tests. The median with an interquartile range for skewed or ordinal variables, and whenever you have used a rank-based test such as Mann-Whitney or Kruskal-Wallis.

How do I get the interquartile range in SPSS?

Frequencies > Statistics > tick Quartiles. SPSS reports the 25th, 50th and 75th percentiles rather than labelling an IQR, so subtract the 25th from the 75th yourself.