Drop an image to auto-detect width and height, or enter values manually. Solve for the missing dimension while keeping the ratio pixel-perfect. Presets for 16:9, 4:3, social media, print, and more.
Manually calculating a proportional image or video size is tedious — and one wrong decimal ruins your layout. I7 Pixel's free aspect ratio calculator does the math instantly and accurately, whether you're resizing images for a website, scaling video frames for a presentation, preparing social media graphics, or working out print dimensions. No spreadsheet formulas, no mental arithmetic, no app to install. Just open the page, drop your image or enter a ratio, and get the answer in one click.
width: 1280px; height: 720px;), a ratio string (16:9), or plain pixel dimensions (1280px × 720px) — ready to paste anywhere.Calculating a proportional resize takes four simple steps. You can start from a dropped image, a typed ratio, or a sidebar preset. The result is ready to copy in seconds.
Aspect ratio is one of the most fundamental concepts in visual design, video production, photography, and web development — yet it's something people often calculate incorrectly. Here's everything you need to know.
Aspect ratio is the proportional relationship between the width and height of a rectangular shape, expressed as W:H. For example, a 1920×1080 pixel image has an aspect ratio of 16:9 because both numbers reduce to 16 and 9 when divided by their greatest common divisor (120). Aspect ratio tells you the shape of the rectangle without specifying the actual size — a 320×180 image and a 3840×2160 image both have a 16:9 aspect ratio, just at different resolutions. When you resize an image while keeping the same aspect ratio, the proportions stay identical and the image looks the same — only larger or smaller.
To find the aspect ratio of an image: divide both the width and height by their greatest common divisor (GCD). For a 1280×800 image, the GCD of 1280 and 800 is 160. Divide: 1280 ÷ 160 = 8, 800 ÷ 160 = 5. The ratio is 8:5. To then find the height for a new width, use the formula: New Height = (New Width ÷ Original Width) × Original Height. For example, scaling 1280×800 to 960px wide: 960 ÷ 1280 × 800 = 600px. The result is 960×600 — the same 8:5 ratio. I7 Pixel's calculator runs all of this automatically the moment you type a value.
16:9 is the global standard for HD and 4K video (YouTube, Netflix, TV), desktop monitors, and most phone displays in landscape. 4:3 was the old TV and monitor standard — still used in some photography and presentation formats. 1:1 (square) is popular for Instagram posts, profile photos, and album art. 9:16 is the portrait equivalent of 16:9 — the format of TikTok, Instagram Reels, YouTube Shorts, and Stories. 21:9 is the ultrawide cinema format used in cinematic films and widescreen monitors. 3:2 is the classic 35mm film and DSLR sensor ratio, used in most mirrorless and DSLR cameras. All of these — and more — are available as one-click presets in this calculator.
From video editors to front-end developers, maintaining correct proportions is critical work across many disciplines. Here are the most common use cases for this free online aspect ratio calculator.
The most common aspect ratios with their pixel equivalents and typical use cases — bookmark this page as your go-to reference.
Answers to the most common questions about aspect ratios and how to use this calculator.
Aspect ratio is the proportional relationship between width and height of a rectangle, expressed as W:H. It's calculated by dividing both numbers by their greatest common divisor (GCD). A 1920×1080 image: GCD = 120, so 1920÷120 = 16, 1080÷120 = 9 → 16:9. This tool does all the math automatically.
Enter the original width and height as source dimensions. Click New Height, then type your target width — the correct height is calculated instantly. For example: original 1920×1080, target width 800px → calculated height = 450px. Both share the same 16:9 ratio.
Common 16:9 sizes: 1280×720 (HD), 1920×1080 (Full HD), 2560×1440 (QHD/2K), 3840×2160 (4K UHD), 7680×4320 (8K). Select the 16:9 HD/FHD/4K preset from the sidebar and enter any width to instantly get the correct height.
Instagram supports multiple formats: 4:5 portrait (recommended — takes more screen space in the feed), 1:1 square, 1.91:1 landscape, and 9:16 for Stories and Reels. 4:5 at 1080×1350px is generally the best choice for feed posts. All are in the Social Media preset section.
After calculating, click "Copy CSS" to get width: Xpx; height: Ypx; ready to paste. For responsive CSS, use the aspect-ratio property: aspect-ratio: 16 / 9;. For the classic padding-top hack, the percentage = (height ÷ width) × 100 — e.g. 9 ÷ 16 × 100 = 56.25%.
4:3 is a squarer format (1.33:1 ratio) — the old TV and monitor standard. 16:9 is wider (1.78:1) — the modern HD standard. If you play 4:3 content on a 16:9 screen, you see black bars on the sides (pillarboxing). If you stretch it to fill, faces look unnaturally wide. Always match the ratio to your output medium.
No — never. When you drop an image, the browser reads its dimensions locally using the Image API and a local object URL. No pixel data is transmitted anywhere. The image is only shown in your browser for reference; the calculator only reads the width and height values. Your files are completely private.
YouTube's native player is 16:9. Recommended resolutions: 1920×1080 (Full HD), 2560×1440 (2K), or 3840×2160 (4K). For YouTube Shorts, use 9:16 at 1080×1920. Thumbnails should be 16:9 at 1280×720 minimum. Select the YT Thumbnail or HD preset from the Social Media / Video presets in the sidebar.
Tried the tool? Leave a quick rating and help others find it.
All tools at I7 Pixel run in your browser — no uploads, no accounts, always free.