Aspect Ratio Calculator

Find an aspect ratio, a matching dimension or a scaled size.

Enter your values

Original dimensions or ratio

Pixels or ratio parts; whole numbers from 1 to 1,000,000.

Enter your values to calculate.

Result

Your result will appear here.

Calculate an aspect ratio or a new size

Choose a calculation above, enter your numbers and select Calculate. Always enter width first and height second.

  • Aspect ratio: Enter both pixel dimensions, such as 1920 and 1080, to get 16:9.
  • Matching height from width: Enter 16 and 9, then a target width of 1280 to get 1280 × 720 px.
  • Matching width from height: Enter 4 and 5, then a target height of 1350 to get 1080 × 1350 px.
  • Scale by percentage: Enter an original size of 2400 × 1600 and a scale of 50 to get 1200 × 800 px.

For a missing dimension, either enter the original size or the two parts of the desired ratio. In percentage mode, enter the actual original pixel dimensions, not just the ratio parts. Before rounding, a scale of 50 halves both dimensions; 150 multiplies each by 1.5.

After changing the mode, enter the intended target again because the calculator supplies a new default. For a resize calculation, read both Original ratio and Result ratio. If these differ, the output is a whole-pixel approximation, not an exact match.

If you have an image file but don’t know its dimensions, start with the image dimensions checker for a supported still JPEG, PNG or WebP. Use the dimensions of the picture itself in the intended orientation, excluding any surrounding frame or player.

What the ratio tells you

An aspect ratio describes shape, not size. Divide both dimensions by their greatest common divisor to express the shape using the smallest possible whole numbers. For 1920 × 1080, that divisor is 120, so the ratio is 16:9. The decimal width-to-height value is about 1.777778.

To find a matching dimension:

  • Height = target width × ratio height ÷ ratio width.
  • Width = target height × ratio width ÷ ratio height.
  • To scale both sides, multiply each by the percentage divided by 100.

These are applications of equivalent fractions and proportions; see OpenStax’s explanation of ratios. Use the same unit for both sides. The ratio of a 2.5 × 3.5 inch print is 5:7: multiply both measurements by 10, then enter 25 and 35. To enter a decimal ratio such as 2.39:1, use 239 and 100. The matching-dimension modes return pixel sizes, not physical lengths or fractional pixels.

Common ratios and exact pixel sizes

These are mathematical examples of each shape, not required export sizes for a particular service. Choose the dimensions your destination actually accepts.

Aspect ratio Example pixel dimensions
1:1 1080 × 1080
4:5 1080 × 1350
3:4 1200 × 1600
2:3 800 × 1200
9:16 1080 × 1920
4:3 1600 × 1200
3:2 1800 × 1200
16:10 (8:5) 1920 × 1200
16:9 1280 × 720; 1920 × 1080; 3840 × 2160
2:1 1600 × 800
21:9 (7:3) 2520 × 1080
32:9 3840 × 1080

The order matters: rotating a 1920 × 1080 rectangle by 90 degrees gives 1080 × 1920, or 9:16.

When a familiar ratio is only a label

A 1366 × 768 image reduces to 683:384, not exactly 16:9. If a 2560 × 1080 or 3440 × 1440 screen is labeled 21:9, its exact pixel ratio is 64:27 or 43:18, respectively. A true 21:9 canvas at 1440 pixels high is 3360 × 1440.

Use the actual pixel dimensions when the existing shape must be preserved. Use the specified ratio when planning a new canvas. To compare two dimensions exactly, reduce both pairs in Aspect ratio mode or cross-multiply: a width W and height H match a ratio a:b only if W × b = H × a.

The calculator measures the pixel grid. For upright square-pixel images this is also the displayed shape. Some video formats use non-square pixels; their displayed frame ratio can differ from the stored width-to-height ratio. Check the intended frame and pixel aspect settings in your editor rather than assuming the pixel grid is the displayed shape. See Adobe’s explanation of frame and pixel aspect ratios.

Keep the ratio exact when rounding would change it

At 16:9, a fixed width of 1000 px requires a height of 562.5 px. The calculator rounds that to 563 px, giving 1000 × 563 and a different result ratio. A raster image cannot contain half a pixel along its edge.

If the width must be exactly 1000 px, accept the rounded size only if the destination allows an approximate ratio. There is no whole-pixel height that makes 1000 px wide exactly 16:9.

If 1000 px is a maximum instead, use 992 × 558 px. Both sides are multiples of the reduced ratio (16 × 62 and 9 × 62). If a width of at least 1000 px is required and a larger size is allowed, 1008 × 567 is the next exact option. Enter the chosen width in Matching height from width mode and confirm the result ratio is 16:9.

Fit within both maximum dimensions

When the ratio must stay exact, use Aspect ratio mode to reduce the original dimensions to whole-number parts a:b. Every positive whole-pixel size with that exact ratio has width a × k and height b × k, where k is a positive whole number. Let W and H be the maximum width and height in whole pixels, within the calculator’s limits.

  • Divide W by a and H by b, rounding each quotient down. The smaller integer is the largest allowed multiplier, k.
  • If k is at least 1, multiply both ratio parts by k. Enter the reduced ratio and the resulting width in Matching height from width, or the resulting height in Matching width from height. Select Calculate and verify that both dimensions fit the limits and Result ratio equals the original ratio.
  • If k is 0, no positive whole-pixel size can preserve the exact ratio inside both limits. The smallest exact size is a × b px. Increase any insufficient limit to at least its corresponding ratio part, if allowed, or check whether the destination accepts a different ratio or an approximation.

For 3:2 within 1000 × 650 px, the width allows 333 whole groups of 3 and the height allows 325 groups of 2. Use k = 325 to get 975 × 650 px. Select Matching width from height with ratio 3:2 and target height 650; Result ratio is 3:2. If the destination instead requires exactly 1000 × 650 px, those dimensions cannot also have a 3:2 ratio.

A 1366 × 768 px image reduces to 683:384. Inside 500 × 500 px, the width allows zero whole groups of 683 and the height allows one group of 384. No exact size fits: even the smallest, 683 × 384 px, exceeds the width limit.

If the destination allows rounding

Compare W ÷ a and H ÷ b before rounding either quotient. The smaller quotient identifies the limiting side (if equal, either side works). With the reduced ratio entered, use Matching height from width with target W if width is limiting, or Matching width from height with target H if height is limiting. Select Calculate. The calculator rounds the calculated side to the nearest whole pixel; it does not automatically check both limits. Verify both dimensions and compare Result ratio with the destination’s permitted tolerance.

For the 683:384 example, 500 ÷ 683 is smaller than 500 ÷ 384. Use Matching height from width with ratio 683:384 and target width 500. The ideal height is about 281.113 px, giving 500 × 281 px (Result ratio 500:281). This fits both limits but is not exactly 683:384. Use it only if the destination accepts the difference. If the calculated side would round to zero, the calculator rejects the size; reducing the proportional size further will not help. Change the allowed limits or choose a different permitted ratio.

If both dimensions must be even

If an output specification requires both sides to be even, choose an even multiplier of the reduced ratio. For example, 16:9 with a maximum width of 1000 px can use 992 × 558. A multiplier of 63 gives 1008 × 567, which has an odd height. This calculator rounds to whole pixels; it does not automatically enforce even dimensions or other alignment rules.

When the destination needs a different shape

Proportional scaling cannot turn a 4:3 image into 16:9. Consider a 1440 × 1080 px original:

  • To fill a 16:9 frame at the original width, crop to 1440 × 810 px. You lose 270 rows of pixels in total, or 135 from each edge if the crop is vertically centered.
  • To retain every original pixel without scaling, use a 1920 × 1080 px canvas. Centered padding adds 240 px to each side.
  • Stretching to a new ratio changes the proportions of objects in the picture.

You can calculate the target sizes above by entering 16 and 9, then solving from a width of 1440 or a height of 1080. To edit a supported image, use the image resizer. Select the source image and open Advanced settings. Set Resize by to Pixels. For the first example, choose Fill & Crop, enter 1440 × 810 and select the center anchor. For the second, choose Fit & Pad, enter 1920 × 1080 and select the center anchor. Select Resize image, then inspect the result and download it.

Input limits and small images

Enter whole numbers from 1 to 1,000,000 in the width, height and target pixel fields, without commas or unit labels. Only Scale (%) accepts decimals, with up to six decimal places and a value greater than zero and no more than 100,000. A result must also have at least 1 and at most 1,000,000 pixels per side.

Both dimensions are rounded independently in percentage mode. For very small sizes this can change the ratio substantially: scaling 3 × 2 px by 50% returns 2 × 1 px, not a 3:2 image. If scaling would round a side to zero or produce a size above the limit, the calculator reports an error. Change the target or use an exact multiple as described above.

This tool calculates numbers in your browser; it does not open, resize or export files. A calculated size can be much larger than an image editor can process. The linked resizer accepts supported still images within its own limits of 4096 px per side and 8 million pixels, as well as format and file-size restrictions. Scaling a picture up adds pixels but cannot restore missing detail. If you need the total pixel count or want to work backward from a megapixel target, use the megapixel calculator.