A type scale is a set of font sizes derived from a single base size and a consistent multiplier — the ratio. Starting from a base of 16 px and multiplying repeatedly by 1.25 gives you 20, 25, 31.25, 39.06, and so on. Each step is mathematically related to the others, which is what makes the resulting text feel harmonious without any manual tuning.
The term comes from music: a major scale has predictable intervals between notes, and a type scale has predictable intervals between sizes. Picking arbitrary pixel values — 14, 17, 22, 28 — breaks those intervals and forces the eye to do extra work interpreting hierarchy. A well-chosen ratio does that work for you.
The six most common ratios each have a name borrowed from music theory: Minor Second (1.067), Major Second (1.125), Minor Third (1.2), Major Third (1.25), Perfect Fourth (1.333), and Augmented Fourth (1.414). Smaller ratios create subtle, compact hierarchies suited to dense UIs. Larger ratios produce dramatic, editorial contrasts suited to landing pages and marketing.