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
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.
- Choose whether you already know your target width (solve for the matching height) or your target height (solve for the matching width).
- Enter the original width and height of your source image, video, or screen — any consistent unit works, since only the ratio between them matters.
- Enter your target width (if solving for height) or target height (if solving for width).
- Read the simplified ratio (e.g. 16:9) to confirm what standard shape your source material actually is.
- 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.
- 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.
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.
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.
Frequently asked questions.
How do I calculate an aspect ratio from pixel dimensions?
How do I resize an image without distorting it?
What is the difference between 16:9 and 4:3?
Why does the calculator need both a width and a height, plus a separate target?
What if my width and height don't reduce to a 'clean' ratio like 16:9 or 4:3?
Does this calculator work for print and paper sizes, not just screens?
What is the greatest common divisor and why does the calculator need it?
Can I use this calculator to check whether two images are the same shape?
References& sources.
- [1]ITU-R Recommendation BT.601-5 (1995), Studio encoding parameters of digital television for standard 4:3 and wide-screen 16:9 aspect ratios. International Telecommunication Union.
- [2]ITU-R Recommendation BT.709-6 (2015), Parameter values for the HDTV standards for production and international programme exchange. International Telecommunication Union.
- [3]ISO 216:2007, Writing paper and certain classes of printed matter — Trimmed sizes — A and B series, and indication of machine direction. International Organization for Standardization.
- [4]Euclid, Elements, Book VII, Propositions 1–2 — the Euclidean algorithm for finding the greatest common divisor of two numbers (Heath translation, Cambridge University Press, 1908).
- [5]NIST Digital Library of Mathematical Functions, §27 — Functions of Number Theory (greatest common divisor and related identities).
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 313 calculators remain free
- No billing is enabled