TapCub is live — analytics, insights and live chat, free on one platform

Free tool Aspect ratio calculator for images, video and screens

Enter a width and height to get the ratio, or lock a ratio and type one side to get the other. See exactly what a crop would cut and how big the bars would be, load the size of a picture from your device, and turn a screen diagonal into inches, centimetres and pixels per inch.

  • Any ratio, any unit
  • Crop and letterbox preview
  • Images stay on your device

Calculate an aspect ratio

The example starts at 1920 × 1080. Change any box and everything updates.

Calculator

1. Size to ratio

Pixels, centimetres, anything: only the proportion matters.

Aspect ratio

16:9

Exactly 16:9.

As a decimal

1.7778:1

Orientation

Landscape

Megapixels

2.07 MP

You can also drop or paste an image: only its pixel size is read, in your browser.

2. Resize in proportion

Type a new width or height and the other side is calculated.

Leave empty to follow the size in step 1. Accepts 16:9, 4x3 or 1.85.

Keeping the original ratio, 16:9.

Video encoders usually want even numbers; some tools need multiples of 8, 16 or 64.

New size: 1280 × 720.

3. Crop or pad to another shape

What happens to the original size when it has to fit a different ratio.

Crop to fill
  • Keep 1080 × 1080
  • Cut 420 from both the left and right (43.8% of the picture)
  • The kept area starts at x = 420, y = 0
Fit with bars
  • Canvas 1920 × 1920
  • Bars of 420 on the top and bottom (43.8% of the canvas)

4. Screen size and pixel density

Uses the width and height from step 1 as the shape and resolution.

23.53 × 13.24 in (59.8 × 33.6 cm)

81.6 pixels per inch at 1920 × 1080

Common sizes

Click a size to load it above.

RatioSizes
16:9HD and 4K video
9:16Vertical video
4:3Older screens, many phone photos
3:2DSLR and mirrorless photos
1:1Square posts
4:5Portrait posts
3:4Portrait photos
16:10Laptop screens
21:9Ultrawide screens
Runs entirely in your browser. Nothing you type here is uploaded or stored by TapCub.

Share these inputs: the values go after the # in the link, so they never reach a server.

Use this tool often? Save it to My tools.Saved to My tools. Find it any time at the top of the free tools page. You can also press Ctrl+D to bookmark this page in your browser.You can also press ⌘+D to bookmark this page in your browser.You can also tap your browser’s Share button (at the bottom in Safari) and choose Add Bookmark or Add to Home Screen.You can also open the ⋮ menu at the top right and tap ☆ to bookmark it, or choose Add to Home screen.You can also tap ··· at the top right and choose Favorite, or open it in your browser and bookmark it there.

Problem or suggestion?Send feedbackChat with support

Version v1.0Updated Update history

Read the result

Ratio, resolution and size are three different things

The ratio describes shape only.

  • Ratio from any size
  • Resize with even or ×8 rounding
  • Crop and pad preview
Aspect ratio calculator illustration: Find the ratio of any width and height, resize in proportion, preview cropping or letterboxing, and work out screen size and PPI
Aspect ratio calculator, illustrated

Aspect ratio

Width compared with height, written as the smallest whole numbers (16:9) or as a decimal (1.78:1). 1280 × 720 and 3840 × 2160 share it.

Resolution

The actual pixel count. Megapixels are width × height ÷ 1,000,000.

Crop to fill

Fills the new shape completely and throws away what sticks out. Good for thumbnails, risky near faces and text.

Fit with bars

Keeps the whole picture and adds space: letterbox bars above and below, or pillarbox bars at the sides.

Marketing names are not always exact. A 2560 × 1080 “21:9” monitor is really 64:27, and 1366 × 768 is 683:384, a hair away from 16:9. The calculator shows both the exact figure and the nearest familiar ratio.

How to use it

Resize without stretching

Start from what you have, then decide what has to give.

  1. 1

    Enter the original size

    Type it, pick a common size, or drop an image to read its pixels.

  2. 2

    Type the side you know

    Need a 1280 px wide version? Enter 1280 and read the height. Choose even or multiple-of-8 rounding for video.

  3. 3

    Check the other shape

    Pick the target ratio and compare cropping with bars before you export.

Formula

Aspect ratio formulas

Divide both sides by their greatest common divisor to get the ratio. To resize, multiply or divide by that ratio.

  • ratio = width : height, each divided by gcd(width, height)
  • new height = new width × old height ÷ old width
  • new width = new height × old width ÷ old height
  • Screen width = diagonal × w ÷ √(w² + h²)
  • PPI = √(pixel width² + pixel height²) ÷ diagonal in inches
Common ratios
RatioDecimalTypical use
1:11.000Square posts, avatars
4:50.800Portrait posts
9:160.5625Vertical video
4:31.333Many phone and compact camera photos
3:21.500DSLR photos, 4 × 6 in prints
16:91.778HD, 4K, most video players
21:92.333Ultrawide monitors (name)
2.39:12.390Widescreen cinema
Worked example

Turning a 1920 × 1080 frame into other sizes

The greatest common divisor of 1920 and 1080 is 120, so the ratio is 16:9.

From 1920 × 1080
TaskCalculationResult
Ratio1920 ÷ 120 : 1080 ÷ 12016:9 (1.778:1)
1280 wide1280 × 1080 ÷ 19201280 × 720
Crop to squarekeep the height; (1920 − 1080) ÷ 21080 × 1080, 420 cut from each side
Fit into squarekeep the width; (1920 − 1080) ÷ 21920 × 1920, 420 bars above and below
On a 27 in screen27 × 16 ÷ √337 and 27 × 9 ÷ √33723.53 × 13.24 in, 81.6 PPI

Cropping to a square loses 43.8% of the picture, which is why a wide video rarely survives a square crop unless the subject is centred.

Common mistakes

How pictures end up stretched or blurry

Almost every distortion comes from changing one side without the other.

Forcing both sides

Typing a width and height that do not match the ratio stretches faces and logos. Fix one side and calculate the other.

Enlarging small originals

Going from 640 wide to 1920 wide does not add detail; it only spreads the same pixels out.

Odd dimensions in video

Common H.264 settings need even width and height. Pick “Even numbers” to avoid export errors.

Trusting the 21:9 label

Real ultrawide panels are usually 64:27 or 43:18. Use the pixel size when you need precision.

FAQ

Aspect ratio questions

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

How do I calculate aspect ratio?

Divide the width and height by their greatest common divisor. For 1920 × 1080 the divisor is 120, giving 16:9. If the numbers stay large, express it as a decimal by dividing width by height.

What height goes with a 1280 width at 16:9?

720. Multiply the width by 9 and divide by 16. For 1920 wide it is 1080, and for 3840 wide it is 2160.

How do I change aspect ratio without stretching?

Either crop, which removes part of the picture, or add bars, which keeps everything but leaves empty space. Step 3 shows the exact numbers for both.

Which aspect ratio does YouTube recommend?

YouTube’s help page recommends 16:9 for videos watched on a computer, with sizes such as 1280 × 720, 1920 × 1080 and 3840 × 2160. Vertical formats use 9:16.

Why is my 1366 × 768 screen not exactly 16:9?

Because 768 × 16 ÷ 9 is 1365.33, which cannot be a pixel count. 1366 × 768 reduces to 683:384, about 0.05% away from 16:9.

Are my images uploaded?

No. When you choose or drop a picture, your browser reads its size and draws the preview locally. The file never leaves your device and is not part of the share link.

Feedback

Is this tool working for you?

Rate it, or tell us what went wrong and what you’d like improved. A person reads every message, and frequent requests go into the next update.

Rate this tool

Please don’t include passwords or other sensitive information.

Only used to reply to this feedback.

Type, details and email are required.

We only use this to handle your feedback. See the privacy policy.

Feedback received

Thank you! We will read it and reply from hello@tapcub.com if needed.

Need help right now?

Chat with our support team, best for urgent problems; you can leave a message when we are offline.

Chat with support
Changelog

Update history

New features, fixes and data refreshes for this tool, newest first.

  1. · v1.0

    LaunchedFirst release.

Missing something or found an error? Tell us — requests that come up often go into the next update. All tool updates

Cite this tool

Recommend this tool in an article or on your site

This tool is free to cite and share. Copy the URL or link below into your article, tutorial or resource page; to write a review, embed a tool or partner with us, get in touch.

URL
https://tapcub.com/tools/aspect-ratio-calculator
HTML link
<a href="https://tapcub.com/tools/aspect-ratio-calculator">Aspect ratio calculator - TapCub</a>

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics