tech calculator

Aspect Ratio Calculator

Reduce width and height into a simple ratio and decimal aspect for screens, pictures, videos, and layouts.

Results

Ratio width
16.00
Ratio height
9.00
Decimal aspect
1.78

Overview

Every screen, image, and video frame has an aspect ratio: the relationship between width and height. Common ratios like `16:9`, `4:3`, `1:1`, and `9:16` show up everywhere, which is why people search for everything from an `aspect ratio calculator` to a `display ratio calculator` or `picture ratio calculator`.

This route turns raw dimensions into a clean, reduced ratio and a decimal aspect value. Enter width and height in pixels or any other consistent unit, and it simplifies them to the smallest whole-number ratio, so `1920 × 1080` becomes `16:9` and the decimal aspect becomes about `1.78`. That makes it easier to check whether your assets match target formats, avoid black bars, and plan crops or layouts without guessing.

How to use this calculator

  1. Measure or note the width and height of your asset in pixels (for digital images/video) or in any consistent unit for physical designs.
  2. Enter the width value into the Width field and the height value into the Height field.
  3. The calculator finds the greatest common divisor of the two numbers and divides both by that divisor to get a simplified ratio like 16:9, 4:3, 3:2, or another custom ratio.
  4. It also divides width by height to compute a decimal aspect (for example, 1920 ÷ 1080 ≈ 1.7778).
  5. Review the simplified ratio and decimal aspect. Compare them against target formats from your video platform, social network, or design system.
  6. If your current dimensions are slightly off from a target ratio, you can adjust width or height in your design tool to match the desired ratio more closely.

Inputs explained

Width
The horizontal dimension of your frame, in pixels or any other consistent unit. For example, a Full HD video has a width of 1920 pixels, and a square Instagram post might have a width of 1080 pixels.
Height
The vertical dimension of your frame, in the same unit as width. Using the previous examples, Full HD height is 1080 pixels, while a square image might also be 1080 pixels high.

Outputs explained

Ratio width
The reduced width side of the simplified ratio after the calculator divides both dimensions by their greatest common divisor. For a `1920 × 1080` frame, this becomes `16`.
Ratio height
The reduced height side of the simplified ratio. Together with Ratio width, it forms the final aspect ratio such as `16:9`, `4:3`, or `3:2`.
Decimal aspect
The width divided by the height as a decimal. This is useful when you need to compare your frame to published decimal requirements such as `1.78` for `16:9` or `1.91` for a wide image format.

How it works

Aspect ratio is defined as width : height. To make this ratio easy to read, we reduce both numbers by their greatest common divisor (GCD).

The calculator takes your width and height, computes their GCD, and divides each by that GCD to produce a simplified ratio: ratioWidth = width ÷ GCD; ratioHeight = height ÷ GCD.

It also calculates a decimal aspect value by dividing width by height: decimalAspect = width ÷ height. This is useful for comparing to published aspect requirements such as 1.78 (16:9) or 1.33 (4:3).

Because the math is unit‑agnostic, you can use pixels, inches, or centimeters—as long as both width and height use the same unit, the ratio remains the same.

The tool does not change or crop your image; it simply analyzes the ratio implied by your dimensions so you can decide whether you need to rescale or crop in an editor.

Formula

Let W = width and H = height.\nLet g = GCD(W, H).\nSimplified ratio = (W ÷ g) : (H ÷ g).\nDecimal aspect = W ÷ H.\nFor example, W = 1920, H = 1080, g = 120 → ratio = 16:9 and decimal ≈ 1.7778.

When to use it

  • Checking whether a video export (for example, 1920×1080, 1280×720, or 3840×2160) matches standard 16:9 widescreen or has drifted due to custom settings.
  • Evaluating whether a social media image size fits recommended aspect ratios for feeds, stories, or ad placements, such as 1:1, 4:5, 9:16, or 1.91:1.
  • Planning responsive UI layouts or artboards where you want to maintain a consistent aspect ratio across devices and breakpoints.
  • Sizing thumbnails, hero images, or background graphics so they display without unexpected letterboxing, pillarboxing, or cropping on different platforms.
  • Translating between physical design specs (for example, print poster dimensions) and screen ratios to ensure artwork adapts cleanly from print to digital.

Tips & cautions

  • Keep units consistent. If you use inches or centimeters instead of pixels, make sure both width and height are in the same unit—aspect ratio is unitless, so the ratio remains valid.
  • If your dimensions are large and share a big common factor, the reduced ratio will still align with familiar standards (for example, 3840×2160 and 1920×1080 both reduce to 16:9).
  • Use the decimal aspect value to compare quickly against platform requirements. For example, 1.78 is effectively 16:9, 1.33 is roughly 4:3, and 0.5625 corresponds to 9:16.
  • When cropping in an image or video editor, set a fixed aspect ratio (like 16:9 or 9:16) and then verify your exported dimensions in this calculator to confirm they match.
  • For responsive layouts, consider locking aspect ratio using CSS or container constraints and using this tool to derive the ratio behind a given design’s width and height.
  • Focuses on aspect ratio only—it does not check or enforce minimum/maximum resolution, file size, or bit rate requirements imposed by specific video or social platforms.
  • Ignores pixel density (PPI/DPI) and physical size. Two images with the same aspect ratio but different pixel densities can appear very different on various screens.
  • Does not perform cropping, padding, or scaling; you still need an editing tool or code to actually change your media to match a desired aspect ratio.
  • Does not account for safe areas, UI overlays, or platform‑specific interface chrome that can effectively crop or mask parts of the frame.
  • Assumes width and height are positive integers; non‑integer or zero values are not meaningful for ratio calculations.

Worked examples

Full HD video frame

  • Width = 1920 px, Height = 1080 px.
  • GCD(1920, 1080) = 120.
  • Simplified ratio = (1920 ÷ 120):(1080 ÷ 120) = 16:9.
  • Decimal aspect = 1920 ÷ 1080 ≈ 1.7778 (commonly referred to as 1.78:1).

Vertical social story format

  • Width = 1080 px, Height = 1920 px.
  • GCD(1080, 1920) = 120.
  • Simplified ratio = (1080 ÷ 120):(1920 ÷ 120) = 9:16.
  • Decimal aspect = 1080 ÷ 1920 ≈ 0.5625, the inverse of 16:9.

Print-like 3:2 photography frame

  • Width = 3000 px, Height = 2000 px.
  • GCD(3000, 2000) = 1000.
  • Simplified ratio = (3000 ÷ 1000):(2000 ÷ 1000) = 3:2.
  • Decimal aspect = 3000 ÷ 2000 = 1.5.

Common laptop-style 1366 × 768 display

  • Width = 1366 px, Height = 768 px.
  • The calculator reduces the dimensions by their greatest common divisor and reports the exact simplified ratio for the entered numbers.
  • Decimal aspect = 1366 ÷ 768 ≈ 1.7786, which is extremely close to `16:9` even though the raw pixel counts do not reduce perfectly to `16:9`.
  • This is useful when a screen or export is effectively widescreen in practice even if the exact stored dimensions are not a textbook `1920 × 1080` or `1280 × 720`.

Non-standard banner

  • Width = 1200 px, Height = 500 px.
  • GCD(1200, 500) = 100.
  • Simplified ratio = (1200 ÷ 100):(500 ÷ 100) = 12:5.
  • Decimal aspect = 1200 ÷ 500 = 2.4.
  • This is a custom 12:5 (2.4:1) banner that does not map exactly to common video formats like 16:9 or 21:9.

Deep dive

Use this aspect ratio calculator to turn any width and height into a clean, simplified ratio like `16:9`, `4:5`, or `3:2` and a decimal aspect value so you can match video, image, and layout requirements without guesswork.

It also works as a screen, picture, or display ratio calculator when you need to turn raw pixel dimensions into a readable format or check whether a frame matches a target ratio.

Perfect for designers, video editors, and developers working across devices and platforms who need quick, reliable aspect ratio checks.

Methodology & assumptions

  • The calculator reads a width and a height and treats them as two dimensions of the same frame or object.
  • It calculates the greatest common divisor (GCD) of those two numbers using the Euclidean algorithm. That divisor is the largest number that evenly divides both dimensions.
  • The simplified aspect ratio is calculated as `Ratio width = Width ÷ GCD` and `Ratio height = Height ÷ GCD`.
  • The decimal aspect value is calculated separately as `Width ÷ Height`.
  • Because both calculations depend only on the relationship between the two dimensions, the route is unit-agnostic. Pixels, inches, and centimeters all produce the same ratio as long as both inputs use the same unit.
  • The route does not resize, crop, or pad the media. It only analyzes the ratio implied by the dimensions you enter.
  • Copy on the page is kept aligned with `aspectRatioCalculator` so the examples, formula, and FAQ describe the live computation accurately.

Sources

FAQs

How do you calculate aspect ratio?
Take width and height, find their greatest common divisor, and divide both numbers by it. For example, `1920 × 1080` has a greatest common divisor of `120`, so `1920 ÷ 120 = 16` and `1080 ÷ 120 = 9`, which gives `16:9`. The decimal aspect is just `width ÷ height`, which is about `1.7778` in that example.
Do I have to use pixels for width and height?
No. Aspect ratio is unitless. You can use inches, centimeters, or any other consistent unit as long as width and height share the same unit. The ratio will be the same.
Why doesn’t my ratio show exactly as 16:9 or 4:3 even though it’s close?
Small differences in pixel counts or rounding can produce ratios that are close but not exact (for example, 1918×1080). The calculator reports the precise simplified ratio for your inputs—you can decide whether to adjust dimensions to hit a standard like 16:9 more exactly.
Can I use this tool to plan cropping for a different aspect ratio?
Yes, indirectly. You can enter your current dimensions to see their ratio, then compare against a target ratio. From there, you can compute the new width or height needed to hit the target and apply that crop or resize in your editing software.
Does this calculator account for safe areas on TVs or social platforms?
No. It only reports the raw aspect ratio. Safe areas (for example, where UI overlays or captions appear) are platform‑specific and need to be planned separately within your design or editing tool.
Is aspect ratio the same as resolution quality?
No. Aspect ratio tells you the shape of the frame, not how many pixels it contains. 1920×1080 and 1280×720 are both 16:9, but the former has many more pixels and can look sharper at the same physical size.
Why do some screens look like 16:9 even when the numbers are not exact?
Some real-world dimensions, such as `1366 × 768`, are extremely close to a familiar standard ratio without reducing to the exact textbook numbers. In those cases, the decimal aspect helps you decide whether the frame is practically widescreen even if the simplified ratio is slightly different from a cleaner standard like `16:9`.

Related calculators

This aspect ratio calculator analyzes the relationship between width and height only and does not evaluate resolution, compression, or platform‑specific requirements. Always check your target platform’s documentation for recommended resolutions, bitrates, and safe‑area guidelines, and verify final exports with appropriate preview tools before publishing or printing.