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
Related tools
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
Is the golden ratio really more pleasing to the eye?
It is widely used in design because 1:1.618 gives a balanced but non-symmetric split, and it is easy to repeat at every scale. Claims that people are naturally drawn to it are weaker than often stated: studies of preferences for golden rectangles have produced mixed results.
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 the golden ratio and the rule of thirds?
The rule of thirds places guide lines at 33.3% and 66.7% of the frame; the golden ratio places them at 38.2% and 61.8%. The golden ratio lines sit closer to the center, which gives a slightly tighter composition.
This golden ratio calculator is a free tool for designers, developers, and creators. We do not collect or store what you enter.
Related Tools
CSS Clamp Generator
Generate responsive CSS clamp() values for fluid typography.
PX to REM Converter
Convert pixel values to rem/em units with configurable base font size.
Aspect Ratio Calculator
Calculate dimensions based on aspect ratio.
CSS Gradient Generator
Create linear and radial gradients with copy-ready CSS.
Color Palette Generator
Generate harmony-based palettes with export and contrast checks.
Unit Ratio Calculator
Simplify ratios like 100:50 to 2:1 instantly.
Percentage Increase/Decrease
Calculate % change between two numbers.
Fuel Cost Calculator
Calculate trip cost based on distance and MPG.
Ohm's Law Calculator
Calculate Voltage, Current, or Resistance instantly using Ohm's Law.
Date Difference Calculator
Calculate years, months, days between two dates.
Matrix Calculator
Performs addition, multiplication, and inversion of matrices.
Celsius to Fahrenheit Converter
Convert °C to °F and back with the formula and a chart.