Typography Scale Recommender Calculator
Use our free Typography scale recommender tool to get instant, accurate results. Powered by proven algorithms with clear explanations.
Calculator
Adjust values & calculateType Scale Preview
:root {
--font-size-sm2: 0.640rem;
--font-size-sm1: 0.800rem;
--font-size-base: 1.000rem;
--font-size-lg1: 1.250rem;
--font-size-lg2: 1.563rem;
--font-size-lg3: 1.953rem;
--font-size-lg4: 2.441rem;
--font-size-lg5: 3.052rem;
--font-size-lg6: 3.815rem;
}Formula
Each step in the scale multiplies the base font size by the chosen ratio raised to the step number. Step 0 is the base size, positive steps go larger (headings), negative steps go smaller (captions). Common ratios like Major Third (1.250) and Perfect Fourth (1.333) create visually pleasing progressions. Line height is automatically adjusted to decrease for larger sizes, maintaining readability.
Last reviewed: December 2025
Worked Examples
Example 1: Blog/Documentation Scale (Major Second)
Example 2: Marketing Landing Page (Perfect Fourth)
Background & Theory
The Typography Scale Recommender applies the following established principles and formulas. Large language models process text by breaking it into tokens, sub-word units produced by algorithms such as byte-pair encoding. In English, one token approximates four characters or three-quarters of a word on average, though this ratio varies considerably across languages and code. A 1000-word document typically requires around 1300 to 1500 tokens. Token count drives both context window constraints and inference billing, making accurate estimation essential for budgeting API usage. The capability of a neural network scales primarily with its parameter count. Parameters are the numerical weights adjusted during training via gradient descent. GPT-3 contains 175 billion parameters; larger models in the trillion-parameter range require correspondingly greater compute and memory. Training compute is measured in floating-point operations (FLOPs): the Chinchilla scaling laws derived by Hoffmann et al. in 2022 show that optimal training allocates roughly 20 tokens per parameter, meaning a 70B-parameter model benefits from approximately 1.4 trillion training tokens. Inference latency depends on model size, hardware, and batching strategy. Running a 7B-parameter model in FP16 precision requires roughly 14 GB of GPU VRAM (2 bytes per parameter), while INT8 quantisation halves this to around 7 GB with modest quality loss, and INT4 reduces it to approximately 3.5 GB. This quantisation trade-off between memory, speed, and accuracy is central to deploying models on consumer hardware. Perplexity measures how surprised a language model is by a given text corpus; lower perplexity indicates better predictive accuracy. Embedding dimensions determine the size of the dense vector representations used to encode semantic meaning. Models like OpenAI's text-embedding-ada-002 produce 1536-dimensional vectors, while compact models may use 384 dimensions. Context window size defines the maximum token span a model can attend to in a single forward pass. Extending context windows from 4K to 128K tokens enables document-scale reasoning but substantially increases memory requirements, as the attention mechanism scales quadratically with sequence length without architectural modifications such as flash attention.
History
The history behind the Typography Scale Recommender traces back through the following developments. The mathematical neuron model published by Warren McCulloch and Walter Pitts in 1943 first proposed that logical functions could be computed by networks of simple threshold units, planting the seed of neural computation. Frank Rosenblatt's Perceptron, introduced in 1957 and implemented in custom hardware by 1960, could learn linear classifiers from examples and generated enormous public excitement before Marvin Minsky and Seymour Papert's 1969 book rigorously analysed its fundamental limitations, demonstrating it could not learn the simple XOR function. The first AI winter, roughly 1974 to 1980, followed as funding agencies in the US and UK grew disillusioned with unrealised promises. A second wave of interest during the 1980s produced rule-based expert systems deployed in medicine and finance, and saw the re-derivation of backpropagation by Rumelhart, Hinton, and Williams in 1986, making it practical to train multi-layer networks on real problems. A second winter from 1987 to 1993 followed as expert systems proved brittle and hardware remained insufficient for genuine deep learning. The deep learning revival crystallised at the ImageNet Large Scale Visual Recognition Challenge in 2012, when Alex Krizhevsky's convolutional network AlexNet slashed the top-5 error rate by nearly 11 percentage points compared to the prior year's winner. This demonstrated that deep networks trained on GPUs with large labelled datasets could achieve human-competitive image recognition. Subsequent years saw rapid advances in recurrent networks, sequence-to-sequence models, and the attention mechanism, culminating in the transformer architecture introduced by Vaswani et al. in 2017. OpenAI released GPT-1 in 2018, demonstrating that unsupervised pre-training on large text corpora followed by task-specific fine-tuning could transfer knowledge broadly across language tasks. GPT-2 in 2019 demonstrated surprisingly fluent long-form text generation. GPT-3 in 2020, with 175 billion parameters, showed that scale alone could unlock few-shot learning. Kaplan et al.'s 2020 scaling laws paper provided the theoretical grounding. ChatGPT launched in November 2022, reaching one million users within five days and igniting mainstream global awareness of large language models.
Frequently Asked Questions
Formula
Font Size = Base Size x Ratio^Step
Each step in the scale multiplies the base font size by the chosen ratio raised to the step number. Step 0 is the base size, positive steps go larger (headings), negative steps go smaller (captions). Common ratios like Major Third (1.250) and Perfect Fourth (1.333) create visually pleasing progressions. Line height is automatically adjusted to decrease for larger sizes, maintaining readability.
Frequently Asked Questions
What is a typographic scale and why should I use one?
A typographic scale is a set of harmoniously sized text elements based on a consistent mathematical ratio, similar to musical scales. Instead of picking arbitrary font sizes (14px, 18px, 22px, 36px), a scale ensures every size relates to the others through a multiplier. This creates visual harmony and hierarchy automatically. For example, with a base of 16px and a Major Third ratio (1.250), your sizes would be 16, 20, 25, 31.25, 39.06px. Using a scale speeds up design decisions, ensures consistency across pages, and makes responsive scaling easier since you only need to adjust the base size.
Which scale ratio should I choose for my project?
The choice depends on your medium and content type. For body-heavy content like blogs and documentation, use smaller ratios (Major Second 1.125 or Minor Third 1.200) to keep sizes close together for comfortable reading. For marketing sites and landing pages, use larger ratios (Perfect Fourth 1.333 or Golden Ratio 1.618) for dramatic headline contrast. Mobile-first designs benefit from smaller ratios since screen space is limited. The Major Third (1.250) is the most popular all-purpose ratio, offering good contrast without extreme size differences. The Golden Ratio (1.618) creates the most dramatic hierarchy but can produce very large headings.
How do I make my type scale responsive across devices?
The most effective approach is fluid typography using CSS clamp(): set a minimum size, a preferred viewport-relative size, and a maximum size. For example: font-size: clamp(16px, 1vw + 12px, 20px). Alternatively, adjust only the base size at breakpoints and let the scale ratio calculate all other sizes automatically. A common responsive strategy is: mobile base 14-15px, tablet 15-16px, desktop 16-18px. Avoid changing the ratio itself across breakpoints, as this disrupts the visual harmony. Some designers use a smaller ratio on mobile (1.200) and larger on desktop (1.333) for more dramatic desktop headers, but this adds complexity.
Is my data stored or sent to a server?
No. All calculations run entirely in your browser using JavaScript. No data you enter is ever transmitted to any server or stored anywhere. Your inputs remain completely private.
What inputs do I need to use Typography Scale Recommender Calculator accurately?
Each field is labelled with the required unit (metric or imperial). Gather your source values before starting โ for example, a weight measurement in kilograms, a distance in metres, or a dollar amount โ and enter them exactly as measured. The formula section on this page lists every variable and explains what each represents.
Can I use the results for professional or academic purposes?
You may use the results for reference and educational purposes. For professional reports, academic papers, or critical decisions, we recommend verifying outputs against peer-reviewed sources or consulting a qualified expert in the relevant field.
References
Reviewed by Daniel Agrici, Founder & Lead Developer ยท Editorial policy