skip to content

When a 1.25 type scale from base 16 yields 12.8, 31.25 and 39.06, how do you round them, and when should you hand-tune steps?

level: middleimportance: should knowfreq 36%

answer

  1. the ratio is a generator
  2. whole numbers or grid-friendly values
  3. watch the small end collide
  4. a legible floor at the bottom
  5. document computed versus shipped

basics

~20 s

Round to whole numbers, or to grid-friendly values for larger steps, accepting small drift from the exact ratio. Hand-tune where the arithmetic fails the product: drop or raise a too-small bottom step and keep every neighbour visibly different.

solid answer

~50 s

The ratio is a **generator, not a law**. Computed values like 31.25 and 39.06 are rounded — commonly to whole numbers, and for larger steps often to grid-friendly values such as 32 and 40 — because fractional sizes are awkward to specify and discuss, and they complicate line heights. The drift this introduces, with neighbouring ratios wandering between roughly 1.2 and 1.33, is barely noticeable to readers. Rounding everything to a coarse grid can collide at the small end, though: 12.8 and 10.24 both become 12 on a 4-unit grid, so small steps usually round to whole numbers instead. **Hand-tune** when a computed step fails a real need: 10.24 is too small for readable text on a job card, so it is dropped or raised, but not so far that it nearly meets 13. Keep the tuned list strictly increasing, with visible differences between neighbours, and record every deviation from the computed values.

go deeper

for a junior

Remember that computed sizes are rounded before use, and that a too-small bottom step is dropped or raised rather than shipped as is.

for a middle

Explain the rounding trade-offs, why coarse rounding collapses small steps, and why small drift from the ratio does not matter to readers.

for a senior

Show you can tune a real scale — floor the bottom, compress the top, reject one-off sizes — and document each deviation so the scale stays trusted.

for a principal

Discuss how much tuning a system should allow before the scale stops being a shared rule, and who has authority to change a step.

## Computed values are a starting point A **modular type scale** multiplies a **base size** by a constant **ratio** for each step. With a base of 16 and a ratio of 1.25 the computed series is 10.24, 12.8, 16, 20, 25, 31.25, 39.06, 48.83. Almost nobody ships those exact numbers. Fractional sizes are awkward to specify, to discuss in a review and to pair with line heights, and different renderers may treat fractions differently. So the computed series is rounded, and occasionally adjusted by hand. The question is how to do that without losing what the scale was for: a short list of sizes with even, visible steps. ## Rounding strategies | Strategy | Result for base 16, ratio 1.25 | Trade-off | |---|---|---| | Exact values | 10.24, 12.8, 16, 20, 25, 31.25, 39.06, 48.83 | Faithful to the ratio; awkward to use and communicate | | Whole numbers | 10, 13, 16, 20, 25, 31, 39, 49 | Small drift; easy to use | | Multiples of 4 everywhere | 12, 12, 16, 20, 24, 32, 40, 48 | Tidy large steps; the two bottom steps collide | | Whole numbers below the base, multiples of 4 above | 10, 13, 16, 20, 24, 32, 40, 48 | Common hybrid; drift of a few percent per step | The drift is real but small. In the hybrid row, neighbouring ratios wander between about 1.2 and 1.33 instead of a constant 1.25. Readers do not measure ratios; they see steps that look evenly spaced and clearly different, and that is preserved. ## Why coarse rounding breaks the small end A 4-unit grid is a reasonable granularity for large sizes, where 4 is a small fraction of the value. At the bottom of the scale, 4 is a large fraction: 12.8 and 10.24 both round to 12, and two steps become one. The fix is to round small steps more finely, to whole numbers, and to keep grid alignment mostly for **line heights**, since line height is what actually occupies vertical space and lands on a baseline grid. ## When to hand-tune a step - **A step is too small to read.** 10.24 rounds to 10, which is below the size most teams accept for readable text such as the posting date on a job card. Drop the step, or raise it — but not to 12, where it would sit a single unit from 13 and look like the same size. - **Neighbours are too close after rounding.** If two adjacent steps end up only one unit apart at small sizes, one of them is not earning its place. - **A top step is impractical.** A display step that overflows a phone-width headline for a marketplace's landing page may be compressed or dropped; how sizes change across screen widths is a separate responsive decision. - **The typeface disagrees.** A face with a large x-height can make a step look bigger than its number, so optical tuning of one step is legitimate. What does **not** justify a new or changed step is a single design that wants 17 because it fits one card. That is the drift a scale exists to prevent. ## Keep the tuned scale honest 1. **Record both columns.** Document the computed value and the shipped value for every step, and why they differ. 2. **Keep it strictly increasing.** No step may equal or undercut the one below it after rounding. 3. **Keep neighbours visibly different.** Check them side by side in real layouts, not only in a specimen sheet. 4. **Re-derive deliberately.** If the base or ratio changes, recompute the whole list and review each tuned step again, rather than editing one value in isolation. 5. **Test on real content.** Set a dense screen, such as a freelancer's proposal list, with the tuned scale and confirm the steps still read as distinct at the sizes people actually see. ## Why this still counts as a modular scale A hand-tuned, rounded scale keeps the properties that matter: a small fixed list, proportional steps that look even, and a documented origin that explains every value. Treating the exact computed series as untouchable gives none of those extra benefits and makes the scale harder to use on every platform that has to express it.

  • Should font sizes or line heights carry the baseline-grid alignment?
    Mostly line heights. Line height is what occupies vertical space, so aligning it to the grid keeps rhythm while the font sizes themselves round more finely. Forcing font sizes onto a coarse grid collapses the small steps, as 12.8 and 10.24 both becoming 12 shows.
  • A designer wants 17 for one card because 16 feels slightly small. How do you respond?
    Ask what role the text plays. If it is body text, 16 is the answer and the card design adapts; if it is a different role, it probably belongs on an existing step such as 20. A new step is justified only when a recurring role genuinely has no suitable size.

saying these in an interview costs you the question

  • Any rounding breaks the scale, so computed values must ship exactly.
  • Rounding every step to a multiple of 4 is always safe.
  • A step should be added whenever one design needs a size between two steps.
  • Hand-tuning means the ratio was wrong and the scale must be recomputed.
  • Two adjacent steps one unit apart at small sizes are fine as long as both are on the list.