Free Aspect Ratio Calculator

Free aspect ratio calculator: simplify any width and height to a ratio, solve the missing side for 16:9, 4:3, 9:16 or 21:9 and copy the CSS aspect-ratio value.

  • No upload, 100% private
  • Instant, in your browser
  • 100% free, no signup
Loading tool…
Read the complete guideHow to Calculate Aspect Ratio and Resize Without Distortion →

About the Aspect Ratio Calculator tool

Resizing a video, preparing a social media image or setting up a responsive embed all hinge on keeping the right proportions. Change the width without adjusting the height by exactly the right amount and the result looks squashed, stretched or gets cropped by the platform.

This aspect ratio calculator works in both directions. Enter a width and height to reduce them to the simplest ratio, so 1920 × 1080 becomes 16:9 and 1080 × 1350 becomes 4:5, together with the decimal ratio. Or set a ratio and type one dimension to solve the other instantly; editing either the width or the height keeps them locked to the ratio.

Presets cover the common formats: 16:9 video, 9:16 reels and shorts, 4:3, 3:2 photos, 1:1 squares, 4:5 portrait posts, 21:9 ultrawide, 16:10 laptop screens, 2:1 and 1.91:1 link preview images. A scaled box previews the shape, and the matching CSS aspect-ratio declaration is ready to copy. Units do not matter, so pixels, centimetres and inches all work.

How to use Aspect Ratio Calculator

  1. Enter the ratio in “Aspect ratio (W : H)” or click one of the “Common ratios”.
  2. Type a width in the “Size” row to get the matching height, or type a height to get the width.
  3. To find the ratio of an existing size, enter both values and click “Get ratio from this size”.
  4. Use “Swap orientation” to switch between landscape and portrait.
  5. Copy the CSS aspect-ratio line shown under the preview.

Features

Solve for width or height

Whichever dimension you type last drives the other one.

Ratio simplification

Reduces any size, including decimals, to its simplest whole-number ratio.

Social and video presets

Ten common ratios with a note on where each is used.

Visual preview

A proportional box shows the chosen shape at a glance.

CSS output

Get a ready aspect-ratio: W / H declaration for responsive elements.

When to use it

  • Work out the height for a 1280px-wide 16:9 YouTube thumbnail.
  • Resize a photo for a 4:5 Instagram portrait post without cropping surprises.
  • Find the ratio of an odd screen resolution such as 2560 × 1080.
  • Size a responsive video embed or image placeholder with CSS aspect-ratio.
  • Plan print dimensions that keep the proportions of a digital image.

Frequently asked questions

How do I calculate aspect ratio?

Divide the width and height by their greatest common divisor. For 1920 × 1080 the GCD is 120, giving 16:9.

What size is 16:9?

Common 16:9 sizes are 1280 × 720 (HD), 1920 × 1080 (Full HD), 2560 × 1440 (QHD) and 3840 × 2160 (4K UHD).

Which ratio should I use for Instagram, TikTok and Reels?

Vertical short video uses 9:16, typically 1080 × 1920. Instagram feed posts support 1:1 squares and 4:5 portrait images.

Is 1.91:1 the same as 16:9?

No. 1.91:1 (about 1200 × 628) is wider than 16:9 (1.78:1) and is the usual size for Open Graph link preview images.

Does the calculator change my image?

No, it only calculates numbers. Use an image resizer or cropper to apply the new dimensions to a file.

Related tools