Aspect Ratios Explained: From 16:9 to 1:1 and Beyond
Aspect ratios for social media, video, print, and responsive CSS, with the math for calculating and converting between them.
Aspect ratio determines how images and videos appear on different screens and platforms. Once you understand them, it gets much easier to make content that displays correctly everywhere, from Instagram posts to ultrawide monitors.
What is Aspect Ratio?
An aspect ratio is the proportional relationship between the width and height of an image or video. It's expressed as width:height.
Aspect Ratio = Width : Height
Example: 1920 × 1080 pixels
1920 : 1080 = 16 : 9 (simplified)
The same aspect ratio can apply to any size: a 16:9 image could be 1920×1080, 1280×720, or even 160×90. The shape stays the same.
How to Calculate Aspect Ratio
From Dimensions to Ratio
Divide both numbers by their greatest common divisor (GCD):
1920 × 1080
GCD of 1920 and 1080 = 120
1920 ÷ 120 = 16
1080 ÷ 120 = 9
Aspect ratio: 16:9
As a Decimal
Divide width by height:
1920 ÷ 1080 = 1.778 (or just "1.78")
This is useful for calculations and comparisons.
Quick Mental Math
Divide width by height and compare the result with the decimals of the ratios you already know:
1920 × 1080 → 1920 ÷ 1080 ≈ 1.78 → 16:9
1080 × 1350 → 1080 ÷ 1350 = 0.80 → 4:5 (both divide by 270)
2560 × 1080 → 2560 ÷ 1080 ≈ 2.37 → sold as "21:9" (exactly 64:27)
The last line is a reminder that some familiar names are marketing round numbers rather than exact ratios.
Finding Dimensions from Ratio
If you know the ratio and one dimension:
Want 16:9 at 1920px wide:
Height = Width × (9/16)
Height = 1920 × 0.5625 = 1080px
Want 16:9 at 1080px tall:
Width = Height × (16/9)
Width = 1080 × 1.778 = 1920px
Common Aspect Ratios
Standard Ratios Reference
| Ratio | Decimal | Width | Height | Common Use |
|---|---|---|---|---|
| 1:1 | 1.00 | 1 | 1 | Square, Instagram posts, profile pics |
| 5:4 | 1.25 | 5 | 4 | 8×10 prints, some monitors |
| 4:3 | 1.33 | 4 | 3 | Traditional TV, iPad, older monitors |
| 3:2 | 1.50 | 3 | 2 | DSLR photos, 35mm film, prints |
| 16:10 | 1.60 | 16 | 10 | MacBooks, some monitors |
| 16:9 | 1.78 | 16 | 9 | HD video, most monitors, YouTube |
| 1.85:1 | 1.85 | 1.85 | 1 | US widescreen cinema |
| 2:1 | 2.00 | 2 | 1 | Univisium, some phones |
| 21:9 | 2.33 | 21 | 9 | Ultrawide monitors |
| 2.35:1 | 2.35 | 2.35 | 1 | Anamorphic widescreen cinema |
| 2.39:1 | 2.39 | 2.39 | 1 | Modern cinema "Scope" |
| 9:16 | 0.56 | 9 | 16 | Vertical video, phone screens |
| 4:5 | 0.80 | 4 | 5 | Instagram portrait, Pinterest |
Visualizing the Differences
1:1 (Square)
+-------+
| |
| |
+-------+
4:3 (Classic)
+---------+
| |
| |
+---------+
16:9 (Widescreen)
+-------------+
| |
+-------------+
21:9 (Ultrawide)
+-----------------+
| |
+-----------------+
9:16 (Vertical)
+---+
| |
| |
| |
| |
+---+
Platform-Specific Requirements
Social Media Images
| Platform | Format | Ratio | Resolution |
|---|---|---|---|
| Feed Post | 1:1 | 1080×1080 | |
| Portrait Post | 4:5 | 1080×1350 | |
| Landscape Post | 1.91:1 | 1080×566 | |
| Story/Reel | 9:16 | 1080×1920 | |
| Feed Post | 1.91:1 | 1200×630 | |
| Story | 9:16 | 1080×1920 | |
| Cover Photo | 2.63:1 | 820×312 | |
| Twitter/X | Single Image | 16:9 | 1200×675 |
| Two Images | 7:8 each | 700×800 | |
| Card Image | 1.91:1 | 1200×628 | |
| Post Image | 1.91:1 | 1200×627 | |
| Cover Photo | 4:1 | 1584×396 | |
| Standard Pin | 2:3 | 1000×1500 | |
| Long Pin | 1:2.1 | 1000×2100 | |
| TikTok | Video | 9:16 | 1080×1920 |
| YouTube | Video | 16:9 | 1920×1080+ |
| Thumbnail | 16:9 | 1280×720 | |
| Shorts | 9:16 | 1080×1920 |
Video Platforms
| Platform | Aspect Ratio | Common Resolutions |
|---|---|---|
| YouTube | 16:9 | 3840×2160, 1920×1080, 1280×720 |
| YouTube Shorts | 9:16 | 1080×1920 |
| TikTok | 9:16 | 1080×1920 |
| Instagram Reels | 9:16 | 1080×1920 |
| Vimeo | 16:9 | 1920×1080, 4096×2160 |
| TV Broadcast | 16:9 | 1920×1080 (HD), 3840×2160 (4K) |
| Cinema | 2.39:1 | 4096×1716 (4K DCI Scope) |
Screen Resolutions
| Resolution | Ratio | Name |
|---|---|---|
| 640×480 | 4:3 | VGA |
| 800×600 | 4:3 | SVGA |
| 1024×768 | 4:3 | XGA |
| 1280×720 | 16:9 | HD / 720p |
| 1280×800 | 16:10 | WXGA |
| 1920×1080 | 16:9 | Full HD / 1080p |
| 1920×1200 | 16:10 | WUXGA |
| 2560×1440 | 16:9 | QHD / 1440p |
| 2560×1080 | 21:9 | Ultrawide |
| 3440×1440 | 21:9 | Ultrawide QHD |
| 3840×2160 | 16:9 | 4K UHD |
| 5120×2160 | 21:9 | 5K Ultrawide |
Print Sizes
| Print Size | Ratio | Closest Standard |
|---|---|---|
| 4×6 inches | 3:2 | 3:2 |
| 5×7 inches | 7:5 (1.4) | Between 4:3 and 3:2 |
| 8×10 inches | 5:4 | 5:4 |
| 11×14 inches | 14:11 (1.27) | ~5:4 |
| 16×20 inches | 5:4 | 5:4 |
| 20×24 inches | 6:5 | ~5:4 |
Note: DSLRs and most mirrorless cameras shoot 3:2, while phones usually shoot 4:3. Neither matches 5:4, so an 8×10 print always involves some cropping.
Implementing Aspect Ratios in CSS
Modern CSS: aspect-ratio Property
The cleanest solution for modern browsers:
/* Fixed aspect ratio container */
.video-container {
aspect-ratio: 16 / 9;
width: 100%;
}
.square-image {
aspect-ratio: 1 / 1;
width: 200px;
}
.portrait-card {
aspect-ratio: 4 / 5;
width: 300px;
}
Padding Hack (Legacy Support)
For older browsers, use the padding percentage trick:
/* Percentage padding is relative to width */
.aspect-ratio-box {
position: relative;
width: 100%;
padding-bottom: 56.25%; /* 9/16 = 0.5625 = 56.25% */
}
.aspect-ratio-box > * {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
Common padding values:
| Ratio | Padding-Bottom |
|---|---|
| 1:1 | 100% |
| 4:3 | 75% |
| 3:2 | 66.67% |
| 16:9 | 56.25% |
| 21:9 | 42.86% |
| 4:5 | 125% |
| 9:16 | 177.78% |
Responsive Images with Aspect Ratio
/* Maintain aspect ratio while being responsive */
.responsive-image {
width: 100%;
height: auto;
aspect-ratio: 16 / 9;
object-fit: cover; /* or 'contain' */
}
/* Image gallery with consistent sizing */
.gallery-item {
aspect-ratio: 1 / 1;
object-fit: cover;
width: 100%;
}
Video Embeds
/* Responsive YouTube/Vimeo embed */
.video-wrapper {
aspect-ratio: 16 / 9;
width: 100%;
}
.video-wrapper iframe {
width: 100%;
height: 100%;
}
Handling Different Aspect Ratios
object-fit Property
Control how content fills its container:
/* Cover: fills container, may crop */
.image-cover {
aspect-ratio: 16 / 9;
object-fit: cover;
object-position: center; /* control crop position */
}
/* Contain: shows all content, may letterbox */
.image-contain {
aspect-ratio: 16 / 9;
object-fit: contain;
background: #000; /* letterbox color */
}
/* Fill: stretches to fill (distorts) */
.image-fill {
aspect-ratio: 16 / 9;
object-fit: fill;
}
Letterboxing and Pillarboxing
When content doesn't match the container ratio:
Letterboxing (black bars top/bottom):
16:9 content in 4:3 container
+-------------+
|■■■■■■■■■■■■■| ← black bar
| content |
|■■■■■■■■■■■■■| ← black bar
+-------------+
Pillarboxing (black bars left/right):
4:3 content in 16:9 container
+---+---------+---+
| ■ | content | ■ |
+---+---------+---+
Best Practices
1. Design for Cropping
When creating content that will appear at multiple ratios, keep important elements in the "safe zone":
+---------------------------+
| |
| +---------------+ |
| | SAFE ZONE | |
| | Important | |
| | content here | |
| +---------------+ |
| |
+---------------------------+
Content outside safe zone may be cropped on some platforms.
2. Shoot Wide, Crop Later
For video, shoot in a wider aspect ratio than your final output:
Shoot in 16:9 → Crop to:
- 16:9 (horizontal)
- 1:1 (square)
- 9:16 (vertical)
- 4:5 (portrait)
3. Consider Mobile First
Most social media is viewed on phones:
- Vertical (9:16) gets more screen real estate
- Square (1:1) works well on feeds
- Horizontal (16:9) is fine but uses less space
4. Platform-Specific Assets
Create separate assets for different platforms rather than using one-size-fits-all:
Campaign assets needed:
- Instagram Feed: 1:1 and 4:5
- Instagram Story: 9:16
- YouTube: 16:9
- Facebook: 1.91:1
Common Issues
Image Looks Stretched
The aspect ratio is being changed (filled instead of covered):
/* Wrong: distorts image */
img {
width: 400px;
height: 300px;
}
/* Right: maintains ratio */
img {
width: 400px;
height: auto;
}
/* Or use object-fit */
img {
width: 400px;
height: 300px;
object-fit: cover;
}
Important Parts Getting Cropped
Use object-position to control the focus point:
/* Focus on top (for portrait photos) */
img {
object-fit: cover;
object-position: center top;
}
/* Focus on specific point */
img {
object-fit: cover;
object-position: 30% 20%;
}
Quick Reference Formulas
// Calculate height from width and ratio
height = width / (ratioWidth / ratioHeight)
height = width * (ratioHeight / ratioWidth)
// Calculate width from height and ratio
width = height * (ratioWidth / ratioHeight)
// Get ratio from dimensions
ratio = width / height
// Convert ratio to percentage (for padding hack)
percentage = (height / width) * 100
The Loopaloo Aspect Ratio Calculator does the GCD step for you: enter a width and height to get the reduced ratio, then type a new width or height to get the matching other side. Presets cover most of the ratios in the tables above, and each one notes where the name is a rounded marketing number rather than the exact ratio.
Related Tools
Aspect Ratio Calculator
Find the aspect ratio of any size in lowest terms, resize to a new width or height without distortion, and compare with common screen, film and photo ratios.
Image Resizer
Resize one photo or a whole batch to exact pixels, a percentage or a social media preset, with fit, fill and crop, or stretch, and save as JPEG, PNG or WebP.