Aspect Ratio Calculator – Maintain Proportions
Calculate the aspect ratio of any width and height. Resize while maintaining proportions. Supports pixels, inches, or any unit. Free online calculator.
What Is an Aspect Ratio?
An aspect ratio is the proportional relationship between width and height, expressed as two numbers separated by a colon (W:H). It defines the shape of a rectangle — whether it's wide, tall, or square — without specifying any actual dimensions. Aspect ratios are fundamental to photography, videography, graphic design, web development, and display manufacturing.
This calculator reduces any width × height pair to its simplest ratio using the Greatest Common Divisor (GCD) algorithm. It also calculates the correct new height when you want to scale to a different width, ensuring your images and videos never appear stretched or distorted.
For example, both 1920 × 1080 and 3840 × 2160 share the same 16:9 aspect ratio — they differ only in resolution. Understanding this distinction is critical for anyone working with digital media, because maintaining aspect ratio during resizing prevents the visual distortion known as "squishing" or "stretching."
Aspect ratios appear everywhere in daily life: your smartphone screen, your laptop display, the photos you post on social media, the videos you stream, and even the paper sizes you print on. The A4 paper standard, for instance, uses a √2:1 ratio (approximately 1.414:1), which allows sheets to be folded in half while preserving the same proportions.
Common Aspect Ratios and Their Uses
Different aspect ratios serve different purposes across industries. The table below covers the most widely used ratios along with their typical applications, so you can quickly identify which one fits your project.
| Ratio | Decimal | Common Use | Example Resolutions |
|---|---|---|---|
| 16:9 | 1.778 | HD/4K video, YouTube, most monitors and TVs | 1280×720, 1920×1080, 3840×2160 |
| 4:3 | 1.333 | Classic TV, iPad screen, traditional photography | 1024×768, 1600×1200, 2048×1536 |
| 1:1 | 1.000 | Instagram square posts, profile photos, album art | 1080×1080, 2048×2048 |
| 21:9 | 2.333 | Ultrawide cinema, gaming monitors | 2560×1080, 3440×1440 |
| 9:16 | 0.563 | Vertical mobile video (TikTok, Reels, Stories) | 1080×1920, 720×1280 |
| 3:2 | 1.500 | 35 mm film, DSLR photos, Surface laptops | 2160×1440, 6000×4000 |
| 2:1 | 2.000 | Panoramic photography, some smartphones | 4000×2000, 2880×1440 |
| 32:9 | 3.556 | Super-ultrawide monitors, dual-monitor replacement | 5120×1440, 3840×1080 |
| 5:4 | 1.250 | Older LCD monitors, some print layouts | 1280×1024, 2560×2048 |
| 2.39:1 | 2.390 | Anamorphic widescreen cinema (CinemaScope) | 2560×1072 |
The film industry uses several specialized aspect ratios beyond standard TV formats. The Academy ratio (1.375:1) dominated early cinema, while modern blockbusters typically use either 1.85:1 (flat widescreen) or 2.39:1 (anamorphic scope). IMAX uses 1.43:1, which is much taller than standard widescreen — this is why IMAX scenes feel immersive.
How to Resize While Maintaining Aspect Ratio
Resizing an image or video frame while preserving its aspect ratio requires fixing one dimension and calculating the other proportionally. The formulas are straightforward:
- Known new width, solve for height: New Height = (Original Height × New Width) ÷ Original Width
- Known new height, solve for width: New Width = (Original Width × New Height) ÷ Original Height
Example 1: Resize a 1920 × 1080 image to 1280 pixels wide:
New Height = (1080 × 1280) ÷ 1920 = 720. Result: 1280 × 720 (still 16:9).
Example 2: Resize a 4000 × 3000 photo (4:3) to fit a 1200-pixel wide column:
New Height = (3000 × 1200) ÷ 4000 = 900. Result: 1200 × 900 (still 4:3).
Example 3: You need a banner that's 600 pixels tall based on a 2560 × 1440 source:
New Width = (2560 × 600) ÷ 1440 = 1067. Result: 1067 × 600 (still 16:9).
Most image editing software (Photoshop, GIMP, Figma, Canva) includes a "lock aspect ratio" or "constrain proportions" toggle. When enabled, changing one dimension automatically adjusts the other. However, if you need to calculate dimensions before opening the editor — or you're working with CSS, responsive images, or video encoding settings — this calculator gives you the exact values instantly.
Aspect Ratios in Web Design and CSS
Modern web development relies heavily on aspect ratios for responsive layouts. The CSS aspect-ratio property (supported in all modern browsers since 2021) lets you define a box's proportions directly:
.video-container { aspect-ratio: 16 / 9; width: 100%; }
This creates a responsive container that always maintains a 16:9 ratio regardless of viewport width — no more padding-bottom hacks. Common use cases include:
- Embedded videos: YouTube and Vimeo embeds need 16:9 containers to avoid letterboxing or cropping.
- Image placeholders: Setting an aspect ratio before the image loads prevents Cumulative Layout Shift (CLS), a key Core Web Vitals metric.
- Card layouts: Product cards and thumbnails look consistent when they share the same aspect ratio across a grid.
- Hero sections: Full-width banners often use aspect ratios like 3:1 or 4:1 to maintain visual balance on different screen sizes.
The HTML <img> element also supports width and height attributes that hint the browser about the image's aspect ratio before it loads, further reducing layout shift. Always set these attributes — browsers use them to reserve the correct space even before the image file arrives.
Aspect Ratios for Social Media
Each social media platform has recommended aspect ratios for different content types. Using the wrong ratio means your content gets cropped, letterboxed, or loses quality. Here's a comprehensive reference:
| Platform | Content Type | Recommended Ratio | Optimal Resolution |
|---|---|---|---|
| YouTube | Standard video | 16:9 | 1920×1080 or 3840×2160 |
| YouTube | Shorts | 9:16 | 1080×1920 |
| Feed post (square) | 1:1 | 1080×1080 | |
| Feed post (landscape) | 1.91:1 | 1080×566 | |
| Feed post (portrait) | 4:5 | 1080×1350 | |
| Stories / Reels | 9:16 | 1080×1920 | |
| TikTok | Video | 9:16 | 1080×1920 |
| Feed post | 1.91:1 | 1200×630 | |
| Twitter / X | Image post | 16:9 | 1200×675 |
| Shared image | 1.91:1 | 1200×627 | |
| Pin | 2:3 | 1000×1500 |
For maximum engagement, always create content at the platform's recommended ratio and resolution. Uploading higher-resolution files (e.g., 4K for YouTube) allows the platform to serve the best quality to viewers on large screens while automatically downscaling for mobile users.
The Math Behind Aspect Ratio Calculation
Calculating the simplified aspect ratio requires finding the Greatest Common Divisor (GCD) of the width and height, then dividing both values by it. The GCD is computed using the Euclidean algorithm — one of the oldest algorithms in mathematics, dating back to 300 BC.
Step-by-step example for 1920 × 1080:
- GCD(1920, 1080): 1920 mod 1080 = 840
- GCD(1080, 840): 1080 mod 840 = 240
- GCD(840, 240): 840 mod 240 = 120
- GCD(240, 120): 240 mod 120 = 0 → GCD = 120
Divide: 1920 ÷ 120 = 16, 1080 ÷ 120 = 9 → Ratio = 16:9
For non-standard dimensions like 1366 × 768 (a very common laptop resolution), the GCD is 2, giving 683:384 — which doesn't simplify to a clean ratio. In practice, this resolution approximates 16:9 (the exact 16:9 at that width would be 1366 × 768.375). Manufacturers round to whole pixels, which is why some "16:9" screens have slightly imperfect ratios.
The decimal ratio (width ÷ height) is another useful way to express aspect ratios. It makes comparison easier: 16:9 = 1.778, 4:3 = 1.333, 21:9 = 2.333. A higher decimal means a wider rectangle.
Aspect Ratio in Photography and Print
Photography aspect ratios affect composition, framing, and how images are printed or displayed. The most common sensor and print ratios include:
| Ratio | Camera/Sensor Type | Standard Print Sizes |
|---|---|---|
| 3:2 | Full-frame DSLR, APS-C, 35 mm film | 4×6", 6×9", 8×12", 20×30" |
| 4:3 | Micro Four Thirds, most smartphones, compact cameras | 8×10" (with slight crop), 6×8", 12×16" |
| 1:1 | Medium-format film (6×6 cm), Hasselblad | 8×8", 10×10", 12×12" |
| 16:9 | Most smartphone video modes | Not standard for prints |
| 5:4 | Large-format film (4×5", 8×10") | 8×10", 16×20", 24×30" |
When printing photos, aspect ratio mismatches cause cropping. A 3:2 photo printed at 8×10" (which is 5:4) will lose portions of the image. Professional photographers plan their compositions with the final output ratio in mind, or they shoot wider and crop in post-production to fit the destination format.
The international paper standard (ISO 216) uses the unique √2:1 ratio (approximately 1.414:1). This means folding an A4 sheet in half produces an A5 sheet with the same proportions — a mathematically elegant property that no other ratio possesses. When designing for print, always verify that your digital canvas matches the target paper's aspect ratio before starting — changing it later means re-composing the entire layout.
Professional photographers shooting events or portraits often use 3:2 in-camera but deliver final images in multiple ratios to suit different outputs: 3:2 for 4×6 prints, 5:4 for 8×10 prints, 16:9 for slideshows, and 1:1 for social media profile images. Planning for multiple deliverables from the start — by leaving extra space around the subject — is called "shooting loose" and is a best practice in commercial photography.
Frequently Asked Questions
What aspect ratio is 1920×1080?
1920 × 1080 has an aspect ratio of 16:9. This is the standard widescreen format used for Full HD video, YouTube, most computer monitors, and modern TVs. Other 16:9 resolutions include 1280×720 (720p), 2560×1440 (1440p), and 3840×2160 (4K UHD).
How do I find the aspect ratio of an image?
Enter the image's width and height into this calculator. It computes the simplified ratio using the GCD algorithm. Alternatively, divide width by height to get the decimal ratio — 16:9 ≈ 1.778, 4:3 ≈ 1.333, 1:1 = 1.0. In most image editors, you can view the pixel dimensions under Image → Properties or File → Info.
What is the difference between aspect ratio and resolution?
Resolution is the total number of pixels (e.g., 1920×1080 = 2,073,600 pixels). Aspect ratio is the shape or proportion (16:9). Two images can share the same aspect ratio but differ in resolution — 1280×720 and 3840×2160 are both 16:9 but differ enormously in detail and file size.
What aspect ratio does Instagram use?
Instagram supports multiple ratios: 1:1 (square, the classic format), 4:5 (portrait, which gets the most screen real estate in the feed), 1.91:1 (landscape), and 9:16 (Stories and Reels). For feed posts, 4:5 at 1080×1350 pixels is generally recommended for maximum visibility.
Why does my resized image look stretched?
Stretching occurs when you resize an image to dimensions that don't match the original aspect ratio. For example, forcing a 16:9 image into a 1:1 square will compress it horizontally. Always lock the aspect ratio when resizing, or use this calculator to determine the correct proportional dimensions first.
What is the best aspect ratio for YouTube videos?
YouTube's standard is 16:9. Upload at 1920×1080 (1080p) or 3840×2160 (4K) for best quality. YouTube will add black bars (letterboxing) if your video has a different ratio, such as 4:3. For YouTube Shorts, use 9:16 at 1080×1920.
How do I convert between aspect ratios without cropping?
You can't change the aspect ratio without either cropping (removing content), padding (adding borders), or stretching (distorting). The least intrusive method is padding — adding black bars or blurred background — which preserves all content. Many video editors offer "fit to frame" options that add padding automatically.
What does "pixel aspect ratio" mean?
Pixel aspect ratio (PAR) describes the shape of individual pixels. Most modern displays use square pixels (PAR 1:1), but some legacy video formats like DV NTSC use non-square pixels (PAR 10:11). When editing footage with non-square pixels on a square-pixel display, the image may appear slightly distorted unless the editor compensates.
Is 2560×1440 a 16:9 aspect ratio?
Yes, 2560×1440 (also called 1440p or QHD) is exactly 16:9. It's a popular resolution for 27-inch gaming and productivity monitors. It offers 78% more pixels than 1080p while being less demanding on GPUs than 4K (3840×2160).
What aspect ratio is best for printing photos?
It depends on the print size. Standard 4×6" prints use 3:2 (matching most DSLR sensors). For 8×10" prints, you need 5:4. For 5×7", the ratio is 7:5. Always check whether your photo's ratio matches the print size to avoid unexpected cropping. Many print services let you preview the crop before ordering.