Aspect Ratio Calculator

Calculate aspect ratios from width and height, find the missing dimension for 16:9, 4:3, 1:1, 4:5 and custom ratios, and copy CSS aspect-ratio and padding-top values. Common screen, video and social sizes included.

Runs locally — nothing is uploaded

Find the ratio

px
px

Calculate the missing side

keeps the ratio
px
px

Type a width to get the height, or a height to get the width.

Common sizes

How to use Aspect Ratio Calculator

  1. Enter a width and height to get the simplified ratio.
  2. Or pick a ratio and type one side to get the other.
  3. Copy the CSS aspect-ratio or the padding-top percentage.

FAQ

What is the padding-top value for?

Before the CSS aspect-ratio property, responsive boxes used padding-top as a percentage of the width — 56.25% for 16:9. It still works everywhere, including old email clients.

About the Aspect Ratio Calculator

Know the height of a 16:9 video at 1280 px wide, or simplify 1920×1080 to 16:9. Then resize or crop images to match, or split them for Instagram with the Image Grid Splitter.

Also useful: CSS Clamp Generator · Shopify CDN Image URL Generator

Popular searches

People find Aspect Ratio Calculator by searching for:

  • aspect ratio calculator
  • 16:9 calculator
  • calculate image ratio
  • resize keep aspect ratio
  • 4:5 size calculator
  • css aspect ratio