Font Converter

Golden Ratio Typography Calculator — Type Scale Generator

Generate harmonious font sizes for headings and body text using the golden ratio (1.618) or 7 other mathematical scales. Set your base size, pick a ratio, and get production-ready CSS with visual preview.

px

Type Scale

StepUsePXREMEM
xsSmall text6.11px0.382rem0.382em
smCaption9.89px0.618rem0.618em
baseBody16px1rem1em
lgH625.89px1.618rem1.618em
xlH541.89px2.618rem2.618em
2xlH467.77px4.236rem4.236em
3xlH3109.66px6.854rem6.854em
4xlH2177.42px11.089rem11.089em
5xlH1287.07px17.942rem17.942em

Visual Preview

287.07px

H1

177.42px

H2

109.66px

H3

67.77px

H4

41.89px

H5

25.89px

H6

16px

Body

9.89px

Caption

6.11px

Small text

CSS Output

:root {
  --font-size-xs: 0.382rem; /* 6.11px */
  --font-size-sm: 0.618rem; /* 9.89px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.618rem; /* 25.89px */
  --font-size-xl: 2.618rem; /* 41.89px */
  --font-size-2xl: 4.236rem; /* 67.77px */
  --font-size-3xl: 6.854rem; /* 109.66px */
  --font-size-4xl: 11.089rem; /* 177.42px */
  --font-size-5xl: 17.942rem; /* 287.07px */
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

Developer & Verifier

Marcus Rodriguez

Developed by

Marcus Rodriguez

Full-stack developer specializing in web font implementation and performance optimization

Sarah Mitchell

Verified by

Sarah Mitchell

Typography expert specializing in font design, web typography, and accessibility

What is the Golden Ratio in Typography?

The golden ratio (φ ≈ 1.618) is a mathematical proportion that appears throughout nature, art, and architecture. In typography, it creates a modular scale where each font size is 1.618 times larger than the previous one. Starting from a 16px base: 16px → 25.89px → 41.89px → 67.77px — each step feels naturally proportional.

A type scale eliminates guesswork from heading sizing. Instead of picking arbitrary values, you choose a base size and a ratio, and the math produces a consistent hierarchy. This is the same principle behind tools like font size converters — systematic relationships between values rather than ad hoc decisions.

This calculator supports 8 preset ratios from Minor Second (1.067, subtle differences) to the Golden Ratio (1.618, dramatic hierarchy), plus custom values. Each produces a different feel: tighter ratios suit mobile and compact UIs, while wider ratios create bold editorial layouts. The generated CSS uses custom properties for easy integration with any CSS implementation.

Features

Golden Ratio (1.618) Scale
8 Preset Ratios
Custom Ratio Support
Visual Text Preview
CSS Variables Output
PX, REM & EM Values

Scale Ratio Comparison

RatioValueH1 from 16pxBest For
Minor Third1.20039.81pxMobile, compact UIs
Major Third1.25048.83pxGeneral web, balanced feel
Perfect Fourth1.33363.21pxBlog posts, articles
Augmented Fourth1.41480.63pxMagazines, editorial
Perfect Fifth1.500108pxLanding pages, marketing
Golden Ratio1.618146.56pxHero sections, dramatic headings

Key Benefits

Why choose this tool for your document conversion needs

Mathematical Precision

Scale values calculated from precise ratios, not arbitrary sizing.

8 Preset Ratios

From Minor Second (1.067) to Golden Ratio (1.618), plus custom values.

Visual Preview

See how each size renders with actual text before copying CSS.

Ready-to-Use CSS

Generated CSS custom properties and heading rules. One-click copy.

Tool Statistics

8 ratios

Preset Ratios

From Minor Second (1.067) to Golden Ratio (1.618).

3 units

Output Formats

PX, REM, and EM values for every scale step.

Instant

Processing

Real-time calculation as you adjust inputs.

Best Practices

Tips for getting the most out of this tool

Start with Golden Ratio

The golden ratio (1.618) is a safe default for most projects. Adjust only if it feels too dramatic.

💡 Tip: Try Minor Third (1.2) for mobile-first designs where space is limited.

Use CSS Custom Properties

The generated CSS uses custom properties (--font-size-*) for easy maintenance.

💡 Tip: Reference these variables throughout your stylesheet for consistent sizing.

Test at Multiple Viewports

A scale that works on desktop may need adjustment for mobile.

💡 Tip: Consider using a tighter ratio for small screens and a wider ratio for large screens.

Troubleshooting Guide

Common issues and how to resolve them

Heading sizes too large or too small

Try a smaller ratio like Minor Third (1.2) or Major Third (1.25). The golden ratio (1.618) creates dramatic differences that may not suit all designs.

Scale doesn't match design mockup

Use the custom ratio field to enter the exact ratio from your design system. Adjust the base size to match your body text size.

CSS output uses wrong units

The CSS output uses rem units with px comments. Adjust your project's html font-size if your base is not 16px.

Frequently Asked Questions

What is the golden ratio in typography?
The golden ratio (1.618) is a mathematical proportion found in nature and art. In typography, it creates harmonious font size scales: multiply each step by 1.618 to get the next size. Starting from 16px, the scale produces 16px → 25.89px → 41.89px → 67.77px.
How do I use a type scale?
Choose a base font size (usually 16px), pick a scale ratio, and use the generated sizes for your headings (h1-h6) and body text. The scale ensures consistent visual hierarchy. Copy the CSS output directly into your stylesheet.
What ratio should I use for my project?
The golden ratio (1.618) works well for content-heavy sites. For tighter designs, try Major Third (1.25) or Perfect Fourth (1.333). For dramatic headings, use Perfect Fifth (1.5). Mobile designs often benefit from smaller ratios like Minor Third (1.2).
What is the difference between modular scale and golden ratio?
The golden ratio (1.618) is one specific modular scale. A modular scale is any system where sizes are calculated by multiplying a base by a consistent ratio. This tool supports 8 preset ratios including the golden ratio, plus custom values.
How does typographic hierarchy improve readability?
Consistent size differences between headings and body text help readers scan content and understand structure. A mathematical scale ensures each heading level is proportionally distinct, creating clear visual hierarchy without guesswork.
Can I use a custom ratio?
Yes, enter any ratio between 1.001 and 3.0 in the custom field. The tool recalculates all scale values instantly. You can also adjust the number of steps above and below the base size.