Resize an Image and Keep Its Aspect Ratio
Enter the pixel size you have and the width, height or ratio you want, and get the matching dimension.
Works from an existing image rather than a named ratio.
This page starts from an image you already have. Give it the current pixel width and height and it works the ratio out for you, then resizes to whatever target you name. If you are starting from a ratio instead, 16:9 or 4:3 with no existing file, the aspect ratio dimensions page takes the ratio and one dimension and returns the other.
An aspect ratio is the proportional relationship between an image’s width and height, expressed as width:height. It defines the shape of the frame and determines how images print, display on screens, and crop to fit different formats.
Formulas: Aspect Ratio = Width : Height (simplified by GCD) GCD (Greatest Common Divisor) reduces the ratio to its simplest form. Print dimension: Width (inches) = Pixel Width ÷ DPI
Cropping needs a conditional, not a single formula, because which edge you trim depends on which way the mismatch runs. Compare the original ratio with the target:
- Target is wider than the original (target ratio > original ratio): keep the full width, trim top and bottom.
Height = Width ÷ Target Ratio - Target is narrower (target ratio < original ratio): keep the full height, trim the sides.
Width = Height × Target Ratio
Get that backwards and you compute a crop larger than the image you started with, which is the single most common mistake in hand-rolled crop math.
Common aspect ratios and their uses:
| Ratio | Decimal | Common Use |
|---|---|---|
| 1:1 | 1.00 | Instagram square, profile photos |
| 4:3 | 1.33 | Old TV, compact camera default |
| 3:2 | 1.50 | 35mm film, most DSLR/mirrorless |
| 16:9 | 1.78 | HD video, YouTube, widescreen TV |
| 5:4 | 1.25 | 8×10 print, 5×4 film |
| 2.39:1 | 2.39 | Anamorphic cinema widescreen |
| 9:16 | 0.56 | Vertical video (Reels, TikTok, Stories) |
Worked example, finding crop dimensions: Your camera captures 6000×4000 pixels (3:2 ratio). You want to share on Instagram (1:1 square).
Cropped size = 4000×4000 (centered, losing 1000 pixels on each side of width). Lost area = (6000×4000) − (4000×4000) = 24,000,000 − 16,000,000 = 8,000,000 pixels removed (33% of image)
To print a 4000×4000 crop at 300 DPI: Print size = 4000 ÷ 300 = 13.3 × 13.3 inches
Standard print sizes and their ratios. All stated landscape (long edge first), so they can be compared with each other and with the 3:2 a camera gives you. Turn the print portrait and the ratio simply inverts: 5:4 becomes 4:5.
| Print Size | Ratio (landscape) | Decimal | Against a 3:2 file |
|---|---|---|---|
| 6×4 | 3:2 | 1.50 | Perfect fit, no crop |
| 7×5 | 7:5 | 1.40 | Trim about 7% off the long edge |
| 10×8 | 5:4 | 1.25 | Trim about 17% off the long edge |
| 14×11 | 14:11 | 1.27 | Trim about 15% off the long edge |
| 20×16 | 5:4 | 1.25 | Trim about 17% off the long edge |
Note that 10×8 and 20×16 are the same shape at different sizes, which is why an 8×10 crop you already like scales straight up to 16×20 with no further decisions.
How many pixels a print actually needs. At 300 dots per inch, which is the standard for photographic printing:
| Print size | Pixels needed at 300 DPI |
|---|---|
| 6×4 in | 1800 × 1200 |
| 7×5 in | 2100 × 1500 |
| 10×8 in | 3000 × 2400 |
| 14×11 in | 4200 × 3300 |
| 20×16 in | 6000 × 4800 |
| 30×20 in | 9000 × 6000 |
A 24-megapixel camera gives 6000×4000, so it prints 20×13 inches at full 300 DPI with nothing to spare. Anything larger is fine anyway: nobody views a 30-inch print from ten inches away, and 150 to 200 DPI holds up at normal viewing distance. For web display 72 to 150 DPI is plenty.
Always crop from the original file, never from an exported JPEG. Every save of a lossy format throws away a little more, and the damage compounds. Crop the raw or the master, then export once.
Composition tip: When shooting with a 3:2 camera for eventual 4:5 (Instagram) or 16:9 (YouTube thumbnail) delivery, leave extra space on the sides or top/bottom to give yourself room when cropping. This technique is called shooting loose.
How we build and check this calculator
This calculator runs entirely in your browser, so the numbers you enter stay on your device. The math behind it is written by hand and tested against worked examples and standard references before the page goes live.
SuperGlobalCalculator is independently built and maintained. See how we build and verify our calculators.
More Photography Calculators
- Film Budget Estimator
- Frame Rate Conform and Shutter Angle
- Shooting Ratio Calculator
- Depth of Field Calculator
- Event Photography Calculator
- Exposure Triangle Calculator
- Golden Hour Times Calculator
- Golden Ratio Composition Calculator
- Photo Storage Calculator
- Timelapse Calculator
- Camera Shutter Lifespan Calculator