PublicSoftTools

Aspect Ratio Calculator Online

Enter any width or height and the aspect ratio to instantly calculate the missing dimension. Includes presets for 16:9, 4:3, 1:1, 9:16, and more. No signup, runs entirely in your browser.

⏱ 9 min read · Complete guide below

:
px
×
px
Detected ratio16:9
Dimensions1920 × 1080
Common Aspect Ratios
16:9Widescreen video, YouTube, HD monitors
4:3SD video, older monitors
1:1Square, Instagram posts
9:16Portrait video, Instagram stories, TikTok
21:9Ultrawide monitors, cinema
3:2DSLR cameras, 35mm film
4:5Portrait photos, Instagram portrait
2:1Twitter header, Open Graph images

How the Aspect Ratio Calculator Works

  1. 1Select a preset ratio (16:9, 4:3, 1:1, etc.) or enter a custom ratio in the W:H inputs at the top.
  2. 2Enter the width — the height is calculated automatically. Or enter the height to calculate the width.
  3. 3The detected ratio shows the simplified ratio for any custom dimensions you enter.
  4. 4Click Copy to copy the dimensions and ratio to your clipboard.

Why Aspect Ratios Matter

Maintaining the correct aspect ratio prevents images and videos from appearing stretched or squashed. Video editors, designers, and developers constantly use aspect ratio calculations when exporting at different resolutions, designing responsive layouts, cropping thumbnails, or specifying canvas sizes. A 16:9 ratio at 1280×720 is the same shape as 1920×1080, 2560×1440, or 3840×2160 — they are all 16:9.

How Aspect Ratio Math Works

An aspect ratio is simply the width divided by the height, reduced to its simplest whole-number form. To get the ratio from a resolution, you divide both numbers by their greatest common divisor: 1920 and 1080 share a GCD of 120, so 1920×1080 reduces to 16:9. Working the other way is just as easy — to find a missing dimension, multiply the one you have by the ratio of the other two parts. For a 16:9 image 1280 pixels wide, the height is 1280 × (9 ÷ 16) = 720. This is the calculation the tool performs instantly, but knowing the underlying arithmetic means you can sanity-check any result and understand why, for example, 1366×768 is close to but not exactly 16:9.

Why the Right Ratio Prevents Distortion

The whole point of preserving an aspect ratio is to keep proportions intact. When an image or video is forced into a container of a different ratio, one of two things happens: it gets stretched or squashed, making faces look too wide or too tall, or it gets cropped, cutting off part of the frame. A third option, letterboxing or pillarboxing, adds black bars to fit the content without distorting it — which is exactly what YouTube does to a non-16:9 upload. Calculating the correct matching dimensions before you export or place media is the reliable way to avoid all three problems, so the content fills its space cleanly and looks the way it was intended.

Choosing a Ratio for Your Medium

Different platforms and devices favour different shapes, and matching them matters. 16:9 is the universal standard for televisions, monitors, and YouTube. 9:16 — the same ratio turned vertical — dominates phone-first content like TikTok, Reels, and Stories. 1:1 squares suit profile pictures and much of the Instagram feed, while 4:5 gives portrait posts the maximum height the feed allows. Photographers work in 3:2 (the classic 35 mm frame) or 4:3, and print has its own paper proportions that map to none of these cleanly. Picking the native ratio of your target medium, rather than resizing later, keeps your work sharp and correctly framed.

Aspect Ratio by Platform

YouTube & TV

16:9 is the standard for all HD and 4K video. Use 1920×1080 for Full HD or 3840×2160 for 4K. Older content may be 4:3.

Instagram Feed

Square 1:1 (1080×1080), portrait 4:5 (1080×1350), or landscape 1.91:1 (1080×566). Stories and Reels: 9:16 (1080×1920).

Twitter / X

In-stream images display at approximately 16:9 cropped to 2:1. OG images use 1.91:1 or 2:1. Cards use 1:1 for small previews.

Photography

Most DSLRs shoot 3:2 (the classic 35mm format). Micro Four Thirds sensors use 4:3. Medium format is often 1:1 or 4:5.

CSS Responsive Design

Use aspect-ratio: 16 / 9 in CSS to maintain a ratio automatically. Combine with width: 100% to fill a container.

Print

A4/Letter paper is approximately 1:√2 ≈ 1:1.414. US Letter is 8.5:11 ≈ 1:1.294. Neither maps cleanly to screen ratios.

A Short History of Screen Aspect Ratios

The shapes of our screens have a surprisingly eventful history, and knowing it explains why today's ratios are what they are. Early film and the first televisions settled on 4:3 — a nearly square shape that suited the technology of the time and defined the look of TV for decades. Cinema, wanting to distinguish the theatre experience from television, pushed toward much wider formats like 2.39:1 CinemaScope, which is why classic films look so letterboxed on an old TV.

When high-definition television was standardised, the industry chose 16:9 as a compromise between the squarish 4:3 of old broadcasts and the ultra-wide formats of cinema — wide enough to feel modern and cinematic, but not so wide that regular content looked awkward. It has since become the default for virtually every monitor, television, and video platform. More recently, ultrawide 21:9 monitors have carved out a niche for gaming and productivity, and the smartphone turned everything on its side, making the vertical 9:16 the native shape of a huge share of the video now made and watched. Each ratio is a snapshot of the technology and viewing habits of its era.

Aspect Ratio, Resolution, and Pixel Density: Untangling the Terms

These three ideas are constantly confused, but keeping them separate makes everything about images and video clearer. Aspect ratio is the shape — the proportion of width to height — and it says nothing about size. Resolution is the actual pixel count, such as 1920×1080, and it determines how much detail an image contains. Pixel density (often measured in PPI or DPI) describes how tightly those pixels are packed into a physical space, which is what makes a phone screen look sharp despite being small.

The key insight is that many different resolutions can share the same aspect ratio. 1280×720, 1920×1080, 2560×1440, and 3840×2160 are all 16:9 — the same shape at increasing levels of detail. That is why you can scale a video up or down between those resolutions without distortion: the shape never changes, only the pixel count does. Distortion only happens when you change the ratio, which is exactly what this calculator helps you avoid by finding the matching dimension for any target shape.

Cropping, Letterboxing, and Safe Zones

When content made for one ratio has to appear in another, something has to give, and understanding the options helps you choose deliberately rather than letting a platform decide for you. Croppingtrims the edges to fit the new shape, which keeps the image full-frame but risks cutting off something important. Letterboxing (or pillarboxing for the vertical version) preserves the whole image by adding bars, sacrificing screen space to avoid distortion. Stretching — forcing the content into the wrong shape — is almost always the wrong answer, because it visibly warps everything.

This is where the idea of a safe zone becomes valuable, especially for anyone producing content that will be shown at multiple ratios. If you keep the essential elements — faces, text, logos — within a central safe area rather than near the edges, the same footage can be cropped to 16:9, 1:1, or 9:16 without losing what matters. Planning for multiple ratios at the framing stage is far easier than trying to rescue a badly composed shot afterwards.

Aspect Ratios in Responsive Web Design

For web developers, aspect ratios are not just an aesthetic concern — they directly affect performance and user experience. When a browser does not know the shape of an image or video before it loads, the page content jumps around as media arrives, a problem measured as Cumulative Layout Shift (CLS), one of Google's Core Web Vitals. Reserving the correct space in advance prevents that jump and improves both the experience and the page's ranking.

The modern solution is the CSS aspect-ratio property: writing aspect-ratio: 16 / 9alongside width: 100% lets an element size its own height correctly at any screen width, with no wrapper hacks. For older browsers that lack support, the classic technique is the “padding-top” trick — a container with padding-top set to the ratio as a percentage (56.25% for 16:9) reserves the right space. Either way, the principle is the same: tell the browser the shape up front so the layout is stable from the first paint. Calculating the exact percentage or matching dimensions is precisely what this tool is for.

Frequently Asked Questions

What is an aspect ratio?

An aspect ratio is the proportional relationship between an image's width and height, expressed as two numbers separated by a colon (e.g. 16:9). It describes the shape of the image without specifying its actual size. Two images with the same aspect ratio have the same shape regardless of their pixel dimensions.

How do I calculate the height from a width and aspect ratio?

Height = Width × (ratio height / ratio width). For a 16:9 image that is 1280px wide: height = 1280 × (9/16) = 720px. This tool does this calculation automatically — just enter the width and the result appears instantly.

What aspect ratio should I use for YouTube videos?

YouTube uses 16:9 for standard videos. The minimum recommended resolution is 1280×720 (720p HD). For 1080p Full HD use 1920×1080, for 4K use 3840×2160. YouTube will add pillarboxes (black bars) to videos that are not 16:9.

What aspect ratio should I use for Instagram?

Instagram supports multiple ratios: 1:1 (square, the classic Instagram format), 4:5 (portrait, maximum vertical space in the feed), and 1.91:1 (landscape, similar to 16:9 but tighter). For Reels and Stories, use 9:16 (vertical full-screen).

How do I maintain an aspect ratio when resizing in CSS?

Use the CSS aspect-ratio property: .element { aspect-ratio: 16 / 9; width: 100%; }. For older browsers, the padding-top trick works: set padding-top: 56.25% (9/16 × 100%) on a container with position: relative, then absolutely position the content inside.

What does the detected ratio in the tool output mean?

After you enter width and height values, the tool calculates their greatest common divisor and reduces the ratio to its simplest form. For example, 1920×1080 reduces to 16:9. This tells you the canonical ratio for that resolution.

How do I calculate an aspect ratio from a resolution by hand?

Divide both the width and the height by their greatest common divisor (GCD). For 1920×1080, the GCD is 120, so dividing gives 16:9. If you do not know the GCD, keep dividing both numbers by common factors (2, 3, 5, and so on) until they share none. The result is the ratio in its simplest whole-number form, which is exactly what the tool reports as the detected ratio.

What happens if I use the wrong aspect ratio?

Your media will either be distorted, cropped, or letterboxed. Forcing content into a container of a different ratio stretches or squashes it (making people look too wide or too tall), or the platform crops the edges to fit, or it adds black bars to preserve the shape. YouTube, for example, pillarboxes videos that are not 16:9. Calculating the correct matching dimensions in advance avoids all of these outcomes.

Is 1366×768 the same as 16:9?

Almost, but not exactly. True 16:9 at 768 pixels tall would be 1365.33 wide, so 1366×768 is a very close approximation that many laptop screens use for manufacturing convenience. This is a good example of why the detected-ratio feature is useful: it reduces the numbers to the nearest simple ratio and reveals when a resolution is only approximately a standard shape rather than a perfect match.

How do I keep an aspect ratio in CSS?

Use the modern CSS aspect-ratio property, for example ".box { aspect-ratio: 16 / 9; width: 100%; }", which sizes the element's height automatically from its width. For older browsers that lack support, the classic technique is the padding-top trick: give a container position: relative and padding-top equal to the ratio as a percentage (56.25% for 16:9), then absolutely position the content inside it.