Modular Scale

Not sure how this calculator works? Here are some tips.

This calculator makes a set of numbers called a modular scale, which you use like a ruler. More →

Bases
Add base Remove base

Bases are a scale’s root numbers. For example, the size at which your body text typeface looks best. More →

Ratios
Add ratio Remove ratio

Ratios are multiplied by the base to produce a scale of numbers that is proportionally related. More →

Web Sass JS

Get your scale as a plugin, or reference calculated results right here on the web. More →

This site is built & maintained by Scott Kellum and Tim Brown. Copyright © 2010–2015 Tim Brown.

Table Text
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog

How do I use this?

Use a scale like you would use a ruler. Many people set heading type sizes with numbers from a scale, but that's just one possibility. You can use a scale to measure or set the size of any element or negative space in a composition — including grids, and the overall dimensions of the composition itself.

What’s a good base?

Body text type size is a good place to start. If you want to get more nerdy, dig into the font metrics of your typeface (x-height, for example) and use that data as a base. If your layout has important fixed-width images or ads, you could use those widths.

What’s a good ratio?

Ratios can be chosen carefully and meaningfully, drawing inspiration from the history and character of a typeface or other elements in a project. Billy Whited gave several tips for choosing a scale, and Nathan Ford wrote about choosing ratios as part of deriving layout from your typeface. Owen Gregory thinks we might look to musical scales for better harmony. Or, choosing a ratio can be more simple — especially with help from plugins. If the scale-based sizes in your project's CSS are essentially variables, you can try different ratios to see how they look.

Can I use more than one ratio?

Sure! One base with one ratio is a modular scale. Any more than that is a multi-stranded modular scale. (Try entering a second base or ratio, and you'll see the a/b labeling in this calculator's output pane.) Multi-stranded modular scales are powerful because they add more numbers to your scale, and that flexibility means it's more likely that a number from your scale will work in your project. But too many strands can dilute a scale.

Why can't I use multiple bases and ratios?

Because that would really dilute the scale. If multiple ratios share the same base, they are united by that base. Even if two numbers in the scale's output are from different strands, they began at the same place. Similarly, if multiple bases share the same ratio, that's what ties the scale together. But if there are two bases and two ratios, it's possible that numbers from the scale's output could be completely unrelated to one another.

Should I use the Sass / JS plugins?

They are amazing, but they do require setup. This web calculator is a good way to reference scales and visually create them, but having a modular scale calculator right in your project allows you to change your scales on the fly. It also saves you the effort of having to remember values.

Both plugins work the same way:

  1. First, you need to install them in your project. There are several installation options. Head over to the pages to find out more: Sass and JavaScript
  2. Next, calculate a scale here at modularscale.com
  3. Finally, near the bottom of the calculator, use the Sass or JS tab to copy configuration code into your project

When you have things all set up, use the function ms(0) in your Sass or JS. Change the number in the function, and you get different values from your scale. You can also refer back to function values in the output pane here at modularscale.com — when you are using the plugins, you can just drop these functions into your project to get the associated value.

About this website

First introduced at Build 2010 by Tim Brown, this site was built as a tool to help web designers size their type in a more meaningful way. The site re-launched at AEA Atlanta 2015 through a collaboration between Tim Brown and Scott Kellum. The re-launch was an effort to consolidate, improve, and promote tools and best practices around using modular scales.

This site is designed using JAF Bernini Sans, designed by Tim Ahrens & Shoko Mugikura, as well as Freight Text, designed by Joshua Darden, both served from Typekit. It is built on Middleman, Sass, and Compass using the modular scale plugins and color-schemer. You can view the full source on GitHub. Hosted on BitBalloon.

Mobile Analytics

Close panel