Skip to main content

Aspect Ratio & Dimension Calculator

Calculate exact simplified aspect ratios (16:9, 4:5, 21:9) and solve proportional target pixel dimensions.

Runs on your deviceDimensions → Ratio, Pixels
Simplified Ratio
16:9
1.778:1
Matching Proportional Height
1280 × 720 px

How to use

  1. 01.

    Enter any width and height or select a standard preset (16:9, 4:3, 4:5, 9:16, 21:9).

  2. 02.

    Read the simplified ratio and decimal factor.

  3. 03.

    Type a new target width or height to solve the exact matching dimension.

Exact math for video, responsive CSS, and print

Uses Euclidean greatest common divisor reduction so resolutions like 1920×1080 or 2560×1080 simplify immediately to 16:9 and 64:27 with an interactive visual frame preview.

Limits & privacy

  • Instant pure client-side calculation.

Frequently asked questions

How do I calculate CSS aspect-ratio from pixels?

Copy the simplified ratio directly into CSS as aspect-ratio: 16 / 9;.