Compute Mean and Median Instantly Using List Commands

Store any dataset as L = [...] and run mean(L) and median(L) without manual sorting.

Worked problem

For the data list 18, 12, 35, 15, 20, how much greater is the mean than the median?

Target answer: 2 (compatible with typed-answer questions).

What to enter in the calculator

  • L = [18, 12, 35, 15, 20]
  • mean(L) - median(L)

Step-by-step calculator moves

  • Type L = [18, 12, 35, 15, 20] using square brackets.
  • Type mean(L) − median(L) on line 2.
  • Read 20 − 18 = 2 immediately.

Check the math

Sorted list is 12, 15, 18, 20, 35 (median 18); sum is 100, mean is 100/5 = 20.

When to skip the graph

You can also use stdev(L) or quantile(L, 0.25) in Desmos, though SAT rarely asks for exact sample vs. population SD.

Connected book chapter, skill, and practice

Maps to Chapter 24 (One-Variable and Two-Variable Data) and the One-Variable Data skill guide.

SAT® and AP® are trademarks registered by the College Board, which is not affiliated with, and does not endorse, this website or book. PSAT/NMSQT® is a registered trademark of the College Board and the National Merit Scholarship Corporation, which are not affiliated with, and do not endorse, this site. Bluebook™ is a trademark of the College Board. ACT® is a trademark of ACT Education Corp., which is not affiliated with and does not endorse this website or book. Desmos is a trademark of Desmos Studio PBC.

Last updated .