Skip to content
MathFree · No signup · 14.8K/month · $7.95 CPC

Aspect Ratio Calculator — Resize, GCD-Reduce & Snap to 16:9, 4:3, 21:9, 1:1

Solve any missing dimension from a width and height — or scale to a target ratio. GCD-reduces to lowest integer form and snaps to the standard formats (16:9, 9:16, 4:3, 21:9, 1:1, 3:2, 5:4) with industry-standard ±2% tolerance.

  • Instant result
  • Private — nothing saved
  • Works on any device
  • AI insight included
Reviewed by CalcBold Editorial · Sources: ITU-R BT.601 + BT.709 + W3C CSS Images ModuleLast verified Methodology

Aspect Ratio Calculator

Width of the source image, video frame, or canvas. Pixels only — no fractional input. The calculator's GCD-reduce step turns any width × height into its lowest integer form.

Height of the source. Combined with width, drives the original ratio (1920 × 1080 = 16:9 = 1.778 decimal).

1920×1080 ≈ 16:9 — YouTube/4K TV

Scale-by-width: keep the new width fixed; the calc computes the matching height. Scale-by-height: opposite. Show-ratio skips scaling and just reports the GCD-reduced format.

Used in scale-by-width or scale-by-height mode only. Ignored in show-ratio mode. Common values: 1920 (FHD), 1280 (HD), 854 (480p), 3840 (4K UHD).

Pick a target ratio to convert to (e.g. resize a 1920×1080 16:9 source to a 9:16 TikTok-ready size at 1080×1920). Default 'Keep' preserves the original ratio when scaling.

Embed builderDrop the Aspect Ratio on your site →Free widget · 3 sizes · custom theme · auto-resizes · no signupGet embed code

What aspect ratio is this? — short answer first

Aspect ratio is the SHAPE of an image or video — width-to-height proportion expressed as W:H. The most common are 16:9 (YouTube, 4K TV, monitors), 9:16 (TikTok, Reels, Shorts), 4:3 (iPad, classic CRT, projector), 21:9 (ultrawide monitor, cinematic), 1:1 (Instagram feed, profile photo), and 3:2 (DSLR, 35mm film). The calculator above takes any width × height, GCD-reduces it to lowest integer form, snaps to the nearest standard within ±2% tolerance, and lets you scale to any target dimension or convert to a different ratio.

What This Calculator Does

Three modes in one calculator: (1) given a width and height, compute the GCD-reduced ratio and snap to the nearest standard format; (2) scale to a target width while keeping the ratio (compute the new height); (3) scale to a target height while keeping the ratio (compute the new width). Optionally, convert the ratio entirely — feed in a 16:9 source and target 9:16 TikTok dimensions, the calculator outputs the matching new size.

Common-ratio quick reference panel surfaces 6 standard formats at the same target dimension so you can eyeball the trade-off between (e.g.) cropping to 1:1 for Instagram vs leaving as 16:9 for YouTube. Pixel count and linear scale factor are reported in the details so you can verify the new size produces a reasonable file weight (pixel count is a proxy for raw uncompressed file size).

The Math / Formula / How It Works

The Euclidean algorithm finds the GCD of two integers in logarithmic time. It’s the canonical way to reduce a ratio to its lowest-integer form. Example: GCD(1920, 1080) = 120 → 1920/120 : 1080/120 = 16:9. The same machinery handles non-obvious sizes: GCD(1366, 768) = 2 → 683:384, which is the actual reduced form of 1366×768 even though it’s marketed as 16:9 (it’s 16:9.0014, within tolerance).

Snap-to-common applies a ±2% tolerance against the canonical decimal value of each standard ratio. Real-world hardware and media rarely match standard ratios exactly due to integer- rounding constraints (you can’t have 0.4 pixels), so the tolerance lets the calculator recognize “this is intended as 16:9” even when the literal arithmetic gives 16:9.0014. The 2% tolerance is the industry convention; tighten to 1% for pixel-perfect match work.

Scaling preserves the aspect ratio by holding one dimension fixed and computing the other from the ratio. If you want a 16:9 (1.778) source at 1280 wide: new height = 1280 / 1.778 = 720. If you want it at 720 tall: new width = 720 × 1.778 = 1280. Both produce the same 1280×720, just different ways to ask for it. The calculator’s mode select picks which framing matches your starting point.

How to Use This Calculator

  1. Enter original width and height (pixels).Source dimensions of your image, video frame, or canvas. Integer pixels only — no fractional input. Common starting points: 1920×1080 (FHD video), 3840×2160 (4K UHD), 1080×1080 (Instagram square master).
  2. Pick what to compute. Scale-by-width (compute height): you have a target width in mind. Scale-by- height: opposite. Show-ratio: just report the GCD-reduced ratio without scaling.
  3. Enter target dimension (if scaling). Width or height in pixels — depending on the mode you picked. Common values: 1920 (FHD), 1280 (HD), 854 (480p), 3840 (4K UHD), 1080 (Instagram feed width).
  4. Pick target ratio(or keep original). Default “Keep” preserves the source ratio while scaling. Pick a different ratio (e.g. 9:16) to convert AND scale in one step — useful for repurposing horizontal content for vertical platforms.
  5. Read the verdict. Primary number is the new dimension. Details show GCD-reduced ratio, snap-to-common match, pixel count, and 6 quick-reference common ratios at the same target dimension. Working block shows the formula chain step by step.

Three Worked Examples

Example 1 — 1920×1080 source, scale to 1280 wide, keep ratio

Original ratio = 1920 / 1080 = 1.778. GCD(1920, 1080) = 120 → reduced 16:9. Match within ±2% of canonical 16:9 (exact match, in fact). New width 1280 → new height = 1280 / 1.778 = 720. New size 1280×720 at 16:9 (HD format). Pixel count 921,600 = 0.92 MP, linear scale factor 67% of original. Common use: 720p downscale of FHD master for older devices or low-bandwidth distribution.

Example 2 — 4032×3024 iPhone photo, snap-to-common

Original ratio = 4032 / 3024 = 1.333. GCD(4032, 3024) = 1008 → reduced 4:3. Match within ±2% of canonical 4:3 (1.333 exactly). Verdict: 4:3 — the standard iPad / classic CRT / projector format. iPhone main camera shoots 4:3 by default; switching to 16:9 in camera settings crops top and bottom and gives 4032×2268. For Instagram feed at 4:5 portrait, this image needs cropping (sides stay, top + bottom trim) — calculator surfaces the new 4:5 dimensions in the common-ratio quick reference panel.

Example 3 — 1920×1080 horizontal source, convert to 9:16 TikTok

Original 1920×1080 = 16:9. Target ratio 9:16 (vertical). Mode: scale-by-height. Target value: 1920 (max vertical pixels). New size: 1080×1920at 9:16. The calculator’s scale-with-ratio-conversion mode does this in one step. Note: this is a CROP-and-resize operation in practice — the original 16:9 frame doesn’t literally fit into 9:16 without losing ~75% of horizontal content. The calculator gives the target dimensions; the actual visual cropping is the editor’s job (focus on subject, hand-pan if subject moves).

Common Mistakes

  • Confusing ratio with size. 1920×1080 and 1280×720 are the same RATIO (16:9) but different SIZES. They look like the same rectangle scaled differently. Mismatched ratios cause letterboxing or cropping; mismatched sizes just mean different file weights.
  • Up-scaling lossy formats. If you start at 720×480 and need 1920×1080, the new pixels are interpolated (invented) — quality degrades. Always work from the highest- resolution master available; only ever down-scale for distribution. Ratio math is identical for both directions; quality math is not.
  • Forgetting platform-specific specs. Each platform has a published preferred ratio and size: YouTube thumbnails 16:9 ≥1280×720; TikTok 9:16 1080×1920; Instagram feed 4:5 portrait (1080×1350) for max real estate; X share cards 1.91:1 (1200×630). Posting an off-spec image gets cropped or center-fitted with bars.
  • Ignoring the smartphone screen ratio.Modern phones are 19.5:9 (iPhone 14/15/16) or 20:9 (Samsung S24, Pixel 8) — TALLER than the 9:16 video standard. So 9:16 videos render with small black bars top and bottom on most phones; this is normal and expected. Don’t try to shoot 19.5:9 — almost no platform supports it natively.
  • Not snapping to common.A 1366×768 monitor is usually marketed as 16:9 but the literal ratio is 16:9.0014 — within ±2% but not exact. Don’t treat it as a non-standard ratio; it’s 16:9 with rounding noise. The calculator’s snap step handles this automatically.
  • Mixing display ratio with sensor ratio. A DSLR sensor is 3:2 (35mm legacy). A monitor is 16:9 or 21:9. A printed 8×10 photo is 5:4. Each step in the photo workflow may have a different native ratio. The calculator works in pixels at any of those ratios; print ratios convert to pixel ratios via DPI (300 DPI × 8 inches = 2400 px).

Methodology & Sources

The 16:9 standard is defined by ITU-R BT.709 (HDTV) and is the dominant video and monitor format worldwide. 4:3 is defined by ITU-R BT.601 (SDTV) and is the legacy CRT / iPad format. Web image sizing rules are governed by W3C’s CSS Images Module Level 3, which defines the `aspect-ratio` CSS property and the rules for replaced-element box sizing. Cinematic ratios (1.85:1 Academy flat, 2.39:1 anamorphic) are SMPTE standards. The 2% snap tolerance is industry convention; the GCD step uses the Euclidean algorithm, which terminates in O(log min(W, H)) steps.

The calculator does NOT model: (1) pixel aspect ratio variants (some video formats use non-square pixels — 0.91 in 720×480 DV-NTSC, for example; the calculator assumes square pixels throughout), (2) anamorphic squeeze ratios (cinema content often shoots wider than the deliverable, then squeezes horizontally), (3) safe-area / title-safe margins (broadcast TV crops the outer 5-10% of the frame). For square-pixel web and modern broadcast, the calculator’s output is exact; for legacy or cinematic workflows, treat it as a starting point.

How to Read the Verdict

  1. Show-ratio mode. Primary value is the GCD- reduced ratio (e.g. 16:9). If snap-to-common matches, the verdict adds the standard format name and one canonical use case. If no common match within ±2%, the verdict reports the decimal ratio and notes the absence of a standard match.
  2. Scale-by-width mode. Primary value is the new height computed from your target width. Details show the new size, GCD-reduced new ratio, pixel count, and 6 common- ratio alternatives at the same target width.
  3. Scale-by-height mode. Mirror of scale-by- width. Primary value is the new width computed from your target height. Same details surface, organized around the height-fixed framing.
  4. Ratio conversion.When you pick a target ratio different from the source, the calculator outputs the new dimensions at the new ratio. Cropping or padding is the editor’s job — the calculator gives the math; you decide how to fit the original content into the new frame.

For non-image ratio problems (cooking, mixing, finance), the Ratio Calculator generalizes the GCD-reduce machinery to any pair of numbers. If your source dimensions are in inches, cm, or mm rather than pixels, run them through the Unit Converter first to get pixel equivalents at your target DPI (typical web: 72 or 96 DPI; print: 300 DPI; phone display: ~460 PPI for Retina-class screens).

Sources & Methodology

The formulas, thresholds, and benchmarks behind this calculator are anchored to the primary sources below. Where a study or agency document is the underlying authority, we link straight to it — not a summary or republished version.

  1. ITU-R BT.709 — Parameter values for the HDTV standards for production and international programme exchange· International Telecommunication Union — Radiocommunication sector

    International HDTV image-format standard — defines the 16:9 aspect ratio, 1920×1080 spatial resolution, and pixel-aspect-ratio rules used by all modern broadcast and streaming video.

    Accessed

  2. ITU-R BT.601 — Studio encoding parameters of digital television· International Telecommunication Union — Radiocommunication sector

    Earlier SDTV digital television standard — defines 4:3 and 16:9 active picture formats and the non-square pixel ratios that resolve to those display aspects.

    Accessed

  3. W3C — CSS Images Module Level 3· World Wide Web Consortium

    Authoritative web standard defining how aspect ratios apply to images, video, and replaced elements in CSS — basis for the `aspect-ratio` CSS property and `<img sizes>` resolution.

    Accessed

  4. SMPTE ST 2065 — Universal Image Format· Society of Motion Picture and Television Engineers

    Industry standards body for cinematic and broadcast image formats — defines 1.85:1 (Academy flat) and 2.39:1 (anamorphic) cinematic aspect ratios cited in this calculator.

    Accessed

Frequently Asked Questions

The most common questions we get about this calculator — each answer is kept under 60 words so you can scan.

  • What is an aspect ratio?
    Aspect ratio is the proportion between an image or video's width and its height, expressed as W:H (e.g. 16:9). It's the SHAPE of the frame, not the SIZE. A 1920×1080 image and a 1280×720 image both have a 16:9 aspect ratio — they look like the same rectangle scaled differently. Mismatched aspect ratios cause black bars (letterbox/pillarbox) or cropping when displayed on screens with different shapes.
  • What's the most common aspect ratio for video and images?
    16:9 — used by YouTube, 4K TVs, most monitors, presentation slides, and standard HDTV broadcast. It became dominant in the late 1990s as widescreen TVs replaced 4:3 CRTs. For mobile vertical video (TikTok, Reels, YouTube Shorts), 9:16 is the standard. For Instagram feed, 1:1 (square) and 4:5 (portrait) maximize screen real estate. For ultrawide monitors and cinematic film, 21:9.
  • How do I calculate aspect ratio from width and height?
    Divide width by the GCD (greatest common divisor) of width and height; divide height by the same GCD. The result is the lowest-integer form. Example: 1920 ÷ GCD(1920, 1080) ÷ 1080 ÷ GCD = 1920 ÷ 120 = 16; 1080 ÷ 120 = 9 → 16:9. The Euclidean algorithm finds the GCD efficiently. The calculator does this automatically and snaps to the nearest standard format within ±2% tolerance.
  • How do I resize while keeping the aspect ratio?
    Pick one dimension (width or height), and compute the other from the ratio. If you want a 1920×1080 (16:9) image at 1280 wide: new height = 1280 ÷ (16/9) = 720. The calculator's scale-by-width and scale-by-height modes do this in one step. Most image-editing tools also have a 'lock aspect ratio' toggle that performs the same math.
  • What's the difference between 1.91:1 and 16:9?
    1.91:1 ≈ 1.91 decimal; 16:9 ≈ 1.778 decimal. They're different — 1.91:1 is slightly wider. 1.91:1 is the Facebook/LinkedIn open-graph share image standard (1200×630 typical). 16:9 is the video/monitor standard. Posting a 16:9 image to Facebook results in slight cropping; posting a 1.91:1 image to YouTube results in horizontal black bars.
  • Why does Instagram feed use both 1:1 and 4:5?
    1:1 (square) is the historical Instagram default and still works well for feed. 4:5 (portrait, 1080×1350) is the maximum-feed-real-estate option — a 4:5 portrait image takes more vertical screen space than 1:1, which means more time on screen as users scroll. For maximum feed engagement, 4:5 is the modern recommendation. Stories and Reels use 9:16 (full-screen vertical).
  • What aspect ratio should I use for a YouTube thumbnail?
    16:9, 1280×720 minimum (YouTube's recommended specs). Larger is fine; YouTube downsamples. The thumbnail must be under 2 MB and in JPG, PNG, or GIF format. 1920×1080 is a safe high-quality choice. Custom thumbnails dramatically improve click-through; YouTube reports a 90%+ click-through advantage for videos with custom thumbnails vs auto-generated frames.
  • What aspect ratio is best for TikTok and Reels?
    9:16 vertical, ideally 1080×1920. This fills the full screen on mobile devices and is required by both platforms' algorithms for optimal reach. Horizontal (16:9) videos on TikTok render with black bars and are de-prioritized in the feed. The same 9:16 format works for Instagram Reels, YouTube Shorts, and Snapchat Stories — making it the universal vertical format for short-form social.
  • What's the aspect ratio of a smartphone screen?
    Most modern smartphones use 19.5:9 or 20:9 (very tall narrow). iPhone 14/15/16: 19.5:9. Samsung S24/Pixel 8: 20:9. This is taller than the 9:16 video standard, which is why TikTok and Reels add small black bars at top and bottom on most phones. For full-bleed phone wallpapers, use the device's native resolution; for phone-friendly content, 9:16 is the safe target with minor cropping accepted.
  • What aspect ratio is used for cinema?
    Modern cinema uses 1.85:1 (Academy flat) or 2.39:1 (anamorphic / 'scope'). 21:9 monitors approximate 2.33:1 — close to but not identical to 2.39:1 cinema. Films shot in 2.39:1 will have small black bars on a 21:9 monitor (left/right cropping or letterboxing). 4K UHD content distributed at 16:9 has built-in letterboxing if the master was anamorphic; the cinema bars are baked into the 16:9 frame.
  • What is the GCD method and why is it used for aspect ratios?
    GCD (greatest common divisor) is the largest integer that divides both numbers without remainder. Used to reduce a fraction to lowest terms. For aspect ratio: 1920/1080 → GCD(1920, 1080) = 120 → 1920/120 : 1080/120 = 16:9. The Euclidean algorithm finds GCD in logarithmic time. It's the canonical way to express ratios because 16:9 is more readable and recognizable than 1920:1080 (which is the same ratio).
  • What's the ±2% snap tolerance about?
    Real-world dimensions rarely match standard ratios exactly due to rounding (e.g. 1280×720 is exactly 16:9; 1366×768 is 16:9.0014 — close but not exact). The 2% tolerance lets the calculator recognize 'this is intended as 16:9' for any ratio within 2% of the canonical decimal. Tighten to 1% if you need pixel-perfect matches; widen to 5% for very rough categorization. The 2% default is the industry convention.