Home · Math · Ratios & Proportions · Image Ratio Calculator

Image Ratio Calculator

An image's ratio is fixed by its pixel dimensions; a decimal above 1 is landscape, below 1 is portrait, and exactly 1 is square.

Your figures

Example result — edit the figures to make it yours

1.5

Image ratio as a decimal

Simplified ratio first term3
Simplified ratio second term2
Orientation check (w ÷ h above 1 = landscape)1.50

What this calculator does

An image's ratio is fixed by its pixel dimensions; a decimal above 1 is landscape, below 1 is portrait, and exactly 1 is square. Every figure on this page is computed from the formula or definition stated below, with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

Image ratio = Width ÷ Height, simplified by gcd

An image's ratio is fixed by its pixel dimensions; a decimal above 1 is landscape, below 1 is portrait, and exactly 1 is square.

Inputs use the units shown in the field labels and every denominator or total must be non-zero. The result is an arithmetic value from the stated formula only; it is not a quote, a rating or professional advice.

Worked example

With the example inputs this page opens with (image width (pixels) 3000, image height (pixels) 2000), the result is 1.5000 — image ratio as a decimal. Change any figure and the result updates with the same formula.

Quick reference

Quick reference — varying image width (pixels)
Image width (pixels)Image ratio as a decimal
15000.7500
24001.2000
30001.5000
37501.8750
45002.2500
60003.0000

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Image Ratio Calculator work?

An image's ratio is fixed by its pixel dimensions; a decimal above 1 is landscape, below 1 is portrait, and exactly 1 is square. Image width · Image height → Image ratio as a decimal. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Image Ratio Calculator need?

Image width · Image height → Image ratio as a decimal. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Image Ratio Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.