A little context. A clearer answer.
When this calculator is useful
Keep the width at 1,200 px. A 16:9 frame needs 675 px of height. A 4:3 frame needs 900 px. That gives you 225 extra vertical pixels to fill when you lay out the image. For a related calculation, try Percentage of an amount.
What to enter
| Input | What it means | Example value |
|---|---|---|
| Target width | This is the desired output width, not your monitor width. A width of 1920 means 1920 pixels in the exported image. | 1,920 px |
| Aspect ratio · width | Enter the first number of width:height, such as 16 for 16:9. | 16 |
| Aspect ratio · height | Enter the second number of width:height, such as 9 for 16:9. Swap the two ratio numbers for a portrait layout. | 9 |
How the calculation works
- Enter the target width in whole pixels.
- Enter the width and height parts of the required ratio.
- Use the calculated height, rounding to a whole pixel when your export format requires it.
H = W × b / aA worked example
For a target width of 1920 px and a ratio of 16:9, divide 1920 by 16 to get 120 pixels per ratio unit. Multiply 120 by 9: the matching height is 1080 px, giving a 1920 × 1080 frame.
Example you can load
What to enterThis is a fixed example; changing the form above does not change these numbers.
Assumptions & limits
Height is the exact mathematical result, before pixel rounding. For raster images, round to a whole pixel; this can slightly change the aspect ratio.
Frequently asked questions
Do 16:9 and 32:18 give the same result?
Yes. Multiplying both sides of a ratio by the same positive factor leaves the proportions unchanged. You do not need to reduce a ratio before entering it.
What if the height is fractional?
Pixel grids use whole pixels. Round the mathematical result when exporting and expect a small ratio difference. The calculator does not silently crop or stretch the image to hide that difference.
Does this calculate file size or print quality?
No. Dimensions alone do not determine file size, compression or print sharpness. For physical print dimensions you also need an intended pixels-per-inch value; this tool works only with proportions and pixel dimensions.