Answer
How to report descriptive statistics in APA 7: mean, SD, median and range
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:
- Symbols in parentheses, words in the sentence. Write "the mean age was 31.95 years (SD = 8.77)" or "(M = 31.95, SD = 8.77)", but not "the M was 31.95".
- Statistical symbols in italics: M (mean), SD (standard deviation), Mdn (median), N (whole sample) and n (a subgroup).
- Every center gets a spread: a mean with its SD, a median with its interquartile range (IQR) or range.
- Numbers with units and numerals: ages, scores and percentages are written as numerals (8 years, 60%), and units belong in the text or the table heading.
- Tables for anything more than a handful of numbers, with the text pointing out what matters rather than repeating every value.
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
- Round sensibly. APA 7 suggests two decimal places for most statistics, including means and SDs, but asks you to round as far as the precision of the measurement and the use of the number allow, so fewer decimals are fine for coarse measures such as whole-number ages.
- Be consistent. Give a mean and its SD the same number of decimals, and use the same number throughout a column of a table.
- Keep the leading zero when a value can exceed 1: M = 0.85, SD = 0.42. Drop it only for values that cannot exceed 1, such as proportions and correlations (.60, not 0.60).
- Use the right SD. Report the sample standard deviation, which divides by n − 1. R's
sd()and pandas'.std()do this by default, but NumPy'snp.std()divides by n unless you setddof=1.
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))
- Age (N = 20): M = 31.95, SD = 8.77, Mdn = 29.50, IQR = 10.75, range 21 to 52. The mean sits above the median, a sign of mild right skew from a few older participants.
- Test score by group: control M = 29.70, SD = 4.85 (Mdn = 29.5, range 22 to 38); training M = 38.50, SD = 5.19 (Mdn = 38.5, range 30 to 47), 10 per group.
- Gender: 12 women (60%) and 8 men (40%).
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:
- Number and title: Table 1 in bold, then the title on the next line in italic title case, such as Descriptive Statistics for Test Scores by Group.
- Column headings: Group, n, M, SD, Mdn, Range. Put units in the heading or the title (for example, "Age (years)") rather than in every cell.
- Rows: Control, 10, 29.70, 4.85, 29.5, 22-38; Training, 10, 38.50, 5.19, 38.5, 30-47.
- Note below the table, starting with Note. in italics, to define abbreviations or explain anything unusual, such as how missing data were handled.
- Horizontal rules only, no vertical lines, and decimals aligned within each column.
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
- APA 7 formatter for descriptive statistics
- Standard error vs standard deviation: what is the difference?
- Why does standard deviation square the differences?
- Which statistical test should I use?
More answered questions
- Standard error vs standard deviation: the difference and which to use
- Why does standard deviation square the differences?
- Variance vs standard deviation: which one should you report?
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 questionWritten 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.