---
slug: aspect-ratio-calculator
title: "Aspect Ratio Calculator"
category: developer
updated: 2026-11-17
canonical: https://calcseed.com/c/developer/aspect-ratio-calculator/
html: /c/developer/aspect-ratio-calculator/
---

# Aspect Ratio Calculator

Reduce any width and height to its simplest aspect ratio and see the decimal form. Free, instant and easy to use.

## Quick answer

**Quick answer:** with the default inputs (1,920 px, 1,080 px), the aspect ratio is **1.78**. At these inputs: reduced width = **16**, reduced height = **9**. Change any input to update the result.

## Default calculation

Values computed by this calculator at exactly the default inputs listed below.

### Inputs (defaults)

| Input | Value | Unit |
| --- | --- | --- |
| Width | 1920 | px |
| Height | 1080 | px |

### Outputs at these defaults

| Output | Value | Unit |
| --- | --- | --- |
| Decimal ratio | 1.77778 |  |
| Reduced width | 16 |  |
| Reduced height | 9 |  |

## Formula

```text
ratio = (width ÷ gcd) : (height ÷ gcd)
```

## Inputs

| Variable | Type | Unit | Default |
| --- | --- | --- | --- |
| Width | number | px | 1920 |
| Height | number | px | 1080 |

## Outputs

| Result | Format |
| --- | --- |
| Aspect ratio | primary |
| Aspect ratio | text |
| Decimal ratio | number |
| Reduced width | number |
| Reduced height | number |

## How it works

### What the calculator returns

Enter a width and a height and the tool returns the ratio in lowest terms, the decimal form, and the two reduced numbers. The defaults **1920 × 1080** reduce to **16:9** with a decimal of **1.78**, because both sides divide evenly by 120. The reduced pair is the smallest whole numbers that describe the same shape, and the decimal tells you at a glance whether the frame is landscape, square or portrait.

### Reducing with the greatest common divisor

A ratio is a fraction in disguise. 1920:1080 and 16:9 describe the same shape, just as 1,920/1,080 and 16/9 are the same number. Dividing both sides by their greatest common divisor, the largest integer that divides both without a remainder, gives the smallest pair of whole numbers that still describes the frame.

The code finds that divisor with Euclid&rsquo;s algorithm: repeatedly replace the larger number with the remainder of dividing it by the smaller until the remainder is zero. For 1920 and 1080 that runs 1920 mod 1080 = 840, then 1080 mod 840 = 240, then 840 mod 240 = 120, then 240 mod 120 = 0, so the divisor is 120. Both sides divide by 120 to give 16 and 9.

Euclid&rsquo;s algorithm finishes in a handful of steps even for large inputs because each remainder is at most half the previous number. That is why the tool returns instantly for values up to 100,000, where a naive trial-division loop would need thousands of checks.

### Worked example at the defaults

Step one: find the divisor, 120. Step two: divide the width, 1920 ÷ 120 = 16. Step three: divide the height, 1080 ÷ 120 = 9. Step four: write the ratio as 16:9. Step five: compute the decimal, 1920 ÷ 1080 = 1.7778, rounded to 1.78 for display.

The decimal is worth keeping alongside the ratio. 16:9 = 1.7778 is the same for a phone screen and a cinema projector at that ratio, while 4:3 = 1.3333 and 21:9 = 2.3333. When you need to compute a missing dimension, the decimal is the number you multiply or divide by: a 16:9 frame 1280 wide is 1280 ÷ 1.7778 = 720 tall.

| Dimensions | Reduced ratio | Decimal |
| --- | --- | --- |
| 1280 × 720 | 16:9 | 1.778 |
| 1920 × 1080 | 16:9 | 1.778 |
| 2560 × 1440 | 16:9 | 1.778 |
| 3840 × 2160 | 16:9 | 1.778 |
| 1024 × 768 | 4:3 | 1.333 |
| 1440 × 1080 | 4:3 | 1.333 |
| 1080 × 1080 | 1:1 | 1.000 |
| 1080 × 1920 | 9:16 | 0.563 |
| 1080 × 1350 | 4:5 | 1.200 |
| 3440 × 1440 | 43:18 | 2.389 |
| 1200 × 630 | 40:21 | 1.905 |

The 9:16 row is the same rectangle as 16:9 turned on its side, which is why vertical video uses it. The 43:18 row looks odd because ultrawide monitors are not a neat integer multiple of 16:9; 3440 ÷ 1440 = 2.389, and the reducer has no choice but to report the true fraction.

#### The 1366 &times; 768 exception

Many laptops ship a 1366 × 768 panel that is sold as 16:9. It is not. The greatest common divisor is 2, so the reduced ratio is 683:384, a decimal of 1.7786 against 1.7778. The difference is 0.04%, invisible in use but real: scaling a true 16:9 video to that screen leaves a sub-pixel sliver unless the player rounds. This is why 1366 × 768 sits just outside the clean 16:9 family despite the marketing label.

### Scaling to a target size

Once you have the decimal, resizing is one multiplication. Keep the ratio and pick a new width: new height = new width ÷ decimal. For 16:9, a 1920-wide image scales to 1080 tall, a 1280-wide one to 720, and a 640-wide one to 360. Pick a new height instead and invert: new width = new height × decimal, so a 900-tall 16:9 frame is 1,600 wide.

Rounding is where this bites. 1,366 ÷ 1.7778 = 768.4, which has to become 768, and the 0.4-pixel loss is what produces a faint resampling blur. When exact pixel alignment matters, use the integer reduced pair instead: multiply both sides by the same integer, so 16:9 at 120× is 1920:1080 exactly, with no rounding at all.

### Crop versus letterbox

- Letterboxing keeps the whole frame and adds bars, so a 16:9 video on a 4:3 screen shows 1.333/1.778 = 75% of the width as picture
- Cropping fills the target and discards the overflow, so the same conversion loses 25% of the horizontal field
- A 2.39:1 film on a 16:9 screen loses 25.6% of its height to bars, since 1.778/2.389 = 0.744
- Matching the ratio at capture avoids both, which is why delivery specs list a ratio before a resolution

Neither option is free. Bars preserve composition and annoy viewers; a crop fills the screen and can cut a subject out of frame. The ratio tells you exactly how much is at stake: a small mismatch such as 16:9 to 1.85:1 costs about 4% of the height, while 16:9 to 4:3 costs a quarter of the width.

### Common mistakes

- Treating 1920 × 1080 and 1280 × 720 as different ratios, when both reduce to 16:9
- Assuming every widescreen panel is exactly 16:9, as the 1366 × 768 case shows
- Reading 9:16 as a typo for 16:9, when it is the portrait orientation of the same rectangle
- Comparing decimals across orientations: 0.563 and 1.778 are the same shape rotated
- Forcing a ratio by rounding the height, which introduces resampling blur instead of exact pixels
- Using the decimal as a percentage, when 1.778 means 177.8% width relative to height

#### Why the reduced pair matters

The reduced form is the portable description. 16:9 survives a change of resolution, a change of units and a change of device, while 1920:1080 only describes one specific frame. That is why CSS, video containers and camera menus all specify the ratio rather than the pixel count, and why a mismatch between the two is the usual source of stretched images.

### Zero, negatives and rounding

Inputs are rounded to whole pixels and made positive before reducing, because a negative dimension has no meaning and a fractional pixel does not exist in a raster. A height of zero would make the decimal undefined, so the tool reports 0 rather than dividing by zero. Everything else is exact integer arithmetic, so the reduced pair is always the true smallest whole numbers for the dimensions you entered.

## FAQ

### How do I read a ratio like 16:9?

It means the width is 16 units for every 9 units of height. A 1920 by 1080 display fits exactly, since 1920 ÷ 120 = 16 and 1080 ÷ 120 = 9.

### Can an aspect ratio be reduced?

Yes. Divide both width and height by their greatest common divisor. For 1920 and 1080 the divisor is 120, giving 16:9.

### What is the decimal ratio used for?

It is width divided by height. Above 1 is landscape, below 1 is portrait and exactly 1 is square. 16:9 gives 1.778, and 9:16 gives 0.563.

### Is 1280 &times; 720 the same ratio as 1920 &times; 1080?

Yes. Both reduce to 16:9, with a decimal of 1.778. The ratio is independent of resolution, which is why one describes the shape and the other the pixel count.

### What ratio is 1080 &times; 1350?

4:5, a decimal of 1.2. It is the standard portrait crop for social feeds, and the greatest common divisor of the two numbers is 270.

### Why is 1366 &times; 768 not 16:9?

Its greatest common divisor is 2, so it reduces to 683:384, a decimal of 1.7786 against 1.7778. The mismatch is small but real, and it is why exact 16:9 content needs sub-pixel scaling on those panels.

### What is the ratio of an ultrawide 3440 &times; 1440 monitor?

43:18, a decimal of 2.389. It is wider than 21:9 (2.333) and much wider than 16:9, which is why 16:9 video shows large side bars on it.

### How do I find the height for a given width?

Divide the width by the decimal. For 16:9 at 1.778, a 1280-wide frame is 1280 ÷ 1.778 = 720 tall, and a 640-wide frame is 360 tall.

### What happens if I enter a height of zero?

The decimal is reported as 0 because width divided by zero is undefined. Enter a positive height to get a usable ratio.

## Method and sources

Methodology: Conversions and formats follow the relevant IETF RFCs and IEEE standards, including RFC 4648 for Base64 and RFC 791 for IPv4 addressing.

Last updated: 2026-11-17.
- Aspect ratio reduction via the greatest common divisor of width and height.
