Productive Toolbox

Golden Ratio Calculator

Calculate perfect proportions using φ (1.618) for design and layout

Golden Ratio Calculator

Calculate perfect proportions using φ (1.618) for design and layout

Golden Ratio (φ)
φ ≈ 1.618033988749895

Calculation Mode

Enter Total Value

Supports numbers, pixels (px), and percentages (%)

Common Values

What is the Golden Ratio?

The Golden Ratio, also known as Phi (φ), is a mathematical constant approximately equal to 1.618. It appears throughout nature, art, and architecture, creating aesthetically pleasing proportions. When a line is divided into two parts following the golden ratio, the ratio of the whole line to the larger part equals the ratio of the larger part to the smaller part.

φ = (1 + √5) / 2 ≈ 1.618033988749895

How Golden Ratio Calculation Works

Forward Calculation

Given a total value, split it into two parts:

Large Part = Total ÷ 1.618 ≈ 61.8% of total
Small Part = Total - Large Part ≈ 38.2% of total

Example: Total = 1000
Large Part = 1000 ÷ 1.618 ≈ 618
Small Part = 1000 - 618 = 382

Reverse Calculation

Calculate total from either part:

From Small: Total = Small × φ / (φ - 1)
From Large: Total = Large × φ

Key Features

🧮 Smart Calculator

Forward and reverse calculations with support for px, %, and plain numbers.

🌀 Golden Spiral

Visual representation with golden rectangle and spiral overlay.

📝 Typography Scale

Generate harmonious font sizes based on golden ratio.

📏 Spacing System

Create consistent spacing values for UI design.

🎨 Layout Generator

Split layouts into main content and sidebar areas.

💻 CSS Code

Generate ready-to-use CSS for Grid, Flexbox, and more.

Common Use Cases

🎨 Web Design

Create visually balanced layouts by splitting page width into main content (61.8%) and sidebar (38.2%).

📱 UI Design

Generate spacing systems and component sizes that feel naturally harmonious.

✍️ Typography

Create type scales where each size relates to the next by the golden ratio for perfect hierarchy.

📐 Architecture

Calculate proportions for building dimensions, room layouts, and structural elements.

📷 Photography

Use golden ratio for composition, cropping, and placing focal points in images.

How to Use

Basic Calculator

  1. Choose calculation mode (Forward, From Small, or From Large)
  2. Enter your value (supports numbers, px, %)
  3. View the golden ratio split instantly
  4. See visual representation with golden spiral
  5. Copy results or export as JSON/TXT

Typography Scale

  1. Switch to "Typography" tab
  2. Enter base font size (e.g., 16px)
  3. View generated scale with visual samples
  4. Copy individual sizes or entire scale
  5. Use in your design system or CSS

Spacing System

  1. Switch to "Spacing" tab
  2. Enter base spacing value (e.g., 8px)
  3. View generated spacing scale with visual bars
  4. Copy values for your design tokens

Layout Split

  1. Switch to "Layout" tab
  2. Enter total width (e.g., 1440px)
  3. View main content and sidebar widths
  4. See visual layout preview
  5. Copy CSS code for implementation

Golden Ratio in Nature and Design

The golden ratio appears throughout nature and has been used in art and architecture for centuries:

  • Nature: Spiral patterns in shells, flower petals, pinecones, and galaxies
  • Human Body: Proportions of face, fingers, and body segments
  • Architecture: Parthenon, Great Pyramid of Giza, Notre-Dame Cathedral
  • Art: Leonardo da Vinci's works, Salvador Dalí's paintings
  • Design: Apple products, Twitter logo, Pepsi logo
  • Music: Compositions by Mozart, Beethoven, and Debussy

CSS Implementation Examples

CSS Grid Layout

.container {
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  gap: 20px;
}

/* Main content gets 61.8% */
/* Sidebar gets 38.2% */

Flexbox Layout

.container {
  display: flex;
  gap: 20px;
}

.main {
  flex: 1.618;
}

.sidebar {
  flex: 1;
}

Typography Scale

:root {
  --text-xs: 10px;
  --text-sm: 16px;
  --text-base: 26px;
  --text-lg: 42px;
  --text-xl: 68px;
}

/* Each size is previous × 1.618 */

Design Tips

Start with base values: Use 8px or 16px as base for spacing and typography.

Don't overuse: Apply golden ratio to key elements, not everything.

Round values: Round to whole pixels for cleaner implementation.

Test responsiveness: Ensure golden ratio layouts work on all screen sizes.

Combine with other principles: Use alongside grid systems and design tokens.

Frequently Asked Questions

Why is the golden ratio considered aesthetically pleasing?

The golden ratio creates proportions that feel naturally balanced and harmonious. It appears throughout nature, and humans have evolved to find these proportions visually appealing.

Should I use golden ratio for all my designs?

No. The golden ratio is a helpful guideline, not a strict rule. Use it where it makes sense, but prioritize usability, accessibility, and your specific design requirements.

How do I apply golden ratio to responsive design?

Use CSS Grid with fr units (1.618fr and 1fr) or Flexbox with flex values. These scale proportionally across different screen sizes while maintaining the golden ratio.

Can I use golden ratio for mobile layouts?

Yes, but consider stacking elements vertically on mobile instead of side-by-side. Apply golden ratio to vertical spacing, typography scales, and component sizing.

What's the difference between golden ratio and rule of thirds?

Rule of thirds divides space into equal thirds (33.3% each), while golden ratio uses 61.8% and 38.2%. Golden ratio is more precise and creates slightly different visual balance.

This golden ratio calculator is a free, browser-based tool for designers, developers, and creators. All calculations and visualizations happen locally with no server communication.