Aspect Ratio Calculator
Calculate exact pixel dimensions for screens, digital photography, and video editing while preserving proportional aspect ratios.
aspect-ratio: 16 / 9;Aspect Ratio Formulas & Mathematics
Calculating Height from Width
Given a width W and ratio RW : RH:
Example: For 16:9 ratio and Width = 3840px (4K): Height = 3840 × (9/16) = 2160px.
Calculating Width from Height
Given a target height H:
Example: For 4:3 ratio and Height = 768px: Width = 768 × (4/3) = 1024px.
Standard Aspect Ratios & Resolution Standards
| Ratio | Decimal Value | Common Pixel Resolutions | Primary Media Use Case |
|---|---|---|---|
| 16 : 9 | 1.78 : 1 | 1920×1080 (FHD), 3840×2160 (4K) | YouTube, Television, Gaming Displays |
| 9 : 16 | 0.56 : 1 | 1080×1920, 720×1280 | TikTok, Instagram Reels, Shorts, Mobile Stories |
| 4 : 3 | 1.33 : 1 | 1024×768, 1600×1200, 2048×1536 | iPad Displays, Photography, Retro Broadcasts |
| 1 : 1 | 1.00 : 1 | 1080×1080, 500×500, 2048×2048 | Instagram Square Feeds, Profile Avatars, Product Photos |
| 21 : 9 | 2.33 : 1 | 2560×1080, 3440×1440, 5120×2160 | Ultrawide Computer Monitors, Anamorphic Cinema |
Note on "21 : 9": ultrawide resolutions are sold as 21 : 9 but are not exactly that shape. 2560 × 1080 and 5120 × 2160 simplify to 64 : 27 (2.37 : 1), and 3440 × 1440 simplifies to 43 : 18 (2.39 : 1), while a true 21 : 9 is 2.33 : 1. When an exact fit matters, enter the actual pixel dimensions rather than 21 : 9.
How to Use the Aspect Ratio Calculator
- Pick a preset (16:9, 4:3, 1:1, 9:16 or 21:9) or type your own ratio into the two ratio boxes. Decimal ratios such as 2.35 : 1 work too.
- Type the width you need in pixels. The height updates as you type and is rounded to the nearest whole pixel.
- If you know the height instead, type it in the height box and the width is calculated from it.
- Building a web page? Copy the CSS line from the result box. It uses the CSS aspect-ratio property, so a container keeps its shape at any screen width.
To keep the shape of an image you already have, enter its pixel size as the ratio, for example 3000 and 2000. The calculator treats 3000 : 2000 exactly like 3 : 2, so any new width you type keeps the original proportions. To see that ratio in lowest terms, enter the two numbers in the Ratio Simplifier.
Worked Resizing Examples
Resizing a Banner Image
A 16:9 banner has to be 1,280 px wide. Height = 1280 × 9 ÷ 16 = 720 px. At 1280 × 720 it has the same shape as a 1920 × 1080 original, so nothing is stretched or cropped.
Portrait Feed Post
A 4:5 portrait image is 1,080 px wide. Height = 1080 × 5 ÷ 4 = 1,350 px, giving 1080 × 1350. Social platforms change their recommended sizes from time to time, so check the platform's current guidance before exporting.
Finding a Photo's Shape
A photo measures 3000 × 2000 px. The greatest common divisor of 3000 and 2000 is 1000, so the ratio is 3 : 2, the same shape as a 6 × 4 inch print. Printed 150 mm wide, it is 150 × 2 ÷ 3 = 100 mm tall.
Old Video on a Widescreen TV
4:3 footage on a 1920 × 1080 screen keeps its full 1,080 px height, so its width is 1080 × 4 ÷ 3 = 1,440 px. The leftover 1920 − 1440 = 480 px becomes two 240 px pillarbox bars, one on each side.
Common Aspect Ratio Mistakes
- Changing only one dimension. Typing a new width into an image editor with "constrain proportions" switched off stretches the picture. Width and height must change by the same factor, which is what this calculator does.
- Mixing up 16:9 and 9:16. The first number is always the width. 16:9 is landscape; 9:16 is the same shape turned on its side, used for vertical phone video.
- Ignoring rounding. A 16:9 image 1,000 px wide would need a height of 562.5 px. Pixels are whole numbers, so the calculator shows 563, which is very slightly off 16:9. Widths that are multiples of 16, such as 1,280, 1,600 and 1,920, give exact 16:9 heights. Many video encoders also expect even dimensions, so a size like 1600 × 900 is a safer choice.
- Trusting the marketing name. A 1920 × 1200 monitor is sold as 16:10, which reduces to 8:5. A 16:9 video shown full width on it is 1920 × 9 ÷ 16 = 1,080 px tall, leaving a (1200 − 1080) ÷ 2 = 60 px bar above and below.
Related Mathematical Utilities
Explore connected tools for proportional scaling, proportion solving, and ratios:
Ratio Scaling Tool
Scale quantities up or down by multiplier factor.
Proportion Solver
Solve missing values in proportion equations.
Ratio Simplifier
Reduce resolution dimensions to simplest ratio.
Design Case Studies
Real-world aspect ratio and golden ratio guides.
Frequently Asked Questions
What is an aspect ratio in digital media?▼
An aspect ratio is the proportional relationship between the width and height of an image, video, or display screen, written as W:H (Width : Height). Regardless of the physical size or total pixel count, the geometric shape remains identical.
How do you calculate the new height when resizing an image?▼
Use the formula: New Height = New Width × (Original Height / Original Width). For example, to resize a 1920×1080 (16:9) image to a width of 1280px: Height = 1280 × (9/16) = 720px.
What is the difference between 16:9 widescreen and 9:16 vertical video?▼
16:9 is a landscape orientation where width is greater than height (standard for TV, YouTube, desktop monitors). 9:16 is a vertical portrait orientation where height is greater than width (standard for TikTok, Instagram Reels, and smartphone stories).
How do you avoid image distortion or stretching?▼
To prevent visual distortion when fitting media into different aspect containers, use letterboxing (black bars on top/bottom), pillarboxing (black bars on left/right), or proportional cropping (e.g., CSS object-fit: cover) rather than non-uniform stretching.
What size should a 16:9 image be?▼
Any size where the width divided by the height equals 16 ÷ 9 (about 1.78). Common sizes are 1280 × 720 (HD), 1920 × 1080 (Full HD), 2560 × 1440 (QHD) and 3840 × 2160 (4K UHD). Use the smallest size that still looks sharp where the image is shown, because larger files take longer to load.
Can I use the aspect ratio calculator for print or paper sizes?▼
Yes. The calculation does not depend on units, so you can type millimetres, centimetres or inches into the width and height boxes and read the answer in the same unit. For example, a 3:2 photo printed 150 mm wide is 100 mm tall. Results are rounded to whole numbers, so for small sizes use millimetres rather than inches.
How do I keep an embedded video responsive with CSS?▼
Give the video's container (or the iframe itself) width: 100% and aspect-ratio: 16 / 9, or whichever ratio your video uses. The browser then works out the height from the width at every screen size, so the video does not stretch or leave gaps. The result box above shows this CSS line for the ratio you enter.