Aspect Ratio Calculator
Work out the missing width or height for any aspect ratio, simplify the ratio of any two dimensions, and check the megapixel count.
An aspect ratio calculator finds the missing dimension when you know one side and the ratio you need. Enter a width at 16:9 and it returns the matching height, and entering any two dimensions gives you their simplified ratio.
Runs entirely in your browser · no signup · nothing is uploaded · updated 2026-09-26
How to use it
- 1.Pick a common ratio, or type any width and height.
- 2.Change either dimension and the other follows the locked ratio.
- 3.Read the simplified ratio and megapixel count underneath.
Common aspect ratios and sizes
A ratio is a shape, not a size. Every resolution listed against a ratio has the same shape and different sharpness.
| Ratio | Decimal | Common sizes | Used for |
|---|---|---|---|
| 16:9 | 1.778 | 1280x720, 1920x1080, 3840x2160 | Video, YouTube, most displays |
| 1.91:1 | 1.910 | 1200x630 | Open Graph and social preview cards |
| 4:3 | 1.333 | 1024x768, 1600x1200 | Older displays, some slides |
| 1:1 | 1.000 | 1080x1080 | Instagram posts, avatars |
| 4:5 | 0.800 | 1080x1350 | Instagram portrait posts |
| 9:16 | 0.563 | 1080x1920 | Reels, Stories, TikTok |
| 3:2 | 1.500 | 6000x4000 | Most DSLR and mirrorless cameras |
| 21:9 | 2.370 | 2560x1080, 3440x1440 | Ultrawide monitors |
Embed this aspect ratio calculator on your site
Free to use on any blog, class page or wiki. Paste the snippet and keep the credit line under it.
<iframe src="https://rankcert.com/embed/aspect-ratio-calculator" title="Aspect Ratio Calculator" width="100%" height="600" style="border:0;border-radius:12px" loading="lazy"></iframe> <p style="font-size:13px">Free <a href="https://rankcert.com/tools/aspect-ratio-calculator">aspect ratio calculator</a> by RankCert</p>
Frequently asked questions
What is 16:9 in pixels?
Any pair where width divided by height is 1.778 - 1280x720, 1920x1080, 2560x1440 and 3840x2160 are all 16:9. The ratio does not specify a size.
How do I calculate an aspect ratio from two dimensions?
Divide both by their greatest common divisor. 1920 and 1080 share a divisor of 120, giving 16:9.
What aspect ratio should a YouTube thumbnail be?
16:9, at 1280x720. Instagram posts are 1:1 or 4:5, Stories and Reels are 9:16, and an Open Graph image is 1.91:1 at 1200x630.
What is the difference between aspect ratio and resolution?
Ratio is the shape; resolution is the number of pixels. 1280x720 and 3840x2160 have identical shapes and very different sharpness.
How do I keep an aspect ratio in CSS?
Use the aspect-ratio property: aspect-ratio: 16 / 9. It is supported everywhere now and replaces the old padding-top percentage hack.
What is 21:9 actually?
A marketing name for ultrawide monitors, which are usually 2560x1080 (64:27) or 3440x1440 (43:18). Neither is exactly 21:9.
Why does my video have black bars?
The video's ratio does not match the display's, so the player letterboxes it rather than cropping or stretching. Matching the ratio at export removes them.
How many megapixels is 4K?
About 8.3 for 3840x2160. 1080p is 2.1 and 8K is 33.2.
The guide behind this tool
Tools that pair with this one

UPC Barcode Generator
Generate a 12-digit UPC-A retail barcode with the check digit calculated automatically, and download it as a print-ready PNG. Free and entirely in your browser.
Converters & calculators
Code 39 Barcode Generator
Generate a Code 39 barcode from uppercase letters, digits and a handful of symbols, and download it as a PNG. Free, no signup, runs in your browser.
Converters & calculators
ITF-14 Barcode Generator
Generate an ITF-14 carton barcode from a 13 or 14 digit GTIN and download it as a PNG. Free, no signup, and the check digit is handled for you.
Converters & calculators
Morse Code Translator
Translate text to Morse code and back, covering all 26 letters, 10 digits and 18 punctuation marks. Runs in your browser with no signup.
Converters & calculators