All tools
EN
EnglishDeutschFrançaisEspañolPortuguês (Brasil)ItalianoPolski日本語한국어繁體中文NederlandsSvenskaČeštinaTürkçeBahasa IndonesiaTiếng ViệtไทยУкраїнськаРусскийRomână

Aspect Ratio Calculator

Width (px) · Height (px) · Ratio A:Ratio B → Calculate

Test area

Results

—

What this aspect ratio calculator does

Enter width and height to reduce them to a ratio, or enter one side and a ratio to get the other side. For example, 1920 by 1080 reduces to 16:9, and 1920 times 9 divided by 16 is 1080.

Each side is divided by the greatest common divisor, and the decimal form is width divided by height. Nothing is measured on your screen, and the page does not resize an image by itself. Use the same unit for both sides.

Common questions

How is 1920 by 1080 simplified?

Both sides are divided by their greatest common divisor, which gives 16:9. The decimal ratio is width divided by height.

How do I get a missing side?

Height equals width times the second ratio number, divided by the first. Width equals height times the first number, divided by the second.

Does it detect my display size?

No. It only calculates from the values you enter. It does not read the physical dimensions of the screen.

How to use this tool

Width (px) · Height (px) · Ratio A:Ratio B → Calculate

ResultsMethod and units
Ratiowidth / gcd(width,height) : height / gcd(width,height)
Decimal ratiowidth / height
Height (px)width × ratioB / ratioA
Width (px)height × ratioA / ratioB

Example

Ratio: 1920 × 1080 → 16:9 · Height (px): 1920 × 9 / 16 = 1080

What this test can and cannot tell you

Results reflect events and signals available to your browser. Settings, permissions and device support can affect them; they do not certify that hardware is healthy or faulty.

Related tools