LeadReef

Aspect ratio calculator

Find the ratio of any size, or the missing width or height for a ratio.

×
16:9aspect-ratio: 16 / 9;

Free · No sign-up · Works instantly in your browser

How it works

  1. Step 1

    Enter a size or pick a ratio.

    Type a width and height, or choose a preset like 16:9.

  2. Step 2

    Change one side.

    Type a new width or height and the other side follows the ratio.

  3. Step 3

    Copy the result.

    Copy the size, or the CSS aspect-ratio line for your code.

Free aspect ratio calculator for images, video and CSS

An aspect ratio is the shape of an image or screen, written as width to height. 1920 × 1080 is 16:9, a phone video is 9:16 and a square post is 1:1. Keeping the ratio when you resize stops images and videos from stretching or getting cropped in the wrong place.

Enter any size to get its simplified ratio, or pick a ratio and one side to get the other. The preview box shows the shape, and the copy button gives you the CSS aspect-ratio line.

Common sizes by ratio

16:9
1280 × 7201920 × 10802560 × 14403840 × 2160
9:16
1080 × 1920
4:5
1080 × 1350
1:1
1080 × 1080
4:3
1024 × 7681600 × 1200
3:2
1500 × 10003000 × 2000

Questions people ask

How do I calculate an aspect ratio?

Divide the width and height by their greatest common divisor. 1920 × 1080 both divide by 120, giving 16:9. Enter any size above and the calculator does it for you.

How do I find the height for a given width and ratio?

Height = width × (ratio height ÷ ratio width). For 16:9 and a width of 1280, height = 1280 × 9 ÷ 16 = 720. Enter the ratio and one side to get the other.

What aspect ratio is 1920 × 1080?

16:9, the standard for HD video, YouTube and most monitors and TVs.

What aspect ratio should I use for Instagram, TikTok and Reels?

9:16 (1080 × 1920) for Reels, TikTok and Stories. 4:5 (1080 × 1350) for feed posts, which take up more of the screen than square. 1:1 (1080 × 1080) for square posts.

How do I keep the aspect ratio in CSS?

Use the aspect-ratio property, for example aspect-ratio: 16 / 9; on the element. The calculator gives you the line to copy.

Last updated: 25 Nov 2026 · Made by the LeadReef team

Find local businesses that need a new website

LeadReef finds businesses with an outdated or missing website in any city, with contacts and a ready first message. Your first search is free.

Related tools

All free tools
Website mockup generatorPut any site on a desktop, iPhone, Android or tablet and download a PNG.PPI calculatorPixel density of any screen, plus print DPI.px to remType a pixel value and get rem with any base font size.PNG to WebPSmaller files, same look, transparency kept.px to inchesPixels to inches for print and screen at any DPI.