Skip to main content

Social Media Aspect Ratio Calculator

Calculate pixel dimensions and aspect ratios for YouTube, TikTok, and Instagram

Social Media Aspect Ratio Calculator

Preset Formats

Calculated dimensions

Pixel size

1920 px × 1080 px

Aspect ratio 16:9

Change either pixel dimension to calculate the matching dimension from the selected ratio. This calculator reports dimensions; it does not resize an image file.

Was this Social Media Aspect Ratio Calculator helpful?

Help us keep tools reliable, fast, and bug-free.

What you can do with Social Media Aspect Ratio Calculator

  • Calculate 16:9 dimensions
  • Find 9:16 reels resolution

How this media processing works

Calculate matching pixel dimensions for a custom aspect ratio or one of four built-in social video and post presets.

Example input

Aspect ratio: 16:9; width: 1280 px

Example output

Width: 1280 px × 720 px | Aspect ratio: 16:9

Practical workflow

  1. Choose a 16:9, 9:16, 1:1, or 4:5 preset, or enter a custom ratio width and height.
  2. Enter the pixel width or height to calculate the matching dimension from the current ratio.
  3. Review the calculated pixel size and the ratio shown beside it.

Common use cases

  • Set pixel dimensions for a YouTube video, TikTok clip, Reel, or square social post.
  • Calculate a matching height when resizing a video frame to a new width.
  • Calculate a matching width when preparing a portrait or square image at a target height.

Important notes and limitations

  • The built-in presets are 16:9, 9:16, 1:1, and 4:5; other ratios can be entered manually.
  • The calculator reports dimensions only and does not resize, crop, or export an image file.
  • Matching pixel dimensions are rounded to the nearest whole pixel and kept at least 1 px.

CLI aspect ratio calculations & FFmpeg scale filters

Inspect media display aspect ratio with ffprobe

ffprobe -v error -select_streams v:0 -show_entries stream=width,height,display_aspect_ratio -of csv=p=0 video.mp4

Extracts pixel resolution and intrinsic display aspect ratio (DAR) from video containers.

Calculate greatest common divisor (GCD) in bash

python3 -c "import math; w, h = 1920, 1080; g = math.gcd(w, h); print(f'{w//g}:{h//g}')"

Computes simplified aspect ratio representation (16:9) from pixel dimensions.

Non-square pixels & responsive video padding

Video squished or stretched due to Sample Aspect Ratio (SAR) mismatch

Cause: Anamorphic video formats where stored pixels are non-square (SAR != 1:1).

Solution: Scale videos using FFmpeg filter 'scale=1920:1080:flags=lanczos,setsar=1' to enforce square pixels.

Continue your workflow

Frequently asked questions

Which aspect ratio presets are available on this page?

Choose 16:9 for landscape video, 9:16 for vertical video, 1:1 for a square post, or 4:5 for a portrait post. Enter a custom ratio for other formats.

Does the calculator crop or resize the image itself?

No. It calculates matching pixel dimensions only; use an image editor or converter to resize or crop the actual file.

How does the calculator choose the matching pixel dimension?

It multiplies the entered width or height by the selected ratio and rounds the result to the nearest whole pixel.