Midjourney’s --ar flag wants a clean width-to-height ratio like 16:9, not raw pixel
dimensions. This calculator takes any width and height you have in mind and reduces it to the
simplest whole-number ratio, formats the flag, and shows you the frame shape so there are no
surprises.
How it works
The maths is simple but easy to get wrong by hand. The tool:
- Finds the greatest common divisor of your width and height using the Euclidean algorithm.
- Divides both numbers by that GCD to reach the lowest-terms ratio — so
1920 x 1080becomes16:9, and1500 x 1000becomes3:2. - Formats the flag as
--ar W:Hexactly as Midjourney expects it. - Shows the decimal ratio (width ÷ height) and a live preview rectangle so you can confirm the orientation at a glance.
Because Midjourney v5 and v6 accept arbitrary ratios, you are not limited to presets — but the tool warns you if a ratio is extreme enough to risk tiling artifacts.
Tips and notes
--aris shape, not size. It never sets your output resolution. To get a bigger file, generate at your chosen ratio and then upscale.- Common presets:
1:1square (default),16:9widescreen,9:16vertical/stories,4:3and3:2classic photo,2:3portrait,21:9cinematic. - Avoid extremes. Ratios beyond roughly
7:1can cause the model to repeat elements to fill the long axis. If you need a banner, generate at a moderate ratio and crop or extend. - Whole numbers only. Midjourney expects integers in
--ar, which is exactly what the lowest-terms reduction produces.
Use cases for common aspect ratios
Choosing the right ratio before you generate saves time and avoids awkward crops. Here is how each common ratio is actually used:
| Ratio | Use case |
|---|---|
1:1 | Instagram square posts, profile images, album art |
16:9 | YouTube thumbnails, desktop wallpapers, presentations, widescreen prints |
9:16 | Instagram Stories, TikTok, mobile wallpapers, Pinterest pins |
4:3 | Traditional TV format, slideshows, some print layouts |
3:2 | DSLR output format, standard photo prints (4×6, 6×9 inches) |
2:3 | Portrait photography, book covers, vertical posters |
21:9 | Cinematic ultra-wide, hero website banners |
7:4 | Landscape print, wide editorial images |
How —ar interacts with zoom and pan
When you use Midjourney’s zoom-out or pan features on an upscaled image, the operation changes the canvas dimensions and therefore the effective aspect ratio of the final image. If you have a target ratio in mind for the finished piece, plan the starting ratio carefully: zooming out from a 1:1 image twice will give you a wider result, but exactly how wide depends on how many times and at what zoom factor you expand. Use this calculator to convert the final pixel dimensions you want back into the --ar flag that matches the starting frame you need.