Aspect ratio calculator

Aspect Ratio Calculator: Resize Dimensions and Find Ratios

QUICK ANSWER

To keep an aspect ratio, new height = new width × ratio height ÷ ratio width. At 16:9, a 1280-pixel-wide frame is 1280 × 9 ÷ 16 = 720 pixels tall. Pick a ratio or type your own, enter either side, and the calculator fills in the other, rounded to even numbers for video if you want. It also reduces any size to its simplest ratio, scales by percentage, and tells you exactly what to crop or how big the letterbox bars are.

  • Solve width or height
  • 17 ratio presets plus custom
  • Even-number rounding for video
  • Reduce any size to a ratio
  • Crop, letterbox and fill math
  • Copy-ready ffmpeg filters
  • Nothing uploaded
  • No signup

Calculate the missing width or height

Custom ratio (W : H)
Result at 16:9
1,920 × 1,080
Exactly on ratio.

Common sizes at 16:9

  • 1920 × 1080 YouTube and LinkedIn landscape video
  • 1280 × 720 YouTube thumbnail

Find the ratio of a size, or scale it

Aspect ratio
16:9
Orientation: landscape
Reduced (GCD)
16:9
Decimal 1.78:1
Nearest standard
16:9
Exact match

1920 × 1080 at 50% = 960 × 540 (even numbers (h.264, h.265)).

Crop or fit 1920 × 1080 to 16:9

Uses your size from the section above as the source and the ratio and result size from the first section as the target (1920 × 1080).

Center crop (no resize)

  • Keep 1920 × 1080, offset x 0, y 0
  • Already this ratio. Nothing to crop.
  • 100% of the frame kept
crop=1920:1080:0:0

Fit with no bars

  • Scale to 1920 × 1080 inside 1920 × 1080
  • Fills the canvas exactly. No bars.
  • Nothing is cut off
scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2

Fill (scale up, then crop)

  • Scale to 1920 × 1080, then crop to 1920 × 1080
  • No overflow to cut
  • 100% of the original frame visible
scale=1920:1080:force_original_aspect_ratio=increase,crop=1920:1080

The commands are ffmpeg video filters (use them after -vf). To do this to a video without a command line, upload it to the aspect ratio converter, which re-encodes the clip with crop or fit.

Why this tool exists

  • Pure math in your browser. Nothing is uploaded or stored.
  • No signup. No usage cap.
  • Works offline once the page is loaded.
10+ conversions and counting
Trusted by creators at startups, agencies, and Fortune 500 teams.
This tool is free to use, with no signup.

How to use the aspect ratio calculator

  1. 1

    Choose the ratio

    Pick a preset such as 16:9, 9:16 or 4:5, or type any ratio including decimals like 2.39:1. The flip button switches between landscape and portrait.

  2. 2

    Type the side you know

    Enter a width and the height is calculated, or enter a height and the width is calculated. The calculated field is highlighted.

  3. 3

    Pick rounding

    Whole pixels for images and web layouts, even numbers for H.264 or H.265 video, or multiples of 8 or 16 when an encoder or game engine prefers them. The result shows how far rounding moves you off the exact ratio.

  4. 4

    Crop or fit an existing size

    Enter your current size in the second section to see its ratio, scale it by a percentage, and get the exact center crop, letterbox or pillarbox bars, and fill numbers for the target, with matching ffmpeg filters.

Aspect ratio formulas

An aspect ratio is width divided by height, written as two numbers. Every calculation in this tool comes from that one relationship:

  • New height = new width × ratio height ÷ ratio width. 1080 wide at 9:16 is 1080 × 16 ÷ 9 = 1920 tall.
  • New width = new height × ratio width ÷ ratio height. 1440 tall at 21:9 (64:27) is 1440 × 64 ÷ 27 = 3413.3, which rounds to 3414 for video.
  • Ratio of a size = width ÷ GCD : height ÷ GCD, where GCD is the greatest common divisor. 1920 × 1200 has a GCD of 240, so it is 8:5, the same as 16:10.
  • Center crop: if the source is wider than the target, keep height × target ratio of the width and split the rest evenly between the left and right edges. If it is taller, keep width ÷ target ratio of the height and trim top and bottom.
  • Letterbox or pillarbox: scale by the smaller of canvas width ÷ source width and canvas height ÷ source height, then split the leftover space into bars. Bars on the top and bottom are a letterbox; bars on the sides are a pillarbox.

Common resolutions by aspect ratio

Ratio720 tall1080 tall2160 tallTypical use
1:1720 × 7201080 × 10802160 × 2160Square social posts, profile images
4:3960 × 7201440 × 10802880 × 2160SD television, iPad, older monitors and webcams
3:21080 × 7201620 × 10803240 × 216035mm photos, many cameras, Surface laptops
16:101152 × 7201728 × 10803456 × 2160WUXGA and WQXGA monitors, many laptops
16:91280 × 7201920 × 10803840 × 2160HD and 4K video, YouTube, most monitors and TVs
64:27 (21:9)1706 × 7202560 × 10805120 × 2160Ultrawide 2560×1080 and 5120×2160 monitors
2.39:11720 × 7202582 × 10805162 × 2160Anamorphic scope cinema (often called 2.35 or 2.40)
32:92560 × 7203840 × 10807680 × 2160Super ultrawide 5120×1440 and 3840×1080 monitors

Widths are rounded to the nearest even number. Some of these are not the sizes products actually ship at: 21:9 monitors use 2560 × 1080 and 3440 × 1440 rather than a strict ratio, and cinema scope delivery uses its own container sizes.

Why 21:9 is not really 21:9

"21:9" is a marketing name. A 2560 × 1080 ultrawide reduces to 64:27 (2.37:1), a 3440 × 1440 ultrawide reduces to 43:18 (2.39:1), and a literal 21:9 would be 2.33:1. The same goes for phones: an iPhone 15 Pro at 2556 × 1179 is about 2.17:1, usually described as 19.5:9. When a reduction gives large, awkward numbers like 683:384 for 1366 × 768, the calculator shows the decimal ratio and the nearest standard ratio with how far off it is, so you can tell "basically 16:9" apart from a genuinely different shape.

Even numbers, macroblocks and video

Most delivered video uses 4:2:0 chroma subsampling, which stores colour at half resolution in both directions, so encoders such as x264 refuse odd widths or heights. Even rounding avoids that error. Multiples of 16 line up with H.264's 16 × 16 macroblocks; they are not required, but some older hardware encoders and decoders prefer them. If you are resizing a video, the video resizer and aspect ratio converter take care of this for you. For physical screen size and pixel density, use the PPI calculator.

Recording for more than one shape

If one recording has to work as a 16:9 walkthrough and a 9:16 clip, use the crop section to see how much of the frame survives before you record, and keep the important part of the screen near the center. Clipy records your screen and shares it as a link with a transcript that your coding agent can read, so you only export a resized copy when a platform actually needs one.

Crop, fit or fill: which one to use

Crop keeps the original pixels and throws away the edges. Use it when the subject is centred and you want the frame filled without resizing. Fit (letterbox or pillarbox) keeps the whole picture and adds bars. Use it when nothing can be lost, such as a screen recording with text near the edges. Fill scales the picture up until it covers the target and then crops the overflow. It is what social apps do when you post a landscape clip as a vertical video, and it loses the most of the original frame.

Display aspect ratio and pixel aspect ratio

This calculator assumes square pixels, which covers screens, screenshots, web images and almost all modern video. Some broadcast and DVD formats store non-square pixels, so the stored size and the displayed shape differ: a 720 × 480 NTSC DVD frame is shown at 4:3 or 16:9 depending on a flag in the file. If your video player shows a different shape than the pixel dimensions suggest, check the file's sample aspect ratio with a tool like the screen recording checker before cropping.

Common questions

How do I calculate aspect ratio?

Divide the width and the height by their greatest common divisor. For 1920 × 1080 the GCD is 120, so the ratio is 16:9. If the numbers do not reduce neatly, divide width by height for a decimal ratio: 1366 ÷ 768 = 1.78, which is close to 16:9 (1.778).

How do I find the height for a width at 16:9?

Multiply the width by 9 and divide by 16. 1600 wide is 900 tall, 1280 wide is 720 tall, and 2560 wide is 1440 tall. For any other ratio, multiply by the ratio's height term and divide by its width term.

What is the aspect ratio of 1920 × 1080?

16:9. It is the standard ratio for HD and 4K video, YouTube, and most monitors and TVs. 1280 × 720, 2560 × 1440, 3840 × 2160 and 7680 × 4320 share the same ratio.

What size is a 9:16 vertical video?

1080 × 1920 is the common size for Instagram Reels and Stories, TikTok and YouTube Shorts. 720 × 1280 is the same ratio at a lower resolution.

What aspect ratio is 4:5 and when is it used?

4:5 is a portrait shape slightly taller than square, 1080 × 1350 at full size. It is widely used for Instagram feed posts because it fills more of a phone screen than a square post does.

Is 1366 × 768 really 16:9?

Almost. It reduces to 683:384, about 1.779:1, which is 0.05% wider than an exact 16:9. The panel size was chosen for manufacturing reasons, and at that scale the difference is invisible.

Why do video dimensions need to be even numbers?

Most video is encoded with 4:2:0 chroma subsampling, which stores colour for each 2 × 2 block of pixels. An odd width or height leaves a half block, so encoders like x264 reject it. Rounding to even numbers avoids the error with no visible change.

How do I change a video's aspect ratio without stretching it?

Either crop it to the new ratio, which removes edges, or fit it inside the new frame with bars, which keeps everything. Stretching only happens when you force both dimensions without cropping or padding. This calculator gives you the exact numbers and ffmpeg filters for both, and the aspect ratio converter does it for an uploaded video.

What is the difference between 16:9 and 16:10?

16:10 (1.6:1) is about 11% taller than 16:9 (1.78:1) at the same width. 1920 × 1200 is 16:10 and 1920 × 1080 is 16:9. Many laptops and productivity monitors use 16:10 for the extra vertical space; video is almost always 16:9, so it shows thin bars on a 16:10 screen.

Tool not working the way you expect?

Tell us what broke. We resolve every report within 24 hours.

Send feedback →

More free tools

Aspect ratio converter
Reframe video to 9:16, 1:1, 4:5, or 16:9. Crop to fill or fit with bars.
Resize video
Resize for YouTube, TikTok, or square. Letterbox or center-crop.
Image resizer
Resize images in bulk in your browser: pixels, percent, crop or pad to social sizes, KB targets, ZIP download.
PPI calculator
Pixel density, dot pitch, screen size, and Retina distance for any display, plus Mac and Windows scaling.
LinkedIn video size
LinkedIn video specs for posts and ads, plus a resizer for 16:9, 1:1, 4:5, and 9:16.
Crop video
Cut the framing down to a square, half, or custom rectangle.
Recording size calculator
Estimate file size and upload time before you record, by resolution, codec, and quality.
Frame Rate Converter
Change video fps from 12 to 120 without changing speed. Drop, blend, or interpolate frames.
MP4 to MP3 (Extract Audio)
Pull the audio track out of any video as MP3.
Loom to MP3
Extract MP3 audio from any Loom video. Free, no signup.
Video to Audio Converter
Extract a clean MP3 or WAV from any video, free and in your browser.
MP3 Cutter
Trim a section out of an MP3 or any audio file, lossless, no upload.
Background Generator
Make gradient, mesh, and solid color wallpapers and backdrops at any size, with grain and patterns.
Burn Subtitles into Video
Hard-code an .srt or .vtt onto your video so captions play everywhere.
Fix Screen Recording Audio
Analyze and fix quiet, clipped, noisy, or one-sided audio in a recording.
Compress GIF
Shrink animated GIFs for Slack, Discord, and email, free, in your browser.

See all free tools.

Doing this for an AI workflow?

Clipy recordings are agent-readable out of the box. One link carries the video, keyframes, and transcript.

Clipy for AI agents