AI image sizes and their aspect ratios
Pick a ratio, a pixel budget and the step your model needs. You get the closest size it can make, how far that is from your ratio, and a size that hits it exactly.
Enter a ratio between 0.1 and 100 on each side.
Ratio and model limits
- Size to enter
× – - Its real ratio
: – - Exactly 16:9
× –
The budget counts one megapixel as 1024 × 1024 pixels, the size these models are trained around. Results show real megapixels, so 1344 × 768 is 1.03 MP.
Model presets
Checked against the model documentation in November 2026. Some hosts use a larger step than the model itself, so check the field description where you generate.
Fixed sizes and their real ratios
Some generators only accept a short list of sizes. Most of them are not the ratio they are sold as.
DALL·E 3
Three sizes. The wide ones are 7:4, slightly narrower than 16:9.
| Size | Ratio | Decimal | Closest common ratio | Megapixels |
|---|---|---|---|---|
| 1024 × 1024 | 1:1 | exactly 1:1 | ||
| 1792 × 1024 | 7:4 | 16:9, 1.6% narrower | ||
| 1024 × 1792 | 4:7 | 9:16, 1.6% wider |
GPT Image 1
Three sizes, all on a standard ratio. Later GPT Image models also accept your own width and height.
| Size | Ratio | Decimal | Closest common ratio | Megapixels |
|---|---|---|---|---|
| 1024 × 1024 | 1:1 | exactly 1:1 | ||
| 1536 × 1024 | 3:2 | exactly 3:2 | ||
| 1024 × 1536 | 2:3 | exactly 2:3 |
Stable Diffusion XL
The sizes SDXL was trained on, all close to one megapixel with sides in steps of 64 px. They give the cleanest results.
| Size | Ratio | Decimal | Closest common ratio | Megapixels |
|---|---|---|---|---|
| 1024 × 1024 | 1:1 | exactly 1:1 | ||
| 1152 × 896 | 9:7 | 5:4, 2.9% wider | ||
| 896 × 1152 | 7:9 | 4:5, 2.8% narrower | ||
| 1216 × 832 | 19:13 | 3:2, 2.6% narrower | ||
| 832 × 1216 | 13:19 | 2:3, 2.6% wider | ||
| 1344 × 768 | 7:4 | 16:9, 1.6% narrower | ||
| 768 × 1344 | 4:7 | 9:16, 1.6% wider | ||
| 1536 × 640 | 12:5 | 21:9, 2.9% wider | ||
| 640 × 1536 | 5:12 | none within 5% |
Ratios are reduced by the greatest common divisor, so 1792 × 1024 becomes 7:4 (both sides divide by 256).
Cropping to an exact ratio
When a platform needs exactly 16:9 or 4:5, crop the generated image. These are the largest crops that are exactly on the ratio.
| Generated | Target | Crop to | Cut off |
|---|---|---|---|
| 1792 × 1024 | 16:9 | 1792 × 1008 1.6% cut off | |
| 1024 × 1792 | 9:16 | 1008 × 1792 1.6% cut off | |
| 1344 × 768 | 16:9 | 1344 × 756 1.6% cut off | |
| 768 × 1344 | 9:16 | 756 × 1344 1.6% cut off | |
| 1216 × 832 | 3:2 | 1215 × 810 2.7% cut off | |
| 1152 × 896 | 5:4 | 1120 × 896 2.8% cut off | |
| 896 × 1152 | 4:5 | 896 × 1120 2.8% cut off | |
| 1536 × 640 | 21:9 | 1491 × 639 3.1% cut off |
Why you rarely get an exact ratio
Image models work on a grid that is smaller than the final picture, usually by a factor of 8 or 16. Each side of the image has to be a whole number of grid cells, so width and height must divide by 8, 16, 32 or 64, depending on the model. On top of that, a model makes its best images near the pixel count it was trained on. Those two limits together rule out most exact ratios.
16:9 shows the problem. At about one megapixel in steps of 64 px, the closest size is 1344 × 768, which is 7:4. The nearest exact 16:9 sizes are 1024 × 576 and 2048 × 1152, which are about half and double the budget. With a 16 px step, 1280 × 720 is exactly 16:9 at 0.92 MP.
Which size to use
If the image goes somewhere that crops it anyway, such as a feed or a wallpaper, generate at the closest size and leave it. If it has to be exact, such as a video frame or a print, either generate at an exact size from the calculator, or generate the closest size and crop a few rows. Cropping 1344 × 768 to 1344 × 756 removes 1.6% of the picture.
Midjourney takes a ratio instead of a size, so it has its own guide. To check what you got, drop the files into the image aspect ratio detector. To scale a size up for print or video, use the aspect ratio calculator.