Image Aspect Ratio Calculator

Find an image's aspect ratio, calculate new dimensions without stretching, and compare fitting options.

Original image dimensions

Aspect ratio (simplified)16:91.7778:1
OrientationLandscape2.07 megapixels

Resize proportionally

Enter either new dimension to calculate the other while preserving the original aspect ratio.

Scale: 66.67%


Common aspect ratios

Selecting a preset calculates a new height from the current new width. It does not crop or modify an image.

Visual aspect ratio preview

16:9

Illustrative shape only. Your actual image is not uploaded or changed.


Fit an image inside a container

Compare the displayed size when preserving the original image ratio inside a fixed box.

Contain — entire image visible800 × 450May leave empty space around the image.
Cover — fills the container1067 × 600Image extends beyond the container and is cropped.

For CSS, object-fit: contain shows the whole image, while object-fit: cover fills the box and may crop its edges.

What Is an Image Aspect Ratio and Why Does It Matter?

An image's aspect ratio describes the relationship between its width and height. It's usually written as two numbers separated by a colon, such as 16:9, 4:3, or 1:1.

Aspect ratios are important because they determine the shape of an image, regardless of its actual size. Whether you're designing a website, creating social media graphics, editing photographs, or preparing images for a presentation, understanding aspect ratios helps you avoid stretched, distorted, or awkwardly cropped images.

Our free Image Aspect Ratio Calculator makes it easy to find an image's aspect ratio, calculate new dimensions, and resize images proportionally. Simply enter the original width and height in pixels, and the calculator will determine the simplified ratio automatically.

You can also choose from common aspect ratio presets, preview different proportions, and calculate how an image will fit inside a container using CSS object-fit: contain or object-fit: cover.

How Do Image Aspect Ratios Work?

An aspect ratio compares an image's width to its height. For example, an image measuring 1920 pixels wide by 1080 pixels high has a 16:9 aspect ratio.

This means that for every 16 units of width, the image has 9 units of height.

The same ratio applies to many different image sizes:

Image dimensions

Aspect ratio

1920 × 1080 pixels

16:9

1280 × 720 pixels

16:9

1600 × 900 pixels

16:9

1080 × 1080 pixels

1:1

1200 × 800 pixels

3:2

1200 × 900 pixels

4:3

Even though the first three images have different dimensions, they all have the same shape because their width-to-height proportions are identical.

How to Calculate an Aspect Ratio

To calculate an image's aspect ratio, divide its width and height by their greatest common divisor (GCD).

For example, consider an image measuring 1920 × 1080 pixels.

The greatest common divisor of 1920 and 1080 is 120.

  • Width: 1920 ÷ 120 = 16
  • Height: 1080 ÷ 120 = 9
  • Aspect ratio: 16:9

You can also divide the width by the height to find the decimal ratio.

1920 ÷ 1080 = approximately 1.7778.

This is sometimes expressed as 1.78:1.

Rather than calculating these values manually, our Image Aspect Ratio Calculator simplifies the ratio instantly when you enter the dimensions.

Common Image Aspect Ratios for Websites and Social Media

Different image proportions work better for different types of content. The right aspect ratio depends on where the image will appear and how much space is available.

16:9 — Widescreen Images and Videos

The 16:9 aspect ratio is widely used for widescreen video, website banners, video thumbnails, and presentation slides.

Common dimensions include 1920 × 1080, 1280 × 720, and 1600 × 900 pixels.

This ratio works particularly well for horizontal images and layouts that need a wide viewing area.

1:1 — Square Images

A 1:1 aspect ratio means the width and height are equal.

Common dimensions include 1080 × 1080 and 800 × 800 pixels.

Square images are useful for product photographs, profile graphics, social media posts, and image grids. They also work well in website layouts where consistent image shapes are important.

4:3 — Standard Photography and Website Content

The 4:3 ratio is commonly associated with traditional displays, digital cameras, and general-purpose photographs.

Typical dimensions include 1200 × 900 and 1600 × 1200 pixels.

It provides a balanced rectangular shape that works well for blog images, galleries, and content illustrations.

3:2 — Photography and Editorial Images

The 3:2 aspect ratio is widely used in photography, including images from many DSLR and mirrorless cameras.

Common dimensions include 1200 × 800 and 1800 × 1200 pixels.

This ratio is a good choice for photography portfolios, editorial content, and website images that need a natural photographic appearance.

4:5 — Portrait Social Media Images

The 4:5 aspect ratio is a popular portrait format for social media feed images.

A common size is 1080 × 1350 pixels.

Because it is taller than a square image, it can occupy more vertical space in a mobile feed. It is also useful for portrait-oriented product photography and promotional graphics.

9:16 — Vertical Video and Mobile Content

The 9:16 aspect ratio is the vertical equivalent of 16:9.

Common dimensions include 1080 × 1920 and 720 × 1280 pixels.

This format is widely used for Instagram Reels, TikTok videos, YouTube Shorts, and other full-screen vertical content.

21:9 — Ultrawide Website Banners

The 21:9 aspect ratio creates a very wide image that can work well for panoramic photography, cinematic visuals, and certain website hero sections.

Because ultrawide images have relatively little height, important subjects should be positioned carefully to avoid unwanted cropping on smaller screens.

Quick Reference: Common Aspect Ratios

Ratio

Example dimensions

Common uses

1:1

1080 × 1080

Square social posts, product images

4:3

1200 × 900

Blog images, photography

3:2

1200 × 800

Photography, editorial images

16:9

1920 × 1080

Videos, banners, presentations

4:5

1080 × 1350

Portrait social media posts

9:16

1080 × 1920

Reels, Shorts, vertical videos

21:9

2100 × 900

Panoramic images, ultrawide banners

These are common formats, not universal platform requirements. Social media platforms may change their recommended dimensions or crop images differently depending on placement.

How to Resize Images Without Distortion

When resizing an image, it's important to maintain its original aspect ratio. Changing the width without adjusting the height proportionally can make people, objects, and other visual elements appear stretched or compressed.

This is known as proportional resizing.

For example, suppose you have an image measuring 1920 × 1080 pixels and want to reduce its width to 1200 pixels.

To calculate the new height, use this formula:

New height = Original height × (New width ÷ Original width)

1080 × (1200 ÷ 1920) = 675 pixels.

The correctly resized image would be 1200 × 675 pixels, preserving its original 16:9 aspect ratio.

You can also calculate a new width when you know the desired height:

New width = Original width × (New height ÷ Original height)

Our Image Aspect Ratio Calculator handles both calculations automatically. Enter either a new width or height, and the tool calculates the corresponding dimension while preserving the selected ratio.

Keep in mind that calculating new dimensions does not actually resize an image file. You'll still need an image editor or resizing tool to apply the dimensions.

Cropping vs. Resizing: What's the Difference?

Cropping and resizing are two different ways to change how an image appears.

Resizing Changes the Image's Dimensions

Resizing changes the pixel dimensions of an image. When performed proportionally, it preserves the entire image and its original aspect ratio.

For example, resizing a 1920 × 1080 image to 960 × 540 makes it smaller while keeping the same 16:9 proportions.

Nothing is intentionally removed from the image.

Cropping Removes Part of the Image

Cropping removes content from the edges of an image to create a different composition or aspect ratio.

For example, cropping a 1920 × 1080 landscape photograph into a square requires removing portions of the image from the sides, assuming the crop uses the full original height.

Cropping is useful when an image needs to fit a particular layout, but it can remove important details if the subject is too close to an edge.

When Should You Crop Instead of Resize?

Use proportional resizing when you want to preserve the entire image and simply change its size.

Use cropping when you need a different aspect ratio, want to improve the composition, or need an image to fill a specific space.

For website design, a combination of proportional resizing and carefully controlled cropping often produces the best results.

CSS object-fit: contain vs. object-fit: cover

When placing images on a website, you may need them to fit inside containers with fixed dimensions. CSS provides the object-fit property to control how replaced elements, such as images, are displayed within their boxes.

Two commonly used values are contain and cover.

object-fit: contain — Show the Entire Image

The contain value scales an image so that the entire image fits inside its container without distortion or cropping.

If the image and container have different aspect ratios, some empty space may remain.

.image-contain {
    width: 400px;
    height: 300px;
    object-fit: contain;
}

This approach works well for product photographs, logos, diagrams, and other images where every part of the original content should remain visible.

object-fit: cover — Fill the Entire Container

The cover value scales an image until the container is completely filled.

The original aspect ratio is preserved, but portions of the image may extend beyond the visible area and be cropped.

.image-cover {
    width: 400px;
    height: 300px;
    object-fit: cover;
}

This is especially useful for website banners, card thumbnails, photo galleries, and other layouts where consistent image dimensions are important.

Visual Comparison

<escape>object-fit: contain</escape>

  • Preserves the entire image.
  • Maintains the original aspect ratio.
  • May leave unused space inside the container.
  • Best when all image content must remain visible.

<escape>object-fit: cover</escape>

  • Fills the entire container.
  • Maintains the original aspect ratio.
  • May crop portions of the image.
  • Best for uniform thumbnails, cards, and background-like image layouts.

Controlling Which Part of an Image Is Visible

When using object-fit: cover, you can adjust the crop position with the CSS object-position property.

For example:

.image-cover {
    width: 400px;
    height: 300px;
    object-fit: cover;
    object-position: center top;
}

This positions the image toward the top of the container, which can help keep a person's face or another important subject visible.

Our Image Aspect Ratio Calculator includes a contain-versus-cover calculator that shows the approximate rendered image dimensions for a selected container size.

Frequently Asked Questions About Image Aspect Ratios

What is an image aspect ratio calculator?

An image aspect ratio calculator is a tool that determines the relationship between an image's width and height. It can simplify ratios, calculate proportional dimensions, and help you choose appropriate image sizes for websites, videos, and social media.

How do I calculate an image's aspect ratio?

Enter the image's width and height in pixels and simplify the two numbers to their smallest whole-number ratio. For example, 1920 × 1080 simplifies to 16:9. Our free calculator performs this calculation automatically.

What is the difference between aspect ratio and image resolution?

Aspect ratio describes an image's shape, while resolution describes its pixel dimensions. For example, 1920 × 1080 and 1280 × 720 have different resolutions but share the same 16:9 aspect ratio.

What is the best aspect ratio for website images?

There is no single best aspect ratio for every website image. The ideal choice depends on the layout and purpose. Ratios such as 16:9, 4:3, and 3:2 are common for content images, while 1:1 works well for square thumbnails and product grids.

What is the best aspect ratio for a website hero image?

Wide aspect ratios such as 16:9 or 21:9 are often suitable for desktop hero images. However, responsive websites may need different image compositions or cropping behavior for tablets and mobile devices.

How do I resize an image without stretching it?

Maintain the original aspect ratio by changing the width and height proportionally. If you know the new width, multiply the original height by the new width divided by the original width. Our calculator can determine the correct dimensions for you.

Can I change an image from 4:3 to 16:9 without cropping?

You can place a 4:3 image inside a 16:9 canvas without cropping by adding empty space around it. However, making the original image itself fill a 16:9 frame generally requires cropping, distortion, or generating additional image content.

What happens if I change the width but not the height?

If the displayed width changes while the height remains fixed, the image may become stretched or compressed unless the layout uses an appropriate fitting method. To avoid distortion, resize both dimensions proportionally or use CSS such as object-fit.

Is 1920 × 1080 the same as 16:9?

Yes. An image measuring 1920 × 1080 pixels has a 16:9 aspect ratio. Other dimensions, such as 1280 × 720 and 3840 × 2160, also have a 16:9 aspect ratio.

What aspect ratio should I use for Instagram?

Common formats include 1:1 for square posts, 4:5 for portrait feed graphics, and 9:16 for Reels and Stories. Instagram's display and cropping behavior can vary by placement, so check its current specifications before preparing final graphics.

What aspect ratio should I use for YouTube videos?

Standard horizontal YouTube videos commonly use 16:9, while YouTube Shorts generally use vertical formats such as 9:16. The appropriate dimensions also depend on the video's resolution and intended presentation.

What does object-fit: contain do?

The CSS object-fit: contain value scales an image to fit entirely within its container while preserving its original proportions. It prevents cropping but may leave unused space if the image and container have different aspect ratios.

What does object-fit: cover do?

The CSS object-fit: cover value scales an image to fill its entire container while maintaining the image's aspect ratio. Portions of the image may be cropped when the container and image have different proportions.

Does changing an image's aspect ratio reduce image quality?

Changing the aspect ratio doesn't automatically reduce image quality. However, stretching an image can cause distortion, enlarging it beyond its available resolution can reduce sharpness, and cropping removes image content. Repeatedly saving images using lossy compression can also reduce quality.

Does this calculator resize or upload my images?

No. The Image Aspect Ratio Calculator works with numerical dimensions rather than image files. It calculates ratios, proportional sizes, and fitting dimensions directly in your browser. It does not upload, edit, crop, or save your images.

Is the Image Aspect Ratio Calculator free?

Yes. Our Image Aspect Ratio Calculator is free to use. You can calculate image proportions, try common aspect ratios, preview shapes, and copy calculated dimensions without creating an account.

.