Audited ·Last updated 27 Jul 2026·5 citations·Tier 1·0 uses

Aspect Ratio Calculator

Reduce any width×height to its lowest-terms ratio (16:9, 4:3, 1:1) and solve for a missing width or height while keeping the same proportions.

Aspect Ratio Calculator

What are you solving for?
The width of your source image, video, or screen, in pixels (or any consistent unit).
The height of your source image, video, or screen, in the same unit as the width.
Used when solving for height — the new width you want to resize to.
Used when solving for width — the new height you want to resize to.
Simplified ratio
16:9
The width:height ratio reduced to lowest terms using the greatest common divisor, e.g. 1920×1080 becomes 16:9.
Ratio — width part
16
Ratio — height part
9
Ratio as a decimal
1.7778
Resulting width
1,280 px
Resulting height
720 px

Background.

An aspect ratio calculator does two related jobs that come up constantly in photo editing, video production, web design, and screen shopping: reducing a width-by-height pair to its simplest whole-number ratio, and solving for a missing width or height so a resized image or video keeps exactly the same proportions as the original. A 1920×1080 photo and a 3840×2160 photo look identical in shape because they share the same underlying ratio — 16:9 — even though one has four times the pixel count of the other. This calculator makes that relationship explicit and lets you resize confidently without guessing at a number and distorting the image.

The underlying mathematics is old and exact. Reducing a ratio to lowest terms means dividing both numbers by their greatest common divisor (GCD), the largest whole number that evenly divides both — the same operation, using the same Euclidean algorithm Euclid described in Book VII of the Elements roughly 2,300 years ago, that a fraction-simplifying calculator uses on a numerator and denominator. Applied to 1920 and 1080, the GCD is 120, and dividing both by 120 gives 16 and 9 — the familiar widescreen ratio behind nearly every HDTV, monitor, and streaming video made since the format was standardized. Applied to 640 and 480, the GCD is 160, giving the classic 4:3 ratio of standard-definition television and early computer displays. The same reduction works on any pair of positive whole numbers, whether they describe pixels, printed inches, or a browser window.

The standards bodies behind broadcast television made these two ratios official rather than incidental. The International Telecommunication Union's Radiocommunication Sector (ITU-R) formalized 4:3 and 16:9 together in Recommendation BT.601 for studio-grade digital encoding, and later cemented 16:9 specifically as the parameter set for high-definition production and international programme exchange in Recommendation BT.709 — the standard underlying essentially all HDTV broadcast and, by extension, the 1920×1080 and 3840×2160 frame sizes video platforms use today. Print media settled on a different, equally deliberate ratio: ISO 216 defines the international A-series paper sizes (A4, A3, and so on) around a 1:√2 ratio specifically because that ratio is preserved when a sheet is folded or cut in half along its longer dimension — fold an A4 sheet in half and you get an A5 sheet with the identical proportions, a property no other ratio has.

This calculator supports two directions of the same underlying problem. If you know your original dimensions and a target width — resizing a 4K photo down to a 1280-pixel-wide thumbnail, for instance — you can solve for the height that keeps the image undistorted. If you instead know a target height — fitting a video into a fixed-height video player or a printed layout — you can solve for the matching width. Both modes report the same simplified ratio alongside the solved dimension, so you can sanity-check the resize (does 1280×720 still look like 16:9?) as well as get the number you actually needed. Every input is validated to be a positive number, because a zero or negative width or height has no meaningful ratio, and the ratio, decimal value, and result dimensions are always returned as finite numbers regardless of which direction you are solving.

What is aspect ratio calculator?

An aspect ratio is the proportional relationship between a rectangle's width and its height, conventionally written as two whole numbers separated by a colon — 16:9, 4:3, 1:1, 21:9 — after the ratio has been reduced to its lowest terms. Two images, videos, or screens share an aspect ratio whenever their width divided by their height produces the same decimal value, regardless of how many total pixels or inches either one has: a 1920×1080 frame and a 3840×2160 frame are both 16:9 because 1920/1080 and 3840/2160 both equal exactly 1.7778 (recurring). The calculator reduces any width-height pair to lowest terms by dividing both numbers by their greatest common divisor, the same Euclidean-algorithm operation used to simplify a numeric fraction, so that 1920:1080 collapses to 16:9 and 640:480 collapses to 4:3.

Beyond simplification, the calculator solves the everyday resizing problem: given an original size and one new dimension, what is the other new dimension that keeps the same shape? Stretching or squashing an image by entering an arbitrary height alongside a new width — rather than one computed from the ratio — is the single most common cause of a distorted, visibly 'squished' or 'stretched' photo or video. Solving algebraically instead of guessing removes that risk entirely: the new height is always the new width times the ratio of the original height to the original width (or the mirror calculation when solving for width instead).

How to use this calculator.

  1. Choose whether you already know your target width (solve for the matching height) or your target height (solve for the matching width).
  2. Enter the original width and height of your source image, video, or screen — any consistent unit works, since only the ratio between them matters.
  3. Enter your target width (if solving for height) or target height (if solving for width).
  4. Read the simplified ratio (e.g. 16:9) to confirm what standard shape your source material actually is.
  5. Read the resulting width or height — this is the number to enter into your image editor, video export settings, or CSS so the resize preserves the original proportions exactly.
  6. If you're not sure your source is a 'clean' standard ratio, check the ratio-as-decimal output against known values: 1.3333 is 4:3, 1.7778 is 16:9, 1.0 is 1:1, 2.3333 is 21:9 cinema widescreen.

The formula.

g = gcd(W, H); h′ = w′ × H⁄W

The simplified ratio comes from the Euclidean algorithm, the same procedure Euclid recorded for finding the greatest common divisor of two numbers: repeatedly replace the larger number with the remainder of dividing it by the smaller, until the remainder is zero — whatever number remains is the GCD. For 1920 and 1080: 1920 mod 1080 is 840, 1080 mod 840 is 240, 840 mod 240 is 120, and 240 mod 120 is 0, so the GCD is 120. Dividing both original numbers by 120 gives 16 and 9 — the simplified ratio. The same algorithm applied to 640 and 480 yields a GCD of 160, and dividing gives 4 and 3.

Solving for a missing dimension uses simple proportional reasoning rather than the GCD at all: because the resized image must have the identical width-to-height ratio as the original, resultHeight / resultWidth must equal originalHeight / originalWidth. Rearranging for the unknown height when the new width is known gives resultHeight = targetWidth × (originalHeight / originalWidth). The mirror-image calculation, solving for width when the new height is known, is resultWidth = targetHeight × (originalWidth / originalHeight). Both formulas are the same proportional relationship solved for a different variable, and both preserve the ratio exactly — no rounding is applied until the final display step.

Applied to the running example: originalWidth = 1920, originalHeight = 1080, targetWidth = 1280. resultHeight = 1280 × (1080 / 1920) = 1280 × 0.5625 = 720. The resized frame is 1280×720, and dividing 1280 by 720 gives 1.7778 (recurring) — the same decimal as 1920/1080, confirming the ratio was preserved. This is exactly why 1280×720 ('720p') and 1920×1080 ('1080p') are both marketed as '16:9 HD' despite having different total resolutions: they share the same underlying ratio the Euclidean reduction and the proportional solve both operate on.

A worked example.

Example

A designer has a 1920×1080 (1080p) source photo and needs a 1280-pixel-wide thumbnail for a website without distorting the image. Reducing 1920:1080 to lowest terms (dividing both by their greatest common divisor, 120) confirms the source is a standard 16:9 frame. Solving for the matching height at a target width of 1280 gives resultHeight = 1280 × (1080/1920) = 1280 × 0.5625 = 720. The correctly proportioned thumbnail is therefore 1280×720 — itself a standard 16:9 'HD-ready' frame size, which is a useful sanity check: dividing 1280 by 720 returns the same 1.7778 decimal ratio as the original 1920/1080, confirming nothing was stretched or squashed in the resize.

modesolve-height
target Height720
original Height1,080
original Width1,920
target Width1,280

Frequently asked questions.

How do I calculate an aspect ratio from pixel dimensions?
Divide both the width and the height by their greatest common divisor (GCD) — the largest whole number that evenly divides both. For 1920×1080, the GCD is 120, so dividing both numbers by 120 gives 16 and 9, written as the ratio 16:9. This calculator performs that reduction automatically using the Euclidean algorithm, the same method Euclid described in Book VII of the Elements for finding the GCD of two integers, so you never have to find the common factors by hand.
How do I resize an image without distorting it?
Change only one dimension directly, and calculate the other dimension from the original ratio rather than guessing or typing an arbitrary number. If your original image is 1920×1080 and you want a 1280-pixel-wide version, the height that preserves the ratio is 1280 × (1080/1920) = 720 — not some other number you picked separately. Entering an unrelated height alongside your new width is the most common cause of a visibly 'squished' or 'stretched' resized image, because the two dimensions are no longer proportional to each other.
What is the difference between 16:9 and 4:3?
16:9 (a decimal ratio of about 1.7778) is the modern widescreen standard used by virtually all HDTVs, streaming video, and computer monitors since the format was formalized by the ITU-R's Recommendation BT.709 for HDTV production. 4:3 (a decimal ratio of exactly 1.3333) is the older, nearly square standard used by standard-definition television and early computer monitors, and is jointly documented alongside 16:9 in the ITU-R's earlier Recommendation BT.601 for studio digital-television encoding. A 4:3 image displayed on a 16:9 screen without adjustment appears with black bars on the left and right (pillarboxing), and the reverse produces black bars top and bottom (letterboxing).
Why does the calculator need both a width and a height, plus a separate target?
The original width and height establish the ratio you are trying to preserve; the target width or height is the one new number you already know and want to resize to. The calculator uses the original pair purely to compute the ratio (both as a simplified whole-number form and as a decimal), then applies that ratio to your single target dimension to solve for the matching one. Entering an original pair that is not actually your source material's real size will still produce a mathematically correct answer — but it will preserve the WRONG ratio, so always use your actual source dimensions.
What if my width and height don't reduce to a 'clean' ratio like 16:9 or 4:3?
Many real-world dimensions don't reduce to a small, memorable pair of numbers, and that is completely normal — not every image or screen is manufactured to a broadcast or print standard. A 3440×1440 ultrawide monitor, for example, reduces to 43:18 (decimal ratio 2.3889), which has no common shorthand name the way 16:9 or 4:3 do. The calculator still performs the exact same Euclidean-algorithm reduction and proportional solve regardless of whether the resulting ratio has a familiar name — the math does not require the ratio to be 'nice' to be correct.
Does this calculator work for print and paper sizes, not just screens?
Yes — the underlying math (a ratio between two lengths, reduced to lowest terms, with proportional resizing) is unit-agnostic and works identically whether the two numbers are pixels, inches, or millimeters. Print media has its own standardized ratio family: ISO 216 defines the international A-series paper sizes (A4, A3, A5, and so on) around a 1:√2 ratio specifically because folding or cutting a sheet in half along its long side produces a smaller sheet with the identical proportions — a property unique to the √2 ratio, and unrelated to the 16:9 or 4:3 ratios that govern screens.
What is the greatest common divisor and why does the calculator need it?
The greatest common divisor (GCD) of two whole numbers is the largest number that divides both of them with no remainder. Dividing a width and height by their GCD is precisely how a ratio is reduced to its simplest, lowest-terms form — the same operation used to simplify a numeric fraction like 8/12 down to 2/3. The calculator finds the GCD using the Euclidean algorithm, a method of repeated division and remainder-taking that Euclid documented over two thousand years ago in Book VII of the Elements, and which remains the standard, most efficient way to compute a GCD by hand or by computer.
Can I use this calculator to check whether two images are the same shape?
Yes. Enter each image's width and height separately and compare the simplified ratio or the ratio-as-decimal output between the two runs — if both reduce to the same ratio (or the same decimal value), the images are exactly the same shape and one can be resized to match the other's dimensions without any distortion or cropping. This is a common pre-check before batch-resizing a folder of photos or preparing video assets that must all fit the same frame.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 313 calculators remain free
  • No billing is enabled
Coming soon