Aspect Ratio Calculator
Find a ratio from pixels, scale dimensions, or calculate a missing width or height — instantly.
Enter any pixel dimensions — e.g. 1920 × 1080 — and get the simplified ratio, decimal, megapixels, orientation, and the closest standard format.
Enter original dimensions, then type either the new width or height — the missing value is calculated automatically.
Enter a ratio like 16:9, choose whether you know the width or height, type the value, and get the missing dimension.
| Ratio | Crop Dimensions | Trimmed |
|---|
What Is an Aspect Ratio? A Complete Guide
An aspect ratio is the proportional relationship between a rectangle's width and its height, expressed as two numbers separated by a colon — for example, 16:9 or 4:3. It describes the shape of an image, video, screen, or print without specifying actual pixel dimensions.
A 1280×720 video and a 3840×2160 video both have a 16:9 aspect ratio — they are the same shape, just different resolutions. Understanding aspect ratios is essential for:
- Video production — avoiding black bars (letterboxing/pillarboxing)
- Social media — uploading images that don't get cropped unexpectedly
- Photography — composing shots knowing your camera's native ratio
- Print design — ensuring your digital file matches the intended paper size
- Web development — creating responsive containers with the correct proportions
Most Common Aspect Ratios & Where They're Used
| Ratio | Decimal | Orientation | Common Uses |
|---|---|---|---|
1:1 | 1.00 | Square | Instagram feed, profile photos, album art, favicons |
4:3 | 1.33 | Landscape | Older TVs, iPads, Micro Four Thirds cameras, video conferencing |
3:2 | 1.50 | Landscape | Full-frame & APS-C DSLRs (Canon, Nikon, Sony), 4×6 prints |
16:9 | 1.78 | Landscape | YouTube, Netflix, modern TVs, computer monitors, Zoom |
16:10 | 1.60 | Landscape | Many MacBooks, some PC monitors (more vertical space) |
21:9 | 2.33 | Ultra-wide | Ultrawide monitors, cinematic gaming, some streaming content |
9:16 | 0.56 | Portrait | Instagram Reels, TikTok, YouTube Shorts, Snapchat |
4:5 | 0.80 | Portrait | Instagram portrait feed posts (tallest without cropping) |
2:3 | 0.67 | Portrait | Portrait photography, Pinterest pins |
1.85:1 | 1.85 | Cinema | Flat cinema format (many Hollywood films) |
2.39:1 | 2.39 | Cinema | Anamorphic widescreen (Nolan films, blockbusters) |
1.43:1 | 1.43 | IMAX | IMAX films (taller than standard cinema) |
How to Calculate Aspect Ratio from Pixel Dimensions
The formula uses the Greatest Common Divisor (GCD) of width and height:
function gcd(a, b) {
return b === 0 ? a : gcd(b, a % b);
}
// Example: 1920 × 1080
const g = gcd(1920, 1080); // → 120
const ratio = `${1920 / g}:${1080 / g}`; // → "16:9"
Step by step: Find the GCD of width and height. For 1920 and 1080, the GCD is 120. Divide both by the GCD: 1920 ÷ 120 = 16, 1080 ÷ 120 = 9. Express as 16:9. For 2560×1440: GCD is 80 → 32:18 → simplifies to 16:9.
Aspect Ratio Formulas for Common Calculations
Formula 1: Find the Missing Dimension (Scale Proportionally)
When you know the original dimensions and one new dimension:
new_height = (new_width / original_width) × original_height new_width = (new_height / original_height) × original_width // Example: 1920×1080 image scaled to 800px wide new_height = (800 / 1920) × 1080 = 450px
Formula 2: Calculate the Decimal Ratio
decimal_ratio = width ÷ height // 16:9 → 1920 ÷ 1080 = 1.777... ≈ 1.78:1
Formula 3: Find Megapixels
megapixels = (width × height) ÷ 1,000,000 // 1920 × 1080 = 2,073,600 pixels → 2.07 MP
In CSS you can preserve aspect ratio automatically with width: 100%; height: auto; on an <img> tag, or use .container { aspect-ratio: 16 / 9; width: 100%; } on any container element.
Letterboxing, Pillarboxing, and Cropping Explained
Letterboxing — Black bars on the top and bottom. Occurs when a wide-format source (e.g., 16:9) is shown in a narrower container (e.g., 4:3 TV). The content is shrunk to fit the full width, leaving empty space above and below.
Pillarboxing — Black bars on the left and right. Occurs when a narrow-format source (e.g., 4:3) is shown in a wider container (e.g., 16:9 screen). The content is shrunk to fit the full height, leaving empty space on the sides.
Cropping — The image is cut off to fill the container. Some platforms (like Instagram) let you choose between cropping or fitting. Use the Crop Suggestions table in the tool above to see exactly how many pixels are trimmed for each target ratio.
Aspect Ratio for Social Media Platforms (2025)
YouTube
- Standard video:
16:9— 1920×1080 for 1080p, 3840×2160 for 4K - YouTube Shorts:
9:16— 1080×1920 - Thumbnails: 1280×720 (
16:9) - Channel banner: 2560×1440 (
16:9)
- Feed square:
1:1— 1080×1080 - Feed portrait:
4:5— 1080×1350 (tallest allowed without cropping) - Feed landscape:
1.91:1— 1080×566 - Reels / Stories:
9:16— 1080×1920
TikTok
Primary format: 9:16 (1080×1920). Landscape 16:9 and square 1:1 are also supported.
Twitter / X
Single image: up to 16:9, optimal 1600×900. Profile header: 1500×500 (3:1).
Post images: 1.91:1 to 1:1 (recommended 1200×627). Company cover and profile banner: 1584×396 (4:1).
Facebook & Pinterest
Facebook feed post: 16:9 (1200×675 recommended). Pinterest: 2:3 (1000×1500) is the recommended pin size.
Aspect Ratio in Photography
Camera Native Ratios
| Camera Type | Native Ratio | Example Resolution |
|---|---|---|
| Full-frame DSLR (Canon, Nikon, Sony) | 3:2 | 6000×4000 (24 MP) |
| APS-C (crop sensor) | 3:2 | 6000×4000 (24 MP) |
| Micro Four Thirds (Olympus, Panasonic) | 4:3 | 4592×3448 (16 MP) |
| Medium format (Hasselblad, Fuji GFX) | 4:3 or 1:1 | 8272×6200 (51 MP) |
| iPhone (portrait) | ~19.5:9 display, 4:3 camera | 4032×3024 |
Print Size Aspect Ratios
| Print Size | Aspect Ratio | Crop from 3:2 Camera |
|---|---|---|
| 4×6" | 3:2 | No crop (perfect match) |
| 5×7" | 7:5 (1.4:1) | Slight crop from width |
| 8×10" | 4:5 (0.8:1) | Crop from both sides |
| 11×14" | 7:5 (1.4:1) | Crop from width |
| 16×20" | 4:5 (0.8:1) | Crop from both sides |
| 24×36" | 3:2 | No crop |
When shooting with a 3:2 camera, leave extra space around your subject so you can crop to 8×10 or 5×7 without losing important details.
Resolution Reference by Aspect Ratio
16:9 Common Resolutions
| Name | Resolution | Megapixels |
|---|---|---|
| 8K UHD | 7680×4320 | 33 MP |
| 4K UHD | 3840×2160 | 8 MP |
| 1440p (QHD) | 2560×1440 | 3.7 MP |
| 1080p (FHD) | 1920×1080 | 2 MP |
| 720p (HD) | 1280×720 | 0.9 MP |
| 480p (SD) | 854×480 | 0.4 MP |
4:3 Common Resolutions
| Name | Resolution | Megapixels |
|---|---|---|
| 1080p 4:3 | 1440×1080 | 1.55 MP |
| 720p 4:3 | 960×720 | 0.69 MP |
| 480p / VGA | 640×480 | 0.31 MP |
9:16 Vertical Video Resolutions
| Name | Resolution | Megapixels |
|---|---|---|
| Vertical 4K | 2160×3840 | 8.3 MP |
| Vertical 1080p | 1080×1920 | 2 MP |
| Vertical 720p | 720×1280 | 0.9 MP |
Pro Tips for Working with Aspect Ratios
- Always check platform requirements before exporting — YouTube, Instagram, and TikTok change their recommended dimensions periodically. This tool's presets are updated for 2025 standards.
- Use Scale Dimensions for responsive images — When designing for the web, scale images proportionally. Never set both width and height arbitrarily unless you want distortion.
- Know your camera's native ratio — Most DSLRs shoot 3:2. If you plan to print 8×10 (4:5), compose with extra headroom knowing you'll crop the sides.
- Choose letterboxing vs. cropping deliberately — Letterboxing/pillarboxing preserves the entire image but adds black bars. Cropping fills the screen but cuts content. Choose based on your most important visual area.
- Use the Crop Suggestions table — Before exporting for multiple platforms, check exactly how many pixels will be trimmed for each target ratio. Plan your composition accordingly.
- Shoot in your delivery ratio — If your final video will be 9:16 for TikTok, shoot vertically. Cropping horizontally-shot 16:9 footage to 9:16 loses ~55% of the frame.
- Use CSS
aspect-ratiofor responsive containers —.video-wrap { aspect-ratio: 16 / 9; width: 100%; }keeps embeds proportional at any screen size without JavaScript. - Test your images at actual platform sizes — Platform previews often crop thumbnails to specific ratios. Always upload the exact recommended dimensions to avoid unwanted cropping in feeds.
Summary: Quick Reference by Use Case
| Use Case | Aspect Ratio | Typical Resolution |
|---|---|---|
| YouTube main video | 16:9 | 1920×1080 or 3840×2160 |
| YouTube Shorts | 9:16 | 1080×1920 |
| Instagram feed square | 1:1 | 1080×1080 |
| Instagram feed portrait | 4:5 | 1080×1350 |
| Instagram Reels | 9:16 | 1080×1920 |
| TikTok | 9:16 | 1080×1920 |
| Twitter/X post | 16:9 | 1600×900 |
| LinkedIn post | 1.91:1 | 1200×627 |
| Pinterest pin | 2:3 | 1000×1500 |
| DSLR photography | 3:2 | 6000×4000 (24 MP) |
| 4×6 print | 3:2 | 1800×1200 (300 DPI) |
| 8×10 print | 4:5 | 2400×3000 (300 DPI) |
| A4 document (300 DPI) | 1:1.414 | 2480×3508 |
| Ultrawide monitor | 21:9 | 3440×1440 |
| Cinema (flat) | 1.85:1 | 1998×1080 |
| Cinema (anamorphic) | 2.39:1 | 1920×804 |
Frequently Asked Questions
What aspect ratio is best for YouTube videos?
For standard YouTube videos, use 16:9 (1920×1080 for 1080p, 3840×2160 for 4K). For YouTube Shorts, use 9:16 (1080×1920). Thumbnails must be 16:9 at 1280×720. Channel banners should be 2560×1440.
What is the difference between 16:9 and 4:3 aspect ratio?
16:9 (widescreen) has a decimal ratio of ~1.78 — at the same height, a 16:9 frame is about 33% wider than a 4:3 frame (~1.33). 4:3 was standard for old CRT TVs and monitors; 16:9 is the modern standard for HDTV and most online video platforms.
How do I maintain aspect ratio when resizing an image?
Use the Scale Dimensions mode in this tool. Enter your original width and height, then type either the new width or new height. The calculator automatically finds the missing dimension using: new_height = (new_width / original_width) × original_height. In CSS, set width: 100%; height: auto; on images.
What resolution is 16:9 aspect ratio?
There is no single resolution — 16:9 describes the shape, not the pixel count. Common 16:9 resolutions include 1920×1080 (1080p), 3840×2160 (4K), 1280×720 (720p), and 2560×1440 (1440p QHD). All have the same 16:9 shape at different sizes.
What aspect ratio should I use for Instagram posts?
Square feed: 1:1 (1080×1080). Portrait feed: 4:5 (1080×1350) — the tallest allowed in feed without cropping. Landscape feed: 1.91:1 (1080×566). Reels and Stories: 9:16 (1080×1920).
What does 16:9 mean in pixels?
16:9 means for every 16 units of width, there are 9 units of height. In pixels, any resolution where width ÷ height = 1.777… is 16:9. Examples: 1920×1080, 1280×720, and 3840×2160 are all 16:9 at different sizes.
How do I convert an aspect ratio to pixels?
You need one known dimension. For a 16:9 ratio where you know the width is 1920px: height = (1920 ÷ 16) × 9 = 1080px. The Ratio → Pixels mode in this tool does this instantly for any ratio and any known dimension.
What is the aspect ratio of A4 paper?
A4 paper has an aspect ratio of 1:√2 (approximately 1:1.414). At 300 DPI, A4 is 2480×3508 pixels (portrait) or 3508×2480 (landscape). This unique ratio means when you fold A4 in half, you get A5 with the same proportions — and A3 is two A4 sheets side by side.
What is the difference between 1080p and 1080i?
Both are 1920×1080 resolution (16:9), but they differ in how frames are drawn. 1080p (progressive) draws all 1080 lines sequentially — smoother motion, used for streaming and modern cameras. 1080i (interlaced) draws every other line and was used in broadcast TV. For modern video, always choose 1080p.
Does aspect ratio affect file size?
Not directly — file size depends on total pixel count (megapixels) and compression. However, different aspect ratios at the same height have different widths, so total pixels change. For example, 1920×1080 (16:9, 2 MP) vs 1440×1080 (4:3, 1.55 MP) — the 4:3 version has 25% fewer pixels and a proportionally smaller uncompressed file.
What is the most common aspect ratio for monitors?
As of 2025, 16:9 remains the most common monitor aspect ratio, followed by 16:10 (MacBooks, some PC monitors) and 21:9 (ultrawide gaming and productivity monitors). The 16:9 standard has dominated since around 2010.
How do I find the aspect ratio of an image on my computer?
On Windows: right-click the image, select Properties → Details tab, and look for Dimensions. Divide width by height. On macOS: Get Info, look under More Info. Or use the Find Ratio mode in this tool — type width and height and the simplified ratio appears instantly.
Related Developer & Design Tools
More free tools to speed up your workflow — all run locally in your browser.