Start a project

Tool 109 of 425 · Design maths

Golden Ratio Calculator

Gives golden-ratio sizes for a value and a modular type scale as CSS custom properties.

Golden Ratio Calculator

Your input

Result

MeasureValuerem
CSS

    01

    What it does

    Gives golden-ratio sizes for a value and a modular type scale as CSS custom properties.

    • Larger and smaller golden parts
    • Golden rectangle height
    • Modular scale with any ratio
    • rem CSS variables

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    Proportions and CSS variables, with a Copy and a Download button on every result.

    • Golden ratio
    • Type scale
    • Layout

    Why it matters

    Layout columns and type sizes based on a consistent ratio look balanced, and the golden ratio is the classic choice.

    For interfaces a smaller ratio like 1.25 usually works better; pick it from the list.

    How to use it

    1. Type or paste your input; the example shows the format.
    2. Press Calculate. Results also update as you type.
    3. Read the summary line, then the table, notes or output below it.
    4. Copy or download what you need. Nothing leaves this page.

    FAQ

    What is φ?

    About 1.618: a line split so the whole relates to the longer part as that part relates to the shorter.

    Is the golden ratio magic?

    No, just one pleasing proportion. Consistency matters more.

    Is my input uploaded?

    No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.

    Can I rely on the result?

    It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk