Understanding Aspect Ratios
An aspect ratio expresses the proportional relationship between width and height, written as W:H where both numbers are reduced to their lowest common terms using the Greatest Common Divisor (GCD). A 1920×1080 display has a 16:9 ratio because 1920÷120=16 and 1080÷120=9. The same ratio applies at any resolution in that proportion: 1280×720, 2560×1440, and 3840×2160 are all 16:9.
Finding the Missing Dimension
Width = Height × (Ratio W ÷ Ratio H)
Standard Ratios & Their Uses
16:9 — The Universal Standard
The universal standard for HD and 4K displays, YouTube, most monitors, and smartphone video recording. All YouTube uploads should be 16:9 to avoid letterboxing. Common resolutions: 1280×720 (HD), 1920×1080 (Full HD), 3840×2160 (4K).
9:16 — Vertical Video
The inverse of 16:9, used for vertical-first content: TikTok, Instagram Reels, YouTube Shorts, and smartphone portrait video. Content created in 16:9 and repurposed for 9:16 typically needs significant reframing to avoid awkward letterboxed sidebars.
Why Aspect Ratio Matters for Web
Correct aspect ratios prevent cumulative layout shift (CLS) — when images load at unexpected dimensions and push content down the page. CSS can reserve space before an image loads using aspect-ratio: 16 / 9, but only if you know the correct ratio. Video players that do not receive their content's ratio will either crop or letterbox, both of which degrade user experience.