How to Use This Aspect Ratio Calculator
Pick Ratio → Pixels when you know the shape you want (say 4:5) and one side in pixels, and need the other side. Pick Pixels → Ratio when you already have a width and height and want to know the ratio. Either way, the page shows the result, a visual preview, and the same ratio at common widths so you can pick the size that suits your project.
The Formulas Behind the Calculator
Ratio to pixels: if you know the width, height = width × (ratio height ÷ ratio width); if you know the height, width = height × (ratio width ÷ ratio height). Pixels to ratio: divide width and height by their greatest common divisor (GCD). For example, 1920 × 1080 has a GCD of 120, which gives 16:9, and 1080 × 1080 gives 1:1.
Decimal Ratios and Rounding
You can enter decimal ratios such as 1.91:1. Pixels are whole numbers, so some results (16:9 at a width of 1000 gives a height of 562.5) need rounding — the calculator tells you the exact value and what it rounded to. Switch on the even-number option to round both sides to even values for video.