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
Calculation Mode
Enter Total Value
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.
How Golden Ratio Calculation Works
Forward Calculation
Given a total value, split it into two parts:
Example: Total = 1000
Large Part = 1000 ÷ 1.618 ≈ 618
Small Part = 1000 - 618 = 382
Reverse Calculation
Calculate total from either part:
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
- Choose calculation mode (Forward, From Small, or From Large)
- Enter your value (supports numbers, px, %)
- View the golden ratio split instantly
- See visual representation with golden spiral
- Copy results or export as JSON/TXT
Typography Scale
- Switch to "Typography" tab
- Enter base font size (e.g., 16px)
- View generated scale with visual samples
- Copy individual sizes or entire scale
- Use in your design system or CSS
Spacing System
- Switch to "Spacing" tab
- Enter base spacing value (e.g., 8px)
- View generated spacing scale with visual bars
- Copy values for your design tokens
Layout Split
- Switch to "Layout" tab
- Enter total width (e.g., 1440px)
- View main content and sidebar widths
- See visual layout preview
- 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.
Related Tools
Aspect Ratio Calculator
Calculate image and video dimensions with visual preview and CSS generation
CSS Gradient Generator
Create linear and radial CSS gradients with editable stops, live preview, and copy-ready CSS code
Color Palette Generator
Generate harmony-based color palettes with locking, contrast checks, and export-ready formats