Aspect Ratio Calculator
Find a missing dimension while preserving the aspect ratio.
Enter your values and press Calculate to see the result and the working.
Formula used
Variables
- r Ratio
- Width divided by height
- H_2 New height
- The height that preserves the ratio
What does this calculator do?
Computes the missing dimension when resizing an image or video so its original proportions are preserved and it does not appear stretched or squashed.
When would you use it?
When resizing an image for a site or a post, choosing a video export resolution, or sizing a frame to fit content of a given ratio.
How the formula works
Aspect ratio is simply width divided by height — a dimensionless number describing a rectangle's shape, not its size. A 1920×1080 image and a 1280×720 image share the same ratio of 1.778 despite differing in size.
To keep the shape when scaling, that quotient must stay constant: multiply the new height by the ratio to get the matching width.
Common ratios: 16:9 (1.778) for video and displays, 4:3 (1.333) for older screens, 1:1 for square, and 9:16 (0.5625) for vertical video.
What does the result mean?
The computed dimension is the only value that preserves the shape. If it comes out fractional, round to the nearest whole pixel — a single pixel is not visually noticeable.
Common mistakes
Changing one dimension without recomputing the other is what produces stretched images. Another is confusing ratio with resolution: 16:9 is a ratio, while 1920×1080 is a specific resolution that satisfies it.
Worked example
Scaling down a 16:9 image
A 1920×1080 image resized to 1280 wide — what height keeps the shape?