Golden Ratio Typography Calculator

Enter a base font size and get the ideal line height, line width, and heading scale using the golden ratio (1.618).

Typography Settings

px
Base Size
16px
Line Height
1.618
~26px
Optimal Width
680px
~65 chars/line

Heading Scale

Live Preview

Max width applied

The quick brown fox

Jumps over the lazy dog

Good typography starts with a solid base. When font sizes, line heights, and line widths are proportional to one another, text feels effortless to read. The golden ratio provides a proven mathematical basis for those proportions.

Caption text — smaller supporting copy.

CSS Variables


        
Copied!

Summary

Enter a base font size and get the ideal line height, line width, and heading scale using the golden ratio (1.618).

How it works

  1. Enter your base body font size in pixels (default is 16px).
  2. The calculator instantly applies the golden ratio (1.618) to derive line height and line width.
  3. Review the heading scale — H1 through H4 — each stepped by the golden ratio.
  4. Use the preview panel to see how the scale looks with real text.
  5. Copy any individual value or the full CSS snippet to use in your project.

Use cases

  • Set harmonious body and heading font sizes for a new web design.
  • Find the right line height for a given font size to maximize readability.
  • Generate a modular type scale for a design system.
  • Validate existing typography choices against the golden ratio.
  • Quickly prototype readable text styles before committing to a CSS framework.
  • Teach typographic proportion principles to students or teammates.

Frequently Asked Questions

Last updated: 2026-07-01 · Reviewed by Nham Vu