instant · pixel-perfect · client-side

Aspect Ratio Calculator

Lock an aspect ratio and solve the missing width or height, or simplify any width×height into a clean ratio like 16:9. Get pixel-perfect resize dimensions instantly.

Ratio 📐 Original Dimensions

Resize 📏 New Dimensions

Type a new width or a new height — the other is solved to keep the original ratio. The last field you edit is the one held fixed.

Simplified Ratio
Decimal Ratio
Solved Width
Solved Height
New Dimensions
Orientation

Resize anything without squashing it

This aspect ratio calculator solves the single proportion behind every clean resize: W₁ / H₁ = W₂ / H₂. Lock your original width and height, type a new width or a new height, and the tool computes the missing dimension so your image, video, or layout keeps its exact shape — no stretching, no letterboxing, no guesswork. It also reduces any width×height to its simplest whole-number ratio (like 16:9) and shows the decimal ratio. Everything runs in your browser instantly.

What an aspect ratio actually is

An aspect ratio is the proportional relationship between width and height, written as W:H. A 1920×1080 frame and a 1280×720 frame look identical in shape because both reduce to 16:9 — the same ratio at different sizes. The ratio is found by dividing both dimensions by their greatest common divisor (GCD):

gcd(1920, 1080) = 120
1920 ÷ 120 : 1080 ÷ 120 = 16 : 9
decimal = 1920 ÷ 1080 = 1.778

Solving for a missing dimension

To resize while preserving the ratio, multiply the dimension you keep by the scale factor of the dimension you change:

new height = original height × (new width ÷ original width)
new width = original width × (new height ÷ original height)

Example: scaling 1920×1080 down to 1280 wide1080 × (1280 / 1920) = 720, so the result is 1280×720. Scale the same source to 900 tall1920 × (900 / 1080) = 1600, giving 1600×900. Both stay perfectly 16:9.

Common aspect ratios cheat sheet

RatioDecimalTypical useExample size
16:91.778HD/4K video, YouTube, monitors1920×1080
9:160.563Reels, Shorts, TikTok, Stories1080×1920
4:31.333Legacy displays, some tablets1024×768
3:21.535mm photography, DSLR sensors3000×2000
1:11.0Square — Instagram, avatars1080×1080
21:92.333Ultrawide monitors, cinema2560×1080
2:12.0Open Graph / social share images1200×600

Who uses an aspect ratio calculator

Aspect ratio and Core Web Vitals

Setting explicit width and height (or a CSS aspect-ratio) on media lets the browser reserve space before the asset loads, which prevents Cumulative Layout Shift — a Core Web Vitals metric. Use this calculator to compute the matching attribute values for every breakpoint, then pair it with the rest of the DevCalc toolkit, including the color contrast checker for accessible UI.

Aspect Ratio FAQ

What is an aspect ratio calculator?+
An aspect ratio calculator solves the proportion W1/H1 = W2/H2. Give it an original width and height plus one new dimension, and it computes the other so the image or video keeps its shape. It can also simplify any width x height into a ratio like 16:9 or 4:3.
How do I calculate aspect ratio from width and height?+
Divide both numbers by their greatest common divisor (GCD). For 1920 x 1080 the GCD is 120, so 1920/120 : 1080/120 = 16:9. This calculator does the GCD reduction and also shows the decimal ratio (1.778).
How do I resize an image without distortion?+
Keep the ratio constant. If you change the width, multiply the original height by (new width / original width). Scaling 1920x1080 to 1280 wide gives 1280 x 720. Lock the original dimensions here and the tool does it automatically.
What is the aspect ratio of 1920x1080?+
1920x1080 is 16:9, the standard for Full HD video, YouTube, and most monitors. Its decimal ratio is 1.778:1. 3840x2160 (4K UHD) is also 16:9.
What are common aspect ratios?+
16:9 (HD video, monitors), 4:3 (legacy displays), 1:1 (square, Instagram), 3:2 (35mm photography), 21:9 (ultrawide cinema), and 9:16 (vertical phone video, Reels and Shorts).
Is this aspect ratio calculator free?+
Yes. It is completely free with no signup, and runs entirely in your browser — nothing is uploaded to a server.