Aspect Ratio & Letterbox Calculator: Width, Height, and Ratio in Seconds

Free aspect ratio calculator. Enter width and height to get the simplified ratio, scale dimensions, and calculate letterbox bars. Runs in your browser.

ZERO UPLOAD · ALL LOCAL
  1. Enter your source width and height in pixels, or pick a resolution from the presets dropdown.
  2. The simplified ratio and its common name appear automatically.
  3. In Scale to Target, enter a target width or height; the other dimension is calculated to match your ratio.
  4. In the Letterbox section, enter a display size to see bar dimensions and a visual preview.

Worked examples for this use case

Exporting a 1920×1080 video for a 3440×1440 ultrawide display

The calculator shows 440-pixel pillar bars on each side (`3440 - 2560 = 880` total, 440 per side). Position HUD overlays and subtitles inside the 2560-pixel-wide safe zone.

Scaling a 3840×2560 (3:2) photo to a 1920×1080 (16:9) YouTube thumbnail

At 1920 pixels wide, the 3:2 crop is 1920×1280, but the target is 1920×1080. Crop 200 pixels (100 top, 100 bottom) for a clean 16:9 thumbnail without black bars.

Source Resolution
Width px
Height px
Scale to Target
Target Width px
Target Height px
Enter source width and height first
Letterbox Calculator
Source
×
Display
×
Top / bottom bars px each
Left / right bars px each
Preview

Aspect Ratio & Letterbox Calculator: Width, Height, and Ratio in Seconds

Aspect ratios control how every screen displays every image. Enter any width and height into the calculator and it instantly returns the simplified ratio, the preset name if a matching standard exists, and the scaling formula for any target size. No uploads, no accounts, and no ads between you and the result. The CapyToolkit aspect ratio calculator runs every computation in your browser, keeping your dimensions private while delivering the same mathematical precision as dedicated video production tools.

Three needs drive most visits: finding the height for a given width, finding the width for a given height, or calculating letterbox bar sizes when source and display ratios differ. Each case involves the same core formula. Divide width by height to get the decimal ratio, then scale proportionally, but the letterbox calculation adds a second ratio to the equation. This guide covers all three scenarios with concrete pixel values, ratio names, and real-world examples from video, photography, and display hardware.

What an aspect ratio is

An aspect ratio describes the proportional relationship between width and height. The ratio 16:9 means that for every 16 units of width, there are 9 units of height. Finding it from pixel dimensions uses the greatest common divisor (GCD): for 1920×1080, GCD = 120, so 1920/120 = 16 and 1080/120 = 9. Common named ratios include 16:9 (widescreen HD), 4:3 (standard definition), 21:9 (ultrawide), 16:10 (tall widescreen), and 3:2 (photography and print).1 Each maps to specific display hardware: a 2560×1440 QHD monitor is 16:9, a 1920×1200 WUXGA monitor is 16:10, and a Surface Pro 9 is 3:2. Consequently, knowing the ratio is the starting point for every scaling, export, and layout calculation you encounter in digital content work.

How to use the calculator

Enter the source width and height in the Source Dimensions section. The calculator displays the simplified ratio and matches it to a known standard if one exists. To scale the source to a new size, enter a target width or target height in Scale to Target, the locked dimension recalculates automatically. To find letterbox bar sizes, enter the target display dimensions in the Letterbox section. The calculator shows the bar height in pixels for top-bottom letterboxing or bar width for left-right pillarboxing. Use the presets dropdown to start from common resolutions like 1920×1080, 3440×1440, or 3840×2160 without typing every time.

Source Dimensions and ratio identification

Enter the source width and height in the Source Dimensions section. The calculator displays the simplified ratio and matches it to a known standard if one exists. The GCD reduction runs automatically, so entering 1920×1080 returns 16:9, entering 2560×1080 returns 64:27, and entering 3840×2560 returns 3:2. This identification step is essential when you receive assets from multiple sources and need to confirm their aspect ratios before processing them further.

Try the identification on the ratios that most often get mislabeled. Enter 2560×1080 and the calculator returns 64:27 rather than 21:9, and entering 3440×1440 returns 43:18, so you can name the panel correctly before sending assets to a colleague. The same check on 1920×1200 returns 8:5, which tells you a 16:10 deliverable from a 16:9 source will need letterbox bars.

Scale to Target and Letterbox sections

To scale the source to a new size, enter a target width or target height in Scale to Target, the locked dimension recalculates automatically. To find letterbox bar sizes, enter the target display dimensions in the Letterbox section. The calculator shows the bar height in pixels for top-bottom letterboxing or bar width for left-right pillarboxing. The ratio lock buttons keep width and height proportional as you adjust values, preventing accidental distortion. These three sections work together: identify the ratio first, then scale or calculate bars as needed.

Problems and edge cases

Non-integer ratios appear when pixel counts do not reduce cleanly. A 1366×768 laptop screen reduces to 683:384, not 16:9. Displays advertised as 21:9 use actual ratios like 64:27 (2560×1080) or 43:18 (3440×1440), so 21:9 is a marketing approximation.2 OS scaling adds another layer: a MacBook Pro displays 1280×800 logical pixels on a 2560×1600 physical panel at 2x DPI. The physical ratio is 16:10 but the logical viewport is also 16:10, they match, so no distortion occurs. Conversely, fractional scaling on 3:2 Surface displays (125% or 150%) produces logical viewport sizes that do not simplify to neat ratios.

Non-standard ratios and marketing approximations

A 1366×768 laptop screen reduces to 683:384, not 16:9, because 1366 is not evenly divisible by 16. Displays advertised as 21:9 use actual ratios like 64:27 (2560×1080) or 43:18 (3440×1440), so 21:9 is a marketing approximation. These discrepancies matter when you are designing content that must fill the panel without any bars or distortion. The CapyToolkit calculator returns the exact GCD-reduced ratio for any width-height pair, so you can identify the true ratio rather than relying on the marketing label.

DPI scaling and logical versus physical pixel dimensions

OS scaling adds another layer: a MacBook Pro displays 1280×800 logical pixels on a 2560×1600 physical panel at 2x DPI. The physical ratio is 16:10 but the logical viewport is also 16:10, they match, so no distortion occurs. Conversely, fractional scaling on 3:2 Surface displays (125% or 150%) produces logical viewport sizes that do not simplify to neat ratios. Always verify panel specs from the manufacturer data sheet when exact dimensions matter for your project. The CapyToolkit calculator works with physical pixel dimensions, so you should enter the native panel resolution rather than the logical viewport size.

Common aspect ratio mistakes in web design

Web designers frequently assume all screens are 16:9, which leads to hero images and full-width banners that look cropped or letterboxed on 4:3 tablets and 3:2 laptops. A 1920×1080 hero image displayed at full width on a 1024×768 4:3 display scales down to 1024×576, cropping 25% of the height. Using CSS object-fit: cover prevents distortion but may cut off important content at the edges. The safer approach is to design for the smallest expected viewport and use object-position to control which part of the image survives the crop.

Hard-coded pixel dimensions break responsive layouts

Another common mistake is hard-coding pixel dimensions for video embeds. A 16:9 video embed at 1920×1080 overflows its container on 4:3 screens. Use the aspect-ratio: 16/9 CSS property with width: 100% and height: auto to maintain the ratio at any container width.3 The CapyToolkit calculator helps you plan these responsive breakpoints by showing the exact pixel dimensions at each target ratio. Designers who verify their breakpoints against the calculator produce layouts that adapt cleanly to 16:9, 16:10, and 4:3 viewports without unexpected cropping or overflow.

Designing for the smallest expected viewport first

The safer approach is to design for the smallest expected viewport and use object-position to control which part of the image survives the crop. For a hero banner that must work on both 16:9 desktop and 4:3 tablet, design at the 4:3 size first and verify that the composition still works when cropped to 16:9. This mobile-first approach ensures that critical content sits within the intersection of all target viewports, which means it remains visible regardless of the display aspect ratio. The CapyToolkit calculator shows the exact intersection dimensions for any pair of aspect ratios.

Using the calculator for game development and UI design

Game developers must design UI layouts that work across multiple aspect ratios. A HUD element anchored to the top-right corner of a 1920×1080 screen sits at coordinates (1720, 20). On a 2560×1080 21:9 display, that same element at the same normalized position (0.9, 0.02) sits at (2304, 22), which is still in the corner. But if the element is designed at a fixed pixel offset from the corner (200 pixels from the right edge), it sits at (1720, 20) on 16:9 and at (2360, 20) on 21:9, which is fine. The problem arises when the element is designed for a specific width and the 21:9 display shows more horizontal space that the UI does not account for. Unity4 and Unreal Engine both offer anchor-based UI systems5 that position elements relative to screen edges rather than absolute pixels, which solves this problem.

The CapyToolkit calculator shows the exact pixel coordinates at each ratio, letting you verify that your UI elements remain within the visible area across all target aspect ratios. Game developers who test their UI at multiple ratios in the calculator before shipping avoid the costly post-launch patches that result from elements drifting off-screen or overlapping critical content on non-standard displays.

When to use this

Use this calculator when you need to scale an image or video to a new size without distortion, when you want to calculate exact letterbox bar dimensions for a specific display, or when you need to confirm whether two resolutions share the same aspect ratio.

Examples

Exporting a 1920×1080 video for a 3440×1440 ultrawide display

The calculator shows 440-pixel pillar bars on each side (`3440 - 2560 = 880` total, 440 per side). Position HUD overlays and subtitles inside the 2560-pixel-wide safe zone.

Scaling a 3840×2560 (3:2) photo to a 1920×1080 (16:9) YouTube thumbnail

At 1920 pixels wide, the 3:2 crop is 1920×1280, but the target is 1920×1080. Crop 200 pixels (100 top, 100 bottom) for a clean 16:9 thumbnail without black bars.

Sources
  1. 1.

    "16:9 aspect ratio," Wikipedia, accessed June 2026. https://en.wikipedia.org/wiki/16:9_aspect_ratio

  2. 2.

    "Rec. 709," Wikipedia, accessed June 2026. https://en.wikipedia.org/wiki/Rec._709

  3. 3.

    Mozilla Developer Network, "aspect-ratio CSS property," developer.mozilla.org, accessed June 2026. https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/aspect-ratio

  4. 4.

    Unity Technologies, "Basic Layout," docs.unity3d.com, accessed June 2026. https://docs.unity3d.com/Manual/UIBasicLayout.html

  5. 5.

    Unity Technologies, "Designing UI for Multiple Resolutions," docs.unity3d.com, accessed June 2026. https://docs.unity3d.com/Manual/HOWTO-UIMultiResolution.html

FAQ