Skip to content

Aspect Ratio Calculator

Presets:

Solved

1,080 (height 2)


Ratio
16:9
Decimal
1.78
Source
16 × 9
Target
1,920 × 1,080

Estimates for educational purposes — not financial, medical, or legal advice. See terms.

“What is the other dimension if I want my image to be X wide at this aspect ratio?” is the most common piece of image math in web, video, and print work. This calculator solves it in both directions. Enter any three of source width, source height, target width, and target height, leave one blank, and the fourth is computed so the two rectangles have the same aspect ratio.

Use the preset buttons to quickly fill the source pair with a standard ratio — 16:9 for HD video, 4:3 for classic TV and iPad, 1:1 for social media posts, 21:9 for ultrawide monitors, 9:16 for Instagram Stories and TikTok, 3:2 for DSLR and mirrorless photos, 2:3 for portrait crops. From there just enter one target dimension and read off the other.

The math

If two rectangles share an aspect ratio, then:

W1H1=W2H2\frac{W_1}{H_1} = \frac{W_2}{H_2}

Rearranged, any one of the four can be solved from the other three:

W2=W1H2H1H2=W1H10+W2H1W1W_2 = \frac{W_1 \cdot H_2}{H_1} \qquad H_2 = \frac{W_1 \cdot H_1 \cdot 0 + W_2 \cdot H_1}{W_1}

(Only one solve is needed per call — the calculator picks whichever field you left blank and uses the appropriate rearrangement.)

Example: fitting an image into a 1200 wide slot

You have a 4032 by 3024 photo (the 4:3 native sensor of most smartphones). Your web layout has a 1200 pixel wide image slot. What height should the image be to preserve the aspect ratio?

Enter 4032 as width 1, 3024 as height 1, 1200 as width 2, leave height 2 blank. The answer is 900 — your 1200-wide image needs to be 900 pixels tall. Scale factor 0.2976, a comfortable downscale that will look sharp.

Example: figuring out a source size from a target

Working the other way: you know the target size (say, 1920 by 1080 for a hero banner) and you know the source photo is 3:2 native. What source pixel dimensions do you need?

Enter 3 as width 1, 2 as height 1, 1920 as width 2, leave height 2 blank. Wait — that gives you height 2 = 1280, not 1080. What does that mean? It means a pure 3:2 image cannot match 16:9 (1920 by 1080) without distortion. You have two choices: crop the 3:2 source to 16:9 (losing pixels on one axis), or letterbox the 3:2 source inside the 16:9 slot (adding bars on the other axis). The tool will tell you the dimensions; it cannot tell you which compromise to make.

Example: solving for the source ratio

Sometimes you know the target dimensions but not the source ratio. You have an image slot that must be 1440 by 540 pixels — what aspect ratio is that? Enter 1440 as width 2, 540 as height 2, and enter any width 1 you like (say, 8). The height 1 comes out to 3, meaning 8:3 — but the tool’s simplified ratio also shows you the lowest-terms form, which for 1440:540 is 8:3. The ratio field is the shortcut for this question.

Common ratios and where they come from

  • 16:9 (1.778) — HDTV, YouTube, modern video. The standard most content is produced in.
  • 4:3 (1.333) — Legacy television, iPad apps, older photos. Feels slightly square compared to 16:9.
  • 1:1 (1.000) — Instagram feed posts, album artwork, profile photos. The safest “looks the same everywhere” format.
  • 21:9 (approximately 2.333) — Ultrawide monitors, some cinematic video (CinemaScope is actually 2.39:1, close but not identical).
  • 9:16 (0.5625) — Instagram Stories, TikTok, Reels, YouTube Shorts. The dominant mobile-video format.
  • 3:2 (1.500) — DSLR and mirrorless sensors (24x36mm film too). Photographers’ default.
  • 2:3 (0.667) — Portrait-orientation 3:2, used for printed photo books and some book covers.

The calculator handles all of these and any custom ratio you type in. The presets are there for convenience, not as hard constraints.

What this tool does not do

It does not crop, letterbox, or resize actual image files — it only computes the dimensions. For pixel-level operations you want an image editor or a canvas-based tool. For the specific case of “resize this image while preserving its aspect ratio”, the image dimension calculator is the one-step shortcut. And when you need the answer in inches for print, the DPI calculator ties pixels, physical size, and resolution together.

Frequently asked questions

What is an aspect ratio?

The ratio of a rectangle's width to its height. An HD TV is 16 to 9 because the screen is 1920 wide and 1080 tall, and 1920 divided by 1080 reduces to 16:9. Square is 1:1, a standard film frame is 3:2, and an ultrawide monitor is usually labelled 21:9 even though the actual pixel ratio is typically 64:27. The ratio tells you the shape of the rectangle independent of its absolute size.

Why 64:27 and not 21:9 for ultrawide?

Because 21:9 is a marketing label, not a mathematical reduction. A 2560 by 1080 ultrawide monitor has the ratio 2560:1080, which reduces to 64:27 in lowest terms — there is no cleaner way to express it. Monitor brands round to 21:9 because it is easier to say, but the calculator shows the true simplified form. This is why two ultrawide monitors with nominally the same 21:9 label can have subtly different aspect ratios.

How do I use this to resize an image?

Enter the source image's width and height in the first pair, then enter the target width OR target height in the second pair and leave the other blank. The blank field computes to preserve the ratio. If you have a 4000 by 3000 photo and want to display it at 800 wide, leave the target height blank — it comes out to 600.

What if I want to change the aspect ratio?

Then you are not preserving it, and this tool is not what you want. Changing an aspect ratio means cropping or letterboxing, which requires decisions the calculator cannot make for you — which axis to preserve, where to place the crop. For that, you need an image editor or a dedicated crop tool.

Does the calculator care about the units?

No. All four fields are the same unit — whatever you decide it is. You can mix pixels in one pair and inches in the other, and the ratio math still works, as long as both pairs share the same ratio. The tool does not know or care whether you are working in pixels, millimetres, points, or cubits.