Aspect Ratio Calculator

Whether you're resizing a photo, setting up a video project, or designing for different screen sizes, aspect ratio comes up constantly. Get it wrong and your images stretch, your video pillarboxes, or your design crops in weird ways. Get it right and everything just looks the way it's supposed to. This calculator takes the guesswork out of it. Plug in what you know and it figures out the rest, whether that's a missing dimension, a scaled-up version of an existing size, or the exact ratio expressed in its simplest form.

Enter Details

Result

Enter dimensions to find the aspect ratio.

Note — This result is an estimate. Talk to a healthcare provider for personalized guidance.

What Is an Aspect Ratio?

An aspect ratio describes the proportional relationship between a image or screen's width and its height. It's written as two numbers separated by a colon, like 16:9 or 4:3. The first number is always the width; the second is always the height.

So a 16:9 ratio means for every 16 units of width, there are 9 units of height. Those units can be pixels, inches, centimeters, whatever you're working in. The ratio stays the same regardless of actual size. A 1920×1080 image and a 1280×720 image are both 16:9 even though they're completely different resolutions.

The ratio is basically a shape descriptor. It tells you whether something is wide and cinematic, square, portrait, or somewhere in between. Two images with the same aspect ratio will always have the same shape, even if one is tiny and the other is enormous.

How to Calculate Aspect Ratio

Calculating an aspect ratio comes down to dividing width by height, then simplifying that fraction to its lowest terms. The simplest way to do that is to find the greatest common divisor (GCD) of both numbers and divide each by it.

Here's a quick example. Say you have an image that's 1920 pixels wide and 1080 pixels tall. The GCD of 1920 and 1080 is 120. Divide both by 120 and you get 16 and 9. So the aspect ratio is 16:9.

If you want the ratio expressed as a decimal instead, just divide width by height. 1920 ÷ 1080 = 1.778. That's the same 16:9 ratio as a single number, which is sometimes more useful when coding or comparing sizes programmatically.

For most everyday tasks, the calculator above handles all of this automatically. But knowing what's happening under the hood helps you catch mistakes and understand what the numbers actually mean.

Aspect Ratio Formula Explained (Width ÷ Height)

The core formula is simple: Aspect Ratio = Width ÷ Height. That's it. Everything else is just a variation on that one idea.

When you want to express it as a ratio (like 16:9 rather than 1.778), you reduce the fraction. Divide both the width and height by their GCD. The result is the simplest whole-number form of the ratio.

When you need to solve for a missing dimension, you rearrange the formula:

  • Missing Width: Width = Height × (Original Width ÷ Original Height)
  • Missing Height: Height = Width ÷ (Original Width ÷ Original Height)

So if you have a 16:9 image and you know the new height should be 720 pixels, you calculate the width as 720 × (16 ÷ 9) = 1280 pixels. Scale up, scale down, it all follows the same logic. Keep the ratio constant and the shape stays consistent.

Resize Images While Maintaining Aspect Ratio

Resizing an image without distorting it means keeping the width-to-height ratio exactly the same as you scale. If you only change one dimension without adjusting the other proportionally, the image will stretch or squish.

The process is straightforward. Take your original dimensions, decide which axis you're constraining (usually either max width or max height), then calculate the other dimension using the ratio.

Say your original image is 2400×1600 pixels and you need it to fit within a 800-pixel wide space. Divide the target width by the original width: 800 ÷ 2400 = 0.333. Multiply that scale factor by the original height: 1600 × 0.333 = 533 pixels. So your resized image should be 800×533.

Most image editors like Photoshop, GIMP, or even basic phone apps have a "lock aspect ratio" or "constrain proportions" checkbox that does this automatically. But if you're writing code, building a responsive layout, or just double-checking a tool's output, doing the math yourself takes about five seconds and confirms you're getting the shape you expect.

Find Missing Width or Height Dimensions

This is probably the most common real-world use for an aspect ratio calculator. You know the ratio and one dimension, and you need the other one.

The formulas are simple to apply once you have them down:

  • To find the width: Width = (Known Height × Ratio Width) ÷ Ratio Height
  • To find the height: Height = (Known Width × Ratio Height) ÷ Ratio Width

A quick example: you need a banner image in a 16:9 ratio and your layout requires a height of 400 pixels. Width = (400 × 16) ÷ 9 = 6400 ÷ 9 = 711 pixels (rounded to the nearest whole number).

This comes up constantly in web design, video editing, print layout, and social media graphics. Different platforms have their own required sizes, but if you know the aspect ratio they expect, you can calculate the exact pixel dimensions for any use case without guessing or cropping after the fact.

Common Aspect Ratios (16:9, 4:3, 1:1, 21:9)

Certain ratios show up everywhere because they've become standard across specific industries and devices. Here's a breakdown of the most common ones:

Aspect RatioDecimalCommon Uses
16:91.78HD and 4K video, YouTube, most monitors and TVs, presentations
4:31.33Older TV formats, some cameras, iPad display
1:11.00Square photos, Instagram posts, profile pictures
21:92.33Ultrawide monitors, cinematic film, some premium smartphones
9:160.56Vertical video, Instagram Reels, TikTok, Stories
3:21.50DSLR and mirrorless camera sensors, many print sizes

16:9 is the dominant ratio right now, largely because it matches the shape of modern HD screens. If you're producing content for the web or video platforms, you'll be working in 16:9 most of the time. That said, vertical formats like 9:16 have exploded in popularity with the rise of mobile-first social platforms, so it's worth being fluent in both.

Aspect Ratio Conversion and Scaling

Converting between aspect ratios means changing the shape of the frame, which almost always involves cropping or adding empty space (letterboxing or pillarboxing). You can't go from 4:3 to 16:9 without either cutting off part of the image or adding black bars on the sides.

Scaling is different. Scaling keeps the same ratio and just changes the size. Conversion changes the ratio itself.

When you need to convert, you have two main options:

  • Crop to fit: Remove parts of the image to match the new ratio. Works well when the subject is centered and the edges aren't critical.
  • Letterbox or pillarbox: Keep the entire original image and fill the remaining space with black (or another color). Letterboxing adds bars on the top and bottom; pillarboxing adds them on the sides.

For scaling with a consistent ratio, just apply the scale factor to both dimensions equally. If you're scaling to 150% of the original size, multiply both width and height by 1.5. The ratio stays locked and the image simply gets larger.

A lot of confusion in design and video work comes from mixing up these two operations. Scaling never changes the shape. Conversion always does.

Aspect Ratio Uses for Images, Video, and Screens

Aspect ratio is one of those specs that touches almost every visual medium, and understanding it saves a lot of rework.

For images, the ratio determines how a photo fits into a layout. Crop a portrait photo to 16:9 for a website hero banner, or to 1:1 for a product thumbnail. Getting the ratio right before you start designing means you're not scrambling to fix distorted images after the fact.

In video production, aspect ratio sets the shape of your entire project. Most modern video is shot and delivered in 16:9, but vertical video (9:16) is increasingly standard for social content. If you mix footage from different cameras with different native ratios, you'll need to crop or letterbox to create a consistent output frame.

For screens and displays, manufacturers use aspect ratio to describe monitor and TV shapes. A widescreen ultrawide monitor at 21:9 gives you more horizontal real estate for multitasking. A 4:3 screen feels more square and is common in older hardware and some tablets. When buying a monitor or designing a UI, knowing the target ratio helps you plan layouts that actually use the space well.

Social media platforms add another layer since each one has preferred ratios for different content types: feed posts, stories, thumbnails, banners. Getting these right means your content won't get auto-cropped in ways you didn't intend. A quick check with an aspect ratio calculator before you export can prevent a lot of headaches.

Other Technology Calculators

Explore all