Answer

How to report descriptive statistics in APA 7: mean, SD, median and range

A frequently asked statistics question ·

descriptive statisticsstandard deviationapa style

The short answer

In APA style, put the symbols in parentheses after the thing described: "Scores were higher in the training group (M = 38.50, SD = 5.19, n = 10)." Use the words (mean, standard deviation) in running text, give a spread with every center, use N for the full sample and n for subgroups, and switch to the median and IQR for skewed data. Larger sets of descriptives belong in a table.

The short answer

Descriptive statistics are usually the first numbers in a results section: who took part and what the main variables looked like. In APA style they follow a few simple rules:

Mean and SD, or median and IQR?

Report the mean and standard deviation when the variable is roughly symmetric, and the median with the IQR (or the minimum and maximum) when it is clearly skewed or has outliers, such as income, reaction times or length of stay. Many authors give both for skewed variables, which lets readers see the skew from the gap between the mean and the median. Match the descriptives to the analysis as well: means and SDs go with t tests and ANOVA, medians and IQRs with rank-based tests.

The range is useful for describing a sample, especially for age ("aged 21 to 52 years"), but it depends on just the two most extreme people, so it should not be the only measure of spread. For a categorical variable, give counts with percentages: "12 (60%) of the 20 participants were women".

Why not mean ± SD? The ± shorthand is common in medical journals, but it is not the format APA style uses, and it is ambiguous: the number after ± can be a standard deviation, a standard error or half a confidence interval, and readers cannot tell which unless it is labelled every time. It also invites a misreading, because "29.70 ± 4.85" looks like a range of values when it is not. Writing (M = 29.70, SD = 4.85) removes both problems. For the difference between the two spreads, see standard error vs standard deviation.

Decimals and leading zeros

A worked example in R and Python

The code describes a small, fixed two-group data set: age for the whole sample, test scores by group, gender as counts and percentages, and finally pastes the means and SDs into ready-made text. There is no randomness, so R and Python print the same figures.

R

# A small two-group study: age, test score (0-50) and gender
d <- data.frame(
  group  = rep(c("Control", "Training"), each = 10),
  age    = c(23, 31, 27, 45, 22, 38, 29, 26, 52, 34, 25, 30, 41, 24, 28, 36, 33, 47, 27, 21),
  score  = c(31, 27, 35, 24, 30, 38, 29, 33, 22, 28, 36, 41, 33, 39, 44, 35, 30, 42, 38, 47),
  gender = c("F", "M", "F", "F", "M", "F", "M", "F", "F", "M",
             "M", "F", "F", "M", "F", "F", "M", "F", "M", "F")
)

describe <- function(x) c(n = length(x), M = mean(x), SD = sd(x),  # sd() divides by n - 1
                          Mdn = median(x), IQR = IQR(x), Min = min(x), Max = max(x))

# Whole sample: age
round(describe(d$age), 2)

# By group: test score
round(t(sapply(split(d$score, d$group), describe)), 2)

# Categorical variable: counts and percentages
table(d$gender)
round(100 * prop.table(table(d$gender)), 1)

# Ready-made text in the APA format
apa <- function(x) sprintf("(M = %.2f, SD = %.2f, n = %d)", mean(x), sd(x), length(x))
sapply(split(d$score, d$group), apa)

Python

import numpy as np
import pandas as pd

# A small two-group study: age, test score (0-50) and gender
d = pd.DataFrame({
    "group": ["Control"] * 10 + ["Training"] * 10,
    "age": [23, 31, 27, 45, 22, 38, 29, 26, 52, 34, 25, 30, 41, 24, 28, 36, 33, 47, 27, 21],
    "score": [31, 27, 35, 24, 30, 38, 29, 33, 22, 28, 36, 41, 33, 39, 44, 35, 30, 42, 38, 47],
    "gender": ["F", "M", "F", "F", "M", "F", "M", "F", "F", "M",
               "M", "F", "F", "M", "F", "F", "M", "F", "M", "F"],
})

def describe(x):
    q1, q3 = np.percentile(x, [25, 75])      # same quartile rule as R's default
    return pd.Series({"n": len(x), "M": x.mean(), "SD": x.std(ddof=1),  # n - 1, as in R
                      "Mdn": x.median(), "IQR": q3 - q1, "Min": x.min(), "Max": x.max()})

# Whole sample: age
print(describe(d["age"]).round(2))

# By group: test score
print(d.groupby("group")["score"].apply(describe).unstack().round(2))

# Categorical variable: counts and percentages
print(d["gender"].value_counts().sort_index())
print((100 * d["gender"].value_counts(normalize=True).sort_index()).round(1))

# Ready-made text in the APA format
def apa(x):
    return f"(M = {x.mean():.2f}, SD = {x.std(ddof=1):.2f}, n = {len(x)})"

print(d.groupby("group")["score"].apply(apa))

Laying out a descriptive statistics table

A table of descriptives (often Table 1) usually has one row per variable and one column block per group, or one row per group if there is a single outcome. For the example:

Refer to the table in the text ("Table 1 shows ...") and describe the pattern in words. To go from description to a test, the test chooser helps you pick one, and the DASS blog has more guides on reporting.

How to report descriptive statistics in APA style (7th edition)

Using the example above, a participant description and a group comparison could read:

"Twenty adults took part (12 women, 8 men), aged 21 to 52 years (M = 31.95, SD = 8.77). Test scores were higher in the training group (M = 38.50, SD = 5.19, n = 10) than in the control group (M = 29.70, SD = 4.85, n = 10)."

For a skewed variable, swap in the median: "Age was mildly right-skewed (Mdn = 29.50, IQR = 10.75)." A number that starts a sentence is written in words, as in "Twenty adults". If you also run a test on the scores, the descriptives go in the same sentence as the test result or in a table referred to there, not in both.

Related tools and guides

More answered questions

Working with your own data?

General answers only go so far. Send us your situation and we'll reply by email within two business days.

Ask your question

Need more than an answer?

Written by AskStats with AI assistance. This is general information, not advice for your specific data or study. When the results matter, check your approach with a qualified statistician.