Aspect Ratio.
Calculate the aspect ratio from width and height, or find a missing dimension from a known ratio. Supports 16:9, 4:3, 1:1, and any custom ratio.
Aspect Ratio
Decimal
Pixel-Perfect Ratios.
All ratio calculations run locally using the Euclidean GCD algorithm. No dimensions or values are transmitted externally.
Runs entirely in your browser. The values you enter never leave your device — there is no request to our server and nothing is stored. How we handle data
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.
Internal Navigation
Aspect Ratio Calculation Methodology.
The Calculation Branch
Industrial Standards.
The calculator finds the greatest common divisor (GCD) of width and height using the Euclidean algorithm, then divides both by the GCD to reduce the ratio to its simplest integer form. Scaling is done with cross-multiplication, preserving the original proportional relationship.
In-Depth Analysis & Reference Data
Common aspect ratios and their uses: 16:9 — HD video, YouTube, most modern monitors, presentations. 4:3 — older TV, webcam video, many tablet screens. 1:1 — Instagram square posts, profile photos. 9:16 — vertical video (TikTok, Instagram Stories, Reels). 3:2 — DSLR cameras, 35mm film. 21:9 — ultrawide cinema monitors. When uploading content to social platforms, matching the platform's required aspect ratio avoids automatic cropping that removes important parts of the image.
Registry Questions & FAQ.
How do I resize an image without distortion?
Enter the original width and height, then enter your desired new width. The calculator gives the correct height to maintain the ratio. Use these dimensions in Photoshop, GIMP, or any image editor — most provide a 'constrain proportions' checkbox that performs the same calculation automatically.
What aspect ratio should I use for YouTube videos?
YouTube recommends 16:9 for standard videos: 1920×1080 (1080p) or 1280×720 (720p). YouTube Shorts uses 9:16 vertical orientation. Uploading a 4:3 video results in pillarboxing (black bars on sides). Uploading 9:16 to a 16:9 player produces letterboxing (black bars top and bottom).
Estimates for planning. Always confirm against an authoritative source.